atlas

Research map / Architectures and efficiency / Attention and transformers

Towards Universality: Studying Mechanistic Similarity Across Language Model Architectures

ICLR 2025 · Architectures and efficiency › Attention and transformers · approach: Attention head mechanisms · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Compares Pythia-160M Transformer and Mamba-130M via sparse autoencoder feature matching (max pairwise Pearson correlation) and circuit analysis of induction, finding high feature similarity and an "Off-by-One" motif where Mamba writes token info into SSM state at the next position.

Problem

Whether mechanistic findings (features and circuits) transfer across fundamentally different language model architectures, specifically Transformers versus Mamba (SSM) models, i.e. architectural universality.

Approach

Use sparse autoencoders trained on each model's residual stream to obtain architecture-agnostic feature bases, match features across Pythia and Mamba by max pairwise Pearson correlation, calibrate against neuron and seed-variant skylines, and then perform path-patching circuit analysis of induction in Mamba.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace the same-architecture Pythia seed variant with Mamba while matching SAE featuresPythia-160M SAE features · OpenWebTextMPPC: 0.76 -> 0.74Hurt
Train SAEs on a different seed of the same Pythia modelPythia-160M SAE features · OpenWebTextMPPC: 0.76 -> 0.81Helped
Patch the layer 17 SSM state at h_{A2-1}Mamba-130M induction circuit · Induction taskmean logit diff of token B: -9.65 (distance 8); -8.09 (distance 16); -8.73 (distance 32); -10.16 (distance 64); -8.44 (distance 128)Hurt
Patch the SSM input at B1+1Mamba-130M induction circuit · Induction taskmean logit diff of token B: -9.69 (distance 8); -11.25 (distance 16); -16.84 (distance 32); -10.64 (distance 64); -9.13 (distance 128)Hurt
Patch x at B1 in layer 17 with corrupted B inputMamba-130M induction circuit · Induction taskmean logit diff of token B: -9.11 (distance 8); -15.17 (distance 16); -13.95 (distance 32); -13.71 (distance 64); -9.5 (distance 128)Hurt
Patch x at A1 in layer 17 with corrupted A inputMamba-130M induction circuit · Induction taskmean logit diff of token B: -8.27 (distance 8); -9.44 (distance 16); -11.35 (distance 32); -9.07 (distance 64); -8.96 (distance 128)Hurt
Use Mamba's local convolution to write token information into the SSM state at the next positionMamba-130M induction circuit · Induction taskinduction circuit information flowHelped

Surprising findings

Limitations

Experimental setup

Datasets: The Pile OpenWebText

Benchmarks: OpenWebText feature activations Induction circuit path patching IOI task

Metrics: Max Pairwise Pearson Correlation (MPPC) logit difference monosemanticity score complexity score

Baselines: Neuron baseline Model seed variant skyline SAE seed variant skyline RWKV-169M

Builds on: Sparse autoencoders Pythia Mamba Path patching Universal neurons

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy