Model Directions, Not Words: Mechanistic Topic Models Using Sparse Autoencoders

Carolina Zheng, Nicolas Beltran-Velez, Sweta Karlekar, Claudia Shi, Achille Nazaret +3 more
7/31/2025
cs.CLcs.LG

No confident code implementation found for this paper.

Abstract

Traditional topic models are effective at uncovering latent themes in large text collections. However, due to their reliance on bag-of-words representations, they struggle to capture semantically abstract features. While some neural variants use richer representations, they are similarly constrained by expressing topics as word lists, which limits their ability to articulate complex topics. We introduce Mechanistic Topic Models (MTMs), a class of topic models that operate on interpretable features learned by sparse autoencoders (SAEs). By defining topics over this semantically rich space, MTMs can reveal deeper conceptual themes with expressive feature descriptions. Moreover, uniquely among topic models, MTMs enable controllable text generation using topic-based steering vectors. To properly evaluate MTM topics against word-list-based approaches, we propose \textit{topic judge}, an LLM-based pairwise comparison evaluation framework. Across five datasets, MTMs match or exceed traditional and neural baselines on coherence metrics, are consistently preferred by topic judge, and enable effective steering of LLM outputs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zheng2025model,
  title  = {Model Directions, Not Words: Mechanistic Topic Models Using Sparse Autoencoders},
  author = {Carolina Zheng and Nicolas Beltran-Velez and Sweta Karlekar and Claudia Shi and Achille Nazaret and Asif Mallik and Amir Feder and David M. Blei},
  year   = {2025},
  eprint = {2507.23220},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.23220v1}
}

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

Discussion