mlsanityData to 7 Oct 2026

Transformer Mechanisms Mimic Frontostriatal Gating Operations When Trained on Human Working Memory Tasks

arXiv 2402.08211 ↗First posted 13 Feb 2024cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

Models based on the Transformer neural network architecture have seen success on a wide variety of tasks that appear to require complex "cognitive branching" -- or the ability to maintain pursuit of one goal while accomplishing others. In cognitive neuroscience, success on such tasks is thought to rely on sophisticated frontostriatal mechanisms for selective textitgating, which enable role-addressable updating -- and later readout -- of information to and from distinct "addresses" of memory, in the form of clusters of neurons. However, Transformer models have no such mechanisms intentionally built-in. It is thus an open question how Transformers solve such tasks, and whether the mechanisms that emerge to help them to do so bear any resemblance to the gating mechanisms in the human brain. In this work, we analyze the mechanisms that emerge within a vanilla attention-only Transformer trained on a simple sequence modeling task inspired by a task explicitly designed to study working memory gating in computational cognitive neuroscience. We find that, as a result of training, the self-attention mechanism within the Transformer specializes in a way that mirrors the input and output gating mechanisms which were explicitly incorporated into earlier, more biologically-inspired architectures. These results suggest opportunities for future research on computational similarities between modern AI architectures and models of the human brain.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 18 of its 59 references that are in the map. First posted on arXiv 13 Feb 2024.

Builds on

18 of 59 references.

References · 18

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  4. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  5. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  6. 2022Language Models as Zero-Shot Planners: Extracting Actionable Knowledge for Embodied Agentscited by 1,029
  7. 2022Toy Models of Superpositioncited by 928
  8. 2014Neural Turing Machinescited by 630
  9. 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 599
  10. 2013Direct and Indirect Effectscited by 276
  11. 2022Towards Understanding Grokking: An Effective Theory of Representation Learningcited by 229
  12. 2023Localizing Model Behavior with Path Patchingcited by 182
6 more
  1. 2022Toward Transparent AI: A Survey on Interpreting the Inner Structures of Deep Neural Networkscited by 126
  2. 2020Memory Transformercited by 74
  3. 2023Exposing Attention Glitches with Flip-Flop Language Modelingcited by 74
  4. 2019Tree Transformer: Integrating Tree Structures into Self-Attentioncited by 68
  5. 2021Relating transformers to models and neural representations of the hippocampal formationcited by 62
  6. 2021VTNet: Visual Transformer Network for Object Goal Navigationcited by 50

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 2.

3 papers.