mlsanityData to 7 Oct 2026

How GPT learns layer by layer

arXiv 2501.07108 ↗First posted 13 Jan 2025cs.AIcited by 2

On the map: World models → World models for language agents

Abstract (arXiv)

Large Language Models (LLMs) excel at tasks like language processing, strategy games, and reasoning but struggle to build generalizable internal representations essential for adaptive decision-making in agents. For agents to effectively navigate complex environments, they must construct reliable world models. While LLMs perform well on specific benchmarks, they often fail to generalize, leading to brittle representations that limit their real-world effectiveness. Understanding how LLMs build internal world models is key to developing agents capable of consistent, adaptive behavior across tasks. We analyze OthelloGPT, a GPT-based model trained on Othello gameplay, as a controlled testbed for studying representation learning. Despite being trained solely on next-token prediction with random valid moves, OthelloGPT shows meaningful layer-wise progression in understanding board state and gameplay. Early layers capture static attributes like board edges, while deeper layers reflect dynamic tile changes. To interpret these representations, we compare Sparse Autoencoders (SAEs) with linear probes, finding that SAEs offer more robust, disentangled insights into compositional features, whereas linear probes mainly detect features useful for classification. We use SAEs to decode features related to tile color and tile stability, a previously unexamined feature that reflects complex gameplay concepts like board control and long-term planning. We study the progression of linear probe accuracy and tile color using both SAE's and linear probes to compare their effectiveness at capturing what the model is learning. Although we begin with a smaller language model, OthelloGPT, this study establishes a framework for understanding the internal representations learned by GPT models, transformers, and LLMs more broadly. Our code is publicly available: https://github.com/ALT-JS/OthelloSAE.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in World models for language agents, one of 11 directions in World models. Builds on 8 of its 21 references that are in the map. First posted on arXiv 13 Jan 2025.

Builds on

8 of 21 references.

Closest ancestors · 2

Same direction, newest first

  1. 2023Linear Latent World Models in Simple Transformers: A Case Study on Othello-GPT11 Oct
  2. 2020Language Models are Few-Shot Learners28 May

Other references · 6

  1. 2016Understanding intermediate layers using linear classifier probescited by 1,279
  2. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
  3. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 831
  4. 2024Living in the Moment: Can Large Language Models Grasp Co-Temporal Reasoning?cited by 25
  5. 2024Procedural Adherence and Interpretability Through Neuro-Symbolic Generative Agentscited by 5
  6. 2024Exploring Concept Depth: How Large Language Models Acquire Knowledge and Concept at Different Layers?cited by 4

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024Emergent World Models and Latent Variable Estimation in Chess-Playing Language Models
  2. 2025Revisiting the Othello World Model Hypothesis
  3. 2024Enhancing Agent Learning through World Dynamics Modeling
  4. 2025Can LLMs Translate Human Instructions into a Reinforcement Learning Agent's Internal Emergent Symbolic Representation?
  5. 2025From Text to Space: Mapping Abstract Spatial Models in LLMs during a Grid-World Navigation Task
  6. 2026Why We Need World Models for AGI: Where LLMs Fail and How World Models May Outperform
  7. 2026Agent Skills for Large Language Models: Architecture, Acquisition, Security, and the Path Forward
  8. 2026AGI Maze as a Benchmark Framework for World-Modeling Agents