Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)
Papers
Topics
Authors
Recent
Search
2000 character limit reached

DCUE: Distribution Correction Unlearning Eval

Updated 7 July 2026
  • The paper introduces DCUE, a metric that evaluates LLM unlearning by comparing core-token confidence distributions through a two-sample KS test, without needing a retrained model.
  • It employs a dual-stage prompting strategy to extract minimal decisive tokens and uses a validation set to correct for global distribution shifts.
  • Experimental results demonstrate DCUE’s robustness and exactness, providing practical insights for designing and assessing real-world unlearning algorithms.

Searching arXiv for the named paper and related unlearning-evaluation work. Distribution Correction-based Unlearning Evaluation (DCUE) is an evaluation metric for real-world LLM unlearning introduced in “Towards Evaluation for Real-World LLM Unlearning” (Miao et al., 2 Aug 2025). It is designed for the setting in which a foundation model MoM_o is fine-tuned on task data DtD_t to obtain MtM_t, a forget subset Df⊂DtD_f \subset D_t must be removed, and an unlearned model MuM_u is produced without access to the canonical retrained reference model MrM_r trained on Dr=Dt∖DfD_r = D_t \setminus D_f (Miao et al., 2 Aug 2025). DCUE addresses three limitations identified in prior evaluation practice—practicality, exactness, and robustness—by comparing distributions of confidence assigned to core tokens from DfD_f between MuM_u and a distribution-corrected MoM_o, using a validation set and a two-sample Kolmogorov–Smirnov (KS) test rather than relying on MrM_r (Miao et al., 2 Aug 2025).

1. Problem setting and motivation

The motivating setting is real-world unlearning in which evaluators typically operate under API-only access or limited access to internals, can query token probabilities but not gradients or activations of MuM_u, and do not have access to MrM_r (Miao et al., 2 Aug 2025). The target of unlearning may be specific data samples, topics, users, or documents, and the evaluation problem is further complicated by noisy labels, partial deletions, adversarial prompting, and frequent post-processing such as additional unlearning, fine-tuning on new data, and mixed operations after the claimed unlearning (Miao et al., 2 Aug 2025).

Within this setting, the paper identifies three failure modes of existing metrics. On practicality, metrics based on prediction probabilities and membership inference attacks often require MrM_r, making them unusable as deployed evaluation when retraining is infeasible (Miao et al., 2 Aug 2025). On exactness, text similarity measures such as Rouge-L and multiple-choice accuracy are dominated by non-critical tokens and distractor design; an LLM can select the correct answer without memorization of DfD_f, producing false positives and false negatives (Miao et al., 2 Aug 2025). On robustness, these metrics are sensitive to global shifts induced by post-processing unrelated to DfD_f, which can destabilize conclusions about whether forgetting actually occurred (Miao et al., 2 Aug 2025).

DCUE is proposed specifically to resolve these issues. Its core idea is to evaluate unlearning by comparing distributions of confidence assigned to decisive answer tokens from DfD_f between MuM_u and a distribution-corrected MoM_o, without requiring MrM_r (Miao et al., 2 Aug 2025). The method is therefore intended to be practical because it does not depend on retraining, exact because it focuses on core tokens rather than whole-string overlap, and robust because it explicitly subtracts global drift measured on a validation set (Miao et al., 2 Aug 2025).

2. Core-token formulation and confidence representation

A defining feature of DCUE is its restriction of evaluation to “core tokens,” described as the minimal subset of tokens in an answer aa that decisively determine correctness for a question qq, such as named entities, numbers, or specific predicates (Miao et al., 2 Aug 2025). Rather than using gradient-based saliency or attention scoring, the method operationalizes core-token identification via controlled prompting (Miao et al., 2 Aug 2025).

