atlas

Research map / Learning theory and algorithms / Kernels and regression theory

Interpretability Illusions in the Generalization of Simplified Models

ICML 2024 · Learning theory and algorithms › Kernels and regression theory · approach: Empirical generalization measures · 1 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.

Shows that simplified proxies (SVD, clustering, one-hot attention) of small Transformers match the original models in-distribution but diverge out-of-distribution on Dyck and code-completion generalization splits.

Problem

Simplified model representations used for mechanistic interpretability are typically validated only in-distribution; it is unclear whether they remain faithful to the original model on out-of-distribution generalization splits.

Approach

Construct explicit simplified proxy models (SVD dimensionality reduction, k-means clustering of keys/queries, one-hot attention) and measure their prediction and attention agreement with the original model across systematic generalization splits, revealing consistent generalization gaps in both directions.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Reduce second-layer key and query embeddings with SVD or clustering (ablation)Dyck Transformer · Dyck, unseen structuresprediction similarity to the original modelHurt
Reduce second-layer key and query embeddings with SVD or clustering (ablation)Dyck Transformer · Dyck, Seen structprediction similarity to the original modelNo clear effect
Replace second-layer soft attention with one-hot attention (ablation)Dyck Transformer · Dyck, unseen depthaccuracyHelped
Replace second-layer soft attention with one-hot attention (ablation)Dyck Transformer · Dyck generalization splits other than unseen depthapproximation qualityNo clear effect
Reduce key and query embeddings using SVD (ablation)CodeSearchNet Transformer · Unseen programming languagesprediction similarity to the original modelHurt
Reduce key and query embeddings using SVD (ablation)CodeSearchNet Transformer · Java, unseen depthprediction similarity to the original modelNo clear effect
Simplify the fourth head of the fourth layer with rank-16 SVD (ablation)CodeSearchNet Transformer · Repeated word, Java versus unseen languagesprediction similarity to the original model: 75% on in-domain samples; 61% on samples from unseen languagesHurt
Reduce key and query embeddings with SVD (ablation)CodeSearchNet Transformer · Repeated word predictions versus whitespace and keywordsprediction similarity to the original modelMixed

Surprising findings

Limitations

Experimental setup

Datasets: Dyck-(20,10) synthetic sentences CodeSearchNet

Benchmarks: Dyck generalization splits (Seen struct, Unseen struct, Unseen depth) CodeSearchNet (Java, Java unseen depth, JavaScript, PHP, Go)

Metrics: Jensen-Shannon divergence of attention same prediction rate bracket-matching accuracy next-character accuracy

Baselines: original (unsimplified) Transformer in-distribution evaluation (Seen struct / Java)

Builds on: Transformer induction heads Dyck language expressivity work

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