Measuring and Controlling Solution Degeneracy across Task-Trained Recurrent Neural Networks

Ann Huang, Satpreet H. Singh, Kanaka RajanarXiv 2024 · DOI

In computational neuroscience and machine learning, trained Recurrent Neural Networks (RNNs) are frequently used as models to understand biological neural processes. However, a significant challenge arises: multiple networks trained on the identical task can achieve perfect performance while utilizing fundamentally different internal mechanisms. This phenomenon, known as solution degeneracy, complicates the process of drawing universal conclusions from any single model.

A recent study from researchers at Harvard and the Kempner Institute provides a systematic framework to quantify and control this degeneracy. By mapping how task complexity, network architecture, and learning regimes influence model consistency, the authors reveal a fundamental trade-off: harder tasks tend to make neural dynamics more consistent while simultaneously driving the underlying weight structures further apart.

The Framework of Degeneracy

To move beyond treating RNNs as "black boxes," the researchers developed a multi-level framework to measure variability across three distinct scales:

  1. Behavioral Degeneracy: Differences in network responses to out-of-distribution (OOD) inputs.
  2. Dynamical Degeneracy: Variability in "state trajectories"—the paths hidden units take over time—measured using Dynamical Similarity Analysis (DSA).
  3. Weight Degeneracy: Divergence in actual connectivity matrices, compared using a permutation-invariant Frobenius norm (PIF).
Conceptual framework illustrating the factors controlling solution degeneracy at the behavioral, dynamical, and weight levels.

The study specifically tests the Contravariance Principle, which suggests that as a task's complexity increases, the number of viable dynamical solutions should shrink, forcing models toward a more singular internal logic.

Experimental Setup and Datasets

The authors trained over 3,400 RNNs across four standard neuroscience tasks, each representing different computational requirements:

  • N-Bit Flip-Flop: Discrete memory storage.
  • Delayed Discrimination: Working memory and comparison.
  • Sine Wave Generation: Autonomous pattern generation.
  • Path Integration: Continuous navigation and integration.
Overview of the four neuroscience tasks (A) and their corresponding low-dimensional neural state trajectories visualized via PCA (B).

To ensure that changes in network size didn't inadvertently alter the learning regime, the researchers employed Maximal Update Parameterization ((\mu P)), allowing for controlled scaling of network width.

Key Insights: The Double Dissociation

The research identified a striking split between factors that influence degeneracy:

  • Contravariant Factors (Task Complexity & Feature Learning): Increasing task difficulty or moving into a "rich" feature-learning regime makes neural dynamics more consistent (lower DSA distance) but causes weight configurations to become more diverse. Essentially, there are fewer dynamical ways to solve a hard task, but the structural paths to reach those dynamics are more numerous.
  • Covariant Factors (Network Size & Regularization): Increasing network width or adding structural constraints (like low-rank or L1 penalties) reduces degeneracy across all levels—weights, dynamics, and behavior.

Implications for Neuroscience

One of the most significant findings is that consistent internal dynamics do not necessarily guarantee consistent behavior on unseen data. This suggests that while networks may share a common "internal logic" for a trained task, their edge-case behaviors remain highly individualized.

For researchers using RNNs to model the brain, this framework offers a clear prescription: to find the most representative and interpretable "universal" mechanism for a biological process, one should prioritize training large, regularized networks on the most complex versions of the target task. This approach minimizes the risk of studying a quirky, non-representative solution that is merely an artifact of the training process.

Summary updated

BibTeX
@misc{huang2024measuring,
  author = {Ann Huang and Satpreet H. Singh and Kanaka Rajan},
  title = {{Measuring and Controlling Solution Degeneracy across Task-Trained Recurrent Neural Networks}},
  year = {2024},
  eprint = {2410.03972},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.03972},
}
Figure