Not All Language Model Features Are Linear

Joshua Engels, Isaac Liao, Eric J. Michaud, Wes Gurnee, Max Tegmark · DOI

Introduction

A cornerstone of mechanistic interpretability is the Linear Representation Hypothesis (LRH), which suggests that Large Language Models (LLMs) represent concepts as one-dimensional vectors in their internal activation space. Under this paradigm, a feature like "Monday" is simply a specific direction. However, many human concepts are inherently structured or periodic. This research investigates whether LLMs move beyond simple linearity to employ multi-dimensional, irreducible representations for such concepts.

The Geometry of Periodic Concepts

By analyzing models like GPT-2, Mistral 7B, and Llama 3 8B, researchers discovered that periodic concepts—such as days of the week, months of the year, and years of the century—are represented as circular manifolds rather than independent linear vectors.

PCA visualizations of internal activations for periodic concepts. Days of the week form a heptagon, while months and years follow similar circular trajectories.

As shown in the figure above, when projecting the activations of these features onto their principal components, clear geometric structures emerge. In Mistral and Llama 3, the "day of the week" feature forms a nearly perfect heptagon. This suggests that the model has internalized the modular nature of time, where the end of a sequence (Sunday) naturally leads back to the beginning (Monday).

Identifying Irreducible Features

To move beyond manual discovery, the authors developed a framework to identify "irreducible" multi-dimensional features. They define a feature as irreducible if it cannot be decomposed into independent linear parts.

The researchers utilized Sparse Autoencoders (SAEs)—tools typically used to find 1D features—to "auto-discover" these structures. While SAEs are designed to find lines, they "struggle" with circles by assigning multiple vectors to approximate the curve. By clustering these related SAE dictionary elements, the researchers could identify complex manifolds.

Scatter plot showing the irreducibility metrics for various clusters. The periodic features (days, months, years) are notable outliers, indicating high irreducibility.

The statistical analysis of these clusters reveals that features like "days" and "months" occupy a unique space in the model's representational landscape. They exhibit high scores in irreducibility metrics, distinguishing them from the vast majority of simpler, linear features found by the SAE.

Causal Significance and Continuous Time

These geometric structures are not merely descriptive artifacts; they are computationally functional. Through subspace patching, the researchers demonstrated that intervening specifically on the 2D circular subspace is sufficient to recover the model's performance on modular arithmetic tasks (e.g., "Two days after Monday is...").

Furthermore, the models appear to treat time as a continuum. When prompted with nuanced temporal markers like "very early Monday," internal activations shift to a position on the circle between Sunday and Monday. This indicates that the model has learned a smooth, geometric representation of time that supports sophisticated reasoning beyond simple one-hot encoding.

Conclusion

The discovery of circular features provides a significant challenge to the strict Linear Representation Hypothesis. It suggests that for certain tasks—particularly those involving modular arithmetic or temporal sequences—LLMs utilize multi-dimensional manifolds as fundamental units of computation. Future work in interpretability must account for these higher-dimensional structures to fully decode the "black box" of neural networks.

Summary updated

BibTeX
@inproceedings{engels2025not,
  author = {Joshua Engels and Isaac Liao and Eric J. Michaud and Wes Gurnee and Max Tegmark},
  title = {{Not All Language Model Features Are Linear}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=d63a4AM4hb},
}
Figure