Online Fitting Connectome-constrained Drosophila Whole-brain Model Reproduces Critical Resting-state Dynamics

Qianzhu Li, Minghao Wang, Xinzhu Liao, KeZhang, Chaoming WangOpenReview 2026 · Submission to ICLR 2026 · Rejected

TL;DR

Researchers have developed a new online learning framework that allows a 130,000-neuron model of the Drosophila (fruit fly) brain to be fitted to real neural activity data on a single GPU. By moving away from memory-intensive traditional training methods, the model not only reproduces complex brain dynamics but also spontaneously "discovers" biological features like heavy-tailed synaptic weights and self-organized criticality.

What Problem Does This Paper Address?

In neuroscience, we are currently "data rich but model poor." We have incredibly detailed structural maps of the brain (connectomes) and massive datasets of neural activity, but bridging the two is a massive computational headache.

The standard tool for training recurrent neural networks is Backpropagation Through Time (BPTT). However, BPTT is an "offline" method—it has to store the entire history of a brain's activity to calculate how to update its parameters. For a whole-brain model with hundreds of thousands of neurons simulated over biological timescales, the memory requirements explode, making it impossible to run on standard hardware. Consequently, researchers have been forced to choose between small, detailed models that don't represent the whole brain, or large, abstract models that ignore biological anatomy.

Methods

The authors introduce an online fitting framework using an algorithm called D-RTRL (Decoupled Real-Time Recurrent Learning). Instead of looking backward through time, this method updates parameters in a strictly forward-time manner using "eligibility traces." This reduces memory consumption to a single time step, meaning the memory cost scales with the number of parameters, not the length of the simulation.

The Model Architecture: * Anatomy: The network topology is fixed using the FlyWire connectome, comprising 138,639 neurons and over 15 million synapses. * Dynamics: Each neuron is modeled using a firing-rate threshold-linear equation. * Optimization: The framework treats synaptic weights, cellular time constants, and background inputs as free variables to be optimized so the model's output matches experimental recordings. * Readout: To compare the 130k individual neurons to lower-resolution experimental data, they used a "neuropil-level" readout weighted by synaptic density.

Datasets

The study integrates two primary types of data:

  1. Structural (FlyWire): A synaptic-resolution connectome of an adult Drosophila brain.
  2. Functional: In vivo whole-brain calcium imaging from 18 different flies, registered to a standard atlas of 73 brain regions (neuropils).

Key Insights and Ideas

  • Structure Follows Function: One of the most striking "aha moments" was that the model didn't just match activity; it spontaneously evolved a biological structure. After training, the synaptic weight distribution developed a "heavy tail" (a few very strong connections and many weak ones) that closely matched the actual synapse counts found in the biological connectome.
  • The Edge of Stability: The optimization process drove the network toward criticality. In physics and neuroscience, "critical dynamics" occur at the transition between order and chaos. The model's "spectral radius" (a measure of stability) moved toward 1.0, a state thought to be optimal for information processing in real brains.
  • Anatomical Priors Matter: The researchers compared their connectome-constrained model against a generic linear readout. The biologically constrained model performed significantly better, proving that the "wiring diagram" of the brain provides a crucial inductive bias that helps models generalize to unseen data.

Key Results

  • Computational Efficiency: While BPTT crashed on a 32GB GPU when trying to process long sequences, the online framework successfully trained the whole-brain model with memory usage that remained constant regardless of sequence length.
  • High Fidelity: The model achieved a near-perfect reconstruction of functional connectivity during training ($R = 0.998$) and maintained strong alignment on unseen "test" data ($R = 0.556$).
  • Avalanche Dynamics: The model reproduced "neuronal avalanches"—bursts of activity that follow a power-law distribution. The model’s fitted exponent ($\alpha = 1.90$) was remarkably close to the experimental value ($\alpha = 1.78$).
  • Zero-Shot Sensorimotor Mapping: Even though it was only trained on "resting" data, the model could successfully simulate a sensorimotor response (sugar sensory stimulation leading to motor neuron activation) with biologically plausible lateral asymmetry.

Limitations and Future Work

The authors acknowledge a few key limitations:

  • Resolution Mismatch: The model operates at a single-neuron level, but the target functional data is averaged at the neuropil level. Future work could benefit from higher-resolution functional datasets.
  • Model Complexity: The current model uses firing-rate equations rather than more complex spiking biophysical models (like Hodgkin-Huxley).
  • Beyond Resting State: While the model captures resting-state dynamics beautifully, the next frontier is applying this online framework to flies performing complex tasks or navigating environments to see if the same principles of self-organization hold true during active behavior.

Summary updated

Abstract

The rapid growth of large-scale synaptic connectome maps and neural activity datasets has created an urgent need for connectome-constrained whole-brain models that can fit and interpret experimentally recorded neural data. A promising approach to bridge this gap is to train biologically inspired models using backpropagation through time (BPTT), which enables data-driven optimization of unknown model parameters. However, BPTT is inherently an offline method, with memory requirements that grow linearly with simulation time, making it impractical for training large-scale whole-brain networks over biologically relevant timescales. To address this challenge, we introduce an online learning framework for fitting whole-brain models using online gradient-based optimization. By updating parameters in a strictly forward-time manner, our method reduces memory consumption to a single time step, scaling only with the number of parameters rather than the entire temporal sequence. Using this framework, we construct a Drosophila whole-brain network comprising over 130,000 neurons and millions of synapses, where the network topology is fixed from the FlyWire connectome, and unknown parameters such as synaptic weights and cellular time constants are optimized to match in vivo resting-state neural activity. Our results show that this approach enables the training of large-scale Drosophila models over experimental timescales on a single GPU, a feat that is computationally prohibitive with BPTT. Remarkably, the optimization not only captures target dynamics but also spontaneously produces synaptic weight distributions that closely match empirical connectome statistics and drives the network toward a hallmark feature of resting state -- critical dynamics. Together, this work establishes an online, scalable, and data-driven framework for integrating anatomical and functional datasets, paving the way toward mechanistic whole-brain models at unprecedented scales.
BibTeX
@misc{li2026online,
  author = {Qianzhu Li and Minghao Wang and Xinzhu Liao and KeZhang and Chaoming Wang},
  title = {{Online Fitting Connectome-constrained Drosophila Whole-brain Model Reproduces Critical Resting-state Dynamics}},
  year = {2026},
  url = {https://openreview.net/forum?id=wCBNxp1qWe},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2026},
}
Figure