Understanding Sparse Autoencoder Dictionary Size for Unlearning and Mechanistic Interpretability in LLMs

Amartya Hatua, Filip Cano, Badri Narayan SubudhiarXiv 2026

TL;DR

When we want a Large Language Model (LLM) to selectively "forget" specific information without undergoing a digital lobotomy, Sparse Autoencoders (SAEs) act like microscopic scalpels that isolate and turn off targeted concepts. However, this paper reveals that making your scalpel finer—by increasing the SAE's dictionary size—only improves precision in larger models. Smaller models tangle their internal representations so tightly that even massive dictionaries fail to separate what should be forgotten from what should be kept.

What Problem Does This Paper Address?

LLMs are prodigious memorizers, which becomes a major headache when they absorb private data or falsehoods that later need to be removed. Machine unlearning aims to excise specific facts (the forget set) while leaving everything else intact (the retain set).

Directly tweaking model weights to achieve this is notoriously opaque and often causes collateral damage. Recently, researchers turned to Sparse Autoencoders (SAEs)—auxiliary networks trained to unpack a model's dense, messy hidden activations into a much larger, sparse set of human-interpretable "features." By finding the features that light up on unwanted data and suppressing them during inference, we get clean, interpretable unlearning.

Yet, two foundational design choices in SAE-guided unlearning are usually treated as arbitrary hyperparameters: how wide should the SAE dictionary be, and which layer of the LLM should we attach it to? If a dictionary is too small, unrelated concepts fuse together—a phenomenon called polysemanticity. If it's placed at the wrong layer, interventions fall flat. The authors systematically map out how these two choices govern the precision of machine unlearning across different model scales.

Methods

The authors evaluate four models spanning different parameter scales: GPT-2 Small (117M), Medium (345M), Large (774M), and Llama 3.2 (1B). After fine-tuning each model on target knowledge using LoRA, they train standard ReLU-based SAEs on every single layer across five dictionary sizes ($4\text{K}, 8\text{K}, 16\text{K}, 32\text{K},$ and $64\text{K}$ features), representing expansion factors from $2\times$ up to $85.3\times$ the hidden layer width.

Figure 1: SAE-Based Unlearning

What stands out here is the disciplined analytical sweep paired with a soft, contrast-guided intervention:

  1. Contrast Scoring: They pass both forget and retain examples through an SAE, computing each feature's contrast score—its average activation on forget data minus its average activation on retain data.
  2. Weighted Suppression: Instead of crudely zeroing out the top $K$ contrasting features during inference, they exponentially dampen each selected feature proportional to its normalized contrast score.
  3. Measuring Selectivity & Overlap: They evaluate success via Selectivity ($S_{\text{FR}}$)—the ratio of loss increase on the forget set to loss increase on the retain set (higher means surgical forgetting). To explain why selectivity changes, they measure the Jaccard overlap between features active on forget versus retain sets as a direct proxy for polysemanticity.

Datasets

The experiments rely on TOFU (Task of Fictitious Unlearning for LLMs), an existing benchmark composed of synthetic author biographies and question-answer pairs. No new datasets are introduced, and that choice is deliberate: because these authors are completely fictional and post-date the models' pretraining corpora, the researchers can introduce the knowledge strictly via controlled fine-tuning. This guarantees zero entanglement with pre-existing web knowledge, creating a clean, sterile lab environment to isolate SAE behavior.

Key Insights and Ideas

  • Wider SAEs only help if the host model is big enough: Scaling up an SAE's dictionary isn't a magic bullet. Larger models organize concepts into separable semantic structures that a wide SAE can pry apart. Smaller models compress information so tightly that features remain stubbornly tangled, rendering huge dictionaries useless.
  • Unlearning precision mirrors feature disentanglement: The unlearning results aren't a quirk of the suppression math; they directly track mechanistic interpretability metrics. When selectivity improves in larger models, it coincides with a sharp drop in feature overlap between forget and retain examples. You can only cleanly erase a memory if the model gave it its own room to begin with.
  • There is no universal "sweet spot" layer: While layer choice dramatically swings unlearning performance, no cross-model rule of thumb (like "always intervene in the middle layers") emerges. Layer placement remains strictly model- and task-dependent.

Key Results

Selectivity against dictionary expansion factor across model scales

Figure 2: Selectivity against dictionary expansion factor.
  • Scale-Dependent Selectivity: Moving from a $4\text{K}$ to a $64\text{K}$ dictionary boosts mean forget–retain selectivity dramatically in GPT-2 Large (jumping from $1.08$ to $5.52$) and Llama 1B (from $3.08$ to $6.06$). GPT-2 Medium sees a modest rise ($2.55$ to $3.48$), whereas GPT-2 Small actually degrades slightly from $2.34$ down to $2.03$.
  • Feature Overlap Drops at Scale: Looking at the top $2,048$ contrasting features, Jaccard overlap plummets as dictionaries grow from $4\text{K}$ to $64\text{K}$ in GPT-2 Large ($0.899 \rightarrow 0.468$), GPT-2 Medium ($0.972 \rightarrow 0.455$), and Llama 1B ($0.909 \rightarrow 0.739$, and $0.944 \rightarrow 0.331$ across all alive features). Meanwhile, GPT-2 Small stays virtually saturated near total overlap ($0.885 \rightarrow 0.995$), proving its features are deeply polysemantic.
Figure 3: Median selectivity by normalized layer; each point pools authors and dictionary sizes.
  • Layer Variability: Plotting median selectivity across normalized layer indices shows erratic, model-specific peaks—for instance, GPT-2 Large peaks sharply at its earliest layers, while Llama 1B peaks past the halfway mark around layer index $0.6$.

Limitations and Future Work

First, the authors note that suppressing SAE features at inference time is not permanent parameter deletion; if someone removes the SAE module from the forward pass, or uses clever adversarial prompting, the "forgotten" knowledge is still sitting right there in the weights. Committing these interventions permanently back into the base weights remains an open engineering step.

Additionally, while TOFU's synthetic setup is great for controlled science, real-world unlearning involves messy, overlapping facts and paraphrases. Future work will need to test whether these scaling trends hold up on noisier real-world benchmarks (such as MUSE, WMDP, and OpenUnlearning), across larger model families, and explore adaptive methods to automatically pick the optimal layer and dictionary size without training hundreds of SAEs from scratch.

Summary updated

BibTeX
@misc{hatua2026understanding,
  author = {Amartya Hatua and Filip Cano and Badri Narayan Subudhi},
  title = {{Understanding Sparse Autoencoder Dictionary Size for Unlearning and Mechanistic Interpretability in LLMs}},
  year = {2026},
  eprint = {2611.35253},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35253},
}
Figure