Exploring Behavior-Relevant and Disentangled Neural Dynamics with Generative Diffusion Models

Yule Wang, Chengrui Li, Weihan Li, Anqi Wu · DOI

Introduction

A fundamental challenge in neuroscience is deciphering the "neural basis of behavior"—the complex mapping between population-level neural activity and physical actions. Two primary obstacles hinder this understanding: mixed selectivity and the interpretation gap. Mixed selectivity refers to the phenomenon where individual neurons or brain regions encode multiple variables simultaneously (e.g., sensory cues and motor outputs), making it difficult to isolate specific behavioral drivers. The interpretation gap arises because traditional decoding models often function as "black boxes," providing predictions without intuitive visualizations of the underlying neural-to-behavioral mapping.

To address these challenges, we present BeNeDiff (Behavior-Relevant and Interpretable Neural Dynamics with Generative Diffusion Models), a framework designed to translate complex neural dynamics into interpretable behavior videos. By identifying a disentangled neural subspace, BeNeDiff allows researchers to visualize how specific brain regions contribute to distinct behaviors.

The BeNeDiff Framework

BeNeDiff operates through a two-stage generative process aimed at isolating and then visualizing behavioral components within neural data.

Stage 1: Learning a Disentangled Subspace

The first stage utilizes a semi-supervised Variational Autoencoder (VAE) to map high-dimensional neural activity into a lower-dimensional latent space. To overcome mixed selectivity, the model incorporates a Total Correlation (TC) penalty. This penalty encourages the model to find "disentangled" latent factors, effectively organizing neural data so that specific dimensions correspond to specific behaviors (e.g., licking, paw movements) with minimal informational overlap.

Stage 2: Generative Visualization via Diffusion

Once the disentangled subspace is established, a Video Diffusion Model (VDM) is trained to generate behavioral videos conditioned on these latent factors. To interpret a specific neural factor, the framework employs Classifier Guidance. By "activating" a specific latent factor—amplifying its variance while suppressing others—the diffusion model generates a video that reflects the physical manifestation of that specific neural signal. This approach avoids the distortions common in "naive manipulation" by ensuring the generated videos remain within the distribution of realistic behavioral data.

Experimental Validation

The framework was validated using wide-field calcium imaging data from mice performing a visual decision-making task (originally from Musall et al., 2019). The dataset included recordings across the dorsal cortex, including visual (VIS), somatosensory (SSp), and motor (MOs) areas. Behavioral data was captured via side and bottom-view videos tracking levers, spouts, and various body parts (paws, jaw, chest).

Key Insights: From Neural Trajectories to Behavioral Cinema

BeNeDiff shifts the paradigm of neural interpretation from abstract trajectory plots to intuitive video reconstructions. This transition revealed several critical insights into the regional choreography of the brain:

  1. Predictive Coding in the Visual Cortex: By isolating neural factors, the analysis revealed that activity in the Visual Cortex (VIS) related to paw movements occurs prior to the actual movement. This suggests that the VIS is involved in predictive coding—preparing for motor actions rather than merely processing sensory input.
  2. Temporal Flow of Activity: The model identified a clear sequence of activation: starting in the VIS (predictive), moving to the Somatosensory Cortex (SSp) (synchronized with physical contact), and concluding in the Motor Cortex (MOs) for execution and control.
  3. Qualitative Specificity: Compared to baseline methods like Classifier-Free Guidance, BeNeDiff produced videos with significantly higher specificity. For instance, activating the "Jaw" factor resulted in clear jaw movement without the "bleeding" of motion into other body parts like the chest or paws.

Quantitative Performance

BeNeDiff demonstrates superior performance in both disentanglement and reconstruction:

  • Disentanglement: Using the Mutual Information Gap (MIG) metric, BeNeDiff achieved scores of 55-58%, significantly outperforming baseline models such as CEBRA and pi-VAE, which scored between 37-40%.
  • Reconstruction Fidelity: Despite the emphasis on disentanglement, the model maintained high neural reconstruction quality, with $R^2$ values ranging from 70% to 75%. This indicates that the disentangled subspace preserves the essential information present in the original neural signals.

Conclusion and Future Work

BeNeDiff provides a powerful tool for bridging the gap between neural dynamics and observable behavior. However, certain limitations remain. There is an inherent trade-off between achieving perfect disentanglement and maintaining reconstruction accuracy, currently requiring manual hyperparameter tuning. Furthermore, the use of a linear regressor for the neural encoder, while beneficial for interpretability, may be improved by incorporating non-linear models in future iterations. Scaling BeNeDiff to larger datasets and more complex behavioral tasks will be essential to further explore the universality of these behavioral subspaces.

Summary updated

BibTeX
@inproceedings{wang2024exploring,
  author = {Yule Wang and Chengrui Li and Weihan Li and Anqi Wu},
  title = {{Exploring Behavior-Relevant and Disentangled Neural Dynamics with Generative Diffusion Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=jL0EsbfbAV},
}
Figure