Decomposing Representation Space into Interpretable Subspaces with Unsupervised Learning

Xinting Huang, Michael Hahn
8/3/2025
cs.LGcs.AIcs.CL

No official code found. Best implementation: huangxt39/SubspacePartition (7 stars, last commit 2025-08-05). 1 more below.

Abstract

Understanding internal representations of neural models is a core interest of mechanistic interpretability. Due to its large dimensionality, the representation space can encode various aspects about inputs. To what extent are different aspects organized and encoded in separate subspaces? Is it possible to find these ``natural'' subspaces in a purely unsupervised way? Somewhat surprisingly, we can indeed achieve this and find interpretable subspaces by a seemingly unrelated training objective. Our method, neighbor distance minimization (NDM), learns non-basis-aligned subspaces in an unsupervised manner. Qualitative analysis shows subspaces are interpretable in many cases, and encoded information in obtained subspaces tends to share the same abstract concept across different inputs, making such subspaces similar to ``variables'' used by the model. We also conduct quantitative experiments using known circuits in GPT-2; results show a strong connection between subspaces and circuit variables. We also provide evidence showing scalability to 2B models by finding separate subspaces mediating context and parametric knowledge routing. Viewed more broadly, our findings offer a new perspective on understanding model internals and building circuits.

View on arXivView PDF

Code Implementations(2)

ICLR'26 Decomposing Representation Space into Interpretable Subspaces with Unsupervised Learning

72PythonJul 31, 20251 years ago

This is a reproduction of the Huang & Hahn "Decomposing Representation Space into Interpretable Subspaces with Unsupervised Learning" paper (https://arxiv.org/abs/2508.01916).

00Jupyter NotebookJan 15, 20269 months ago

Cite this paper

@article{huang2025decomposing,
  title  = {Decomposing Representation Space into Interpretable Subspaces with Unsupervised Learning},
  author = {Xinting Huang and Michael Hahn},
  year   = {2025},
  eprint = {2508.01916},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2508.01916v1}
}

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/2508.01916.svg)](https://codeofpaper.com/paper/2508.01916)

Discussion