# Poster 29102

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/29102

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi, this is C. In this video, me and Wu Wei will be presenting our model NetFormer. The number of neurons we can record simultaneously from the brain has grown exponentially over the past years. In the light of this, being able to infer the underlying connectivity of a neuronal network from observed activity of the neurons has become increasingly important. However, this is also a very challenging task since neuron dynamics is largely nonlinear and neuron connectivity are non -stationary and often change.
Quinting to cross time, as driven by neuromodulators or synaptic plasticity. Traditional methods for this task often ignore the non-stationary aspect of connectivity and can only provide a static view. The recent transformer-based models can capture the time-varying effect with their attention mechanism, but how to extract neuronal connectivity from their attention maps is often unclear due to the presence of multiple layers and nonlinearities in these models.
Here we propose the NetFormer, which is an interpretable transformer-inspired network model. The core of NetFormer is a linearized attention mechanism. In each sample, the model takes in activities of n neuron across H time steps up to time step k, and predicts their activity at time step k plus one. To encode neuron identities, a learnable embedding matrix is concatenated to the input activities. Queries and keys are obtained through linear transformations.
and their product gives the linearized attention matrix A.
The intracellular phase is computed from the history of neurons i and j, and therefore reflects the relationship between the two neurons. Note that a is input-dependent and therefore can vary across time steps. Also note that we have removed the softmax activation function in the attention computation, so the learned attention map can have both positive and negative values, representing excitatory and inhibitory connections between neurons. To predict the next step activity, we take the values to be the
use the current step actively ask K and employ the standard residual connection
Now we demonstrate some example applications of NetFormer. First we show that NetFormer can capture the effect of spike timing dependent plasticity which is a fundamental synaptic modification scheme in neuroscience. We simulated one post-synaptic neuron which receives stochastic inputs from 100 pre-synaptic neurons. Driven by this plasticity rule, the strengths of the synapses vary across time. We train the NetFormer to predict the next type of activity of the post-synaptic neuron.
Of the post -synaptic neuron, Netformer is able to make better activity prediction compared to the classical linear regression model which only accounts for static connectivity. Moreover, for the majority of the synapses, the long -term trend in synaptic strengths can be recovered from the corresponding attention scores of Netformer.
In the second example, we show that NetFormer can identify task-driven connectivity patterns in neural populations. We first extract the hidden units activity from a task-trained RN model and then train the NetFormer to predict their next time-step activity. NetFormer is able to make accurate predictions and the time average attention of NetFormer can reflect the ground truth connectivity between RN units better than the linear regression model.
model
Lastly, we apply NetFormer to neural activity recorded in vivo from mouse visual cortex, as released in a 2022 study. Besides neural activity, this multimodal data set also provides single-cell spatial transcriptomics data which enables the identification of excitatory and three inhibitory neuron subclasses. We train the NetFormer to make next time the activity prediction. After training, we use its time -average attention matrix as the
To infer connectivity strength between neurons, we further took the average across neurons within the same cell type to estimate the cell type level connectivity.
Based on the patch clamp experiments done in a separate study, we were able to obtain the ground truth for cell type level connectivity. For comparison, we also considered the linear regression model and classical ion models. We found that the former outperforms all the baseline models in terms of cell type level connectivity recovery and activity prediction.
We further look at the former attention maps across different behavioral states. We use the principle component analysis to project the attention map from each time step onto a two -dimensional space. While the behavioral state information is never given to the model, we observe that attention maps from different behavioral states form distinct clusters naturally in the PC space, suggesting that neural networks successfully capture the state changes as well as the connectivity changes across different behavioral states.
just across states. And that's all about our project. Thanks for watching.
