paper-with-me

Papers

Transformers Use Causal World Models in Maze-Solving Tasks

2024-12-16 · Alex F. Spies, William Edwards, Michael I. Ivanitskiy, Adrians Skapars, Tilman Räuker, Katsumi Inoue, Alessandra Russo, Murray Shanahan

Recent studies in interpretability have explored the inner workings of transformer models trained on tasks across various domains, often discovering that these networks naturally develop surprisingly structured representations. When such representations comprehensively reflect the task domain's structure, they are commonly referred to as ``World Models'' (WMs). In this work, we discover such WMs in transformers trained on maze tasks. In particular, by employing Sparse Autoencoders (SAEs) and analysing attention patterns, we examine the construction of WMs and demonstrate consistency between the circuit analysis and the SAE feature-based analysis. We intervene upon the isolated features to confirm their causal role and, in doing so, find asymmetries between certain types of interventions. Surprisingly, we find that models are able to reason with respect to a greater number of active features than they see during training, even if attempting to specify these in the input token sequence would lead the model to fail. Futhermore, we observe that varying positional encodings can alter how WMs are encoded in a model's residual stream. By analyzing the causal role of these WMs in a toy domain we hope to make progress toward an understanding of emergent structure in the representations acquired by Transformers, leading to the development of more interpretable and controllable AI systems.

📄 PDF Abstract BibTeX arXiv:2412.11867

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

Structured World Representations in Maze-Solving Transformers

2023-12-05 · Michael Igorevich Ivanitskiy, Alex F. Spies, Tilman Räuker, Guillaume Corlouer 외

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, formin…

valid

Transformers Can Navigate Mazes With Multi-Step Prediction

2024-12-06 · Niklas Nolte, Ouail Kitouni, Adina Williams, Mike Rabbat 외

Despite their remarkable success in language modeling, transformers trained to predict the next token in a sequence struggle with long-term planning. This limitation is particularly evident in tasks requiring foresight t…

GPULanguage ModelingLanguage ModellingNavigate+1

Do LLMs Build Spatial World Models? Evidence from Grid-World Maze Tasks

2026-04-12 · Weijiang Li, Yilin Zhu, Rajarshi Das, Parijat Dube arxiv

Foundation models have shown remarkable performance across diverse tasks, yet their ability to construct internal spatial world models for reasoning and planning remains unclear. We systematically evaluate the spatial un…

Spatial Reasoning

Video Models Reason Early: Exploiting Plan Commitment for Maze Solving

2026-03-31 · Kaleb Newman, Tyler Zhu, Olga Russakovsky arxiv

Video diffusion models exhibit emergent reasoning capabilities like solving mazes and puzzles, yet little is understood about how they reason during generation. We take a first step towards understanding this and study t…

MazeMate: An LLM-Powered Chatbot to Support Computational Thinking in Gamified Programming Learning

2025-09-24 · Chenyu Hou, Hua Yu, Gaoxia Zhu, John Derek Anas 외 arxiv

Computational Thinking (CT) is a foundational problem-solving skill, and gamified programming environments are a widely adopted approach to cultivating it. While large language models (LLMs) provide on-demand programming…