Connectoformer: Predicting Synaptic Connectivity from Neuron Morphology
Sidharth Goel ⋅ Erdem Varol
Abstract
Neuronal morphology constrains which neurons can form synaptic connections. Understanding how morphology shapes connectivity could help prioritize candidate synapses for proofreading and reveal structural features associated with circuit wiring. Recent connectomes provide the reconstructed morphologies and synapse annotations needed to build computational models that capture this relationship at scale. Training such models requires addressing the imbalance between the few neuron pairs that connect and the many that do not, as well as representing complex neuronal arbors as inputs to neural networks. Sampling nearby connected and unconnected pairs provides a more informative learning task, while the branching structure of neuronal arbors calls for a tokenization that preserves their geometry and topology. We introduce $\textit{Connectoformer}$, a Transformer-based model that predicts directed connections from neuron morphology. $\textit{Connectoformer}$ decomposes each neuron skeleton into branch segments and represents each segment as a token containing its geometric features and position within the neuronal tree. A shared Transformer encodes the branch tokens of each neuron independently. To predict a connection, the model combines a score derived from whole-neuron representations with a score derived from cross-attention between the branches of the two neurons. The model is trained to predict connectivity and, using synapse location annotations as additional supervision, to identify branches likely to contain the neuron pair’s synapses. On the FlyWire adult $\textit{Drosophila}$ connectome, $\textit{Connectoformer}$ distinguishes connected neurons from nearby unconnected neurons better than an arbor-overlap baseline. Compared with models that pool branch features into a single representation per neuron, branch-level interactions improve prediction most clearly for nearby and developmentally related candidates. We further evaluate generalization to held-out brain regions, developmental lineages, and neuron shapes, as well as to a second fly. Using synapse locations during training, $\textit{Connectoformer}$ also identifies branches likely to contain a neuron pair’s synapses, providing a starting point for investigating where connections form along neuronal arbors. Code is available at https://github.com/sgoe1/connectoformer.
Successful Page Load