Abstract
Training recurrent neural networks (RNNs) has become a go-to approach for generating and evaluating mechanistic neural hypotheses for cognition. The ease and efficiency of training RNNs with backpropagation through time and the availability of robustly supported deep learning libraries has made RNN modeling more approachable and accessible to neuroscience. Yet, a major technical hindrance remains. Cognitive processes such as working memory and decision making involve neural population dynamics over a long period of time within a behavioral trial and across trials. It is difficult to train RNNs to accomplish tasks where neural representations and dynamics have long temporal dependencies without gating mechanisms such as LSTMs or GRUs which currently lack experimental support and prohibit direct comparison between RNNs and biological neural circuits. We tackled this problem based on the idea of specialized skip-connections through time to support the emergence of task-relevant dynamics, and subsequently reinstitute biological plausibility by reverting to the original architecture. We show that this approach enables RNNs to successfully learn cognitive tasks that prove impractical if not impossible to learn using conventional methods. Over numerous tasks considered here, we achieve less training steps and shorter wall-clock times, particularly in tasks that require learning long-term dependencies via temporal integration over long timescales or maintaining a memory of past events in hidden-states. Our methods expand the range of experimental tasks that biologically plausible RNN models can learn, thereby supporting the development of theory for the emergent neural mechanisms of computations involving long-term dependencies.
The Challenge of Biological Plausibility in RNNs
In neuroscience, researchers use RNNs to simulate how populations of neurons perform cognitive tasks like decision-making or working memory. To be "biologically plausible," these models usually consist of "leaky" integrator units. However, these networks are incredibly hard to train using standard backpropagation through time (BPTT). As the time window of a task grows, gradients tend to either explode or vanish, preventing the network from learning.
While the machine learning community solved this with Gated Recurrent Units (GRUs) and LSTMs, these architectures lack biological evidence; the brain does not appear to have the specific "gates" these models rely on. The challenge is: how do we train a simple, biologically realistic RNN to handle long-term dependencies without using artificial gating mechanisms?
Methods: Dynamics-Aligned Skip Connections (DASC)
The authors propose using "surrogate" elements that exist only during the training phase. Once the network is trained, these elements are removed, leaving behind a standard, biologically plausible RNN. The core contribution is Dynamics-Aligned Skip Connections (DASC).
DASC uses a temporary skip connection but "aligns" it with the network's true dynamics by using a first-order approximation of the change in state. This prevents the "attenuation" of dynamics seen in standard skip connections. During training, the network's state is a weighted average of the standard path and the shortcut, controlled by an annealing parameter $\beta$. As training progresses, $\beta$ is adjusted so that the shortcut is eventually removed, leaving the original architecture intact.
Key Results across Cognitive Tasks
The researchers evaluated their methods on a benchmark of 16 standard cognitive tasks, including simple decision-making and complex memory tasks like 'Delayed Anti-Response' (danti) and 'Delayed Go' (dgo).
Standard training methods failed completely on the hardest tasks. In contrast, DASC and related skip-connection methods achieved 99% accuracy. Beyond just solving the "unsolvable," DASC often required significantly fewer training steps and shorter "wall-clock" time compared to control methods on simpler tasks. For example, in the msddm task, DASC reached the performance threshold in roughly one-third of the time required by the control.
In multi-trial rule-reversal tasks, placing skip connections specifically at the boundaries between trials (inter-trial intervals) proved highly effective. It allowed the network to pass "memory" across trials more easily during the early stages of learning, increasing the success rate of training biologically plausible networks.
Conclusion
By using "surrogate" mathematical scaffolds like DASC, researchers can guide RNNs toward solutions for complex cognitive tasks without sacrificing the biological plausibility of the final model. This approach bridges the gap between simple neural circuits and the complex, long-term computations required for cognitive behavior. Future work may explore whether these "shortcuts" have analogous counterparts in biological development or synaptic plasticity.
Summary updated