Not All Language Model Features Are Linear

Authors: Joshua Engels, Isaac Liao, Eric J. Michaud, Wes Gurnee, Max Tegmark

Submitted to arXiv on 23 May. 2024
License: CC BY 4.0
Abstract

Recent work has proposed the linear representation hypothesis: that language models perform computation by manipulating one-dimensional representations of concepts ("features") in activation space. In contrast, we explore whether some language model representations may be inherently multi-dimensional. We begin by developing a rigorous definition of irreducible multi-dimensional features based on whether they can be decomposed into either independent or non-co-occurring lower-dimensional features. Motivated by these definitions, we design a scalable method that uses sparse autoencoders to automatically find multi-dimensional features in GPT-2 and Mistral 7B. These auto-discovered features include strikingly interpretable examples, e.g. circular features representing days of the week and months of the year. We identify tasks where these exact circles are used to solve computational problems involving modular arithmetic in days of the week and months of the year. Finally, we provide evidence that these circular features are indeed the fundamental unit of computation in these tasks with intervention experiments on Mistral 7B and Llama 3 8B, and we find further circular representations by breaking down the hidden states for these tasks into interpretable components.

The papers around it, by date and closeness

Higher is closer to this paper; left is older. Lines join papers close to each other: groups of lines are sub-topics. Select a point to see why it is there. Back to the summary of this paper

How to read this map? Illustrated guide

Closest papers Prior work it builds on Papers that cite it

Papers around this one

Ranked by how close their title and abstract are to this paper’s. Select some to read them together.

