Skip to content

Nullify: A Training-Free Null-Space Activation Steering Method for LLM ForgettingNullify: Null-Space Activation Steering for Training-Free LLM Unlearning

arXiv: Interpretability· arXiv:2610.10655· Conference on Empirical Methods in Natural Language Processing 2026· Wei Zhai, Xiang Liu, Qiang Huang, Rui Qian, Lemao Liu, Ziwei Li, Ziqi Wang, Zhitao Huang, Dejing Dou·Indexed by this site · 2026-10-09· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

Nullify performs training-free forgetting on Llama-2-7B-chat-hf, with FQ 0.58 and MU 0.62 on TOFU forget10.

Questions
Targeted memory and general capability are entangled in the same set of weights, so gradient-based forgetting hurts utility at the same time, and retraining from scratch is infeasible. The authors argue that if the intervention is placed in a subspace orthogonal to the retained activations, the two need not be traded off against each other.
Methods
Nullify freezes the base model and computes each layer's operator in closed form from a single forward pass of activations. The forget direction is the difference between the memorized answer and the IDK abstention activation; the null-space projection makes the correction zero on retain queries. At inference time it adds a correction with negative strength, with no trainable parameters.
Experiments and results
On Llama-2-7B-chat-hf TOFU forget10, Nullify FQ 0.58, MU 0.62, same as Retrain. MUSE-News PrivLeak −5.18. forget05 FQ 0.96, SimNPO 0.99.
Limitations and future work
The authors note: suppression exists only while the operator is active and does not permanently change weights; adaptive attacks and white-box settings where the operator can be inspected, modified, or disabled are out of scope; layers and strength are selected per benchmark. Experiments include Llama-2-7B-chat-hf and Qwen3-8B; MUSE-News does not state the base model.
Experimental setupLlama-2-7B-chat-hf、Qwen3-8B · TOFU、MUSE-News · FQ、MU et al.
Evaluated models
Llama-2-7B-chat-hfQwen3-8B
Benchmarks
TOFUMUSE-News
Metrics
FQMUPrivLeakKM-DfKM-Drexact-span leakage
AI summaryNullify is a training-free, non-destructive activation steering method for LLM unlearning: at inference time it uses a steering vector to redirect privacy-related activations away from the model's memorized answers, while satisfying a null-space constraint so that activations for retain queries are largely unaffected. On TOFU and MUSE, Nullify's unlearning quality reaches or exceeds existing baselines, and preserves model utility nearly losslessly; since it performs no weight updates at all, it can serve as a plug-and-play inference-time intervention framework.

Nullify is a training-free, non-destructive activation steering method for LLM unlearning: at inference time it uses a steering vector to redirect privacy-related activations away from the model's memorized answers, while satisfying a null-space constraint so that activations for retain queries are largely unaffected. On TOFU and MUSE, Nullify's unlearning quality reaches or exceeds existing baselines, and preserves model utility nearly losslessly; since it performs no weight updates at all, it can serve as a plug-and-play inference-time intervention framework.

Related events and news

