Skip to content

WADE: Wasserstein Distribution Alignment for LLM Knowledge ErasureWADE: Wasserstein Distributional Alignment for Knowledge Erasure in LLMs

Hanyu Pei, Shang Liu, Zeyan Liu
arXiv: Jailbreaks, Prompt Injection, Poisoning & DefensesarXiv:2612.00534Originally published Indexed by this site · 17 hr agoAlignment

Quick read

Defenses

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

The authors propose a closed-form activation editing method, WADE, which achieves the lowest KS-D among the compared methods on TOFU forget10, but its utility is not superior.

Questions
Machine unlearning must remove the influence of specified data without retraining while preserving utility. The authors argue that neither surrogate unlearning losses nor single-vector activation steering directly match the retrained model's behavior distribution on forget queries.
Methods
WADE constructs target activation distributions from unknown-entity or refusal-related prompts, aligns the mean and covariance of forget activations, then via Bures–Procrustes simplification edits the MLP down-projection of selected layers in closed form.
Experiments and results
In the main TOFU comparison, WADE achieves the lowest KS-D among the compared unlearning methods on all three models, but its MU is lower than Finetuned. Membership inference aggregate leakage is close to Retrain, with a remaining gap on Min-K++; on WMDP-Cyber, while maintaining MMLU, its drop is larger than NPO and RMU.
Limitations and future work
The authors note that target prompts must be constructed per scenario, that second moments do not control higher-order or tail behavior, and that there is no certified deletion; some solver alternatives were not evaluated. The edit window was selected on one split, and the sweeps and controls each use one model.
Experimental setupLlama-3.2-3B、Llama-2-7B-Chat et al. · TOFU、WMDP-Cyber et al. · TR、FQ et al.
Metrics
TRFQKS-DMUMIA leakMIA-score KSMIA-score W1zES gapEM gapROUGE gap
AI summaryWADE is an LLM machine unlearning method based on closed-form activation editing, achieving the lowest KS distance against the retrain-only reference among the published setting baselines across three LLM families on TOFU. The method models unlearning as activation-space distribution alignment: it edits the MLP down-projection matrix so that the mean and covariance of activations for forget queries match a target distribution induced by unknown-entity prompts. Membership inference probes show its aggregate leakage is comparable to retraining, with a remaining gap under Min-K++.

