LGAIDec 16, 2024

Transformers Use Causal World Models in Maze-Solving Tasks

arXiv:2412.11867v214 citationsh-index: 6
Originality Incremental advance
AI Analysis

This work provides insights into transformer interpretability for researchers, though it is incremental as it builds on existing methods in a specific domain.

The study identified causal world models in transformers trained on maze-solving tasks, showing that models can reason about mazes with more active features than seen in training but fail when these mazes are provided as input tokens, and found it easier to activate features than suppress them.

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 highly 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 identify WMs in transformers trained on maze-solving tasks. By using Sparse Autoencoders (SAEs) and analyzing attention patterns, we examine the construction of WMs and demonstrate consistency between SAE feature-based and circuit-based analyses. By subsequently intervening on isolated features to confirm their causal role, we find that it is easier to activate features than to suppress them. Furthermore, we find that models can reason about mazes involving more simultaneously active features than they encountered during training; however, when these same mazes (with greater numbers of connections) are provided to models via input tokens instead, the models fail. Finally, we demonstrate that positional encoding schemes appear to influence how World Models are structured within the model's residual stream.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes