Quantifying Feature Space Universality Across Large Language Models via Sparse Autoencoders

Michael Lan, Philip Torr, Austin Meek, Ashkan Khakzar, David Krueger +1 more
10/9/2024
28 citations
cs.LGcs.AIcs.CL

Official code: wlg1/univ_feat_geom (6 stars, Jupyter Notebook, last commit 2025-03-23).

Abstract

The Universality Hypothesis in large language models (LLMs) claims that different models converge towards similar concept representations in their latent spaces. Providing evidence for this hypothesis would enable researchers to exploit universal properties, facilitating the generalization of mechanistic interpretability techniques across models.

Show full abstract

Previous works studied if LLMs learned the same features, which are internal representations that activate on specific concepts. Since comparing features across LLMs is challenging due to polysemanticity, in which LLM neurons often correspond to multiple unrelated features rather than to distinct concepts, sparse autoencoders (SAEs) have been employed to disentangle LLM neurons into SAE features corresponding to distinct concepts. In this paper, we introduce a new variation of the universality hypothesis called Analogous Feature Universality: we hypothesize that even if SAEs across different models learn different feature representations, the spaces spanned by SAE features are similar, such that one SAE space is similar to another SAE space under rotation-invariant transformations. Evidence for this hypothesis would imply that interpretability techniques related to latent spaces, such as steering vectors, may be transferred across models via certain transformations. To investigate this hypothesis, we first pair SAE features across different models via activation correlation, and then measure spatial relation similarities between paired features via representational similarity measures, which transform spaces into representations that reveal hidden relational similarities. Our experiments demonstrate high similarities for SAE feature spaces across various LLMs, providing evidence for feature space universality.

View on arXivView PDF

Code Implementations(1)

Measuring the extent of feature subspace similarity across large language models

62Jupyter Notebook, PythonJul 19, 20241 years ago

Similar Papers

Cite this paper

@article{lan2024quantifying,
  title  = {Quantifying Feature Space Universality Across Large Language Models via Sparse Autoencoders},
  author = {Michael Lan and Philip Torr and Austin Meek and Ashkan Khakzar and David Krueger and Fazl Barez},
  year   = {2024},
  eprint = {2410.06981},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.06981v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.06981.svg)](https://codeofpaper.com/paper/2410.06981)

Discussion