Coupled Transformer Autoencoder for Disentangling Multi-Region Neural Latent Dynamics

Ram Dyuthi Sristi, Sowmya Manojna Narasimha, Jingya Huang, Alice Despatin, Simon Musall, Vikash Gilja, Gal Mishne

TL;DR

The Coupled Transformer Autoencoder (CTAE) is a novel framework designed to disentangle "shared" neural activity (communication between brain areas) from "private" activity (local computations). By leveraging the non-linear power of Transformers and a structured latent space, CTAE significantly outperforms traditional linear models in decoding complex behaviors from multi-region brain recordings.

The Challenge of Multi-Region Recordings

Modern neuroscience allows us to record from thousands of neurons across multiple brain regions simultaneously. This reveals a complex "distributed circuit" where some signals are broadcast globally to coordinate behavior, while others remain local to specific regions for specialized processing.

The challenge lies in disentangling these signals. Existing methods face three major hurdles:

  1. Temporal Dynamics: Many models treat time points as independent samples, ignoring the continuous "flow" of neural activity.
  2. Non-linearity: Traditional tools (like CCA or GP-based models) often assume linear relationships, which fail to capture the "warped" and non-stationary dynamics of real biological circuits.
  3. Scalability: As we add more brain regions, many models suffer from a "parameter explosion," making them computationally impractical.
Conceptual overview of disentangling shared and private latent dynamics from multi-region neural activity.

The authors introduce CTAE to solve these issues, providing a sequence-aware, non-linear framework that scales gracefully across multiple brain areas.

How CTAE Works

CTAE uses a Coupled Transformer Autoencoder architecture to isolate shared and private signals.

Architecture of the Coupled Transformer Autoencoder (CTAE) showing encoders, weight masks, and latent fusion.

Here’s the breakdown of the methodology:

  • Transformer Backbone: Unlike previous models that use Gaussian Processes or RNNs, CTAE employs Transformer encoders and decoders. This allows the model to capture long-range dependencies and non-linear dynamics through self-attention mechanisms.
  • Latent Space Partitioning: The model explicitly splits each region's latent space into orthogonal subspaces. It uses binary weight masks to designate specific dimensions as "shared" (accessible by multiple regions) or "private" (restricted to one).
  • Weighted Fusion: Shared latent trajectories from different regions are aggregated via a masked average, forcing the model to find a common "communication subspace."
  • Four-Part Loss Function: To ensure the latents are meaningful, the authors optimize for:
  • Reconstruction: Faithfully reproducing the original neural activity.
  • Shared-only Reconstruction: Ensuring the shared subspace alone can capture the bulk of task-relevant information.
  • Alignment: Forcing shared representations from different regions to match.
  • Orthogonality: Preventing "leakage" between shared and private dimensions.

Experimental Validation

The authors validated CTAE across three distinct environments:

  1. Synthetic Nonlinear Dataset: A controlled environment with ground-truth shared/private dynamics and non-linear distortions to test the model's recovery accuracy.
  2. M1-PMd (Motor Circuit): Recordings from the primary motor cortex (M1) and dorsal premotor cortex (PMd) in macaque monkeys performing a reaching task.
  3. SC-ALM (Multisensory Circuit): High-density Neuropixels recordings from the superior colliculus (SC) and anterolateral motor cortex (ALM) in mice performing a visual/tactile discrimination task.

Key Insights and Results

  • Shared Space is the "Task Space": A major finding was that the shared subspace—not the private ones—accounted for the vast majority of variance associated with behavior (like hand position or reach direction). This suggests that inter-region communication is the primary driver of coordinated action.
  • Superior Decoding: On the M1-PMd reaching task, CTAE's shared latents achieved a hand-position decoding accuracy ($R^2$) of 0.77, outperforming the previous state-of-the-art DLAG (0.72) and DeepCCA (0.32). For identifying reach direction (1 of 8 targets), CTAE achieved 69% accuracy, nearly 25% higher than DLAG (44%).
  • Linearity is a Bottleneck: The failure of previous models like DLAG on the synthetic and SC-ALM datasets highlights that neural interactions are fundamentally non-linear. CTAE’s ability to handle these "warps" is what gives it the edge.
  • Anatomical Consistency: In the SC-ALM dataset, CTAE identified that the "Deep SC" layer plays a more central role in integrating sensory inputs and propagating them to the motor cortex (ALM) than the "Superficial SC," matching known biological circuit motifs.
  • Robust Disentanglement: In synthetic tests, CTAE successfully recovered the underlying block-diagonal correlation structure of the data, whereas linear models conflated shared and private signals. Ablation studies proved that removing any of the four loss terms led to a significant drop in performance.

Limitations and Future Work

While powerful, CTAE has a few areas for growth:

  • Fixed Masks: Currently, the number of shared vs. private dimensions is a hyperparameter set by the researcher. The authors suggest making these masks learnable so the model can autonomously discover the "width" of the communication subspace.
  • Smoothing Dependency: The model currently trains on Gaussian-smoothed firing rates. Future iterations could incorporate a Poisson or negative-binomial likelihood to work directly with raw, unsmoothed spike counts.
  • Scalability to More Regions: While the math supports it, the paper primarily focuses on 2-3 regions. Testing the model on whole-brain recordings (e.g., widefield imaging) would be a natural next step.

Summary updated

BibTeX
@inproceedings{sristi2026coupled,
  author = {Ram Dyuthi Sristi and Sowmya Manojna Narasimha and Jingya Huang and Alice Despatin and Simon Musall and Vikash Gilja and Gal Mishne},
  title = {{Coupled Transformer Autoencoder for Disentangling Multi-Region Neural Latent Dynamics}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=oeoCgcYIyf},
}
Figure