mlsanityData to 7 Oct 2026

Setting up for failure: automatic discovery of the neural mechanisms of cognitive errors

arXiv 2512.04808 ↗First posted 4 Dec 2025q-bio.NC cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

Discovering the neural mechanisms underpinning cognition is one of the grand challenges of neuroscience. However, previous approaches for building models of RNN dynamics that explain behaviour required iterative refinement of architectures and/or optimisation objectives, resulting in a piecemeal, and mostly heuristic, human-in-the-loop process. Here, we offer an alternative approach that automates the discovery of viable RNN mechanisms by explicitly training RNNs to reproduce behaviour, including the same characteristic errors and suboptimalities, that humans and animals produce in a cognitive task. Achieving this required two main innovations. First, as the amount of behavioural data that can be collected in experiments is often too limited to train RNNs, we use a non-parametric generative model of behavioural responses to produce surrogate data for training RNNs. Second, to capture all relevant statistical aspects of the data, we developed a novel diffusion model-based approach for training RNNs. To showcase the potential of our approach, we chose a visual working memory task as our test-bed, as behaviour in this task is well known to produce response distributions that are patently multimodal (due to swap errors). The resulting network dynamics correctly qualitative features of macaque neural data. Importantly, these results were not possible to obtain with more traditional approaches, i.e., when only a limited set of behavioural signatures (rather than the full richness of behavioural response distributions) were fitted, or when RNNs were trained for task optimality (instead of reproducing behaviour). Our approach also yields novel predictions about the mechanism of swap errors, which can be readily tested in experiments. These results suggest that fitting RNNs to rich patterns of behaviour provides a powerful way to automatically discover mechanisms of important cognitive functions.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 5 of its 42 references that are in the map. First posted on arXiv 4 Dec 2025.

Builds on

5 of 42 references.

References · 5

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Denoising Diffusion Probabilistic Modelscited by 20,851
  3. 2021Recurrent neural network models for working memory of continuous variables: activity manifolds, connectivity patterns, and dynamic codescited by 8
  4. 2023Expressive probabilistic sampling in recurrent neural networkscited by 1
  5. 2025A flexible Bayesian non-parametric mixture model reveals multiple dependencies of swap errors in visual working memorycited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Integrative neurocybernetic modeling in the era of large-scale neuroscience
  2. 2025Sequence models for by-trial decoding of cognitive strategies from neural data
  3. 2021A brain basis of dynamical intelligence for AI and computational neuroscience
  4. 2026A New Strategy for Artificial Intelligence: Training Foundation Models Directly on Human Brain Data
  5. 2026Mechanism Shift During Post-training from Autoregressive to Masked Diffusion Language Models
  6. 2024Exploring Behavior-Relevant and Disentangled Neural Dynamics with Generative Diffusion Models
  7. 2016Discovering Latent States for Model Learning: Applying Sensorimotor Contingencies Theory and Predictive Processing to Model Context
  8. 2025Lessons from Neuroscience for AI: How integrating Actions, Compositional Structure and Episodic Memory could enable Safe, Interpretable and Human-Like AI