mlsanityData to 14 Oct 2026

Structured World Representations in Maze-Solving Transformers

arXiv 2312.02566 ↗First posted 5 Dec 2023cs.LG cs.AIcited by 16

Not on the map. Why?

Abstract (arXiv)

Transformer models underpin many recent advances in practical machine learning applications, yet understanding their internal behavior continues to elude researchers. Given the size and complexity of these models, forming a comprehensive picture of their inner workings remains a significant challenge. To this end, we set out to understand small transformer models in a more tractable setting: that of solving mazes. In this work, we focus on the abstractions formed by these models and find evidence for the consistent emergence of structured internal representations of maze topology and valid paths. We demonstrate this by showing that the residual stream of only a single token can be linearly decoded to faithfully reconstruct the entire maze. We also find that the learned embeddings of individual tokens have spatial structure. Furthermore, we take steps towards deciphering the circuity of path-following by identifying attention heads (dubbed textitadjacency heads), which are implicated in finding valid subsequent tokens.

Key facts. Cited by 16 papers in the map (data through 14 Oct 2026). Builds on 16 of its 20 references that are in the map. First posted on arXiv 5 Dec 2023.

Builds on

16 of 20 references.

References · 16

  1. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  2. 2023Progress measures for grokking via mechanistic interpretabilitycited by 839
  3. 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 724
  4. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
  5. 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 623
  6. 2022Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Taskcited by 431
  7. 2023Finding Neurons in a Haystack: Case Studies with Sparse Probingcited by 334
  8. 2022Towards Understanding Grokking: An Effective Theory of Representation Learningcited by 230
  9. 2023Does Circuit Analysis Interpretability Scale? Evidence from Multiple Choice Capabilities in Chinchillacited by 149
  10. 2022Toward Transparent AI: A Survey on Interpreting the Inner Structures of Deep Neural Networkscited by 129
  11. 2023Uncovering mesa-optimization algorithms in Transformerscited by 100
  12. 2023Evaluating Cognitive Maps and Planning in Large Language Models with CogEvalcited by 77
4 more
  1. 2023Evaluating Large Language Models on Graphs: Performance Insights and Comparative Analysiscited by 35
  2. 2023A Configurable Library for Generating and Manipulating Maze Datasetscited by 31
  3. 2023Understanding and Controlling a Maze-Solving Policy Networkcited by 22
  4. 2023Can Transformers Learn to Solve Problems Recursively?cited by 17

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 3; 2025: 7; 2026: 6.

16 papers.

Sort:

By area: