Attribution-Guided Distillation of Matryoshka Sparse Autoencoders
Cristina P. Martin-Linares, Jonathan P. Ling
TL;DR
This work tackles interpretability and transferability challenges in sparse autoencoders by introducing Distilled Matryoshka Sparse Autoencoders (DMSAEs), an attribution-guided distillation framework that iteratively trains Matryoshka SAEs and selects a compact core of high-value latent features. By transferring and freezing only the core encoder directions across cycles and scoring latents via gradient × activation with respect to the next-token loss, DMSAEs produce a stable, reusable core (e.g., 197 latents) that improves SAEBench metrics on Gemma-2-2B activations. The method demonstrates that consistent latent features can be transferred across sparsity levels, offering a practical route toward reproducible, monosemantic feature discovery, albeit at higher computational cost due to multi-cycle distillation. Future work aims to reduce distillation overhead and extend the approach to other architectures and domains, enabling more robust interpretability pipelines for large-scale models.
Abstract
Sparse autoencoders (SAEs) aim to disentangle model activations into monosemantic, human-interpretable features. In practice, learned features are often redundant and vary across training runs and sparsity levels, which makes interpretations difficult to transfer and reuse. We introduce Distilled Matryoshka Sparse Autoencoders (DMSAEs), a training pipeline that distills a compact core of consistently useful features and reuses it to train new SAEs. DMSAEs run an iterative distillation cycle: train a Matryoshka SAE with a shared core, use gradient X activation to measure each feature's contribution to next-token loss in the most nested reconstruction, and keep only the smallest subset that explains a fixed fraction of the attribution. Only the core encoder weight vectors are transferred across cycles; the core decoder and all non-core latents are reinitialized each time. On Gemma-2-2B layer 12 residual stream activations, seven cycles of distillation (500M tokens, 65k width) yielded a distilled core of 197 features that were repeatedly selected. Training using this distilled core improves several SAEBench metrics and demonstrates that consistent sets of latent features can be transferred across sparsity levels
