bioRxivNeurosciencePreprint
Reverse-engineering Recurrent Neural Network solutions to a hierarchical inference task for mice
Rylan SchaefferiD, Mikail Khona, Leenoy MeshulamiD, Ila FieteiD
Abstract
We study how recurrent neural networks (RNNs) solve a hierarchical inference task involving two latent variables and disparate timescales separated by 1-2 orders of magnitude. The task is of interest to the International Brain Laboratory, a global collaboration of experimental and theoretical neuroscientists studying how the mammalian brain generates behavior. We make four discoveries. First, RNNs learn behavior that is quantitatively similar to ideal Bayesian baselines. Second, RNNs perform inference by learning a two-dimensional subspace defining beliefs about the latent variables. Third, the geometry of RNN dynamics reflects an induced coupling between the two separate inference processes necessary to solve the task. Fourth, we perform model compression through a novel form of knowledge distillation on hidden representations - Representations and Dynamics Distillation (RADD)- to reduce the RNN dynamics to a low-dimensional, highly interpretable model. This technique promises a useful tool for interpretability of high dimensional nonlinear dynamical systems. Altogether, this work yields predictions to guide exploration and analysis of mouse neural data and circuity.
- Citations
- 39
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Cognitive Model Discovery via Disentangled RNNs
Kevin J. Miller, Maria Katharina Eckstein, … Zeb L. Kurth-Nelson·neural information processing systemsPeer-reviewed·Jan 1, 2023
- Considerations in using recurrent neural networks to probe neural dynamics
Jonathan C. Kao·Journal of NeurophysiologyPeer-reviewed·Oct 16, 2019
- Data-Driven Reduced Modeling of Recurrent Neural Networks
Alice Marraffa, Renate Krause, … George Haller·bioRxiv·Oct 13, 2025
- Recurrent Neural Network Exploration Strategies During Reinforcement Learning Depend on Network Capacity
Henrike Flimm, Deniz Tuzsus, … Jan Peters·Computational Brain & BehaviorPeer-reviewed·Oct 28, 2025
- Recurrent neural networks learn robust representations by dynamically balancing compression and expansion
Matthew Farrell, Stefano Recanatesi, … Eric Shea‐Brown·Nature Machine IntelligencePeer-reviewed·Jun 22, 2022
- Interpretable compositional computation with recurrent neural networks
Louis Pezon, Alexander van Meegen·bioRxiv·Jun 29, 2026