SAEs $\textit{Can}$ Improve Unlearning: Dynamic Sparse Autoencoder Guardrails for Precision Unlearning in LLMs
Preprint
Abstract
Machine unlearning is a promising approach to improve LLM safety by removing unwanted knowledge from the model. However, prevailing gradient-based unlearning methods suffer from issues such as high computational costs, hyperparameter instability, poor sequential unlearning capability, vulnerability to relearning attacks, low data efficiency, and lack of interpretability. While Sparse Autoencoders are well-suited to improve these aspects by enabling targeted activation-based unlearning, prior approaches underperform gradient-based methods. This work demonstrates that, contrary to these earlier findings, SAEs can significantly improve unlearning when employed dynamically. We introduce $\textbf{Dynamic DAE Guardrails}$ (DSG), a novel method for precision unlearning that leverages principled feature selection and a dynamic classifier. Our experiments show DSG substantially outperforms leading unlearning methods, achieving superior forget-utility trade-offs. DSG addresses key drawbacks of gradient-based approaches for unlearning -- offering enhanced computational efficiency and stability, robust performance in sequential unlearning, stronger resistance to relearning attacks, better data efficiency including zero-shot settings, and more interpretable unlearning.
Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- Position: LLM Unlearning Benchmarks are Weak Measures of Progress2025
- Rethinking machine unlearning for large language modelsNature Machine Intelligence, 2025
- Unlearning as multi-task optimization: A normalized gradient difference approach with an adaptive learning rate2025
- Machine Unlearning: Solutions and ChallengesIEEE Transactions on Emerging Topics in Computational Intelligence, 2024
- Gemma Scope: Open Sparse Autoencoders Everywhere All At Once on Gemma 22024
- Machine Unlearning of Pre-trained Large Language Models2024
- Direct Preference Optimization: Your Language Model is Secretly a Reward Model2023
- LIMA: Less Is More for Alignment2023
- Towards Unbounded Machine Unlearning2023
- Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena2023