TL;DR
Low-rank recurrent neural networks (lrRNNs) are powerful tools for uncovering low-dimensional dynamics and connectivity from high-dimensional neural data, but their latent spaces are often highly entangled. This paper introduces the Factored Recurrent Neural Network (FacRNN), a framework that enforces group-wise independence among latent variables while allowing rich, multi-dimensional interactions within each group. This end-to-end approach successfully isolates distinct, task-relevant neural sub-circuits and trajectories, significantly improving model interpretability without sacrificing reconstruction accuracy.
What Problem Does This Paper Address?
A central challenge in computational neuroscience is mapping high-dimensional neural population recordings to the underlying low-dimensional "latent" dynamics and structural connectivity that drive behavior.
Low-rank recurrent neural networks (lrRNNs) have emerged as a popular solution because they constrain recurrent weights to a low-rank form, bridging the gap between latent trajectories and network connectivity. However, standard lrRNNs suffer from a major flaw: entanglement. Traditional methods use Singular Value Decomposition (SVD) to extract latent subspaces, which yields orthogonal components but not statistically independent ones.
While techniques like Independent Component Analysis (ICA) or disentangled Variational Autoencoders (VAEs) enforce independence, they typically assume dimension-wise independence—meaning every single latent dimension must evolve completely separately. This is too restrictive for biology. Neural computations (like planning a hand movement in 2D or 3D space) inherently require multi-dimensional, internally entangled subspaces that are independent of other computational processes.
Methods
The authors bridge this gap by reformulating the lrRNN into a VAE framework and introducing FacRNN.
Instead of forcing each latent dimension to be independent, FacRNN assumes the latent space is divided into $G$ independent groups, where each group can have an internal rank $H_g$ greater than one. This allows flexible, complex dynamics within a group, but blocks statistical dependence between different groups.
To achieve this group-wise factorization during training, the authors introduce a Partial Correlation (PC) penalty into the VAE's evidence lower bound (ELBO) objective function. The PC term minimizes the Kullback-Leibler (KL) divergence between the aggregated posterior of the entire latent space and the product of the aggregated posteriors of each individual group.
Additionally, for purely linear systems, they propose a simpler variant called the block-diagonal RNN (bdRNN), which explicitly forces the latent recurrence matrix to be block-diagonal.
Datasets
The framework was evaluated across three distinct datasets:
- Synthetic Dataset: Simulated chaotic dynamics combining the Lorenz and Thomas attractors (two independent groups, each with a ground-truth rank of 3) mapped into a 20-dimensional observation space.
- Monkey M1 Data: Neural spike train recordings from the macaque primary motor cortex (154 neurons, 168 trials) during an 8-direction center-out reaching task.
- Mouse Dorsal Cortex Voltage Imaging Data: High-resolution widefield voltage imaging (50 × 50 pixel frames) from mice undergoing a directional licking task with an air-puff stimulus to the whiskers.
Key Insights and Ideas
- Group-Wise > Dimension-Wise: Forcing individual neural dimensions to be independent destroys the multi-dimensional trajectories required for complex computations. Factoring by groups matches the modular nature of the brain much more naturally.
- End-to-End beats Post-Hoc: Trying to untangle a standard lrRNN's latent space using ICA after training fails. The factorization constraint must be baked into the training objective end-to-end so that it shapes both the encoder-decoder mappings and the connectivity matrix simultaneously.
- Discovering Sub-Circuits: Because FacRNN splits the decoder matrix $A$ and encoder matrix $B$ into group-specific chunks, the overall low-rank connectivity matrix $W=AB$ can be cleanly decomposed into sub-connectivity matrices ($W = \sum W_g$). Each $W_g$ represents an isolated functional sub-circuit driving an independent source of task-related signals.
Key Results
Synthetic Tracking
FacRNN successfully recovered the independent group structures from the mixed synthetic data. It achieved a partial correlation score of $\approx 0.13$ (very close to the ground-truth baseline of $\approx 0.10$), whereas unconstrained lrRNNs remained highly entangled ($\approx 0.86$).
Real-World Motor Control (Monkey M1)
When configured to find two rank-2 groups ($K=4$), FacRNN naturally aligned its latent groups with the canonical horizontal ($x$) and vertical ($y$) axes of the hand movement.
- FacRNN achieved a trajectory alignment $R^2$ score of 0.79, significantly outperforming standard lrRNN (0.66) and other state-of-the-art baselines like LINT (0.57) and SMC (0.45).
- Intriguingly, when the coordinate system was mathematically rotated, FacRNN's performance dropped sharply at $\pi/4$ radians, confirming that the network prefers the canonical Cartesian axes. This aligns with neurophysiological findings that motor cortex neurons are preferentially tuned along cardinal axes due to body symmetry.
Cortical Mapping (Mouse Voltage Imaging)
Applied to widefield imaging data, a standard lrRNN smeared stimulus-locked oscillations across multiple latent components. FacRNN ($G=6, H=2$) cleanly isolated the air-puff-induced somatosensory oscillations into a single latent group, mapping it precisely to the contralateral barrel cortex and revealing a specific functional sub-circuit running from the secondary somatosensory cortex ($S2$) to the motor cortex ($M2$).
Limitations and Future Work
- Hyperparameter Dependency: The user must pre-specify both the number of groups ($G$) and the rank of each group ($H_g$). While the paper shows that FacRNN can automatically suppress "dummy" dimensions if the rank is over-specified, finding the optimal group structure remains a hyperparameter challenge.
- Linearity Constraints for Connectivity: Direct, interpretable estimation of the sub-connectivity matrices ($W_g$) is currently only supported when using linear encoders and decoders. Extending this explicit connectivity mapping to deep, non-linear VAE architectures remains an open problem.
- Passive Dynamics: The current real-world implementations do not explicitly incorporate external task or stimulus inputs directly into the recurrent dynamics equations, which is a key next step for modeling driven behaviors.
Summary updated