The prompting pipeline has two components. The Question Reformulation Prompt transforms (q,a)(q,a) into a fill-in-the-blank question that highlights decisive slots, and the Core Answer Extraction Prompt extracts the exact words filling those blanks, returning only key tokens (Miao et al., 2 Aug 2025). In the reported implementation, GPT-4o-Mini is used for this extraction stage and yields high precision in manual checks, approximately 97%97\% on DfD_f and approximately 96%96\% on DvD_v, with similar performance across DeepSeek-V3, GPT-3.5-Turbo, and Gemini-1.5-Flash (Miao et al., 2 Aug 2025).

For an auto-regressive LLM with parameters θ\theta and answer tokenization a=(w1,…,wT)a=(w_1,\dots,w_T), token-level confidence is defined as

ct=Pθ(wt∣q,w<t),c_t = P_\theta(w_t \mid q, w_{<t}),

and the token confidence score sequence (TCS) is {ct}t=1T\{c_t\}_{t=1}^T (Miao et al., 2 Aug 2025). If K⊂{1,…,T}K \subset \{1,\dots,T\} denotes the index set of core tokens, DCUE filters TCS to obtain the core token confidence scores (CTCS),

{ct:t∈K},\{c_t : t \in K\},

treated as a multiset of per-token probabilities (Miao et al., 2 Aug 2025).

The metric evaluates empirical distributions over these token-level values rather than requiring a sequence-level scalar summary (Miao et al., 2 Aug 2025). The paper notes that a sequence-level aggregation could be defined, for example by averaging core token confidences, but DCUE itself operates on token-level distributions (Miao et al., 2 Aug 2025). This choice is central to its exactness claim: it attempts to isolate the part of the output that determines whether the answer still reflects memorized content from DfD_f.

A toy example in the paper illustrates this construction using the question “What is the profession of Hsiao Yun-Hwa’s father?” with answer “The father of Hsiao Yun-Hwa is a civil engineer.” In that case, core-token extraction yields “civil” and “engineer,” and DCUE compares the probabilities assigned to those tokens by MoM_o and MuM_u across the forget and validation sets (Miao et al., 2 Aug 2025).

3. Distribution correction and KS-based scoring

The paper argues that raw comparison of CTCS distributions between MoM_o and MuM_u on DfD_f is confounded by a systematic shift unrelated to forgetting (Miao et al., 2 Aug 2025). Even if MuM_u fully forgets DfD_f and becomes behaviorally equivalent to MrM_r, its CTCS distribution on DfD_f will generally differ from that of MoM_o because MuM_u has been influenced by retained data DrD_r during fine-tuning, while MoM_o has not (Miao et al., 2 Aug 2025). DCUE therefore estimates and subtracts this bias using a validation set DvD_v drawn from the fine-tunable data source, subject to the constraints Dv∩Df=∅D_v \cap D_f = \varnothing and that DvD_v is not used to train MtM_t or MuM_u (Miao et al., 2 Aug 2025).

Let CTCSmd\mathrm{CTCS}_m^d denote the multiset of core-token confidences for model MmM_m on dataset DdD_d. DCUE defines the empirical cumulative distribution function

Fmd(x)=1∣CTCSmd∣∑Xi∈CTCSmdI(Xi≤x),F_m^d(x) = \frac{1}{|\mathrm{CTCS}_m^d|}\sum_{X_i \in \mathrm{CTCS}_m^d} I(X_i \le x),

and the two-sample KS statistic between models Mm1M_{m_1} and Mm2M_{m_2} on dataset DdD_d as

Sm1,m2d=sup⁡x∣Fm1d(x)−Fm2d(x)∣.S_{m_1,m_2}^d = \sup_x |F_{m_1}^d(x)-F_{m_2}^d(x)|.

These definitions are used on both the forget set and the validation set (Miao et al., 2 Aug 2025).

The unavailable target quantity is the ideal forget-set statistic Sr,ufS_{r,u}^f, comparing retraining to unlearning. DCUE instead uses the identity

Sr,uf=So,uf−δS,S_{r,u}^f = S_{o,u}^f - \delta_S,

