Towards Universality: Studying Mechanistic Similarity Across Language Model Architectures
Junxuan Wang, Xuyang Ge, Wentao Shu, Qiong Tang, Yunhua Zhou, Zhengfu He, Xipeng Qiu
TL;DR
This work tests the Universality hypothesis by comparing Transformer- and Mamba-based language models using Sparse Autoencoders to extract interpretable, architecture-agnostic features. It introduces the Max Pairwise Pearson Correlation (MPPC) as a measure of cross-architecture feature similarity and demonstrates substantial feature-level universality, with SAE-derived features showing strong cross-arch correspondence and depth-wise alignment. At the circuit level, the authors reveal that induction mechanisms in Mamba closely mirror Transformer induction circuits, while also identifying an Off-by-One motif unique to Mamba. The study highlights both the promise and limitations of SAE-based universality: features form a large, common basis across architectures, yet some complex or uninterpretable patterns remain challenging to align, underscoring the need for deeper, automated circuit analyses. Overall, the results support a broad notion of architectural universality in language-model interpretability, with SAEs providing a practical, interpretable lens for cross-architecture comparison and circuit-level insights.
Abstract
The hypothesis of Universality in interpretability suggests that different neural networks may converge to implement similar algorithms on similar tasks. In this work, we investigate two mainstream architectures for language modeling, namely Transformers and Mambas, to explore the extent of their mechanistic similarity. We propose to use Sparse Autoencoders (SAEs) to isolate interpretable features from these models and show that most features are similar in these two models. We also validate the correlation between feature similarity and Universality. We then delve into the circuit-level analysis of Mamba models and find that the induction circuits in Mamba are structurally analogous to those in Transformers. We also identify a nuanced difference we call \emph{Off-by-One motif}: The information of one token is written into the SSM state in its next position. Whilst interaction between tokens in Transformers does not exhibit such trend.
