Full text
43,624 characters
· extracted from
preprint-html
· click to expand
From Synapses to Dynamics: Obtaining Function from Structure in a Connectome Constrained Model of the Head Direction Circuit | bioRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-M677548'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search New Results From Synapses to Dynamics: Obtaining Function from Structure in a Connectome Constrained Model of the Head Direction Circuit View ORCID Profile Sunny Duan , Ling Liang Dong , View ORCID Profile Ila Fiete doi: https://doi.org/10.1101/2025.05.26.655406 Sunny Duan 1 Brain and Cognitive Sciences, Massachusetts Institute of Technology Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Sunny Duan For correspondence: sunnyd{at}mit.edu Ling Liang Dong 1 Brain and Cognitive Sciences, Massachusetts Institute of Technology Find this author on Google Scholar Find this author on PubMed Search for this author on this site Ila Fiete 1 Brain and Cognitive Sciences, Massachusetts Institute of Technology Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Ila Fiete Abstract Full Text Info/History Metrics Supplementary material Preview PDF Abstract How precisely does circuit wiring specify function? This fundamental question is particularly relevant for modern neuroscience, as large-scale electron microscopy now enables the reconstruction of neural circuits at single-synapse resolution across many organisms. To interpret circuit function from such datasets, we must understand the extent to which [measured] structure constrains dynamics. We investigate this question in the Drosophila head direction (HD) circuit, which maintains an internal heading estimate through attractor dynamics that integrate self-motion velocity cues. This circuit serves as a sensitive assay for functional specification: continuous attractor networks are theoretically known to require finely tuned wiring, whereas connectomes reveal that biological wiring can be variable and omit key cellular parameters such as synaptic gains, neuronal thresholds, and time constants. We introduce a method that combines self-supervised and unsupervised learning objectives to estimate unknown parameters at the level of cell types, rather than individual neurons and synapses. Given the raw connectivity matrix, our approach recovers a network that robustly exhibits continuous attractor dynamics and accurately integrates a range of velocity inputs, despite minimal parameter tuning on a connectome which notably departs from the symmetric regularity of an idealized ring attractor. We characterize how deviations from the original connectome shape the space of viable solutions. We also perform in-silico ablation experiments to probe the distinct functional roles of specific cell types in the circuit, demonstrating how connectome-derived structure, when augmented with minimal, biologically grounded tuning, can replicate known physiology and elucidate circuit function. 1 Introduction Recent advances in large-scale electron microscopy have enabled the reconstruction of neural circuits at synapse-level resolution, producing dense connectomic datasets across organisms including C. elegans ( Cook et al., 2019 ), Drosophila ( Scheffer et al., 2020 ; Dorkenwald et al., 2024 ), and mice ( MICrONS Consortium, 2025 ). These datasets raise a fundamental question: how precisely is circuit function specified by its wiring, in the absence of key membrane and synaptic parameters such as cellular thresholds, gains, and time constants? While connectomes provide detailed information about synaptic connectivity, they are subject to measurement noise and fail to capture individual differences, temporal variability, and other physiological factors that play a role in shaping circuit behavior. We address this question in the Drosophila head direction (HD) circuit, a canonical example of a continuous ring attractor network in biology ( Kim et al., 2017 ; Green et al., 2017 ; Turner-Evans et al., 2017 ) that maintains an internal estimate of animal heading by integrating angular self-motion velocity inputs. Whereas theoretical studies of ring attractors ( Skaggs et al., 1994 ; Zhang, 1996 ; Redish et al., 1996 ; Xie et al., 2002 ) show that they require finely tuned connectivity to support bump stability and smooth translation, we found that connectomic reconstructions of this biological circuit exhibit asymmetries and irregularities resulting from a combination of measurement noise and biological variation. Moreover, the Drosophila HD circuit involves hundreds of neurons spanning a variety cell types—more than are theorized to be necessary in theoretical ring attractor models—raising open questions about the necessity and roles of specific circuit components. Previous models of the HD circuit ( Chang et al., 2023 ; Stentiford et al., 2024 ) have relied on handdesigned circuit architectures that impose connectivity motifs, in particular circular symmetry, known to support ring attractor dynamics. While such models produce the expected network dynamics by design, they require prior knowledge about circuit structure and the identities of the cell types involved in the core circuit, thus limiting opportunities for data-driven discovery. Here, we introduce a framework that bridges this gap: starting from the original measured connectivity matrix, we optimize only a small set of biologically grounded parameters at the cell-type level, including cell-type-to-cell-type synaptic gains and neuronal biases and time constants. The model is trained using a self-supervised linear consistency loss that enforces that the internal bump velocity is proportional to the input velocity, in addition to regularization terms to ensure that the model learns a non-trivial solution that stays close to the original connectome. This learning objective requires no neural recordings or behavioral labels, and enables inference of functional dynamics from structure alone. Our trained model recovers high-fidelity continuous attractor dynamics and robustly performs angular velocity integration across a wide range of inputs. It also reproduces experimental findings including realistic bump width and bidirectional bump motion dependent on asymmetric input from the left and right P-EN subpopulations ( Seelig and Jayaraman, 2015 ; Turner-Evans et al., 2017 ). We find that tuning parameters at the cell-type level achieves performance comparable to models with more parameters, while global parameter tying fails to recover attractor behavior—indicating that cell-type–specific tuning offers a practical tradeoff between model flexibility and parsimony, performing comparably to fully parameterized models while preserving biological interpretability. We also explore the space of viable solutions under different levels of simulated noise and characterize the diversity of model solutions as a function of their initial starting points on the loss landscape. Finally, we conduct in silico ablation experiments to probe the roles of different cell types. Key Contributions We introduce a simple self-supervised training method to recover circuit dynamics directly from noisy connectome measurements. We show that tuning only cell-type level parameters is sufficient to produce a network capable of producing robust attractor dynamics on par with fully parameterized models, despite asymmetries and small network size in the connectome of the Drosophila HD circuit. We characterize how initial conditions shape the diversity of learned solutions. We perform in silico ablations to probe the functional roles of specific neuron classes. 2 Background 2.1 Continuous Attractor Models Continuous attractor networks encode analog variables, such as orientation or position, via localized bumps of persistent activity that shift smoothly across the neural population. These dynamics require precise tuning of recurrent connectivity, typically balancing local excitation and broad inhibition ( Khona and Fiete, 2022 ). Even minor deviations in synaptic strength or timing can cause bump instability, drift, or collapse. This sensitivity makes such networks a strong testbed for evaluating the extent to which connectomes alone can specify circuit dynamics. 2.2 Drosophila HD Circuit The Drosophila HD circuit resides in the central complex and comprises several cell types (populations of cells that exhibit shared morphological, genetic, and connectivity profiles) thought to implement a ring attractor ( Kim et al., 2017 ; Turner-Evans et al., 2020 ). E-PG neurons in the ellipsoid body (EB) are connected in an anatomical ring-like structure and comprise the core set of cells that track animal heading via a localized bump in population activity ( Seelig and Jayaraman, 2015 ). P-EN neurons convey angular velocity signals: left and right P-EN neurons asymmetrically project to E-PG neurons to shift the bump based on the directional velocity, and are further subdivided into P-ENa and P-ENb subpopulations whose differential roles in the circuit have yet to be ascertained ( Turner-Evans et al., 2017 ). Inhibitory inputs from Delta7 and ring neurons are believed to normalize and gate activity ( Green et al., 2017 ; Hulse et al., 2023 ), while P-EG neurons are thought to contribute to bump stabilization ( Pisokas et al., 2020 ), although this has not yet been confirmed experimentally. These cell types outnumber those in idealized ring attractor models ( Skaggs et al., 1994 ; Zhang, 1996 ; Redish et al., 1996 ; Xie et al., 2002 ), which typically define a core set of two to three cell types to implement local excitation, global inhibition, and bump movement, raising open questions about the role and necessity of each cell type. For our experiments, we use connectomic data from the Drosophila FlyEM hemibrain dataset ( Scheffer et al., 2020 ) after a simple preprocessing step that takes advantage of the natural symmetry between the left and right brain hemispheres to correct synapse counts through a symmetrization process (Section A.1). We focused our analysis on a subpopulation of neurons previously implicated in head direction (HD) processing, comprised of a population of 439 neurons spanning six cell types: E-PG, Delta7, P-EG, P-EN, GLNO, and ring neurons. Notably, the ring neuron population, which is responsible for conveying sensory inputs to the circuit, are divided by lineage into ER and ExR subtypes, which can further be divided into a diverse set of 29 different subtypes of ring neurons. The connectome provides signed synapse counts (where signs are inferred based on measured neurotransmitters ( Davis et al., 2020 )) but lack key parameters such as synaptic gains or time constants, and include asymmetries that likely result from biological and measurement noise. This motivates the need for methods that can infer minimal functional parameters from structure while remaining faithful to the measured connectivity. 3 Related Work Connectome-based models have been used to study neural circuit function across a range of scales and assumptions. Chang et al. (2023) tested whether the required global inhibition in the fly head-direction (HD) circuit is provided by Delta7 or ring neurons, using spiking models hand-constructed from connectome-derived motifs and evaluating bump-based metrics across manual parameter sweeps. Stentiford et al. (2024) built a detailed spiking model of the central complex using prespecified physiological parameters, connectivity, and receptive fields, and showed that the models could learn visual cue-to-heading associations via Hebbian plasticity. Pospisil et al. (2024) inferred a whole-brain “effectome” from optogenetic perturbation data, using the connectome as a structural prior along with full-brain activity recordings to infer the effective weights of a linear model. Our work is most similar to Lappalainen et al. (2024) , who train a deep network constrained by the fly visual motion connectome. However, they assume a perfectly tiled columnar architecture, and optimize cell-type parameters via supervised learning on an optic flow task. Our approach differs in several key ways. We operate directly on the raw connectome without architectural simplification, activity recordings, or external supervision. We introduce a self-supervised learning objective based on internal representational consistency, which enforces that changes in internal velocity reflect changes in input velocity, and optimize only a small set of biologically interpretable, cell-type–level parameters. Our method recovers continuous attractor dynamics despite known physiological asymmetries and irregularities of the connectome. Because the objective encodes generic dynamical constraints rather than task-specific labels, our framework can be extended to other circuits hypothesized to implement a coarse computational function, such as integration, memory, or normalization, offering a scalable approach to functional inference from connectomic structure without activity recordings. Download figure Open in new tab Figure 1. The HD circuit and model setup a . The connectivity pattern of the PEN and EPG neurons. The left/right PEN neurons asymmetrically project to the EPG neurons, causing the ring to rotate clockwise or counterclockwise depending on net input drive. b . Ring neurons provide uniform inhibition to EPG neurons, while Delta7 neurons target EPG neurons far away on the ring. c . Schematic of tuning procedure. Fixed synapse counts and signs inferred from neurotransmitters are combined with trained cell-type-specific gain parameters to produce the final network weights. Nodes are colored by cell type. 4 Methods 4.1 Model description Rate-based neuron dynamics model We modeled the dynamics of this neural circuit using a rate-based dynamics model. The firing rate x j of each neuron j in the circuit evolves according to the following differential equation: where x j ( t ) is the time-varying firing rate of neuron j, τ j represents a global intrinsic time constant of each neuron and 𝓁 is a global constant determining the scale of activity and, together with τ , the rate of activity decay in the absence of input. σ (·) denotes the sigmoid function, W jk represents the synaptic weight from neuron k to neuron j. b j is the threshold parameter for neuron j , and u j ( t ) represents any (potentially time-varying) external inputs injected into neuron j . Connectomics-based model parameterization To model conectomically defined circuits, we define the weights in Eq. 1 as W ij = w 0 (1 + Z ij ) sgn ij C ij where the connectivity matrix ( C ) and the signs ( sgn ∈ { ± 1}) of the interaction are fully determined by the empirical synapse counts measured in the connectome and from recorded neurotransmitters, respectively ( Scheffer et al., 2020 ). The value w 0 is a common gain factor that relates synapse count to connection strength; Z ij corresponds to an additional, unknown differential synapse-specific gain; changes in this parameter permit deviations from connectomically-defined structure. The connectome does not specify neural time constants, neural thresholds, and the neural non-linearity (transfer function). Thus, the parameters { Z, b, τ } are the subjects of optimization. To examine the extent to which the connectome alone provides sufficient information for detailed dynamics, we constrained the optimization problem with biological inductive biases by assuming that the gain and bias parameters Z, b are shared across all neurons of a given cell type. Thus, instead of optimizing parameters Z jk , b j for each for each synapse and neuron, we optimized a much smaller set of cell-type-specific parameters Z AB , b A , where A, B ,.. ∈ 𝒞. index cell type. In other words, Z AB is the shared gain factor for the all synapses from neurons of Type B to those of Type A and b A is the threshold of all neurons of type A . The dynamics are therefore given by: This reduces the number of optimized parameters from 439 2 +439+1 = 193, 161 to just 7 2 +7+1 = 57 parameters, relative to a full per-synapse parameterization. 4.2 Task-based optimization Velocity integration task We optimize the free network parameters over a set of simulation trials using a set of biologically-motivated self-supervised and unsupervised objectives under the assumption that the circuit performs integration of its input signals. State initialization For each simulation trial, we initialized the firing rates of a single E-PG neuron to 1, representing a bump on the ring, and initialized the activities of all other neurons to 0. Dynamics were simulated according to Eq. 2 for a fixed duration of T sim = 2 s using the Dormand-Prince method (Dopri5) ( Dormand and Prince, 1980 ) provided in the Diffrax ( Kidger, 2021 ) library in Jax. During each trial, a constant velocity input u ∈ [− U, U ] representing clockwise (negative), counter-clockwise (positive), or zero velocity) was applied to the network. Following experimental evidence that GLNO neurons provide angular velocity signals to the HD system ( Hulse et al., 2023 ), the velocity input was selectively injected into either the left or right GLNO neurons. Training Objectives We define a set of biologically motivated objectives based on the assumption that the network is an integrator, i.e. that it should update its internal state as a linear function of the velocity input, and maintain its existing state in the absence of inputs. Notably, we do not specify particular activity profiles in the network, nor do we ask the state to change by a prespecified amount in response to specific velocity inputs. In each trial, we evaluate the network state at discrete time points t = (1, …, T )Δ t separated by interval Δ t . We use population coding ( Bialek et al., 1989 ) to decode the network state (location along the ring, θ ( t )) at each t from the EPG neuron population. The instantaneous change in the represented angle over the interval Δ t was computed as . • Linear Consistency Loss : Encourages the model to update its internal state as a linear function of the velocity input • Stability Loss : Encourages stability, i.e., no changes in state given zero input ( u = 0). • Minimum Speed Loss : Prevents the model from learning a trivial zero solution. • Entropy Loss : Encourages diverse activation across the population by penalizing overly concentrated or uniform activity patterns. Where is the softmax of the neural activities at a given time point. • L1 and L2 Regularization : Penalizes deviations from uniform scaling of the connectome. • Total loss: Where β 1 , β 2 , β 3 , β 4 , β 5 are hyperparameters. Optimization The initial values of Z AB are all set to 0. Initial values of b A are set to a constant b for all cell types. The quantities w 0 , b , 𝓁 were chosen by hyperparameter optimization. All trainable parameters were optimized to minimize the total loss function ℒ total using Adam ( Kingma, 2014 ). 5 Results 5.1 Robust integrator dynamics from minimal training of a connectome-constrained model We optimize model parameters according to the procedure outlined above ( Figure 2a ). We find that by only tuning cell-type specific parameters, we recover a dynamical system that is able to integrate bidirectional velocity inputs as well as maintain a stable heading representation in the presence of noise, displaying near-zero drift under constantly injected multiplicative noise at or below 1% of neuron activity ( Figure 2b, c, d ). Despite not specifying for output shape in our training, we find that the model produces an activity bump with a width ( Figure 2e ) close to previous experimental reports of π/ 2 ( Kim et al., 2017 ). The model also accurately integrates velocity input, maintaining internal state updates that scale proportionally with input magnitude, and exhibits a minimal dead zone, enabling integration of even small velocity changes ( Figure 2f, g ). Download figure Open in new tab Figure 2. Finetuned network weights produce robust integrator dynamics a . Initial and trained network weights. b . The activity bump of the EPG neurons across no input and directional input conditions. c . The bump exhibits minimal drift for noise levels below 10% of neuron activity d . Slices of population activity for EPG and left/right PEN neurons, colored by time. Asymmetric activation of PEN populations drives bump movement in the corresponding direction. e . The width of the activity bump, when calculated over left, right, and all neurons, closely matches experimental measurements of π/ 2. f . The internal heading velocity increases proportionally to the magnitude of input velocity, indicating accurate integration. g . The input-output velocity relationship remains linear across a biologically plausible input range. 5.2 Finetuned network exhibits characteristics of a ring attractor network To evaluate whether the trained model exhibits dynamics characteristic of a continuous ring attractor, we analyzed the geometry of its internal state space. Principal component analysis of EPG activity during continuous, time-varying velocity inputs in both directions reveals that the network’s population dynamics are constrained to a one-dimensional manifold ( Figure 3a, b ). This observation is confirmed by local intrinsic dimensionality analysis using local PCA ( Kambhatla and Leen, 1997 ), which estimates the dimensionality of the dynamics to be approximately 1 ( Figure 3c ). The correlation dimension Grassberger and Procaccia (1983) , which quantifies the global scaling properties of the attractor, is also close to 1 ( Figure 3d ), consistent with a smooth, low-dimensional integrator. Download figure Open in new tab Figure 3. State space geometry of the HD circuit a . 2D projections of EPG activity via PCA show that the dynamics lie on a one-dimensional ring manifold. b . Ring manifold structure is preserved in a 3D projection in PCA space. c . Local PCA estimates the intrinsic dimensionality of the dynamics to be 1. d . The local correlation dimension of the network is also approximately 1. e . Persistent homology analysis yields a persistence diagram consistent with a 1D topological ring. To further assess the topological structure of the dynamics, we apply persistent homology to the E-PG state trajectories using the Ripser package ( Bauer, 2021 ; Tralie et al., 2018 ). This analysis yields a persistence diagram consistent with a 1D topological ring ( Figure 3e ), matching theoretical expectations for a circular continuous attractor. Together, these analyses demonstrate that the network does not merely perform velocity integration in the output space, but that its internal dynamics form a structured, low-dimensional ring manifold, in line with theoretical models of the Drosophila HD circuit. 5.3 The connectome as a structural prior for functional dynamics Given that finetuning the HD network by training cell-type parameters is sufficient to obtain a network that produces ring attractor dynamics despite noise in the connectome, we hypothesized that the connectome provides a structural prior that supports robust integrator dynamics. To test this, we trained models initialized with increasingly perturbed versions of the connectome. We found that small amounts of Gaussian noise, when preserving connection signs, still yielded integrating solutions. However, introducing sign flips degraded performance, and introducing more drastic perturbations, including shuffling weights within cell-type blocks as well as across the entire connectome, consistently failed to produce functional networks even after extensive training ( Figure 4a ). Download figure Open in new tab Figure 4. Visualizing the space of solutions a . From top to bottom: initialization weights and activity bumps of networks initialized with connectomes perturbed with gaussian noise ( σ 2 = 10), gaussian noise ( σ 2 = 10) with random sign flips ( p = 0.05), permutation of weights within cell-type blocks, and permutation of all weights. b . Training runs with multiple initial weight matrix conditions. Left: Initial and learned cell-type weights ( Z AB ) centered at 1.0. Right: Heatmap depicting the neural activity over time when left and right inputs are given. c . Visualization of the surface fit by kernel PCA. The training trajectory points are used to fit the surface and are depicted by the blue dots. d . Visualization of training trajectories along the loss landscape. Trajectories are labeled similarly to b for comparison. Cell-type parameterization as the correct level of abstraction Although the connectome provides essential structural information, learning cell-type-specific parameters is critical for producing a functional network. We trained networks using simplified parameterizations by either tying parameters globally across all cell types, or by learning only broad excitatory and inhibitory cell type parameters (see Section A.2, Figure A2). Neither approach yielded a network capable of velocity integration. Overall, our results showed that a network capable of angular velocity integration does not emerge generically from any connectome, nor from arbitrary choices of biophysical parameters. Diversity of solutions from initial positions on the loss landscape We next explored the degeneracy of the loss landscape by adding different amounts of noise to the network parameters at initialization, and tracking their trajectories across training ( Figure 4b ). We visualize these trajectories on the fitted loss landscape (Section A.3) of solutions using kernel PCA ( Schölkopf et al., 1998 ). We find that the final solutions of the network depend on the proximity of the initial parameters; networks close by tend to converge to solutions within the same basin, while networks initialized far apart tend to arrive at different solutions. Despite this divergence, networks that arrived at different solutions still produced functional integrator dynamics and reside in the same overall loss basin, indicating some degeneracy in the solution space but a common structural motif ( Figure 4c, d ). 5.4 Cell-type ablations Given a functional model of the Drosophila head direction circuit, we next asked: what are the unique roles of each of the cell types within the circuit? To address this question, we performed ablation experiments by zeroing the output weights of specific cell-type populations in our model. Because the model weights were optimized on the full set of cell types, we retrained the ablated networks to give each model a fair chance at recovering performance by altering the weights of the remaining cell types. Thus, we test which sets of neurons are strictly necessary in the sense that their function cannot be substituted by simply tuning the weights of other cell types within the network. As with the optimization of the original model, we sweep over a range of hyperparameters and select a set of the best performing models based on linear integration consistency and maximum bump velocity for evaluation (Section A.4). Across all experiments, ablated models exhibit less stability of the bump in the presence of large amounts of noise compared to the original network even after training ( Figure 5 ). Download figure Open in new tab Figure 5. Cell-type ablation experiments a . Rate of diffusion of the bump with zero inputs in the presence of multiplicative noise at 10% of neuron activity. Non-integrating solutions (Delta7 and P-EN ablations) not shown. b . Rate of diffusion in a noiseless condition. c . Mean bump velocity as a function of input velocity, colored by ablation. d . Slope of mean velocity response, calculated over inputs in the range of [0, 2]. e . Mean bump width of different ablation conditions. Red line indicates experimentally observed width. f . Sample EPG activity profiles by ablation, given the same input profile as in Figure 2 . Both Delta7 and ring neurons have been hypothesized to provide the crucial global inhibition to implement a ring attractor in the Drosophila ( Chang et al., 2023 ). Although we found that ablating the ring neuron population reduced the range of represented velocities along the ring and displayed more drift in the presence of noise, ablating the Delta7 neurons had a far stronger effect: the network was no longer able to form a bump, let alone integrate velocity ( Figure 5f ). Notably, we found that the Delta7-ablated network was able to recover bump formation and integration when we relaxed the block matrix assumption and individually tune the weights of all the ring neuron subtypes (Section A.5), indicating that the Drosophila HD circuit relies on multiple types of inhibition, in contrast to theoretical ring attractor models. The P-EG neurons have previously been hypothesized to play a role in stabilizing the bump in the Drosophila HD circuit ( Pisokas et al., 2020 ), although experimental evidence in support of this is lacking. We find support for this hypothesis, as the P-EG-ablated model produces a network that exhibits more drift under even low amounts of noise even after training ( Figure 5a, b ). Finally, although the role of the P-EN neurons in providing asymmetric drive to move the bump in the E-PG neuron population has been well characterized, the roles of the P-ENa and P-ENb subpopulations remain poorly understood. We confirm the role of the P-EN neurons by showing that a PEN-ablated network is unable to maintain or move a bump even after training ( Figure 5f ). We then separately ablated the P-ENa and P-ENb neuron subpopulations and found that while ablating either subpopulation increased drift under noise, the P-ENb ablation had a stronger effect, leading to greater drift and a reduced range of bump velocities. 6 Conclusion and Discussion We present a self-supervised method that leverages biological priors and parameterization at the level of cell types to recover circuit dynamics from noisy connectome measurements using self-supervised learning. Without access to biophysical parameters or activity data, our model is able to recover robust continuous attractor dynamics capable of stable velocity integration in spite of observed asymmetries and small network size in the Drosophila head direction circuit. We characterize the solution space and show that multiple viable solutions emerge across different initializations, allowing estimation of parameter uncertainty through noise injection. We performed in silico experiments via targeted cell-type-specific ablations to elucidate the mechanistic roles of different cell types within the circuit. Despite being able to recover circuit dynamics, our model’s accuracy in estimating ground-truth weights is ultimately limited by the fidelity of the connectome, which we found needed additional albeit minor pre-processing, and requires prior knowledge of cell type labels, neurotransmitter identity, and approximate circuit function. Future work may explore unsupervised objectives that relax these assumptions. Additional directions include extending the model to study multimodal sensory integration with the internal state, and validating model predictions through closed-loop perturbation experiments. Footnotes loading{at}mit.edu fiete{at}mit.edu References ↵ Ulrich Bauer . Ripser: efficient computation of Vietoris-Rips persistence barcodes . J. Appl. Comput. Topol ., 5 ( 3 ): 391 – 423 , 2021 . ISSN 2367-1726 . doi: 10.1007/s41468-021-00071-5 . URL https://doi.org/10.1007/s41468-021-00071-5 . OpenUrl CrossRef ↵ William Bialek , Fred Rieke , Robert van Steveninck , and David Warland . Reading a neural code . Advances in neural information processing systems , 2 , 1989 . ↵ Ning Chang , Hsuan-Pei Huang , and Chung-Chuan Lo . Global inhibition in head-direction neural circuits: a systematic comparison between connectome-based spiking neural circuit models . Journal of Comparative Physiology A , 209 ( 4 ): 721 – 735 , 2023 . OpenUrl CrossRef PubMed ↵ Steven J Cook , Travis A Jarrell , Christopher A Brittin , Yi Wang , Adam E Bloniarz , Maksim A Yakovlev , Ken CQ Nguyen , Leo T-H Tang , Emily A Bayer , Janet S Duerr , et al. Whole-animal connectomes of both caenorhabditis elegans sexes . Nature , 571 ( 7763 ): 63 – 71 , 2019 . OpenUrl CrossRef PubMed ↵ Fred P Davis , Aljoscha Nern , Serge Picard , Michael B Reiser , Gerald M Rubin , Sean R Eddy , and Gilbert L Henry . A genetic, genomic, and computational resource for exploring neural circuit function . Elife , 9 : e50901 , 2020 . OpenUrl CrossRef PubMed ↵ Sven Dorkenwald , Arie Matsliah , Amy R Sterling , Philipp Schlegel , Szi-Chieh Yu , Claire E McKellar , Albert Lin , Marta Costa , Katharina Eichler , Yijie Yin , et al. Neuronal wiring diagram of an adult brain . Nature , 634 ( 8032 ): 124 – 138 , 2024 . OpenUrl CrossRef PubMed ↵ John R Dormand and Peter J Prince . A family of embedded runge-kutta formulae . Journal of computational and applied mathematics , 6 ( 1 ): 19 – 26 , 1980 . OpenUrl CrossRef Web of Science ↵ Peter Grassberger and Itamar Procaccia . Measuring the strangeness of strange attractors . Physica D: nonlinear phenomena , 9 ( 1-2 ): 189 – 208 , 1983 . OpenUrl CrossRef ↵ Jonathan Green , Atsuko Adachi , Kunal K Shah , Jonathan D Hirokawa , Pablo S Magani , and Gaby Maimon . A neural circuit architecture for angular integration in drosophila . Nature , 546 ( 7656 ): 101 – 106 , 2017 . OpenUrl CrossRef PubMed ↵ Brad K Hulse , Angel Stanoev , Daniel B Turner-Evans , Johannes D Seelig , and Vivek Jayaraman . A rotational velocity estimate constructed through visuomotor competition updates the fly’s neural compass . bioRxiv , page 2023.09.25.559373, September 2023 . ↵ Nandakishore Kambhatla and Todd K Leen . Dimension reduction by local principal component analysis . Neural computation , 9 ( 7 ): 1493 – 1516 , 1997 . OpenUrl CrossRef Web of Science ↵ Mikail Khona and Ila R Fiete . Attractor and integrator networks in the brain . Nature Reviews Neuroscience , 23 ( 12 ): 744 – 766 , 2022 . OpenUrl CrossRef PubMed ↵ Patrick Kidger . On Neural Differential Equations. PhD thesis , University of Oxford , 2021 . ↵ Sung Soo Kim , Hervé Rouault Shaul Druckmann , and Vivek Jayaraman . Ring attractor dynamics in the drosophila central brain . Science , 356 ( 6340 ): 849 – 853 , 2017 . OpenUrl Abstract / FREE Full Text ↵ Diederik P Kingma . Adam: A method for stochastic optimization . arXiv preprint arXiv: 1412.6980 , 2014 . ↵ Janne K Lappalainen , Fabian D Tschopp , Sridhama Prakhya , Mason McGill , Aljoscha Nern , Kazunori Shinomiya , Shin-ya Takemura , Eyal Gruntman , Jakob H Macke , and Srinivas C Turaga . Connectome-constrained networks predict neural activity across the fly visual system . Nature , 634 ( 8036 ): 1132 – 1140 , 2024 . OpenUrl CrossRef PubMed ↵ MICrONS Consortium . Functional connectomics spanning multiple areas of mouse visual cortex . Nature , 640 : 435 – 447 , 2025 . doi: 10.1038/s41586-025-08790-w . URL https://www.nature.com/articles/s41586-025-08790-w . OpenUrl CrossRef PubMed ↵ Ioannis Pisokas , Stanley Heinze , and Barbara Webb . The head direction circuit of two insect species . Elife , 9 : e53985 , 2020 . OpenUrl CrossRef PubMed ↵ Dean A Pospisil , Max J Aragon , Sven Dorkenwald , Arie Matsliah , Amy R Sterling , Philipp Schlegel , Szi-chieh Yu , Claire E McKellar , Marta Costa , Katharina Eichler , et al. The fly connectome reveals a path to the effectome . Nature , 634 ( 8032 ): 201 – 209 , 2024 . OpenUrl CrossRef PubMed ↵ A David Redish , Adam N Elga , and David S Touretzky . A coupled attractor model of the rodent head direction system . Network: computation in neural systems , 7 ( 4 ): 671 , 1996 . OpenUrl CrossRef ↵ Louis K Scheffer , C Shan Xu , Michal Januszewski , Zhiyuan Lu , Shin-ya Takemura , Kenneth J Hayworth , Gary B Huang , Kazunori Shinomiya , Jeremy Maitlin-Shepard , Stuart Berg , et al. A connectome and analysis of the adult drosophila central brain . elife , 9 : e57443 , 2020 . OpenUrl CrossRef PubMed ↵ Bernhard Schölkopf , Alexander Smola , and Klaus-Robert Müller . Nonlinear component analysis as a kernel eigenvalue problem . Neural computation , 10 ( 5 ): 1299 – 1319 , 1998 . OpenUrl CrossRef PubMed Web of Science ↵ Johannes D Seelig and Vivek Jayaraman . Neural dynamics for landmark orientation and angular path integration . Nature , 521 ( 7551 ): 186 – 191 , 2015 . OpenUrl CrossRef PubMed ↵ William Skaggs , James Knierim , Hemant Kudrimoti , and Bruce McNaughton . A model of the neural basis of the rat’s sense of direction . Advances in neural information processing systems , 7 , 1994 . ↵ Rachael Stentiford , James C Knight , Thomas Nowotny , Andrew Philippides , and Paul Graham . Estimating orientation in natural scenes: A spiking neural network model of the insect central complex . PLOS Computational Biology , 20 ( 8 ): e1011913 , 2024 . OpenUrl CrossRef ↵ Christopher Tralie , Nathaniel Saul , and Rann Bar-On . Ripser.py: A lean persistent homology library for python . The Journal of Open Source Software , 3 ( 29 ): 925 , Sep 2018 . doi: 10.21105/joss.00925 . URL https://doi.org/10.21105/joss.00925 . OpenUrl CrossRef ↵ Daniel Turner-Evans , Stephanie Wegener , Hervé Rouault Romain Franconville , Tanya Wolff , Jo-hannes D Seelig , Shaul Druckmann , and Vivek Jayaraman . Angular velocity integration in a fly heading circuit . Elife , 6 : e23496 , 2017 . OpenUrl CrossRef PubMed ↵ Daniel B Turner-Evans , Kristopher T Jensen , Saba Ali , Tyler Paterson , Arlo Sheridan , Robert P Ray , Tanya Wolff , J Scott Lauritzen , Gerald M Rubin , Davi D Bock , et al. The neuroanatomical ultrastructure and function of a biological ring attractor . Neuron , 108 ( 1 ): 145 – 163 , 2020 . OpenUrl CrossRef PubMed ↵ Xiaohui Xie , Richard HR Hahnloser , and H Sebastian Seung . Double-ring network model of the head-direction system . Physical Review E , 66 ( 4 ): 041902 , 2002 . OpenUrl ↵ Kechen Zhang . Representation of spatial orientation by the intrinsic dynamics of the head-direction cell ensemble: a theory . Journal of Neuroscience , 16 ( 6 ): 2112 – 2126 , 1996 . OpenUrl Abstract / FREE Full Text View the discussion thread. Back to top Previous Next Posted May 29, 2025. Download PDF Supplementary Material Email Thank you for your interest in spreading the word about bioRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following From Synapses to Dynamics: Obtaining Function from Structure in a Connectome Constrained Model of the Head Direction Circuit Message Subject (Your Name) has forwarded a page to you from bioRxiv Message Body (Your Name) thought you would like to see this page from the bioRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share From Synapses to Dynamics: Obtaining Function from Structure in a Connectome Constrained Model of the Head Direction Circuit Sunny Duan , Ling Liang Dong , Ila Fiete bioRxiv 2025.05.26.655406; doi: https://doi.org/10.1101/2025.05.26.655406 Share This Article: Copy Citation Tools From Synapses to Dynamics: Obtaining Function from Structure in a Connectome Constrained Model of the Head Direction Circuit Sunny Duan , Ling Liang Dong , Ila Fiete bioRxiv 2025.05.26.655406; doi: https://doi.org/10.1101/2025.05.26.655406 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Neuroscience Subject Areas All Articles Animal Behavior and Cognition (7629) Biochemistry (17660) Bioengineering (13881) Bioinformatics (41909) Biophysics (21436) Cancer Biology (18576) Cell Biology (25479) Clinical Trials (138) Developmental Biology (13367) Ecology (19887) Epidemiology (2067) Evolutionary Biology (24302) Genetics (15598) Genomics (22482) Immunology (17726) Microbiology (40359) Molecular Biology (17162) Neuroscience (88532) Paleontology (666) Pathology (2830) Pharmacology and Toxicology (4821) Physiology (7636) Plant Biology (15129) Scientific Communication and Education (2044) Synthetic Biology (4290) Systems Biology (9817) Zoology (2269)
Text is read by the "Ask this paper" AI Q&A widget below.
Extraction quality varies by source — PMC NXML preserves structure
cleanly, OA-HTML may include some navigation residue, and OA-PDF can
have broken hyphenation. The publisher copy
(via DOI)
is the canonical version.