LLM UNLEARNING · AGENTIC DEPLOYMENTS

K-Bench: A Benchmark for LLM Unlearning in Agentic Deployments

Evaluating unlearning across the memory substrates and observable channels of deployed LLM agents.

Guangsheng Yu · Yanna Jiang · Qin Wang
Baihe Ma · Xu Wang

University of Technology Sydney · CSIRO

CHANNEL LEAKAGEResults

Channel leakage
under StaR

Llama-3.1-8B · R-struct · StaR

No interventionStaR
Final answer −36.9 percentage points
83.2%
46.3%
All channels · OR(all) +0.2 percentage points
85.5%
85.7%
The target value remains recoverable in tool observations.
4Memory substratesWeights, context, two retrieval forms
6Observable channelsAcross the agent execution trace
3Base modelsEvaluated in valid configurations
20Published methodsCompared on the parametric target
01 / MOTIVATION

Unlearning across
observable channels

Deployed agents produce reasoning traces, call tools, and retrieve records in addition to generating final answers. Each observable channel can expose a target value.

K-Bench evaluates the full observable ReAct trace. A query counts as leaked when any channel reveals the target value. Unlearning is assessed jointly with retain-set behavior and agent stability.

01Channel coverageDetect leakage across channels
02Separate evaluationScore each substrate separately
03Agent usabilityAccount for retain damage and collapse
02 / FRAMEWORK

Memory substrates
and access paths

Each configuration injects the target into one substrate. Eligible interventions are evaluated and scored separately on each substrate.

MEMORY SUBSTRATE

R
ReAct agentReason → act → observe
CHANNEL OF INTEREST

Six observable channelsReasoning textTool argumentsArguments + observationsRetrieval resultsFinal answerElicited summary

Reasoning text refers to observable ReAct “Thought” traces. The arguments-and-observations channel includes tool arguments, so the six channels are not independent.

View the complete framework
K-Bench substrate routing, observable channels, and scoring framework
Each substrate is scored separately. Observations are aggregated by a per-query logical OR across six channels, alongside retain preservation and agent stability.
03 / RESULTS

Recovery under nested
observation budgets

Recovery rates are measured on the no-intervention baseline as the observer gains access to additional channels, separately for each model and substrate.

NO-INTERVENTION BASELINE
Target recovery rate Fraction of queries with leakage


View values for this configuration
Observation budgetObserved channelsRecovery rate
View results across all models
Recovery rates across base models and memory substrates
No-intervention recovery rates across observation budgets for all measurable model–substrate configurations.
Interpretation

The additional recovery depends on the substrate. Elicited summaries account for the main increase on the parametric target, while tool channels account for the main increase on text retrieval.

04 / SCORING

Collapse-aware scoring

K-Score combines forget-set leakage, retain-set change, and added degeneration. Adjust the example inputs to inspect their multiplicative effect.

1 − graded leakage×Retain preservation×Agent stability=K-Score
ILLUSTRATIVE CALCULATION0.900
0.90 × 1.00 × 1.00

Higher scores indicate better selective forgetting under the evaluated observer. They do not establish that the information has been removed from the weights.

K-Score uses graded token-recall severity; OR(all) uses binary leakage detection. Scores are interpreted within a base model and reported separately for each substrate.
05 / METHOD COMPARISON

Eligibility-gated
method comparison

Methods first pass retain-preservation and stability requirements. Eligible methods are then ranked by leakage suppression.

ELIGIBILITY GATE

1 / 20 methods pass the primary gate

Retain preservation ≥ 80% of baselineAdded degeneration ≤ 20 percentage pointsAgent status No terminal collapse
MethodSuppression ↑Retain ↑Added degen. ↓

Parametric substrate P, weight-merged target, seed 0; 200 forget and 200 retain queries per configuration. Retain preservation measures correct-value recovery relative to the no-intervention baseline and can exceed 100%. The ranking uses the suppression factor, not K-Score or a relative reduction from baseline.

Across models

ELM, RMU, and LoKU rank first among eligible methods on the three base models, respectively. ELM is the only method that passes the primary gate on all three.

06 / LIMITATIONS

Scope and limitations

The results apply to the evaluated deployments, observer, and data. The following factors limit their generalization.

Observer capability01

The observer uses fixed queries and reads six exposed channels without access to weights or activations. Adaptive follow-up queries and reconstruction from fragments across channels are outside the evaluation.

Agent degeneration and scoring02

Execution failures can reduce observed leakage. K-Score penalizes degeneration added over baseline, but terminal collapse need not produce a zero score when the baseline already degenerates. The leaderboard therefore applies a separate validity requirement.

Cross-entity leakage03

Detection is keyed to the queried entity. On retrieval substrates, ECO can return another entity’s record after corrupting the input. Such disclosures are not fully captured by the per-query detector.

Data and substrate coverage04

The main corpus contains 5,000 synthetic entities; real-format PII validation covers dates of birth only. Experiments use single substrates and LoRA-injected parametric targets, without testing native pretraining memorization, mixed substrates, or multilingual deployments.

Model and method configurations05

The model–substrate design is not fully factorial: Mistral’s context baseline falls below the measurability gate. Weight-based methods use a shared target and matched budgets, so absolute results do not reproduce each method’s published operating point.

READ THE PAPER

Paper and resources

Complete methodology, experimental results, and discussion.