Closest papers

  1. Close Cites this paper
    How Many Features Can a Language Model Store Under the Linear Representation Hypothesis?
    Nikhil Garg, Jon M. Kleinberg, Kenny Peng · 2026 · Annual Conference Computational Learning Theory · cited 11 times · Not summarized yet
    Abstract

    We introduce a mathematical framework for the linear representation hypothesis (LRH), which asserts that intermediate layers of language models store features linearly. We separate the hypothesis into two claims: linear representation (features are linearly embedded in neuron activations) and linear accessibility (features can be linearly decoded). We then ask: How many neurons $d$ suffice to both linearly represent and linearly access $m$ features? Classical results in compressed sensing imply that for $k$-sparse inputs, $d = O(k\log (m/k))$ suffices if we allow non-linear decoding algorithms (Candes and Tao, 2006; Candes et al., 2006; Donoho, 2006). However, the additional requirement of l…

  2. Close Cites this paper Uses this paper in depth
    The Origins of Representation Manifolds in Large Language Models
    Alexander Modell, Patrick Rubin-Delanchy, Nick Whiteley · 2025 · arXiv.org · preprint, not peer reviewed · cited 54 times · Not summarized yet
    Abstract

    There is a large ongoing scientific effort in mechanistic interpretability to map embeddings and internal representations of AI systems into human-understandable concepts. A key element of this effort is the linear representation hypothesis, which posits that neural representations are sparse linear combinations of `almost-orthogonal' direction vectors, reflecting the presence or absence of different features. This model underpins the use of sparse autoencoders to recover features from representations. Moving towards a fuller model of features, in which neural representations could encode not just the presence but also a potentially continuous and multidimensional value for a feature, has be…

  3. Close
    Do Large GPT Models Discover Moral Dimensions in Language Representations? A Topological Study Of Sentence Embeddings
    Stephen Fitz · 2023 · Computation and Language · preprint, not peer reviewed · cited 6 times · AI summary available
    Abstract

    As Large Language Models are deployed within Artificial Intelligence systems, that are increasingly integrated with human society, it becomes more important than ever to study their internal structures. Higher level abilities of LLMs such as GPT-3.5 emerge in large part due to informative language representations they induce from raw text data during pre-training on trillions of words. These embeddings exist in vector spaces of several thousand dimensions, and their processing involves mapping between multiple vector spaces, with total number of parameters on the order of trillions. Furthermore, these language representations are induced by gradient optimization, resulting in a black box sys…

  4. Close Cites this paper
    Visualizing LLM Latent Space Geometry Through Dimensionality Reduction
    Alex Ning, Vainateya Rangaraju, Yen-Ling Kuo · 2025 · arXiv.org · preprint, not peer reviewed · cited 3 times · Not summarized yet
    Abstract

    Large language models (LLMs) achieve state-of-the-art results across many natural language tasks, but their internal mechanisms remain difficult to interpret. In this work, we extract, process, and visualize latent state geometries in Transformer-based language models through dimensionality reduction. We capture layerwise activations at multiple points within Transformer blocks and enable systematic analysis through Principal Component Analysis (PCA) and Uniform Manifold Approximation and Projection (UMAP). We demonstrate experiments on GPT-2 and LLaMa models, where we uncover interesting geometric patterns in latent space. Notably, we identify a clear separation between attention and MLP co…

  5. Close Cited by this paper
    On the Origins of Linear Representations in Large Language Models
    Yi-Bo Jiang, Goutham Rajendran, P. Ravikumar et al. · 2024 · International Conference on Machine Learning · cited 87 times · Not summarized yet
    Abstract

    Recent works have argued that high-level semantic concepts are encoded"linearly"in the representation space of large language models. In this work, we study the origins of such linear representations. To that end, we introduce a simple latent variable model to abstract and formalize the concept dynamics of the next token prediction. We use this formalism to show that the next token prediction objective (softmax with cross-entropy) and the implicit bias of gradient descent together promote the linear representation of concepts. Experiments show that linear representations emerge when learning from data matching the latent variable model, confirming that this simple structure already suffices …

  6. Close Cited by this paper
    The Linear Representation Hypothesis and the Geometry of Large Language Models
    Kiho Park, Yo Joong Choe, Victor Veitch · 2023 · International Conference on Machine Learning · cited 827 times · Not summarized yet
    Abstract

    Informally, the'linear representation hypothesis'is the idea that high-level concepts are represented linearly as directions in some representation space. In this paper, we address two closely related questions: What does"linear representation"actually mean? And, how do we make sense of geometric notions (e.g., cosine similarity or projection) in the representation space? To answer these, we use the language of counterfactuals to give two formalizations of"linear representation", one in the output (word) representation space, and one in the input (sentence) space. We then prove these connect to linear probing and model steering, respectively. To make sense of geometric notions, we use the fo…

  7. Close Cites this paper
    Large Language Models Encode Semantics and Alignment in Linearly Separable Representations
    Baturay Saglam, Paul Kassianik, Blaine Nelson et al. · 2025 · IJCNLP-AACL · cited 16 times · Not summarized yet
    Abstract

    Understanding the latent space geometry of large language models (LLMs) is key to interpreting their behavior and improving alignment. Yet it remains unclear to what extent LLMs linearly organize representations related to semantic understanding. To explore this, we conduct a large-scale empirical study of hidden representations in 11 autoregressive models across six scientific topics. We find that high-level semantic information consistently resides in low-dimensional subspaces that form linearly separable representations across domains. This separability becomes more pronounced in deeper layers and under prompts that elicit structured reasoning or alignment behavior$\unicode{x2013}$even wh…

  8. Close Cites this paper
    Functional Subspace, where language models can use vector algebra to solve problems
    J. H. Lee, Sujith Vijayan · 2026 · Not summarized yet
    Abstract

    Large language models (LLMs) were invented for natural language tasks such as translation, but they have proved that they can perform highly complex functions across domains. Additionally, they have been thought to develop new skills without being trained on them. These learning capabilities lead to LLMs adoption in a wide range of domains. Thus, it is imperative that we understand their operating mechanisms and limitations for proper diagnostics and repair. The earlier studies proposed that high level concepts are encoded as linear directions in LLMs activation space and that the geometry of embeddings have semantic meanings. Inspired by these studies, we hypothesize that LLMs may use subsp…

Prior work it builds on

  1. Close
    Language Models Represent Space and Time
    Wes Gurnee, Max Tegmark · 2023 · Machine Learning · cited 421 times · AI summary available
    Abstract

    The capabilities of large language models (LLMs) have sparked debate over whether such systems just learn an enormous collection of superficial statistics or a coherent model of the data generating process -- a world model. We find evidence for the latter by analyzing the learned representations of three spatial datasets (world, US, NYC places) and three temporal datasets (historical figures, artworks, news headlines) in the Llama-2 family of models. We discover that LLMs learn linear representations of space and time across multiple scales. These representations are robust to prompting variations and unified across different entity types (e.g. cities and landmarks). In addition, we identify…

  2. Related Used in depth by this paper
    Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 small
    Kevin Wang, Alexandre Variengien, Arthur Conmy et al. · 2022 · Machine Learning · cited 1,418 times · AI summary available
    Abstract

    Research in mechanistic interpretability seeks to explain behaviors of machine learning models in terms of their internal components. However, most previous work either focuses on simple behaviors in small models, or describes complicated behaviors in larger models with broad strokes. In this work, we bridge this gap by presenting an explanation for how GPT-2 small performs a natural language task called indirect object identification (IOI). Our explanation encompasses 26 attention heads grouped into 7 main classes, which we discovered using a combination of interpretability approaches relying on causal interventions. To our knowledge, this investigation is the largest end-to-end attempt at …

  3. Related Used in depth by this paper
    How does GPT-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language model
    Michael Hanna, Ollie Liu, Alexandre Variengien · 2023 · Neural Information Processing Systems · cited 260 times · Not summarized yet
    Abstract

    Pre-trained language models can be surprisingly adept at tasks they were not explicitly trained on, but how they implement these capabilities is poorly understood. In this paper, we investigate the basic mathematical abilities often acquired by pre-trained language models. Concretely, we use mechanistic interpretability techniques to explain the (limited) mathematical abilities of GPT-2 small. As a case study, we examine its ability to take in sentences such as"The war lasted from the year 1732 to the year 17", and predict valid two-digit end years (years>32). We first identify a circuit, a small subset of GPT-2 small's computational graph that computes this task's output. Then, we explain t…

  4. Related Cites this paper
    Transformers represent belief state geometry in their residual stream
    A. Shai, Sarah E. Marzen, Lucas Teixeira et al. · 2024 · Neural Information Processing Systems · cited 93 times · Not summarized yet
    Abstract

    What computational structure are we building into large language models when we train them on next-token prediction? Here, we present evidence that this structure is given by the meta-dynamics of belief updating over hidden states of the data-generating process. Leveraging the theory of optimal prediction, we anticipate and then find that belief states are linearly represented in the residual stream of transformers, even in cases where the predicted belief state geometry has highly nontrivial fractal structure. We investigate cases where the belief state geometry is represented in the final residual stream or distributed across the residual streams of multiple layers, providing a framework t…

  5. Related
    The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasets
    Samuel Marks, Max Tegmark · 2023 · Artificial Intelligence · preprint, not peer reviewed · cited 844 times · AI summary available
    Abstract

    Large Language Models (LLMs) have impressive capabilities, but are also prone to outputting falsehoods. Recent work has developed techniques for inferring whether a LLM is telling the truth by training probes on the LLM's internal activations. However, this line of work is controversial, with some authors pointing out failures of these probes to generalize in basic ways, among other conceptual issues. In this work, we curate high-quality datasets of true/false statements and use them to study in detail the structure of LLM representations of truth, drawing on three lines of evidence: 1. Visualizations of LLM true/false statement representations, which reveal clear linear structure. 2. Transf…

Papers that cite it

  1. Close Uses this paper in depth
    Spokes, not a Ring: Revisiting the Weekday Manifold in Language Models
    Diksha Gupta, Rieke Fruengel, S. Heimersheim · 2026 · Not summarized yet
    Abstract

    Recent work has hypothesised that large language models may represent some concepts as multi-dimensional manifolds instead of single directions. Using these manifolds to interpret or steer representations often assumes that moving along them corresponds to a continuous change in the represented concept. In this work, we test this continuous manifold assumption on the prototypical weekday manifold. Despite its striking circular geometry, we find that the weekday representations behave more like seven discrete states arranged in a circle than a continuous ring. First, we show that local sensitivity has seven minima aligned with the weekdays, producing a step-like mapping between representation…

  2. Close
    Analyze Feature Flow to Enhance Interpretation and Steering in Language Models
    Daniil Laptev, Nikita Balagansky, Yaroslav Aksenov et al. · 2025 · International Conference on Machine Learning · cited 13 times · Not summarized yet
    Abstract

    We introduce a new approach to systematically map features discovered by sparse autoencoder across consecutive layers of large language models, extending earlier work that examined inter-layer feature links. By using a data-free cosine similarity technique, we trace how specific features persist, transform, or first appear at each stage. This method yields granular flow graphs of feature evolution, enabling fine-grained interpretability and mechanistic insights into model computations. Crucially, we demonstrate how these cross-layer feature maps facilitate direct steering of model behavior by amplifying or suppressing chosen features, achieving targeted thematic control in text generation. T…

  3. Close
    Persistent Topological Features in Large Language Models
    Yuri Gardinazzi, Giada Panerai, Karthik Viswanathan et al. · 2024 · International Conference on Machine Learning · cited 17 times · Not summarized yet
    Abstract

    Understanding the decision-making processes of large language models is critical given their widespread applications. To achieve this, we aim to connect a formal mathematical framework - zigzag persistence from topological data analysis - with practical and easily applicable algorithms. Zigzag persistence is particularly effective for characterizing data as it dynamically transforms across model layers. Within this framework, we introduce topological descriptors that measure how topological features, $p$-dimensional holes, persist and evolve throughout the layers. Unlike methods that assess each layer individually and then aggregate the results, our approach directly tracks the full evolutio…

  4. Close
    Convergent Evolution: How Different Language Models Learn Similar Number Representations
    Deqing Fu, Tian-Yi Zhou, Mikhail Belkin et al. · 2026 · arXiv.org · preprint, not peer reviewed · cited 6 times · Not summarized yet
    Abstract

    Language models trained on natural text learn to represent numbers using periodic features with dominant periods at $T=2, 5, 10$. In this paper, we identify a two-tiered hierarchy of these features: while Transformers, Linear RNNs, LSTMs, and classical word embeddings trained in different ways all learn features that have period-$T$ spikes in the Fourier domain, only some learn geometrically separable features that can be used to linearly classify a number mod-$T$. To explain this incongruity, we prove that Fourier domain sparsity is necessary but not sufficient for mod-$T$ geometric separability. Empirically, we investigate when model training yields geometrically separable features, findin…

  5. Close
    A Unifying Perspective on Language Model Representations: From Filler-Role Structure to Mechanistic Interpretability
    Enshang Zhang, R. Thomas McCoy · 2026 · cited 1 time · Not summarized yet
    Abstract

    A wide range of methods have been proposed for interpreting language models, delivering important insights into their inner workings. However, different methods and their resulting insights stand in relative isolation: what could the underlying structure of language models be, such that they give rise to all our interpretations? In this work, we propose using Tensor Product Representations (TPRs) as a unifying hypothesis. TPRs give a concrete proposal for how compositional structure could be represented in vector space --- as filler-role bindings. We show, both mathematically and empirically, that TPRs can unify several prior interpretability methods: additive analogies, linear probing, spar…

How are these papers found?

We compare the title and abstract of this paper with those of every paper summarized on this site, and with the papers Semantic Scholar recommends, those it cites and those citing it (for a much-cited paper, its most recent citations and, from OpenAlex, the most cited ones). Among the prior work and the follow-ups, the papers that use each other in depth, a method it uses and the much-cited follow-ups come a little higher. The levels (very close, close, related) come from the similarity of the texts, not from a judgment of quality; * marks a paper without an abstract, compared by its title. The sentence under a paper is written by an AI from the two abstracts: check it in the papers. A paper marked not relevant by three readers leaves the list.

Updated on 31 October 2026.

The illustrated guide to the papers around a paper