1 events · 0 news mentions

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Nullify uses inference-time activation steering with a null-space constraint for training-free unlearning; the authors argue this can disentangle the opposition between forgetting and utility.

    How to erase specified memories without updating weights, and make corrections on retained queries vanish by construction.

    • Scenario: The authors state that pretraining internalizes sensitive, copyrighted, or harmful data. GDPR recognizes a right to erasure under certain conditions, and the EU AI Act increases compliance pressure; retraining from scratch for each request is economically infeasible, so selectively eliminating specific memories is needed (introduction).
    • Shortcomings of existing approaches: GA, GradDiff, and NPO, SimNPO backpropagate gradients into the weights. The authors state that forgetting and retention share parameters, so suppressing target memories perturbs retained representations, trading forgetting for capability degradation, excessive refusal, and confabulation. RMU and LUNAR still update the base model or train auxiliary parameters, with retention relying on a soft loss rather than a construction guarantee. In Table 1, these methods are not simultaneously marked as training-free, not modifying base weights, geometrically constrained, and utility-preserving.
    • Authors' observation: The authors argue this opposition comes from operating in parameter space, not from forgetting itself. If instead one intervenes in activation space, with corrections restricted to a subspace orthogonal to retained knowledge representations, memory suppression is done by the intervention, while retained queries are unaffected because the intervention has no effect on them.
    • Setting: The model has been fine-tuned on a corpus containing the forget set Df. Df is the question-answer pairs that must be erased; Dk is the union of the retain split and held-out general utility prompts, which should be unaffected.
    • Method: They propose Nullify, an inference-time activation steering that changes no weights and adds no trainable parameters. The steering pushes activations of forget queries away from memory answers; the null-space constraint leaves activations of retained queries essentially unchanged.
  2. What related research exists?

    The authors state that this work is simultaneously training-free and weight-preserving, and uses a null-space construction to guarantee retained queries are unaffected.

    Exact unlearning vs. approximate unlearning via weight modification

    • Retraining from scratch: Retraining on the retain set is called the gold standard by the authors (Bourtoule et al., 2021), but it depends on the full training corpus and is impractical at LLM scale (Kurmanji et al., 2023; Thudi et al., 2022).
    • Approximate unlearning in parameter space: GA (Jang et al., 2023) and GradDiff (Liu et al., 2022) maximize the forget-set loss or contrast with retain gradients; DPO (Rafailov et al., 2023), NPO (Zhang et al., 2024), SimNPO (Fan et al., 2025) frame unlearning as alignment away from memorized answers; task vectors subtract task deltas in parameter space (Ilharco et al., 2023). The authors state this paradigm erodes general utility and brings computational cost and hyperparameter sensitivity (Fan et al., 2025; Wang et al., 2024).

    Representation-level and inference-time interventions

    • Activation steering: Rimsky et al. (2024) add vectors to hidden states without gradient updates, based on the linear representation hypothesis (Zou et al., 2023; Park et al., 2024).
    • Feature intervention and redirection: RMU (Li et al., 2024) steers hidden states of forget queries toward random or fixed directions; LUNAR (Shen et al., 2025) maps through a learned projection to refusal-style references (Dang et al., 2025).
    • Decoding stage: GUARD (Deng et al., 2025) filters forbidden tokens during generation. The authors state these methods are more stable than full fine-tuning, but they still fine-tune the base model or train auxiliary parameters, retain is inherited through soft losses, and retain is not structurally decoupled from forget.

    Evaluation benchmarks

    • TOFU (Maini et al., 2024) is fictional QA, MUSE (Shi et al., 2025) targets copyrighted corpora, WMDP (Li et al., 2024) targets hazardous knowledge. The authors state the balance between unlearning and utility is the central criterion in this area.

    Experimental comparisons

    • Baseline methods: Original, Retrain, and GA, GradDiff, Task Vector, IDK (Eldan and Russinovich, 2023), NPO, SimNPO, LUNAR. Benchmarks: TOFU's forget05 and forget10, and MUSE-News.

    The authors use Table 1 to mark Nullify as a method that simultaneously satisfies training-free, no modification of base weights, geometric isolation of retained knowledge, high unlearning quality, and utility preservation, and state that to their knowledge this is an unlearning method that is simultaneously training-free, weight-preserving, and has a utility-preserving construction.

  3. How does the paper address this problem?

    Freeze weights, solve each layer's operator in closed form: forget queries are pushed toward the abstain direction, retain queries are corrected to zero.

    Nullify freezes the base model and uses a closed-form linear operator on selected layers to steer toward an anchor activation before the answer token is produced: forget queries leave the memory-answer trajectory, while the correction for retained queries is near zero by construction.

    Intervention form and design contract

    • Anchor: Take the hidden state h⋆(ℓ) of the last user prompt token. The authors state that at this point the residual stream has integrated the entire query (Arditi et al., 2024). Compute one correction from this anchor and broadcast it to every position in the prompt.
    • Update: At each steered layer and each prompt position, add ht(ℓ) ← ht(ℓ)+α M(ℓ) h⋆(ℓ). α is the strength, taken as α<0。M(ℓ) 固定,但校正随锚点变化,因而随提示变化。转向后的状态写入 KV 缓存,生成阶段不再按 token 挂钩。
    • 契约: 保持查询上 M(ℓ)h⋆ 应为 0,遗忘查询上应为位移 r(ℓ)。分解为 M(ℓ)=Δ̃(ℓ)P̂(ℓ):右因子负责保持,左因子负责遗忘。保持情形因此与 Δ̃ 的选取无关。

    遗忘方向

    • 遗忘查询与保留查询表面不可区分,且无行为标注,方向不能从标注样本读出。作者只用遗忘集自身的 (q, a)。
    • 对每条遗忘查询,在冻结模型上读两种提示最后 token 的层激活:拼上记忆答案,或拼上固定的 IDK 式模板。平均后得两个模式。
    • 方向为 r(ℓ)=μans(ℓ)−μidk(ℓ),即从弃权到承诺的平均位移。α<0 时,加上 αr 使遗忘激活从记忆答案模式滑向弃权模式。

    两个因子的闭式解

    • 右因子: 用 Dk 全部提示的锚点组成 Hk。P̂ 是 Hk 左零空间上的正交投影。引理把该零空间等价为 Gram 矩阵 HkHk⊤ 的左零空间,从而避免在 Nk 远大于 D 时直接对 Hk 做 SVD。实现上取最小的 k=⌊pD⌋ 个特征方向,P̂=V̂V̂⊤。p∈(0,1) 为零空间比例。作者称 P̂Hk=0 成立到 Gram 的最小被保留特征值。
    • 左因子: Hf 堆叠原始遗忘查询的锚点,不是 IDK 对比提示。岭回归让投影后的遗忘锚点拟合 r 的重复,惩罚项系数为 λ>0 throughout the paper. The closed-form solution uses the Moore–Penrose pseudoinverse; Appendix A.2 handles the rank deficiency of P̂ and states that the operator that actually acts is unique under norm transformations.
    • Assembly: Each layer M(ℓ)=Δ̃⋆(ℓ)P̂(ℓ), multiplied at inference time by the runtime scalar α.

    Algorithm, cost, and default choices

    • Algorithm 1 performs one forward pass for each prompt in Dk∪Df, plus auxiliary IDK contrast prompts; per layer, one D×D Gram decomposition and one pseudoinverse. Offline per-layer cost is O((Nk+Nf)D²+D³). Inference is one matrix–vector multiply per layer. Zero trainable parameters, no backpropagation.
    • Main experiments steer layers L={8–14, 16, 18, 19}, ten middle-to-upper layers in total. The authors' rationale is that factual recall resides in middle-to-upper layers (Geva et al., 2021; Meng et al., 2022), along with AlphaSteer's layer-selection convention. Unless otherwise noted, p=0.75, λ=10, α=−2.0. α does not enter the closed-form preparation.
  4. What experiments did the paper conduct?

    On TOFU forget10 with Llama-2-7B-chat, Nullify achieves FQ 0.58 and MU 0.62.

    Experimental setup

    • Models: All main TOFU experiments are applied to Llama-2-7B-chat-hf already fine-tuned on full TOFU; Retrain fine-tunes the same model only on the retain split. Appendix C additionally uses Qwen3-8B. The base model for MUSE-News is not stated in the paper.
    • Data: TOFU is 4,000 QA pairs about 200 fictional authors; forget05 and forget10 erase 5% and 10%. MUSE evaluates the News corpus.
    • Baselines and metrics: Original, Retrain, GA, GradDiff, Task Vector, IDK, NPO, SimNPO, LUNAR. Rows marked with ‡ in Table 2 and Table 3 are taken from Fan et al. (2025). FQ is the Kolmogorov–Smirnov p-value of the forget-set truth-ratio distribution relative to Retrain, tending toward 1 when indistinguishable. MU is the harmonic mean of Real Authors, World Facts, Retain. The table note states that forget-set columns are better when close to Retrain, not when larger. For MUSE, KM-Df and KM-Dr are better when close to Retrain, with Retrain at 0.33 and 0.54 in the text; the ideal value for PrivLeak is 0.
    • Run and extraction: Greedy decoding, single NVIDIA H800 80GB. Default L={8–14, 16, 18, 19}, p=0.75, λ=10, α=−2.0. The paper does not report the number of repetitions for the main FQ, MU. Extraction uses about 11,200 prompts, 6 families with 14 variants, plus paraphrase and cloze; exact-fragment leakage is better when lower, and the six families are an unweighted macro average. Section 4.3 and Tables 4 and 5 do not state the model and benchmark.

    Main results

    The TOFU columns below come from Table 2 (Llama-2-7B-chat-hf). PrivLeak comes from Table 3 (MUSE-News, base model not stated). GradDiff, IDK, and Task Vector are not listed; their numbers are after the table.

    Swipe horizontally to read the table

    Methodforget05 FQforget05 MUforget10 FQforget10 MUPrivLeak
    Original0.000.620.000.62−98.71
    Retrain1.000.621.000.620.00
    GA<0.010.00<0.010.0020.14
    NPO0.790.570.290.55108.91
    SimNPO0.990.580.450.6272.93
    LUNAR0.870.590.470.55−99.80
    Nullify0.960.620.580.62−5.18
    • Authors' interpretation of TOFU: The authors state that only Nullify has MU identical to the reference at both proportions; forget10 MU ties with SimNPO. On forget05, the unlearning method with the highest FQ is SimNPO, and the authors state Nullify is within 0.03 of it. The authors state Nullify dominates the baselines on forget10. For forget10 World Facts and Retain ROUGE-L, Nullify is 0.90 and 0.95, Original is 0.91 and 0.98.
    • MUSE: Nullify's KM-Df is 0.27 and KM-Dr is 0.51; Original's KM-Df is 0.63 and KM-Dr is 0.54. The authors state only Nullify is close to the ideal PrivLeak, and state it is an order of magnitude closer to 0 than any baseline.
    • Rows not listed: GradDiff has FQ <0.01 at both proportions, MU 0.56 and 0.54; PrivLeak 108.12, KM-Df 0.31, KM-Dr 0.28. IDK appears only in Table 2: FQ <0.01 at both proportions, MU 0.57 and 0.54. Task Vector appears only in Table 3: PrivLeak −100.00, KM-Df 0.59, KM-Dr 0.48. The authors state GA destroys the model; preference and gradient methods leak more, Task Vector overcorrects to the other extreme, and LUNAR essentially stays at the un-unlearned level.

    Extraction robustness

    • Settings below Retrain: Six-family macro average Original 0.391, Retrain 0.095, Nullify 0.095. Nullify is lower in few-shot 0.014 vs. 0.074, cloze/multiple choice 0.030 vs. 0.210, and Table 5 cloze 0.060 vs. 0.153.
    • Settings above Retrain: Prefix injection 0.222 vs. 0.087, roleplay 0.111 vs. 0.071, partial answer 0.065 vs. 0.042, multi-turn 0.128 vs. 0.085, plain QA 0.253 vs. 0.085, paraphrase 0.218 vs. 0.128.
    • Authors' interpretation: The authors state every family is below Original; paraphrase is still lower than Original's 0.478, and state there is partial transfer to nearby free-form variants.

    Computation and memory

    • Table 6: TOFU forget05, Llama-2-7B-chat-hf, single H800, including default post-hoc evaluation. Nullify has 0 trainable parameters, 14 GB, 5.2 minutes (3.2 minutes preparation, 1.95 minutes evaluation for a single α). Retrain about 300 minutes, 57.7×, about 79 GB; NPO 58.2 minutes, 11.2×; SimNPO 27.4 minutes, 5.3×; GA 14.5 minutes, 2.8×; GradDiff 13.5 minutes, 2.6×; IDK about 13 minutes, about 2.5×; LUNAR 6.3 minutes, 1.2×, 66 K parameters, 16 GB. Full fine-tuning baselines are 6.6 B parameters. Epochs follow each method's paper recipe: GA, GradDiff, IDK are 5, NPO is 20, SimNPO is 10, LUNAR is 20 epochs of single-layer LoRA.
    • Authors' interpretation: The authors state no baseline is simultaneously faster and stronger at unlearning; relative to LUNAR, FQ is 0.96 vs. 0.87. Only SimNPO and Retrain have higher FQ. Changing the forget request only requires re-running inference evaluation for α. The ethics statement says roughly an order of magnitude lower than gradient unlearning; the corresponding multiples in Table 6 are 2.5× to 11.2×. Figure 1 plots forget10, and the caption points wall-clock to Table 6, while Table 6's title is forget05. The plain text does not show the coordinates of the points in Figure 1.

    Cross-backbone reproduction

    • Table 11: Qwen3-8B, TOFU forget10, layers 9–22, layer selection does not look at test-set FQ. Nullify's FQ, MU, forget-set ROUGE-L, retain-set ROUGE-L are 0.641, 0.574, 0.385, 0.801. Retrain is 1.000, 0.596, 0.434, 1.000; Original is <0.001, 0.603, 1.000, 0.999. In the same table, Nullify on Llama-2-7B-chat is 0.581, 0.620, 0.410, 0.950.
    • Authors' interpretation: The authors state the construction and selection pipeline transfers to a second model family, with different unlearning–utility trade-offs on the two backbones; and state forget-set ROUGE-L is within 0.049 of Retrain and MU is within 0.022.

    Other ablations and analyses

    • Table 7, forget05: full method at α=−2.0 has FQ 0.965, MU 0.622; replacing P̂ with the identity matrix, at its best α=−0.3, FQ 0.270, MU 0.360, and at α=−1.0 becomes FQ 0.00, MU 0.01; random direction at α=−2.0 has FQ 0.466, MU 0.600. The authors state the projection preserves utility, and the IDK contrast direction carries the forgetting signal.
    • Table 8, p=0.75 scanning λ: at λ=10, best α=−2.0, FQ 0.965; at λ=0.3 and 0.5, FQ is 0.000; at λ=3, 0.866, at λ=5, 0.628; at λ=300, FQ 0.142, MU 0.628.
    • Table 9, p=0.75, λ=10 scanning α: α=−2.0 and −2.3 have the same FQ of 0.965, MU 0.622 and 0.614; at α=−1.6, FQ 0.545, MU 0.625. The authors state the peak is at α=−2.0, and FQ exceeds 0.92 for α∈[−2.3,−1.9].
    • Table 10, λ=10 scanning p: at p=0.75, FQ 0.965; at p=0.60, FQ 0.394, MU 0.625; at p=0.40, FQ 0.793, MU 0.624; at p=0.90, FQ 0.545, MU 0.614. The authors state MU falls in 0.61–0.63 across p.
    • Figure 2 caption: forget05 KS p=0.965, means Original 0.561, Nullify 0.855, Retrain 0.902; forget10 p=0.581, means 0.581, 0.869, 0.912. In the text, Sec. 4.5.3 writes the centers as 0.86 and 0.87, Retrain as 0.90 and 0.91, and p as 0.96 and 0.58, corresponding to Table 2. The authors state this is a distributional return to the Retrain envelope, not merely lowering verbatim scores.
    • The text states the layer set L and the three scalars are all analyzed for sensitivity in Sec. 4.5.2; Appendix B lists only p, λ, α, without a scan table for L. In Table 12, forget-set queries become epistemic non-answers after steering, while retain-set generations are unchanged; specific Q&A is not paraphrased.
  5. What are some points that can be further explored?

    The authors note that suppression exists only while the operator is active; adaptive and white-box settings are outside the current scope.

    Limitations and future directions noted by the authors

    • As an inference-time intervention, Nullify suppresses access to memorized answers while the operator is active, rather than permanently rewriting the underlying weights (Limitations).
    • Robustness evaluation covers fixed-template black-box extraction under a predetermined service setting, and nearby free-form paraphrases (Limitations).
    • Adaptive attacks, and white-box settings where the operator can be inspected, modified, or disabled, are out of current scope (Limitations).
    • Intervention layers and steering strength are currently selected per benchmark; automatic configuration across architectures and deployment settings is listed by the authors as future work (Limitations).
    • The authors plan to extend to multimodal architectures and long-context unlearning (Conclusion).

    Experimental coverage

    • Main results report TOFU forget05 and forget10 on Llama-2-7B-chat-hf (Table 2), and forget10 on Qwen3-8B (Table 11). TOFU is 200 fictional authors, 4,000 QA pairs.
    • MUSE experiments report KM-Df, PrivLeak, and KM-Dr on the News corpus (Table 3). The paper does not state the base model for this experiment.
    • Comparisons are GA, GradDiff, Task Vector, IDK, NPO, SimNPO, LUNAR, and Original and Retrain. Scores marked with ‡ are cited from Fan et al. (2025).
    • Extraction experiments use about 11,200 prompts, 6 families with 14 variants, plus paraphrase and cloze (Sec. 4.3). That section does not state the base model or benchmark. Decoding is greedy. The paper does not report the number of repetitions for the main FQ, MU.
    • Main experiments use steering layers {8–14, 16, 18, 19}; Qwen3-8B uses layers 9–22. Appendix B scans p, λ, α. Table 7 removes the null-space projection, or replaces the forget direction with a random vector. Cost is measured on a single H800, TOFU forget05, Llama-2-7B-chat-hf, with one configuration per method's paper recipe (Table 6).
  6. Summarize the main content of the paper

    Nullify on Llama-2-7B-chat-hf, TOFU forget10 FQ 0.58, MU 0.62.

    Nullify is a weight-frozen LLM forgetting method: it uses null-space constraints in activation space to separate erasing targeted memory from preserving other queries.

    • Problem: The authors argue that gradient updates on shared parameters make forgetting and utility trade off against each other; retraining from scratch for each deletion request is infeasible.
    • Method: One forward pass collects anchor activations from the forget set and retain set, and a closed-form solution yields per-layer operators. The right factor maps retain anchors outside the orthogonal complement of the truncated null space, so correction for retained queries vanishes; the left factor aligns the projection of forget queries toward the direction of "memory answer minus IDK abstention." At inference, the correction is broadcast to all prompt positions with negative strength, then the steered KV cache is used. Default is ten middle-to-upper layers, p=0.75, λ=10, α=−2.0.
    • TOFU: On Llama-2-7B-chat-hf, forget05 has FQ/MU of 0.96/0.62, and forget10 has 0.58/0.62 (Table 2). MU for both settings matches Retrain. forget05's FQ is lower than SimNPO's 0.99; forget10's FQ is higher than the other forgetting methods in the table, and MU matches SimNPO at 0.62.
    • MUSE and cost: On MUSE-News, PrivLeak is −5.18, KM-Df/KM-Dr are 0.27/0.51, and Retrain is 0.33/0.54 (Table 3); the base model is not stated in the paper. On forget05, the same Llama, and a single H800, wall-clock time is 5.2 minutes, GPU memory is 14 GB, and trainable parameters are 0 (Table 6).
    • Other results: Macro-average leakage across six families is 0.095, matching Retrain (Table 4); prefix injection, role-play, multi-turn, and ordinary QA remain higher than Retrain. Qwen3-8B's forget10 FQ is 0.641, and retain-set ROUGE-L is 0.801 (Table 11).
    • Authors' conclusion: The authors state that the method shifts forgetting from weight modification to geometrically constrained activation steering, matches or exceeds existing baselines' forgetting quality on the tested benchmarks, achieves MU of 0.62 on Llama matching Retrain, and has lower computational cost than these baselines. They also note that suppression exists only while the operator is active, and adaptive attacks and white-box settings where the operator can be inspected, modified, or disabled are out of current scope.

Related papers

Show 3 more papers
Read originalConference on Empirical Methods in Natural Language Processing 2026