Applying sparse autoencoders to unlearn knowledge in language models
Eoin Farrell, Yeu-Tong Lau, Arthur Conmy
TL;DR
This work investigates using sparse autoencoders (SAEs) to perform interpretable unlearning of hazardous knowledge in language models. By training SAEs on OpenWebText and intervening through negative clamping of selected residual-stream features, the study evaluates unlearning on the WMDP-bio subset using two Gemma models, comparing against RMU fine-tuning. Results show that individual bio-related SAE features can reduce WMDP-bio accuracy with minimal collateral damage, but zero ablation is ineffective and multi-feature interventions introduce comparable or larger side-effects than RMU; overall, SAE-based unlearning currently underperforms fine-tuning-based approaches. The findings highlight the potential and limitations of SAE-based unlearning and point to future work on SAE quality, feature width, and cross-layer dynamics to achieve stronger, more reliable knowledge removal. The work contributes toward more transparent, verifiable mechanisms for content-filtering in language models.
Abstract
We investigate whether sparse autoencoders (SAEs) can be used to remove knowledge from language models. We use the biology subset of the Weapons of Mass Destruction Proxy dataset and test on the gemma-2b-it and gemma-2-2b-it language models. We demonstrate that individual interpretable biology-related SAE features can be used to unlearn a subset of WMDP-Bio questions with minimal side-effects in domains other than biology. Our results suggest that negative scaling of feature activations is necessary and that zero ablating features is ineffective. We find that intervening using multiple SAE features simultaneously can unlearn multiple different topics, but with similar or larger unwanted side-effects than the existing Representation Misdirection for Unlearning technique. Current SAE quality or intervention techniques would need to improve to make SAE-based unlearning comparable to the existing fine-tuning based techniques.
