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

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 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.

Introduction

Modern neuroscience is currently experiencing a "connectomics boom," with electron microscopy providing high-resolution wiring diagrams of entire organisms. However, a static map of synapses does not inherently reveal neural function. These datasets provide the structural blueprint but omit critical "software" parameters such as synaptic gains, neuronal thresholds, and time constants. This gap is particularly evident in the Head Direction (HD) circuit, a biological compass that relies on precise "ring attractor" dynamics to integrate self-motion cues. While theoretical models of such attractors require perfect symmetry, real biological connectomes are often noisy and asymmetric. This research explores whether a functional model can be inferred from these imperfect structural maps using minimal, biologically grounded tuning.

Methodology: Cell-Type Level Tuning

To bridge the gap between structure and function, the researchers developed a cell-type-constrained optimization framework. Rather than attempting to tune all ~193,000 individual synaptic weights—which would likely lead to overfitting—the model constrains all synapses of the same type (e.g., all P-EN to E-PG connections) to share a single gain parameter. This reduces the search space to just 57 parameters.

Circuit architecture and parameter tuning framework. (a-b) Connectivity of E-PG, P-EN, and Delta7 neurons. (c) Synapse strength is derived by combining biological synapse counts and neurotransmitter signs with tuned cell-type gains.

The model utilizes rate-based dynamics for 439 neurons from the Drosophila central complex. Training is conducted via a Linear Consistency Loss, a self-supervised objective: if the input velocity is $v$, the internal activity bump must move at a proportional speed; if velocity is zero, the bump must remain stationary. This approach allows the model to learn functional dynamics without requiring ground-truth neural recordings.

Results and Functional Recovery

The tuned model successfully recovered robust continuous attractor dynamics. Despite the inherent noise in the raw connectome, the system accurately integrated angular velocity across a wide range of inputs. Furthermore, the model exhibited emergent physiological properties consistent with live biological observations, such as an activity bump width of approximately $\pi/2$.

Functional performance of the tuned model. (a) Weight matrices before and after tuning. (b) Successful integration of velocity inputs over time. (d-e) Stable activity bumps with biologically realistic widths and low diffusion.

Topological analysis using PCA and persistent homology confirmed that the population activity was constrained to a 1D ring manifold, verifying the recovery of a ring attractor. In-silico ablation experiments further clarified the roles of specific cell types:

  • Delta7 neurons were found to be essential for the formation of the activity bump itself.
  • P-EG neurons were shown to stabilize the heading estimate, as their removal led to increased drift.
  • Ring neurons helped tune the range of velocities the circuit could accurately handle.

Discussion

This work demonstrates that the physical connectome of the fruit fly serves as a powerful structural prior that is already "pre-configured" for its functional role. By abstracting tuning to the cell-type level, researchers can overcome measurement noise and missing parameters to build working simulations from static maps. Future work will look to reduce the need for manual preprocessing (such as hemispheric symmetrization) and explore how these structural priors interact with real-time biological plasticity.

Summary updated

BibTeX
@inproceedings{duan2025from,
  author = {Sunny Duan and Ling Liang Dong and Ila Fiete},
  title = {{From Synapses to Dynamics: Obtaining Function from Structure in a Connectome Constrained Model of the Head Direction Circuit}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=zn4F6os6cq},
}
Figure