where δS\delta_S captures systematic drift induced by DrD_r, and approximates this drift using the validation set:

δS≈min⁡{So,uv,So,uf}.\delta_S \approx \min\{S_{o,u}^v, S_{o,u}^f\}.

The corrected KS effect size is therefore

Scorr=So,uf−min⁡{So,uv,So,uf}.S_{\mathrm{corr}} = S_{o,u}^f - \min\{S_{o,u}^v, S_{o,u}^f\}.

The use of the minimum is intended to avoid over-correction when So,ufS_{o,u}^f is already small, which the paper interprets as indicating strong forgetting (Miao et al., 2 Aug 2025).

DCUE maps this corrected effect size into a statistical score using the standard two-sided KS test. With forget-set sample sizes nn and mm, observed statistic DD, and sample-size adjustment

Dadj=D⋅n⋅mn+m,D_{\mathrm{adj}} = D \cdot \sqrt{\frac{n\cdot m}{n+m}},

the two-sided p-value is computed as

p=2∑k=1∞(−1)k−1exp⁡(−2k2Dadj2).p = 2 \sum_{k=1}^{\infty} (-1)^{k-1}\exp(-2k^2 D_{\mathrm{adj}}^2).

DCUE reports

RDCUE=KS_pval(Scorr,∣CTCSof∣,∣CTCSuf∣).R_{\mathrm{DCUE}} = \mathrm{KS\_pval}(S_{\mathrm{corr}}, |\mathrm{CTCS}_o^f|, |\mathrm{CTCS}_u^f|).

Higher p-values indicate that the corrected distributions are statistically indistinguishable, which is treated as consistent with effective forgetting, while lower p-values indicate significant residual differences, consistent with retained memorization of DfD_f (Miao et al., 2 Aug 2025).

The paper uses the standard two-sided KS test rather than a one-sided alternative because both upward and downward shifts in core-token confidence are treated as meaningful (Miao et al., 2 Aug 2025). Effect size is represented by ScorrS_{\mathrm{corr}}, while significance is represented by the p-value, typically evaluated against a conventional significance threshold such as α=0.05\alpha=0.05 (Miao et al., 2 Aug 2025).

4. Algorithmic procedure and implementation requirements

The DCUE pipeline takes as inputs the original model MoM_o, the unlearned model MuM_u, the forget dataset DfD_f, the validation dataset DvD_v, a prompting model for core-token extraction such as GPT-4o-Mini, and a tokenizer consistent with MoM_o and MuM_u (Miao et al., 2 Aug 2025). The procedure has four stages: core-token identification, confidence extraction, distribution correction, and KS-test scoring (Miao et al., 2 Aug 2025).

In the first stage, for each (q,a)∈Df∪Dv(q,a) \in D_f \cup D_v, the evaluator applies the Question Reformulation Prompt to obtain a fill-in-the-blank question, then applies the Core Answer Extraction Prompt using aa as reference to extract decisive answer words, and finally tokenizes the extracted words to obtain the core token indices K(q,a)K(q,a) (Miao et al., 2 Aug 2025). In the second stage, for each model M∈{Mo,Mu}M \in \{M_o, M_u\} and each dataset d∈{Df,Dv}d \in \{D_f, D_v\}, the evaluator computes per-token probabilities

ct=Pθ(wt∣q,w<t),t∈K(q,a),c_t = P_\theta(w_t \mid q, w_{<t}), \quad t \in K(q,a),

and aggregates them over the dataset to form CTCSMd\mathrm{CTCS}_M^d (Miao et al., 2 Aug 2025).

In the third stage, the evaluator computes the raw KS statistics

So,uf=sup⁡x∣Fof(x)−Fuf(x)∣,So,uv=sup⁡x∣Fov(x)−Fuv(x)∣S_{o,u}^f = \sup_x |F_o^f(x)-F_u^f(x)|,\qquad S_{o,u}^v = \sup_x |F_o^v(x)-F_u^v(x)|