WADE is an LLM machine unlearning method based on closed-form activation editing, achieving the lowest KS distance against the retrain-only reference among the published setting baselines across three LLM families on TOFU. The method models unlearning as activation-space distribution alignment: it edits the MLP down-projection matrix so that the mean and covariance of activations for forget queries match a target distribution induced by unknown-entity prompts. Membership inference probes show its aggregate leakage is comparable to retraining, with a remaining gap under Min-K++.

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?

    The authors study how to make LLM approximate unlearning match the query behavior distribution of a retraining reference, rather than only suppressing forgotten answers.

    The core question is: how to make an unlearned LLM approach the behavior distribution of a retrain-only reference on forget queries without retraining from scratch.

    • Application motivation: the authors connect machine unlearning to privacy regulations, data deletion requests, and removal of unsafe or unethical behavior. Retraining only on retained data is regarded as the gold standard, but is too costly for modern LLMs.
    • Insufficiency of existing objectives: the authors argue that GA, GD, NPO and similar methods optimize handcrafted surrogate losses whose minima are not constrained to approach the retrained model, and may reduce forget-set likelihood through degenerate solutions.
    • Insufficiency of point targets: the authors argue that AlphaEdit, LUNAR and similar methods steer forget activations toward a fixed vector or steering vector, compressing the activations of different queries toward one location, which struggles to express the model's diverse answers to unknown entities.
    • Core observation: the authors change the target to matching the forget-query behavior distribution, realized through the distribution of internal MLP activations that produce answers; the target is constructed from unknown-entity prompts that keep the retained query format and replace the forgotten association.
    • Proposed method: WADE aligns the mean and covariance of forget activations under a second-order Wasserstein objective and retain-key regularization, reduced to a non-iterative closed-form weight update; the authors state this update does not increase the surrogate objective.
    • Problem setting: starting from a model M finetuned on D = Dr ∪ Df, editing yields Mu, with the goal of removing the influence of Df while preserving performance on Dr; the ideal reference is Mret obtained using only Dr under the same training scheme. The paper studies approximate unlearning, not certified deletion.
  2. What related research exists?

    Related work falls into three lines: optimization-based unlearning, representation- or weight-editing unlearning, and retraining-reference evaluation.

    Optimization-based LLM unlearning

    • GA, GD and NPO: Jang et al. (2023), Liu et al. (2022), Maini et al. (2024), Yao et al. (2024) reduce the likelihood of forget samples via gradient ascent or gradient difference, often with retain-side regularization; Zhang et al. (2024)'s NPO formulates unlearning as a preference-style objective to improve the stability of direct likelihood suppression.
    • Subsequent objective variants: Fan et al. (2025), Qin et al. (2025), Entesari et al. (2025) respectively remove the reference-model dependence, use token-probability preference signals, and adopt constrained entropic formulations.
    • Second-order and optimal transport: K-FADE (McKinney et al., 2026) uses K-FAC to approximately compute uphill Gauss–Newton updates; Opt-Out (Choi et al., 2025) uses a Wasserstein-distance regularizer to the initial parameters for entity-level unlearning. The paper explicitly contrasts this, stating that WADE instead aligns activation distributions and solves in closed form.

    Representation- and editing-based unlearning

    • RMU and LUNAR: RMU (Li et al., 2024) steers intermediate representations away from the original behavior while preserving general capability; LUNAR (Shen et al., 2025) steers forget-data activations toward a region the model cannot answer from.
    • Knowledge editing methods: Li et al. (2026) treat unlearning as a special case of knowledge editing, changing target information to refusal or empty-set responses, and report that editing methods can serve as unlearning baselines; ROME, MEMIT, WISE, AlphaEdit remove target knowledge via local weight updates.
    • Common difference noted by the paper: the authors argue that most representation and editing methods specify the desired behavior with a point target, steering direction or target response, rather than matching a retrain-like distribution across forget queries.

    Unlearning evaluation

    • TOFU: Maini et al. (2024) build an instance-level factual unlearning task from synthetic author biographies, comparing the unlearned model with a retrain-only reference and checking the retain set and general utility.
    • OpenUnlearning: Dorna et al. (2025) unify protocols such as truth ratio, Forget Quality, KS distance, model utility, extraction strength and membership-inference probes; the paper adopts its FQ and KS-D to directly measure alignment of the truth-ratio distribution with the retraining reference.

    Experimental baselines and data: the main table compares GA, GD, NPO, SimNPO, RMU, LUNAR, AlphaEdit using their released per-model configurations; the appendix adds K-FADE and per-method tuning. The main benchmark is TOFU, the transfer check is WMDP-Cyber, and utility checks include MMLU and two related subjects.

    The authors position WADE as distribution-level activation editing: the update form follows MEMIT's normal-equation form, but the constraint comes from distribution moments rather than one optimized value per fact.

  3. How does the paper address this problem?

    WADE aligns the mean and covariance of the unknown-state target distribution, reducing it to a closed-form MLP edit with retention regularization.

    WADE (Wasserstein Distributional Alignment for Knowledge Erasure) formulates unlearning as distributional alignment in activation space: it constructs unknown-state prompts, matches the first and second moments of post-edit forget activations with target activations, and then updates the MLP down-projection layer by layer in closed form.

    Problem setting and target activations

    • Retrained reference: M is the model fine-tuned on Dr ∪ Df, Mu is the model after unlearning, and Mret is the reference trained only on Dr under the same scheme; the ideal requirement is written as Mu ≈ Mret, meaning behaviorally indistinguishable under the relevant evaluation protocol.
    • Target prompt construction: Keep the query template and replace only the entity or relation slot that defines the knowledge to be forgotten with synthetic out-of-corpus values; multiple replacements form an unknown-state distribution, requiring no target answers, target activation labels, or per-sample optimization.
    • Relation-level setting: When forgetting (s, r, o), only the subject of the (s, r) query is replaced, and s's other relation queries enter the retain set; Appendix A explicitly states that this variant has not been evaluated.
    • Activation collection: Forward the target prompts on the current model and collect the MLP down-projection output of the selected layers. TOFU uses the last subword token matching the author entity span, i.e., the first causal position that sees the complete name, falling back to the final prompt token on failure.

    Second-order Wasserstein alignment

    • Edit location: Based on existing editing research describing the role of MLP key-value, WADE modifies the down-projection of selected Transformer layers; the goal is to change the mapping from forget keys to MLP outputs while perturbing retain keys less.
    • Distribution objective: The core definition is D2(P,Q)=|μ(P)−μ(Q)|22+B2(Σ(P),Σ(Q)), i.e., the mean difference plus the covariance Bures distance. It uses a moment-matched Gaussian proxy but does not assume the activations themselves are Gaussian.
    • Objective boundary: The authors note that, by Gelbrich's bound, this surrogate is a lower bound on the squared W2 of the original distributions and controls only the first two moments; the target distribution is an unknown-state intervention and has not been verified to reproduce Mret's hidden states.
    • Retention and ridge regularization: The retain-key second moment Cr penalizes output changes caused by retain keys, with λ controlling strength; a small ridge term ϵ makes the system matrix positive definite and the solution unique.

    Bures–Procrustes closed-form reduction

    • Low-rank covariance: Adaptive low-rank decompositions are performed on the forget-key and target-activation covariances; when ranks differ, r = min(rf, rt) is taken, keeping the top r principal directions on both sides. Approximation error comes from covariance truncation.
    • Pseudo-sample construction: The mean and covariance factors are concatenated into r+1 pseudo key–value pairs, approximating the distribution term as least squares under orthogonal alignment; the orthogonal matrix O handles the rotational non-uniqueness of the covariance factors.
    • One-step decoupling: First, under the pre-edit weights Wl, SVD is used to find a fixed direction O⋆, then the retain-regularized least squares is solved. The authors state that the objective with fixed O⋆ upper-bounds the surrogate and is tight at the zero update, so Proposition 1 gives that the update does not increase the surrogate.
    • Relation to MEMIT: The final update has the normal-equation form of the MEMIT batch editor; the difference is that WADE derives r+1 constraints from distribution moments, with the number determined by covariance rank rather than forget-set size, and mean-only is the special case r = 0.

    Multi-layer solving and default parameters

    • Sequential editing: Layers are updated one by one in an ordered set from shallow to deep; at each step, forget, retain, and target activations are recollected at the current model state, so later layers adapt to earlier edits. This is not joint cross-layer optimization; the authors state that joint solving would lose the layer-wise closed form.
    • Default configuration: Unless otherwise stated, layers 6–8 are edited, λ = 0.01, ϵ = 10−4; covariance factors retain 99% explained variance, with no rank cap by default.
    • Window reuse: The 6–8 window was selected once only on Llama-2-7B-Chat forget10, then not searched separately for each model, and reused for other models, splits, and WMDP-Cyber.
    • Task objective sources: TOFU uses template-matched unknown-author prompts; WMDP-Cyber uses harmful instruction prompts from existing refusal-direction work to induce refusal-aligned target activations. Appendix A gives a TOFU construction example.
  4. What experiments did the paper conduct?

    On TOFU, WADE has the lowest KS-D but does not lead on utility; aggregate MIA is close to retraining, while Min-K++ still shows a gap.

    Experimental setup

    • Models tested: the TOFU main comparison uses Llama-3.2-3B, Llama-2-7B-Chat, Qwen3-8B; the target-statistics ablation additionally includes Mistral-Nemo-12B, Phi-4-14B; WMDP-Cyber uses Zephyr-7B-beta.
    • Data and references: TOFU is an instance-level factual unlearning benchmark built from synthetic author biographies, with forget10 as the main table and forget01, forget05 also tested; WMDP-Cyber is a multiple-choice hazardous cyber knowledge test, with retain keys drawn from at most 500 raw text chunks.
    • Baselines: Finetuned is the pre-unlearning model, Retrain is the split-matched reference; algorithmic baselines are GA, GD, NPO, SimNPO, RMU, LUNAR, AlphaEdit, using released per-model configurations, with K-FADE additionally tested in the appendix.
    • TOFU metrics: TR is truth ratio, MU is model utility; FQ and KS-D come from a two-sample Kolmogorov–Smirnov test between the forget-set TR distribution and the retraining reference, with lower KS-D better and FQ a p-value, higher better.
    • Statistical details: 400 truth ratios per side, KS-D is a multiple of 1/400, rounded to three decimals, FQ computed from unrounded statistics; at fixed sample size FQ is a monotone function of KS-D.
    • Safety and transfer metrics: MIA uses forget10 as members and holdout10 as nonmembers, computing AUC separately for sequence loss, Min-K, Min-K++, zlib-normalized loss; MIA leak is the mean of |AUC−0.5| across the four attacks; WMDP-Cyber uses zero-shot multiple choice, and MMLU, MMLU-CS, MMLU-Sec are also reported.

    Main results

    TOFU forget10, using the baseline released configuration and WADE default settings; per Table 1. The header follows the paper's Llama-2-7B notation.

    Swipe horizontally to read the table

    ModelMethodTRFQ↑KS-D↓MU↑
    Llama-3.2-3BWADE0.6510.0940.0880.624
    Llama-3.2-3BNPO0.6100.0300.1030.630
    Llama-2-7BWADE0.6610.7580.0480.578
    Llama-2-7BNPO0.6100.0370.1000.621
    Qwen3-8BWADE0.5841.76e-30.1330.592
    Qwen3-8BRMU0.5525.97e-80.2080.613
    Qwen3-8BLUNAR0.5599.91e-110.2430.562
    Qwen3-8BNPO0.4491.49e-160.3030.591
    • Alignment results: WADE has the lowest KS-D and highest FQ among the compared unlearning methods on all three models; at the 0.05 level, only WADE on Llama-3.2-3B and Llama-2-7B is not rejected as differing from the Retrain distribution, while on Qwen3-8B all methods are rejected.
    • Utility exception: the authors explicitly state that WADE does not lead on utility; its MU is 0.04–0.05 lower than Finetuned on all three models. GA has TR 0.000, KS-D 1.000, MU 0.000 on all three models.
    • Mean is not distribution: the authors use AlphaEdit on Llama-3.2-3B as an example, whose TR 0.672 is close to Retrain's 0.644, but KS-D is 0.383, showing that close mean TR does not imply distribution alignment.

    Target-statistics ablation and capacity controls

    • Five-model ablation: Table 2 fixes the reference prompts, edit layers and retain regularization, changing only the target statistics. mean-only KS-D is 0.215–0.238; after adding target covariance it is 0.048–0.160, and FQ improves on all five models.
    • Utility counterexample: on Llama-2-7B-Chat, mean-only MU is 0.223 versus distributional 0.578; on Phi-4-14B the two are 0.562 and 0.573. The authors use this to support full distribution alignment rather than only moving toward the mean.
    • Capacity controls: Table 11 on Llama-2-7B-Chat forget10 gives norm-matched mean-only KS-D 0.345, MU 0.000; covariance-only 0.268, 0.574; same-spectrum random rotation 0.082, 0.442. The authors conclude that update norm, rank and spectrum alone cannot explain the gains.
    • Pairing and name sensitivity: paired regression gives KS-D 0.063, MU 0.586, which the authors say neither dominates nor is dominated by WADE, but relies on construction-induced pairing; under five non-overlapping fictional name sets, KS-D varies within 0.010 and MU within 0.0062.

    Membership inference and WMDP-Cyber

    • Aggregate leakage: Table 3 on Llama-2-7B-Chat TOFU forget10 gives WADE's MIA leak 0.099, Retrain 0.101, Finetuned, NPO, LUNAR 0.499, 0.394, 0.171 respectively; WADE's MIA-score KS is 0.308 and W1z 0.617.
    • Min-K++ exception: in Table 8, Retrain's |AUC−0.5| is 0.002, WADE's is 0.287, NPO and LUNAR are 0.410 and 0.367. The authors therefore claim only aggregate retrain-comparable leakage, not per-attack consistency.
    • Hazardous knowledge transfer: in Table 4, Zephyr-7B-beta's WMDP-Cyber accuracy drops from Base 0.410 to WADE 0.277, with MMLU 0.462 versus Base 0.460; RMU is 0.315 with MMLU 0.458, NPO is 0.400 with MMLU 0.459.
    • Non-selective exception: LUNAR's WMDP-Cyber is 0.264, but MMLU drops to 0.248; the authors say its drop reflects general degradation rather than selective unlearning. WADE's MMLU-Sec drops from Base 0.590 to 0.520, and RMU is 0.490.

    Tuning, cost and other analyses

    • Per-method frontier: Table 10(a) on Llama-2-7B-Chat forget10, WADE's non-dominated points include KS-D/MU 0.038/0.580 and 0.110/0.582, NPO is 0.088/0.625; the authors say the pooled frontier consists of WADE's low-KS end and NPO, and RMU and LUNAR configurations are all dominated.
    • K-FADE comparison: Table 10(b) on Llama-3.2-3B, WADE default KS-D/MU is 0.088/0.624; K-FADE α=0.0025 is 0.135/0.651, α=0.004 is 0.073/0.619. The authors say the two non-dominated K-FADE points bracket but do not dominate WADE.
    • Edit cost: Table 5 reports WADE's measured per-layer times of 5.5, 7.1, 8.1, 10.7 seconds, corresponding to Llama-3.2-3B, Llama-2-7B, Mistral-Nemo-12B, Phi-4-14B respectively; K-FADE on Llama-3.2-3B takes about 664 seconds for K-FAC factor fitting alone.
    • Layers and forget scale: the text and annotations of Figure 1 show that on Llama-2-7B-Chat the average KS-D reduction of layers 4–8 exceeds 0.20; KS-D for forget01, forget05, forget10 is 0.125, 0.100, 0.048, with FQ 0.919, 0.270, 0.758.
    • Order and hyperparameters: in Table 11, descending and random edit order give KS-D 0.148 and 0.113, versus default ascending 0.048; the authors' reading of Figure 2 states that the default λ lies in the low-KS-D region, and a moderate rank cap preserves most of the alignment.
    • Off-target metrics: Table 12 on Llama-2-7B-Chat forget10, WADE's ES/EM/ROUGE gap is 0.007/0.066/0.089, NPO is 0.025/0.011/0.091, LUNAR is 0.020/0.153/0.284; WADE trails NPO on EM.
  5. What are some points that can be further explored?

    The authors list limitations including target construction, second-moment bounds, and solver choice; the experiments also have several single-model settings.

    Limitations and future directions noted by the authors

    • Target prompt dependence: Sec. 5 notes that post-unlearning behavior is defined by the target prompt set; the paper evaluates only TOFU entity replacement and WMDP-Cyber refusal prompts, and other settings such as association-level forgetting require their own slot specification.
    • Target not validated against hidden states: Sec. 5 notes that the target is an unknown-state intervention and has not been validated as a proxy for retrain hidden states.
    • Second moments and deletion guarantees: Sec. 5 notes that the two-moment surrogate is only a lower bound on W2 and does not control higher-order or tail behavior, which the authors consider possibly related to the Min-K++ gap; WADE provides no certified deletion.
    • Solver alternatives: Sec. 5 notes that the alternatives of a single Procrustes step, common-rank truncation, and per-layer target re-collection were not evaluated.
    • Model and tuning coverage: Sec. 5 notes that the edit window was selected on the reported Llama-2-7B split, sweeps and controls each use one model, and WADE does not dominate the strongest baseline on utility, with weaker alignment on 8B–14B models.
    • When legal guarantees are needed: the Ethics Statement explicitly states that WADE is an approximate method without formal deletion guarantees, that individual attacks can still distinguish forget data, and that it should not replace retraining when legal guarantees are required.

    Scope of experimental coverage

    • Models and tasks: the TOFU main table covers 3 models, and the target-statistics ablation covers 5 models in total; WMDP-Cyber is evaluated only on Zephyr-7B-beta, with MMLU, MMLU-CS, MMLU-Sec additionally checking utility.
    • Main comparison configuration: Table 1 baselines use released per-model configurations; per-method sweeps are run on Llama-2-7B-Chat forget10, and the K-FADE comparison on Llama-3.2-3B.
    • Membership inference: tested only on Llama-2-7B-Chat TOFU forget10, with members as forget10 and nonmembers as holdout10, and the attack suite includes sequence loss, Min-K, Min-K++, zlib-normalized loss.
    • Statistics and repetition: TOFU's KS test uses 400 truth ratios per side; Table 11 marks 3-seed means only for random rotation, shuffled eigenvalues and random edit order, and the paper does not report the number of repetitions or variance for the main-table results.
    • Cost accounting: Table 5 reports measured per-layer times for AlphaEdit, LUNAR, WADE, and 5-epoch estimates for RMU, NPO, GA, GD anchored on Llama-2-7B and scaled linearly by model size, none including downstream evaluation time.
  6. Summarize the main content of the paper

    WADE uses closed-form distribution alignment to improve retrain reference matching, but utility, per-attack leakage and alignment on larger models remain limited.

    WADE is a closed-form activation editing method for LLM machine unlearning, whose goal is to make the unlearned model approach a retrain-only reference without retraining, while preserving model utility.

    • Problem: the authors argue that surrogate unlearning losses only suppress forget-set likelihood, and single-vector edits steer different forget queries to the same point; neither directly matches the retrained model's behavior distribution on forget queries.
    • Method: target activation distributions are constructed from unknown-entity or refusal-related prompts, aligning the mean and covariance of forget activations; after Bures–Procrustes simplification, this yields a MEMIT-form update with retain-key regularization, editing MLP down-projections in shallow-to-deep order.
    • TOFU main results: on forget10 under the baseline released configuration, WADE's KS-D on Llama-3.2-3B, Llama-2-7B, Qwen3-8B is 0.088, 0.048, 0.133 respectively, the lowest among the unlearning methods compared in Table 1; the corresponding MU is 0.624, 0.578, 0.592, and the authors explicitly state its utility is not superior.
    • Ablation evidence: in Table 2, mean-only KS-D across five models is 0.215–0.238, dropping to 0.048–0.160 after adding covariance; after capacity controls, the authors attribute the gain to target-specific covariance structure.
    • Safety and transfer: on Llama-2-7B-Chat, WADE's aggregate MIA leak is 0.099 versus Retrain's 0.101, but under Min-K++ the two have |AUC−0.5| of 0.287 and 0.002 respectively; on Zephyr-7B-beta, WMDP-Cyber drops from 0.410 to 0.277, with MMLU at 0.462.
    • Authors' conclusion: the authors state that WADE provides the lowest KS-D under the released setting and sits at the low-KS end of the tuning frontier, while NPO retains the utility advantage; they also emphasize that it has no certified deletion guarantee, and that the Min-K++ gap and weaker alignment on 8B–14B models still warrant attention.

Research lineage

6 foundations · 0 follow-ups in library
Explore in knowledge graph →

Hover or focus a connected paper to inspect the citation context.

Related papers

Show 3 more papers
Read originalarxiv.org