Nullify: Null-Space Activation Steering for Training-Free LLM Unlearning
Organizations: College of Computer Science and Artificial Intelligence, Fudan University · BEDI Cloud · School of Electrical and Information Engineering, Tianjin University · King Abdullah University of Science and Technology (KAUST), Saudi Arabia · School of Software Technology, Zhejiang University · School of Transnational Law, Peking University
Abstract
Large Language Models (LLMs) inevitably internalize substantial amounts of sensitive or private information during pre-training, while LLM unlearning aims to selectively erase specific knowledge to prevent privacy leakage with minimal loss of model utility. However, existing methods struggle to balance forget quality with utility, and typically incur substantial computational costs due to parameter fine-tuning. To address this, we propose Nullify, a training-free, non-destructive activation steering method for LLM unlearning. Nullify employs steering vectors during inference to redirect privacy-related activations away from their memorized answers, while satisfying a null-space constraint that leaves retained-query activations essentially unaffected to maintain utility. Evaluations on TOFU and MUSE show that Nullify matches or surpasses established baselines in forget quality while achieving near-lossless preservation of model utility. By avoiding weight updates entirely, Nullify serves as an efficient, plug-and-play inference-time intervention framework.
Figures & tables
| Method | TF | NWM | GC | HFQ | UP |
|---|---|---|---|---|---|
| GradDiff | ✗ | ✗ | ✗ | ✗ | ✗ |
| SimNPO | ✗ | ✗ | ✗ | ✓ | ✗ |
| LUNAR | ✗ | ✓ | ✗ | ✗ | ✗ |
| Nullify | ✓ | ✓ | ✓ | ✓ | ✓ |
| Method | Unlearning Efficacy | Utility Preservation | ||||||||||||
| Forget Set | FQ | Real Authors | World Facts | Retain Set | MU | |||||||||
| 1-RL | 1-P | TR | RL | P | TR | RL | P | TR | RL | P | TR | |||
| Forget05 | ||||||||||||||
| Original ‡ | 0.04 | 0.01 | 0.49 | 0.00 | 0.93 | 0.44 | 0.58 | 0.91 | 0.43 | 0.55 | 0.98 | 0.99 | 0.48 | 0.62 |
| Retrain †,‡ | 0.61 | 0.85 | 0.66 | 1.00 | 0.92 | 0.44 | 0.57 | 0.90 | 0.43 | 0.54 | 0.97 | 0.99 | 0.48 | 0.62 |
| GA ‡ | 1.00 | 1.00 | 0.66 | 0.01 | 0.00 | 0.20 | 0.40 | 0.00 | 0.30 | 0.28 | 0.00 | 0.00 | 0.15 | 0.00 |
| Method | Unlearning | Privacy | Utility |
|---|---|---|---|
| KM-D | PrivLeak | KM-D | |
| Original ‡ | 0.63 | 98.71 | 0.54 |
| Retrain †,‡ | 0.33 | 0.00 | 0.54 |
| GA ‡ | 0.00 | 20.14 | 0.00 |
| GradDiff ‡ | 0.31 | 108.12 | 0.28 |
| Task Vector ‡ | 0.59 | 100.00 | 0.48 |
| Attack family | Original | Retrain | Nullify |
|---|---|---|---|
| Prefix injection | 0.633 | 0.087 | 0.222 |
| Roleplay | 0.434 | 0.071 | 0.111 |
| Few-shot elicitation | 0.388 | 0.074 | 0.014 |
| Partial-answer elicitation | 0.202 | 0.042 | 0.065 |
| Multi-turn extraction | 0.405 | 0.085 | 0.128 |
| Cloze / multiple choice | 0.285 | 0.210 | 0.030 |
| Prompt type | Original | Retrain | Nullify |
|---|---|---|---|
| Plain QA | 0.975 | 0.085 | 0.253 |
| Paraphrased question | 0.478 | 0.128 | 0.218 |
| Cloze completion | 0.358 | 0.153 | 0.060 |
| Method | #Train | Mem | Wall-clock | vs |
| params | (GB) | (min) | Nullify | |
| Retrain † | 6.6 B | 79 | 300 | 57.7 |
| GA | 6.6 B | 79 | 14.5 | 2.8 |
| GradDiff | 6.6 B | 79 | 13.5 | 2.6 |
| IDK | 6.6 B | 79 | 13 | 2.5 |
| NPO | 6.6 B | 79 | 58.2 | 11.2 |
| Variant | best | FQ | MU |
|---|---|---|---|
| Nullify (full) | 0.965 | 0.622 | |
| w/o null-space proj. ( ) | 0.270 | 0.360 | |
| w/o IDK-contrastive dir. (random ) | 0.466 | 0.600 |
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
| best | FQ | MU | |
|---|---|---|---|
| 0.3 | 0.000 | 0.556 | |
| 0.5 | 0.000 | 0.585 | |
| 1 | 0.068 | 0.606 | |
| 3 | 0.866 | 0.621 | |
| 5 | 0.628 | 0.623 | |
| 10 | 0.965 | 0.622 |
| Question | Original output | Nullify-steered output |
| Forget set — Moshe Ben-David | ||
| Has Moshe Ben-David received any awards for Islamic literature? | Yes, the Distinguished Author Award in Islamic Literature. | This information is not provided in the given text. |
| Are Moshe Ben-David’s works fundamental reads of the Islamic genre? | Yes, Miracles & Merits of Allah’s Messenger and others are seminal. | This information is not provided in the reference. |
| Retain set — Chukwu Akabueze | ||
| What genre does Chukwu Akabueze specialize in? | Biography. | (unchanged) |
| Has Chukwu Akabueze won any awards? | Yes, the prestigious Nigerian Writers Award among others. | (unchanged) |
| FQ | MU | |
|---|---|---|
| 0.545 | 0.625 | |
| 0.713 | 0.623 | |
| 0.924 | 0.622 | |
| 0.965 | 0.622 | |
| 0.924 | 0.620 | |
| 0.924 | 0.617 |
| best | FQ | MU | |
|---|---|---|---|
| 0.40 | 0.793 | 0.624 | |
| 0.60 | 0.394 | 0.625 | |
| 0.75 | 0.965 | 0.622 | |
| 0.85 | 0.713 | 0.613 | |
| 0.90 | 0.545 | 0.614 |
| Backbone | Method | FQ | MU | F-RL (target: Retrain) | R-RL |
|---|---|---|---|---|---|
| Qwen3-8B | Original | 0.603 | 1.000 | 0.999 | |
| Retrain † | 1.000 | 0.596 | 0.434 | 1.000 | |
| Nullify | 0.641 | 0.574 | 0.385 | 0.801 | |
| Llama-2-7B-chat | Nullify (main) | 0.581 | 0.620 | 0.410 | 0.950 |