and then applies the correction

Scorr=So,uf−min⁡{So,uv,So,uf}.S_{\mathrm{corr}} = S_{o,u}^f - \min\{S_{o,u}^v, S_{o,u}^f\}.

In the final stage, with n=∣CTCSof∣n=|\mathrm{CTCS}_o^f| and m=∣CTCSuf∣m=|\mathrm{CTCS}_u^f|, the evaluator computes the KS p-value using D=ScorrD=S_{\mathrm{corr}} and reports RDCUE=pR_{\mathrm{DCUE}}=p (Miao et al., 2 Aug 2025).

The paper also provides a high-level pseudocode summary:

  • Kf=extract_core_tokens(Df)K_f = \mathrm{extract\_core\_tokens}(D_f)
  • Kv=extract_core_tokens(Dv)K_v = \mathrm{extract\_core\_tokens}(D_v)
  • CTCSo,f=confidences(Mo,Df,Kf)\mathrm{CTCS}_{o,f} = \mathrm{confidences}(M_o, D_f, K_f)
  • CTCSu,f=confidences(Mu,Df,Kf)\mathrm{CTCS}_{u,f} = \mathrm{confidences}(M_u, D_f, K_f)
  • CTCSo,v=confidences(Mo,Dv,Kv)\mathrm{CTCS}_{o,v} = \mathrm{confidences}(M_o, D_v, K_v)
  • CTCSu,v=confidences(Mu,Dv,Kv)\mathrm{CTCS}_{u,v} = \mathrm{confidences}(M_u, D_v, K_v)
  • So,uf=KS_stat(CTCSo,f,CTCSu,f)S_{o,u}^f = \mathrm{KS\_stat}(\mathrm{CTCS}_{o,f}, \mathrm{CTCS}_{u,f})
  • So,uv=KS_stat(CTCSo,v,CTCSu,v)S_{o,u}^v = \mathrm{KS\_stat}(\mathrm{CTCS}_{o,v}, \mathrm{CTCS}_{u,v})
  • Scorr=So,uf−min⁡(So,uv,So,uf)S_{\mathrm{corr}} = S_{o,u}^f - \min(S_{o,u}^v, S_{o,u}^f)
  • p=KS_pval(Scorr,∣CTCSo,f∣,∣CTCSu,f∣)p = \mathrm{KS\_pval}(S_{\mathrm{corr}}, |\mathrm{CTCS}_{o,f}|, |\mathrm{CTCS}_{u,f}|)
  • return pp (Miao et al., 2 Aug 2025)

From a systems perspective, core-token extraction requires O(∣Df∣+∣Dv∣)O(|D_f|+|D_v|) calls to a prompting model, while confidence extraction requires forward passes proportional to the total number of core tokens, typically O(N⋅K)O(N\cdot K) for NN examples and KK core tokens per example (Miao et al., 2 Aug 2025). KS-statistic and p-value computation are negligible by comparison, with empirical CDF computation and supremum difference in O(Tlog⁡T)O(T\log T) for TT total token confidences (Miao et al., 2 Aug 2025). The evaluation is described as naturally parallelizable and lightweight; although the paper uses four A6000 GPUs for training and unlearning runs, DCUE itself is not presented as computationally heavy (Miao et al., 2 Aug 2025).

A practical implementation requirement is access to token-level probabilities or log-probabilities for ground-truth tokens (Miao et al., 2 Aug 2025). The paper notes that many APIs expose logprobs, and if not, one can switch to open-source inference or implement forced decoding to estimate per-token probabilities (Miao et al., 2 Aug 2025).

5. Experimental characterization

The experimental study in “Towards Evaluation for Real-World LLM Unlearning” uses Phi-1.5B and LLaMA2-7B as principal backbones, with generalization checks on Qwen2.5-7B (Miao et al., 2 Aug 2025). The datasets are modified TOFU, described as a fictitious unlearning task with multiple formats including fill-in-the-blank, multiple-choice, and jailbreak, and MUSE-News (Miao et al., 2 Aug 2025). In the simulation used to validate the correction mechanism, the paper sets Df=400D_f=400 and Dv=400D_v=400 and performs $100$ random samplings of DvD_v to test approximation stability (Miao et al., 2 Aug 2025).

The paper reports that DCUE’s corrected p-values closely match the ideal p-values computed using the unavailable MrM_r in simulation, with only one outlier in 200 experiments for Phi-1.5B and none in LLaMA2-7B (Miao et al., 2 Aug 2025). In the metric property comparison on Phi-1.5B and LLaMA2-7B, DCUE is marked as practical because it does not require MrM_r, whereas prediction-probability and membership-inference-attack baselines do (Miao et al., 2 Aug 2025). On exactness, DCUE achieves exactness+=1\mathrm{exactness}^+ = 1 and exactness−=1\mathrm{exactness}^- = 1, outperforming text-similarity, multiple-choice, prediction-probability, and membership-inference baselines (Miao et al., 2 Aug 2025). On robustness, DCUE scores $1.0$ across PostPro_ul, PostPro_ft, and PostPro_mix, while the other metrics degrade under additional unlearning or fine-tuning (Miao et al., 2 Aug 2025).

Ablation studies are used to isolate the roles of core-token extraction and validation-set correction. Removing core-token identification degrades robustness, with PostPro_ft dropping from $1.0$ to $0.8364$ on Phi-1.5B while retaining some exactness (Miao et al., 2 Aug 2025). Removing DvD_v degrades both exactness and robustness, especially negative exactness and PostPro_ul (Miao et al., 2 Aug 2025). These results are presented as evidence that both the token-selection stage and the distribution-correction stage are necessary components of the metric rather than optional refinements (Miao et al., 2 Aug 2025).

DCUE is also used to evaluate several unlearning algorithms—GA, GD, IDK, DPO, NPO, and SimNPO—on Phi-1.5B and LLaMA2-7B under 2%2\%, 10%10\%, and 20%20\% DrD_r unlearning (Miao et al., 2 Aug 2025). The reported p-values rank SimNPO best and GA second, but all methods remain far below MrM_r (Miao et al., 2 Aug 2025). Illustrative values at 20%20\% include SimNPO at approximately 4.42×10−534.42\times 10^{-53} on Phi-1.5B versus Mr=1.0M_r=1.0, GA at approximately 2.91×10−532.91\times 10^{-53} on Phi-1.5B, and SimNPO at approximately 2.70×10−422.70\times 10^{-42} on LLaMA2-7B versus Mr=1.0M_r=1.0 (Miao et al., 2 Aug 2025). The paper’s conclusion is that current unlearning methods yield only modest improvement over MtM_t and do not approach the theoretical unlearning represented by retraining (Miao et al., 2 Aug 2025).

6. Practical use, assumptions, and limitations

DCUE is explicitly designed for real-world constraints. Because it does not require MrM_r, it avoids retraining cost and can be applied when only MoM_o and MuM_u are available (Miao et al., 2 Aug 2025). Its API-only compatibility follows from the fact that it requires token-level probabilities or logprobs rather than activations or gradients (Miao et al., 2 Aug 2025). Its robustness claim rests on the subtraction of global drift measured on DvD_v, which is intended to stabilize evaluation under unrelated post-processing such as additional unlearning or fine-tuning (Miao et al., 2 Aug 2025).

Validation-set construction is a critical operational issue. The paper states that DvD_v must be disjoint from DfD_f and must not be used during training of MtM_t or MuM_u (Miao et al., 2 Aug 2025). It should be drawn from the same task domain, but it does not need to perfectly match the distribution of DtD_t; the reported empirical results indicate stability under modest mismatch (Miao et al., 2 Aug 2025). The paper also recommends strict leakage avoidance and auditing of data pipelines to maintain this separation (Miao et al., 2 Aug 2025). For small confidence multisets, it recommends bootstrapping over examples to estimate confidence intervals on p-values and increasing DvD_v when feasible, with diverse coverage of question types to stabilize FovF_o^v and FuvF_u^v (Miao et al., 2 Aug 2025).

Several limitations are identified directly. Core-token identification errors can include non-core tokens or miss core tokens, which affects CTCS (Miao et al., 2 Aug 2025). Suggested mitigations are ensemble prompting, manual spot checks, multiple models, and consistency filters (Miao et al., 2 Aug 2025). Validation-set mismatch can cause So,uvS_{o,u}^v to under- or over-estimate drift; proposed mitigations include stratified sampling, multiple DvD_v splits, and sensitivity reporting (Miao et al., 2 Aug 2025). Some proprietary APIs do not provide logprobs, in which case DCUE requires open-source inference or a logprob-capable endpoint (Miao et al., 2 Aug 2025).

The metric is also limited to output distributions. It does not analyze internal activations or privacy leakage channels beyond output confidences, and the paper notes that complementary membership-inference or activation-based analyses may be needed in high-stakes domains (Miao et al., 2 Aug 2025). Finally, because DCUE operates at the token level, the paper advises against collapsing CTCS to more compressed sequence-level summaries unless necessary, since alternative aggregation may lose information (Miao et al., 2 Aug 2025).

7. Relation to unlearning methodology and later distribution-aware evaluation

The paper positions DCUE არა merely as an evaluation tool but also as a guide for unlearning algorithm design (Miao et al., 2 Aug 2025). It argues that algorithms should explicitly suppress confidence on core tokens that encode sensitive knowledge rather than broadly degrading performance on related text (Miao et al., 2 Aug 2025). It further recommends confidence-aware objectives that directly reduce Pθ(wt∣q,w<t)P_\theta(w_t \mid q,w_{<t}) for core tokens on DfD_f while preserving behavior on DrD_r, and suggests integrating DCUE into training to select hyperparameters that improve corrected KS p-values without harming retained capabilities (Miao et al., 2 Aug 2025).

This emphasis on distribution correction has resonances in adjacent work. “Uncertainty-based Debiasing and Unlearning for Decontamination” formulates a sample-level decontamination evaluation that measures how closely a corrected distribution p^(y∣x)\hat p(y\mid x) recovers an uncontaminated distribution pu(y∣x)p_u(y\mid x) using per-sample KL divergence and a ground-truth probability absolute difference, together with a preservation check on uncontaminated data (Sun et al., 22 Jun 2026). “Towards Lifecycle Unlearning Commitment Management: Measuring Sample-level Approximate Unlearning Completeness” introduces UnleScore as a sample-level unlearning completeness score based on calibrated non-membership likelihoods and corrected change distributions, with strong reported correlation to unlearning completeness and anomaly-detection use in lifecycle monitoring (Wang et al., 2024). “A Robust Certified Machine Unlearning Method Under Distribution Shift” argues that evaluation under non-i.i.d. deletions should correct for distribution shift by comparing utility to the retrained model on the retained distribution and by adapting membership inference to avoid confounding from shift alone (Guo et al., 11 Jan 2026). “Unlearning in- vs. out-of-distribution data in LLMs under gradient-based method” formalizes GenEx and RelEx and frames fair ID-versus-OOD evaluation around matched or reweighted reference distributions (Baluta et al., 2024).

A plausible implication is that DCUE belongs to a broader line of unlearning evaluation methods that treat confounding distribution shift as a first-order methodological problem rather than a secondary nuisance. In that sense, the significance of DCUE lies not only in its specific KS-based construction, but also in its assertion that unlearning evaluation should isolate residual evidence of memorization from unrelated global model drift.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Distribution Correction-based Unlearning Evaluation (DCUE).