ICCU: In-Context Continual Unlearning via Pattern-Induced Refusal Rules Ruihao Pan Pennsylvania State University [email protected]
arXiv:2605.27138v1 [cs.AI] 26 May 2026
Abstract Machine unlearning aims to remove the influence of specific data from trained language models. In real-world deployments, unlearning requests often arrive sequentially, which challenges existing fine-tuning-based methods: fine-tuning each request is costly, accumulates utility loss, and may cause cross-request interference. To address these issues, we propose ICCU (In-Context Continual Unlearning), an in-context continual unlearning framework that induces readable refusal rules from unlearning datasets and applies them at inference time either as a filter or via the system prompt, without modifying model parameters. Because rules are accumulated as an order-independent union, ICCU is compositional and free of crossrequest interference, and the original forget-set data can be discarded after rule induction. Extensive experiments show that ICCU effectively suppresses target knowledge while preserving utility, scales across sequential requests, and remains robust to paraphrased and cross-lingual queries.
1
Introduction
Large language models (LLMs) have demonstrated remarkable capabilities on various tasks (Grattafiori et al., 2024; Yang et al., 2025). However, they are trained on web-scale corpora that inevitably contain sensitive, harmful, or copyrighted information, which LLMs could memorize and reproduce (Carlini et al., 2021; Karamolegkou et al., 2023; Li et al., 2024). Such content often needs to be removed from the trained LLMs to comply with privacy regulations such as the GDPR’s “right to be forgotten” (Mantelero, 2013), to address copyright disputes (Henderson et al., 2023), or to mitigate the spread of hazardous knowledge (Li et al., 2024). As retraining from scratch is prohibitively expensive, machine unlearning, which aims to effectively eliminate the influence of specific data from trained models, has
Suhang Wang Pennsylvania State University [email protected]
attracted increasing attention (Cao and Yang, 2015; Nguyen et al., 2025; Yao et al., 2024). Existing unlearning approaches largely rely on fine-tuning or parameter updates (Jang et al., 2023; Maini et al., 2024; Li et al., 2024; Zhang et al., 2024), which, while effective on a single request, are costly and difficult to apply repeatedly on large models (Nguyen et al., 2025; Qiu et al., 2025). In practice, deletion requests may keep emerging over time: individuals, copyright holders, and content moderators may issue them at any point throughout a model’s deployment lifecycle (Mantelero, 2013; Henderson et al., 2023; Li et al., 2024; Gao et al., 2025). This sequential arrival of requests gives rise to the problem of continual unlearning (Gao et al., 2025; Wuerkaixi et al., 2025; Xu et al., 2026). A natural approach to continual unlearning is to apply an existing fine-tuning-based unlearning method (Li et al., 2024; Jang et al., 2023; Zhang et al., 2024; Maini et al., 2024) to each incoming request. However, applying such methods sequentially raises three challenges: (i) cost—each round of fine-tuning is computationally expensive, and this cost accumulates over sequential requests (Muresanu et al., 2025; Nguyen et al., 2025); (ii) relearning—previously removed knowledge may reappear after subsequent rounds, undoing earlier unlearning (Gao et al., 2025; Xu et al., 2026); and (iii) utility erosion—the model’s general capability tends to degrade as more rounds of fine-tuning are applied (Wuerkaixi et al., 2025; Xu et al., 2026). Very few recent works are published on continual unlearning (Section 2), and most of them are still fine-tuning-based and thus inherit the same challenges. Hence, continual unlearning remains underexplored, which motivates us to design an efficient and effective framework that can simultaneously tackle the above issues. To address these challenges, we propose ICCU, a framework that performs continual unlearning via in-context unlearning without modifying model
parameters. For each unlearning request, ICCU clusters its samples into semantic groups and prompts an LLM to induce high-level patterns, which are converted into readable refusal rules. Sequential requests are handled by simply accumulating their rules into a shared repository, enabling scalable unlearning without parameter updates or cross-request interference. At inference time, ICCU dynamically selects a relevant subset of rules to regulate model behavior, supporting two complementary deployment modes: (i) filter-based unlearning (Section 6), where ICCU acts as a standalone semantic filter that intercepts forget-set queries with a separate refusal decision before generation, and (ii) endto-end unlearning (Section 7), where rules are injected into the system prompt so that filtering and answering are jointly handled in a single LLM call. The two modes share the same rule induction pipeline but differ in their cost–interface trade-off: the filter-based mode runs refusal and generation as two separate calls and offers a clean, modular interface, while the end-to-end mode merges them into a single call, reducing inference cost while achieving comparable effectiveness. A single rule set can thus be reused across deployment scenarios with different latency and integration constraints. ICCU offers five key advantages over existing approaches. First, it is training-free and continual by design: new requests are handled by appending rules rather than retraining, eliminating crossrequest interference and making the final behavior invariant to request order. Second, it is privacyfriendly: once rules are induced, the forget-set data is discarded, and only cluster centroids and rules— from which raw samples cannot be recovered— are kept. Third, it is semantically robust: since matching relies on semantic representations rather than surface-level lexical patterns, ICCU generalizes to paraphrased and many cross-lingual queries, where keyword- or classifier-based methods often degrade sharply. Fourth, it is readable and controllable: each rule is a human-readable description of an unlearning-related topic, making the policy auditable and controllable at the request or rule level. Fifth, it is flexibly deployable: rules can be freely composed and selectively activated at inference time, letting one rule repository serve different deployment scenarios. Our contributions are: (i) we study a new problem of in-context based continual unlearning; (ii) we propose ICCU, a novel in-context, rule-based
framework that performs continual unlearning without modifying model parameters, inducing compact, readable refusal rules that are applied in either filter-based (Section 6) or end-to-end (Section 7) mode and are free of cross-request interference; and (iii) extensive experiments demonstrate the effectiveness of ICCU on continual unlearning.
2
Related Work
LLM unlearning aims to eliminate the influence of specific data or knowledge from a trained LLM without retraining from scratch (Yao et al., 2024; Ren et al., 2025). Existing approaches can be broadly divided into parameter-updating and parameter-free methods (Nguyen et al., 2025; Wang et al., 2023; Qiu et al., 2025). Parameterupdating approaches modify model weights to suppress or overwrite unwanted knowledge, either through gradient-based optimization (Jang et al., 2023; Yao et al., 2024; Zhang et al., 2024; Maini et al., 2024; Mekala et al., 2025; Feng et al., 2024; Wang et al., 2025a) or by altering internal representations (Pochinkov and Schoots, 2024; Li et al., 2024; Dang et al., 2025; Shen et al., 2025; Wang et al., 2025c; Guo et al., 2024). However, such methods often suppress behaviors rather than remove the underlying knowledge, leaving it vulnerable to relearning (Pan and Wang, 2026; Hu et al., 2025). Parameter-free approaches instead control model behavior through inference-time mechanisms without modifying parameters (Thaker et al., 2024; Pawelczyk et al., 2024; Takashiro et al., 2025; Wang et al., 2026; Muresanu et al., 2025; Wang et al., 2025b; Bhaila et al., 2025). Continual unlearning, which targets sequentially arriving deletion requests, has recently drawn increasing attention, and most existing methods for it are finetuning-based (Gao et al., 2025; Chen and Yang, 2023; Zhang et al., 2025a; Wuerkaixi et al., 2025; Wang et al., 2026; Xu et al., 2026). An extended discussion of in-context unlearning and continual unlearning is in Appendix A.
3
Problem Definition
We study unlearning in a continual setting, where deletion requests arrive sequentially over a model’s deployment lifecycle rather than all at once. In practice, the knowledge to be removed is rarely isolated: forgetting the target information entails removing all information entangled with it. For example, to unlearn a fictitious author in TOFU (Maini
et al., 2024), one must remove not only the author’s name but also their birthplace, parents, works, and other associated attributes, which together form a set of related samples. Moreover, unlearning requests keep emerging over time, and updating the model upon each individual request is impractical; requests are therefore buffered and processed in periodic rounds, so that each round accumulates multiple requests and may span several forget topics. Considering these characteristics, we model the unlearning stream as a sequence of forget datasets t [D1 , D2 , . . . , DT ], where each Dt = {xi }ni=1 specifies the content to be removed in round t. After processing the first t rounds, the deployed system must Sbehave as if the knowledge described by D1:t = t′ ≤t Dt′ had never been available, while preserving its behavior on all other inputs. Beyond forgetting and utility preservation, the continual setting further requires stability under sequential arrival: the final behavior should be invariant to request order, and processing a new request should neither undo earlier unlearning (relearning) nor degrade general capability (utility erosion).
4
The Proposed Framework
We propose ICCU (In-Context Continual Unlearning), a rule-based framework that, under the continual setting of Section 3, converts each forget dataset Dt into a compact set of readable refusal rules and applies them dynamically at inference time to regulate model behavior. The design follows a simple human intuition: when given a batch of sensitive documents, a person reads through them, summarizes a few rules, keeps them in mind, and constrains future answers accordingly. This requires neither carrying the original documents nor rewiring one’s brain (i.e., updating model parameters), and new rules are simply appended as more documents arrive. ICCU realizes this intuition in two stages. The first stage, continual refusal rule generation (Section 4.1), processes each Dt by clustering its samples, inducing a refusal rule per cluster, and accumulating rules across requests into a shared repository. The second stage, inference-time adaptive rule retrieval (Section 4.2), processes each query by applying cluster gating on centroid distances to filter out non-sensitive queries, retrieving the top-m relevant rules if the query is in scope, and applying the retrieved rules either as a standalone filter or jointly with answer generation. Figure 1 illustrates the framework.
4.1
Continual Refusal Rule Generation
Clustering with Embeddings A natural idea for in-context continual unlearning is to store the raw samples of each request Dt and, when a query arrives, compare it against them to decide whether it is relevant to unlearned knowledge. However, forget-set data may not be retainable due to privacy constraints, and storing all samples is in any case redundant and costly. We therefore extract from each Dt a small set of natural-language refusal rules, each describing a forget topic, and discard the original samples. Since a request may cover several distinct topics, inducing a single rule over the whole Dt would yield only a coarse description that misses the specifics of each topic. We therefore first cluster Dt into coherent topics and induce one focused rule per cluster: clustering groups samples that share the same underlying knowledge, letting the induction step exploit their semantic relatedness while retaining only the compact centroids in place of raw samples. Concretely, every xi ∈ Dt is encoded by a pre-trained embedding model f (·) (e.g., BGE-M3 (Chen et al., 2024)) into an ℓ2 -normalized vector ei = f (xi ) ∈ Rd , and the embeddings are partitioned into Kt clusters {C1 , . . . , CKt } by Kt means, yielding centroids {ck }K k=1 that summarize cluster semantics and serve the gating step in Section 4.2. The cluster count Kt may vary per request; we analyze its effect and that of the embedding model in Section 6.5. Pattern Induction For each cluster Ck , we prompt an LLM to extract refusal rules. To prevent the prompt from exceeding the context window and avoid feeding redundant examples to the LLM, we sample a set of representative examples from Ck . We then prompt an LLM to summarize their shared characteristics into a concise natural-language refusal rule rk (full prompt in Appendix D). The rule captures the core semantics of the cluster, so that at inference time the model can determine whether to refuse by reading the rule together with the incoming request. We use natural language as the rule format because it is directly readable by humans for auditing, and by the LLM as inferencetime input. Each rule rk is paired with its cluster centroid ck , forming the rule set for request Dt : t R(t) = {(ck , rk )}K k=1 . An example of an induced rule from WMDP-Bio (Li et al., 2024) is: The user request is about detailed instructions for synthesizing hazardous chemical or biological agents. Continual Rule Accumulation Given the above
Figure 1: Overview of the ICCU framework. Stage 1 (Continual Refusal Rule Generation) processes each forget dataset Dt by (1) clustering its samples, (2) inducing one natural-language refusal rule per cluster, and (3) accumulating the rules across rounds into a shared repository R. Stage 2 (Inference-Time Adaptive Rule Retrieval) handles each query q by (4) cluster gating, which answers q directly when it is out of scope (davg > τ ); (5) retrieving the top-m rules when q is in scope (davg ≤ τ ); and (6) applying the retrieved rules either as a standalone filter (filter-based unlearning) or jointly with answer generation (end-to-end unlearning).
procedure for extracting a rule set from a single Dt , sequential requests are handled by appending rule sets into a global repository as: R=
T [ t=1
R(t) = {(cn , rn )}N n=1 ,
N=
T X
Kt .
(1)
t=1
This accumulation scheme yields three properties by construction: (i) order-independence (the final repository does not depend on request order), (ii) compositionality (any subset of rules can be selectively activated; see Table 3), and (iii) reversibility (revoking a request reduces to deleting the corresponding rules). Together, these properties make the repository readily adaptable to flexible continual unlearning deployments. 4.2
Inference-Time Adaptive Rule Retrieval
At inference time, given an input query x, we decide whether and how to apply the unlearning rules. In a continual setting, the rule repository R keeps growing as new unlearning requests are processed, so applying all rules to every query is infeasible. Instead, we retrieve only the rules relevant to x using two checks in sequence. The first is a fast, embedding-level check called cluster gating: it measures how close x is to the forget clusters, and answers x directly if it is far from all of them. Queries that are close enough pass to the second check, rule selection, an LLM-level check that reads the rules of the nearby clusters and decides whether x truly matches one of them, instead of just being close in the embedding space. The two checks complement each other: the first quickly filters out unrelated queries, and the second catches the borderline cases that the embedding distance alone gets wrong. Next, we give details.
Cluster Gating Intuitively, a query that lies far from all centroids is unlikely to be unlearningrelated and can be answered by the LLM directly, whereas one that lies close to a centroid is a potential unlearning-related query that needs further checking. We therefore use the cluster centroids as a gate. Specifically, we compute eq = f (x) and measure the average cosine distance between eq and its k nearest centroids in C = {c1 , . . . , cN } (all embeddings ℓ2 -normalized): 1X davg (x) = 1 − ⟨eq , c⟩ , (2) c∈N (e ) k k q where Nk (eq ) denotes the k nearest centroids and ⟨·, ·⟩ is the inner product. The choice of k is discussed in Appendix E. If davg (x) > τ , x is treated as out-of-scope and no rule is applied; otherwise it proceeds to the rule check. Rule Selection A query that passes the gate is a potential unlearning-related query, but cluster gating relies only on embedding proximity, which is a coarse signal and may wrongly intercept benign queries that happen to lie near a centroid. Instead of refusing such a query outright, we add a second, independent check based on LLM-level semantic reasoning. We feed the LLM the rules that summarize the characteristics of the nearby clusters and let it judge whether the query genuinely belongs to one of them, rather than being merely close in the embedding space. We restrict this to the top-m nearest clusters, since farther clusters are likely unrelated to the query and including too many rules would exceed the context budget and degrade the LLM’s judgment. Specifically, we retrieve the top-m nearest centroids under cosine similarity and form the corresponding rule subset
R′ (x) = {rn : cn is among the top-m}, which is then used to regulate the model’s response. This dynamic mechanism ensures that only relevant rules are activated for each query. Applying Retrieved Rules Once R′ (x) is retrieved, the rules can be applied in two complementary ways that share the same pipeline and differ only in how the rules enter inference: filter-based (Section 6) and end-to-end (Section 7) unlearning. In filter-based unlearning, rule matching is the sole decision step: an LLM is prompted with x and R′ (x) for a binary verdict (refuse or answer), then invoked again to generate an answer for queries that are not refused. This, however, passes the same query through the model twice, adding latency and token cost. End-to-end unlearning instead merges matching and generation into a single call. A straightforward design proceeds in two sequential steps, first judging whether x matches any rule and then refusing or answering accordingly; we find, however, that conditioning the two subtasks sequentially makes them interfere, degrading performance. We therefore produce both as independent subtasks under a structured format: we inject R′ (x) into the system prompt, and the model jointly emits a match verdict and a candidate answer to x as if no rules existed. At decoding time the verdict gates the response: matched queries are overridden with a refusal, otherwise the candidate is returned. Full prompts and details are in Appendix F (filter-based) and Appendix K (end-toend).
5
Experimental Setup
We evaluate ICCU on widely used benchmarks and base models below, shared across filter-based (Section 6) and end-to-end (Section 7) unlearning. Following Section 3, the forget targets on each benchmark are treated as a sequence of unlearning requests arriving one after another. Datasets. We use two unlearning benchmarks, TOFU (Maini et al., 2024) and WMDP (Li et al., 2024), and MMLU (Hendrycks et al., 2021) as a general-capability reference. TOFU targets selective knowledge removal on fictional-author biographies, with forget ratios of 1%, 5%, and 10%; WMDP targets hazardous-knowledge unlearning in biology, chemistry, and cybersecurity; and MMLU, not an unlearning target, measures whether general ability is preserved after unlearning on WMDP. Unless otherwise specified, requests arrive in se-
quential order of 1%, 5%, 10% on TOFU, and in sequential order of Bio, Cyber and Chem on WMDP. Full details are in Appendix B. Models. We evaluate ICCU on two widely used model families: Qwen and Llama. On WMDP, we apply unlearning to Qwen3-14B and Llama-3-8B-Instruct directly. On TOFU, the filter-based mode (Section 6) does not generate answers and uses off-the-shelf Llama-3-8B-Instruct and Llama-2-7B-chat-hf directly, whereas the end-to-end mode (Section 7) generates answers and thus needs the target knowledge; since it is absent from pretraining, we fine-tune both models on the full TOFU split. More details are in Appendix C.
6
Filter-based Unlearning
In this section, we evaluate ICCU under the filterbased unlearning mode introduced in Section 4.2; implementation details are in Appendix F. Evaluation Metrics. We use Refusal Rate, the fraction of queries ICCU refuses on a given dataset. An ideal method achieves a high Refusal Rate on forget queries (↑) and a low one on non-target queries (the retain split on TOFU, MMLU on WMDP; ↓). Baselines. We compare against two filter-based baselines adapted from Thaker et al. (2024): Guardrail Filter, which prompts an LLM to decide whether a query falls within the target domain, and Guardrail Classifier, a linear classifier trained on LLM-derived embeddings to identify forget-set queries. The latter is evaluated only on TOFU, since training it requires a labeled retain set that WMDP does not provide. Details are in Appendix F.2. 6.1
Continual Unlearning Performance
Unless otherwise noted, all results in this section are measured after all unlearning requests have been processed; the intermediate behavior after each individual request is captured by the activation-pattern study in Section 6.2 (Table 3). Table 1 reports results on WMDP. ICCU achieves Refusal Rates above 0.93 on all three subsets while keeping the Refusal Rate on MMLU below 0.04, indicating strong forget-side coverage with minimal over-triggering on benign queries. Table 2 shows the results on TOFU, where ICCU maintains high Refusal Rates (≥ 0.925) on the forget splits and low Refusal Rates on the retain splits
Table 1: Filter-based unlearning results on the WMDP subsets (Bio, Cyber, Chem) and MMLU. Method
Bio ↑ Cyber ↑ Chem ↑ MMLU ↓ Qwen3-14B
Guardrail Filter 0.470 ICCU 0.960
0.596 0.943
0.757 0.953
0.284 0.033
to handling each request in isolation. The same trend holds on TOFU (Appendix G), confirming that ICCU exhibits no cross-request interference, a key requirement for continual unlearning. 6.3
Llama-3-8B-Instruct Guardrail Filter 0.395 ICCU 0.968
0.637 0.971
0.328 0.934
0.145 0.031
across all forget ratios. ICCU consistently outperforms the prompt-based Guardrail Filter on both benchmarks, and is comparable to Guardrail Classifier, which is trained on labeled forget/retain data and benefits from overfitting. Together, these results show that cluster gating efficiently localizes in-scope queries while the rule-based check prevents over-filtering. 6.2
Rule Composition Analysis
A central challenge in continual unlearning is crossrequest interference: when deletion requests are processed in successive rounds, later rounds often disturb the unlearning of earlier ones, causing previously removed knowledge to resurface or degrading the model’s utility (Gao et al., 2025; Wuerkaixi et al., 2025; Xu et al., 2026). We therefore examine whether ICCU is subject to such interference. Since ICCU accumulates the rules of all requests in a shared repository and applies them jointly at inference time, we test it by composing different combinations and numbers of per-request rule sets and checking whether the unlearning effect on each target degrades. Each row in Table 3 corresponds to a different activation pattern: only the rules from the request subset indicated in that row participate in cluster gating and rule selection, while rules from the other requests are masked out of the retrieval pool. Activating a given subset of rule sets is thus equivalent to having unlearned only the corresponding requests’ datasets, so comparing across rows reveals whether adding unlearning requests alters the unlearning effect on each target. On WMDP across Bio, Cyber, and Chem, both forget-side and retain-side performance remain largely stable regardless of which and how many rule sets are activated. This indicates that even as the repository accumulates rules from multiple requests, gating and top-m retrieval continue to activate the correct rules for each query, so composition does not degrade unlearning effectiveness relative
Generalization under Paraphrasing and Multilinguality
In practice, user queries may be paraphrased or written in another language while the underlying intent still falls within an unlearning-related request. Robustness to such perturbations is necessary: a method that suppresses only the verbatim forms while letting these variants through offers little real protection. We evaluate ICCU against the Guardrail Classifier on paraphrased and translated queries (construction details in Appendix H.1). Table 4 reports the results against the Original rows of Table 2, with more languages in Appendix H.2. ICCU stays robust across all variants, keeping high refusal rates on forget queries and low ones on retain queries under both paraphrasing and translation. Both methods handle paraphrasing well, but the Guardrail Classifier degrades sharply in the multilingual setting while ICCU stays stable across the languages reported here. This is because ICCU’s gating relies on a multilingual embedding model, which compensates for the downstream LLM’s limited multilingual capability. 6.4
Ablation Study
We ablate the two components of ICCU and compare against two variants: ICCUw/o Gating , which always applies retrieved rules, and ICCUw/o Rule , which relies on cluster gating alone. Results on WMDP are reported in Table 5, with a threshold sweep in Figure 2. Results on TOFU are in Appendix I. ICCUw/o Rule already achieves high forget-side and low retain-side Refusal Rates at low latency, showing that gating alone handles most queries correctly. The two stages, however, use different decision logic (embedding-level vs. LLM-level semantic reasoning), so each catches errors the other misses, and adding the rule check yields complementary gains in two ways. First, it substantially reduces over-refusal on boundary retain queries: on MMLU, the Refusal Rate drops from 0.050 to 0.031 (a ∼40% relative decrease), while forgetside coverage is largely preserved. Second, it stabilizes performance under imperfect gating calibration: as the gating threshold is swept from 0.20 to 0.45 (Figure 2), ICCUw/o Rule exhibits a sharp
Table 2: Filter-based unlearning results on TOFU, measured by Refusal Rate. We report the Refusal Rate on each forget split (↑) and the corresponding retain split (↓). Method
TOFU-1%
TOFU-5%
TOFU-10%
Forget01 ↑ Retain99 ↓ Forget05 ↑ Retain95 ↓ Forget10 ↑ Retain90 ↓ Llama-3-8B-Instruct Guardrail Filter Guardrail Classifier ICCU
0.675 1.000 0.975
0.179 0.097 0.075
0.495 1.000 0.940
0.167 0.048 0.039
0.507 1.000 0.925
0.148 0.000 0.006
0.026 0.050 0.043
0.180 1.000 0.938
0.018 0.000 0.009
Llama-2-7B-chat-hf Guardrail Filter Guardrail Classifier ICCU
0.225 1.000 0.975
0.032 0.097 0.080
Table 3: Rule composition for continual unlearning on the WMDP subsets (Bio, Cyber, Chem) and MMLU, measured by Refusal Rate. Each row activates a different subset of per-request rule sets at inference time. Bio ↑ Cyber ↑ Chem ↑ MMLU ↓
Method
ICCU (Rbio ) 0.973 ICCU (Rcyber ) – ICCU (Rchem ) – ICCU (Rbio, cyber ) 0.967 ICCU (Rbio, chem ) 0.974 ICCU (Rcyber, chem ) – ICCU (Rbio, cyber, chem ) 0.968
Bio (ICCU) Chem (ICCU) Bio (ICCUw/o Rule ) Chem (ICCUw/o Rule )
– 0.977 – 0.974 – 0.976 0.971
– – 0.939 – 0.941 0.939 0.934
0.019 0.030 0.013 0.032 0.019 0.030 0.031
Cyber (ICCU) MMLU (ICCU) Cyber (ICCUw/o Rule ) MMLU (ICCUw/o Rule )
Refusal Rate
1 0.8 0.6 0.4
6.5
0.25
0.3
0.35
0.4
0.45
Gating threshold
Figure 2: Refusal Rate under varying gating thresholds on the WMDP subsets (Bio, Cyber, Chem) and MMLU.
rise in MMLU Refusal Rate, whereas full ICCU stays relatively flat as the rule check intercepts boundary errors before they cause refusals. Conversely, removing gating (ICCUw/o Gating ) exposes every query to the rule prompt, inflating MMLU over-refusal to 0.274 while incurring the LLM cost on all traffic. Cascading the two modules so that the rule check runs only on gate-passing queries thus preserves the speed of gating for most traffic while retaining the robustness of rule-based verification.
Embedding Model and Cluster Number
ICCU relies on an embedding model f (·) and a cluster count K to control rule granularity. To assess sensitivity, we evaluate five embedding models and sweep K over a wide range. On WMDP, where each subset is relatively large (Bio 1,273, Cyber 1,987, Chem 408 samples), we set K to 1%–10% of the number of samples in the request (e.g., for WMDP-Bio, 1% gives about 12 clusters). On TOFU, the forget splits are much smaller (e.g., Forget01 has only 40 samples), so a percentagebased K would leave too few clusters; we therefore use a fixed range of 5 to 40 clusters instead (models and full results in Appendix J). ICCU stays robust across all tested models and cluster counts. In particular, a small number of clusters already suffices and increasing it brings little gain. Hence, ICCU performs strongly with a compact rule set, which eases the selection of the embedding model and cluster granularity.
7
0.2 0 0.2
0.185 1.000 0.950
End-to-End Unlearning
In this section, we evaluate ICCU under the end-toend unlearning mode introduced in Section 4.2; implementation details are in Appendix K. For comparison, we also report the filter-based mode (filter + generate), which adds a separate generation call when an answer is needed. The end-to-end mode merges the two into a single call; as both modes share the same pipeline, filter + generate serves as a same-framework reference for the cost– effectiveness trade-off of this single-call design. Baselines. We compare ICCU against three finetuning-based unlearning methods: Gradient Ascent (GA) (Jang et al., 2023), Representation Misdirection for Unlearning (RMU) (Li et al., 2024), and O3 (Gao et al., 2025), a fine-tuning-based method designed for continual unlearning. Details of these baselines are in Appendix L.
Table 4: Robustness of ICCU on TOFU under paraphrased and multilingual queries, measured by Refusal Rate. Input Variant
TOFU-1%
Method
TOFU-5%
TOFU-10%
Forget01 ↑
Retain99 ↓
Forget05 ↑
Retain95 ↓
Forget10 ↑
Retain90 ↓
Paraphrased
Guardrail Classifier ICCU
0.950 0.950
0.093 0.097
0.935 0.940
0.049 0.062
0.920 0.940
0.002 0.014
French
Guardrail Classifier ICCU
0.800 0.975
0.047 0.090
0.575 0.965
0.022 0.052
0.492 0.938
0.001 0.018
Portuguese
Guardrail Classifier ICCU
0.325 0.950
0.008 0.082
0.165 0.940
0.003 0.047
0.115 0.925
0.000 0.010
Russian
Guardrail Classifier ICCU
0.200 1.000
0.015 0.122
0.150 0.975
0.005 0.083
0.113 0.945
0.002 0.049
Table 5: Component ablation of ICCU on the WMDP subsets (Bio, Cyber, Chem) and MMLU, measured by Refusal Rate. RR: Refusal Rate (WMDP ↑, MMLU ↓); Time: wall-clock latency per query (ms). Method
Bio
Cyber
Chem
MMLU
RR ↑ Time (ms) ↓ RR ↑ Time (ms) ↓ RR ↑ Time (ms) ↓ RR ↓ Time (ms) ↓ ICCUw/o Gating 0.978 ICCUw/o Rule 0.988 ICCU 0.968
147 37 146
0.986 0.983 0.971
Evaluation Metrics. We report accuracy on WMDP (and MMLU) and ROUGE-L on TOFU, following standard practice for each benchmark. For ICCU, we additionally report the Refusal Rate, defined as in Section 6. Results. Table 6 presents the end-to-end results on WMDP. TOFU (Appendix M) shows consistent trends. On WMDP, ICCU attains the best unlearning–utility trade-off: it suppresses accuracy on the three subsets (Bio, Cyber, Chem) comparably to the fine-tuning baselines while keeping MMLU accuracy close to the original model. In contrast, GA and RMU incur large utility losses, and even O3 , which is specifically designed for continual unlearning, preserves utility less well than ICCU. Comparing the two ICCU variants, the endto-end mode performs comparably to filter + generate on the three subsets and on MMLU utility, while reducing the number of LLM calls and removing the duplicated prompting, reducing inference cost. Unlike the fine-tuning baselines, whose sequential updates can interfere across rounds, ICCU is free of cross-request interference by construction (Table 3). Beyond accuracy, the Refusal Rate confirms that ICCU’s gating decision remains accurate even under the structured single-call generation format.
8
Conclusion
We propose ICCU, a framework for in-context continual unlearning that suppresses targeted knowledge without modifying model parameters. By
205 53 204
0.939 0.993 0.934
117 25 116
0.274 0.050 0.031
139 41 45
Table 6: End-to-end unlearning results on the WMDP subsets (Bio, Cyber, Chem) and MMLU. Bio ↓ Cyber ↓ Chem ↓ MMLU ↑
Method
Qwen3-14B Original GA RMU O3 ICCU (filter + generate) – Refusal Rate ICCU (end-to-end) – Refusal Rate
0.796 0.255 0.461 0.256 0.271 0.960 0.289 0.911
0.579 0.278 0.425 0.267 0.265 0.943 0.287 0.888
0.591 0.237 0.399 0.230 0.266 0.953 0.262 0.966
0.747 0.239 0.599 0.619 0.731 0.033 0.733 0.028
0.515 0.299 0.255 0.232 0.275 0.934 0.255 0.990
0.606 0.302 0.264 0.498 0.606 0.031 0.584 0.050
Llama-3-8B-Instruct Original GA RMU O3 ICCU (filter + generate) – Refusal Rate ICCU (end-to-end) – Refusal Rate
0.697 0.288 0.293 0.256 0.256 0.968 0.258 0.977
0.420 0.255 0.277 0.267 0.254 0.971 0.254 0.977
clustering unlearning datasets and inducing readable refusal rules, ICCU supports efficient and scalable continual unlearning, with rules usable either as a standalone filter or as an integrated component for end-to-end unlearning. Extensive experiments demonstrate its effectiveness and its ability to scale without cross-request interference. Finally, since rules are model-agnostic artifacts, the induction and application stages need not share the same model: a stronger model could induce high-quality rules offline while a smaller model applies them at inference. We leave a systematic study of this decoupling to future work.
Limitations Our evaluation covers two model families (Qwen and Llama) at three scales (7B, 8B and 14B); while ICCU makes no architecture-specific assumptions, its transfer to other families and scales—and in particular whether much smaller models retain enough classification ability to apply the rules reliably— remains unverified. In addition, cluster gating rests on the assumption that forget-set queries are separable from utility queries in the embedding space; when the two distributions become entangled, gating may become less reliable and over-refusal may increase. Finally, each benchmark in our experiments involves only three sequential unlearning requests; we have not examined how ICCU behaves when the rule repository scales to hundreds or thousands of requests, where retrieval and gating may face greater pressure.
References Mohammad Kalim Akram, Saba Sturua, Nastia Havriushenko, Quentin Herreros, Michael Günther, Maximilian Werk, and Han Xiao. 2026. jinaembeddings-v5-text: Task-targeted embedding distillation. arXiv preprint arXiv:2602.15547. Yauhen Babakhin, Radek Osmulski, Ronay Ak, Gabriel Moreira, Mengyao Xu, Benedikt Schifferer, Bo Liu, and Even Oldridge. 2025. Llama-embednemotron-8b: A universal text embedding model for multilingual and cross-lingual tasks. Preprint, arXiv:2511.07025. Karuna Bhaila, Minh-Hao Van, and Xintao Wu. 2025. Soft prompting for unlearning in large language models. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pages 4046– 4056. Yinzhi Cao and Junfeng Yang. 2015. Towards making systems forget with machine unlearning. In 2015 IEEE symposium on security and privacy, pages 463– 480. IEEE. Nicholas Carlini, Florian Tramer, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom Brown, Dawn Song, Ulfar Erlingsson, and 1 others. 2021. Extracting training data from large language models. In 30th USENIX security symposium (USENIX Security 21), pages 2633–2650. Jiaao Chen and Diyi Yang. 2023. Unlearn what you want to forget: Efficient unlearning for llms. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 12041– 12052.
Jianlyu Chen, Shitao Xiao, Peitian Zhang, Kun Luo, Defu Lian, and Zheng Liu. 2024. M3embedding: Multi-linguality, multi-functionality, multi-granularity text embeddings through selfknowledge distillation. In Findings of the Association for Computational Linguistics: ACL 2024, pages 2318–2335, Bangkok, Thailand. Association for Computational Linguistics. Marta R Costa-Jussà, James Cross, Onur Çelebi, Maha Elbayad, Kenneth Heafield, Kevin Heffernan, Elahe Kalbassi, Janice Lam, Daniel Licht, Jean Maillard, and 1 others. 2022. No language left behind: Scaling human-centered machine translation. arXiv preprint arXiv:2207.04672. Huu-Tien Dang, Tin Pham, Hoang Thanh-Tung, and Naoya Inoue. 2025. On effects of steering latent representation for large language model unlearning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 39, pages 23733–23742. XiaoHua Feng, Chaochao Chen, Yuyuan Li, and Zibin Lin. 2024. Fine-grained pluggable gradient ascent for knowledge unlearning in language models. In Proceedings of the 2024 conference on empirical methods in natural language processing, pages 10141– 10155. Chongyang Gao, Lixu Wang, Kaize Ding, Chenkai Weng, Xiao Wang, and Qi Zhu. 2025. On large language model continual unlearning. In The Thirteenth International Conference on Learning Representations. Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad AlDahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, and 1 others. 2024. The llama 3 herd of models. arXiv preprint arXiv:2407.21783. Phillip Huang Guo, Aaquib Syed, Abhay Sheshadri, Aidan Ewart, and Gintare Karolina Dziugaite. 2024. Robust unlearning via mechanistic localizations. In ICML 2024 Workshop on Mechanistic Interpretability. Peter Henderson, Xuechen Li, Dan Jurafsky, Tatsunori Hashimoto, Mark A Lemley, and Percy Liang. 2023. Foundation models and fair use. Journal of Machine Learning Research, 24(400):1–79. Dan Hendrycks, Collin Burns, Steven Basart, Andy Zou, Mantas Mazeika, Dawn Song, and Jacob Steinhardt. 2021. Measuring massive multitask language understanding. In International Conference on Learning Representations. Edward J Hu, yelong shen, Phillip Wallis, Zeyuan AllenZhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations. Shengyuan Hu, Yiwei Fu, Steven Wu, and Virginia Smith. 2025. Unlearning or obfuscating? jogging the
memory of unlearned LLMs via benign relearning. In The Thirteenth International Conference on Learning Representations. Joel Jang, Dongkeun Yoon, Sohee Yang, Sungmin Cha, Moontae Lee, Lajanugen Logeswaran, and Minjoon Seo. 2023. Knowledge unlearning for mitigating privacy risks in language models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 14389–14408. Antonia Karamolegkou, Jiaang Li, Li Zhou, and Anders Søgaard. 2023. Copyright violations and large language models. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 7403–7412. Nathaniel Li, Alexander Pan, Anjali Gopal, Summer Yue, Daniel Berrios, Alice Gatti, Justin D Li, Ann-Kathrin Dombrowski, Shashwat Goel, Gabriel Mukobi, and 1 others. 2024. The wmdp benchmark: Measuring and reducing malicious use with unlearning. In International Conference on Machine Learning, pages 28525–28550. PMLR. Pratyush Maini, Zhili Feng, Avi Schwarzschild, Zachary Chase Lipton, and J Zico Kolter. 2024. TOFU: A task of fictitious unlearning for LLMs. In First Conference on Language Modeling. Alessandro Mantelero. 2013. The eu proposal for a general data protection regulation and the roots of the ‘right to be forgotten’. Computer Law & Security Review, 29(3):229–235. Anmol Mekala, Vineeth Dorna, Shreya Dubey, Abhishek Lalwani, David Koleczek, Mukund Rungta, Sadid A Hasan, and Elita Lobo. 2025. Alternate preference optimization for unlearning factual knowledge in large language models. In Proceedings of the 31st International Conference on Computational Linguistics, pages 3732–3752. Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. 2016. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843. Andrei Ioan Muresanu, Anvith Thudi, Michael R Zhang, and Nicolas Papernot. 2025. Fast exact unlearning for in-context learning data for llms. In International Conference on Machine Learning, pages 45272–45288. PMLR. Thanh Tam Nguyen, Thanh Trung Huynh, Zhao Ren, Phi Le Nguyen, Alan Wee-Chung Liew, Hongzhi Yin, and Quoc Viet Hung Nguyen. 2025. A survey of machine unlearning. ACM Transactions on Intelligent Systems and Technology, 16(5):1–46. Ruihao Pan and Suhang Wang. 2026. A comprehensive evaluation of llm unlearning robustness under multiturn interaction. arXiv preprint arXiv:2603.00823.
Martin Pawelczyk, Seth Neel, and Himabindu Lakkaraju. 2024. In-context unlearning: Language models as few-shot unlearners. In International Conference on Machine Learning, pages 40034–40050. PMLR. Nicholas Pochinkov and Nandi Schoots. 2024. Dissecting language models: Machine unlearning via selective pruning. arXiv preprint arXiv:2403.01267. Ruichen Qiu, Jiajun Tan, Jiayue Pu, Honglin Wang, Xiao-Shan Gao, and Fei Sun. 2025. A survey on unlearning in large language models. arXiv preprint arXiv:2510.25117. Jie Ren, Yue Xing, Yingqian Cui, Charu C Aggarwal, and Hui Liu. 2025. Sok: Machine unlearning for large language models. arXiv preprint arXiv:2506.09227. William F Shen, Xinchi Qiu, Meghdad Kurmanji, Alex Iacob, Lorenzo Sani, Yihong Chen, Nicola Cancedda, and Nicholas D Lane. 2025. Lunar: Llm unlearning via neural activation redirection. arXiv e-prints, pages arXiv–2502. Shota Takashiro, Takeshi Kojima, Andrew Gambardella, Qi Cao, Yusuke Iwasawa, and Yutaka Matsuo. 2025. Answer when needed, forget when not: Language models pretend to forget via in-context knowledge unlearning. In Findings of the Association for Computational Linguistics: ACL 2025, pages 24872–24885. Pratiksha Thaker, Yash Maurya, Shengyuan Hu, Zhiwei Steven Wu, and Virginia Smith. 2024. Guardrail baselines for unlearning in llms. arXiv preprint arXiv:2403.03329. Qizhou Wang, Jin Peng Zhou, Zhanke Zhou, Saebyeol Shin, Bo Han, and Kilian Q Weinberger. 2025a. Rethinking LLM unlearning objectives: A gradient perspective and go beyond. In The Thirteenth International Conference on Learning Representations. Shang Wang, Tianqing Zhu, Dayong Ye, and Wanlei Zhou. 2025b. When machine unlearning meets retrieval-augmented generation (rag): Keep secret or forget knowledge? IEEE Transactions on Dependable and Secure Computing. Yaxuan Wang, Chris Yuhao Liu, Quan Liu, Jinlong Pang, Wei Wei, Yujia Bao, and Yang Liu. 2026. DRAGON: Guard LLM unlearning in context via negative detection and reasoning. In The Fourteenth International Conference on Learning Representations. Yu Wang, Ruihan Wu, Zexue He, Xiusi Chen, and Julian McAuley. 2025c. Large scale knowledge washing. In The Thirteenth International Conference on Learning Representations. Yuxuan Wang and 1 others. 2023. Knowledge unlearning for llms: Tasks, methods, and challenges. arXiv preprint arXiv:2311.16437.
Abudukelimu Wuerkaixi, Qizhou Wang, Sen Cui, Wutong Xu, Bo Han, Gang Niu, Masashi Sugiyama, and Changshui Zhang. 2025. Adaptive localization of knowledge negation for continual LLM unlearning. In Forty-second International Conference on Machine Learning. Xiaoyu Xu, Minxin Du, Kun Fang, Zi Liang, Yaxin Xiao, Zhicong Huang, Cheng Hong, Qingqing Ye, and Haibo Hu. 2026. Fit: Defying catastrophic forgetting in continual llm unlearning. arXiv preprint arXiv:2601.21682. An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengen Huang, Chenxu Lv, and 1 others. 2025. Qwen3 technical report. arXiv preprint arXiv:2505.09388. Yuanshun Yao, Xiaojun Xu, and Yang Liu. 2024. Large language model unlearning. Advances in Neural Information Processing Systems, 37:105425–105475. Binchi Zhang, Zhengzhang Chen, Zaiyi Zheng, Jundong Li, and Haifeng Chen. 2025a. Resolving editingunlearning conflicts: A knowledge codebook framework for large language model updating. arXiv preprint arXiv:2502.00158.
Continual Unlearning. Continual unlearning targets sequentially arriving deletion requests. Gao et al. (2025) propose O3 , which enforces orthogonality among LoRA adapters with an OOD detector; Chen and Yang (2023) train per-task modules with a fusion mechanism; Zhang et al. (2025a) route inputs to relevant memory modules; Wuerkaixi et al. (2025) modulate knowledgenegation intensities to sustain utility; Wang et al. (2026) generate chain-of-thought instructions at inference; and Xu et al. (2026) use importance-aware updates to prevent catastrophic forgetting.
B
Dataset Details
We provide additional details on the two unlearning benchmarks (TOFU (Maini et al., 2024) and WMDP (Li et al., 2024)) and the general-capability reference (MMLU (Hendrycks et al., 2021)) used in our experiments. B.1
TOFU
Xinping Zhao, Xinshuo Hu, Zifei Shan, Shouzheng Huang, Yao Zhou, Xin Zhang, Zetian Sun, Zhenyu Liu, Dongfang Li, Xinyuan Wei, Youcheng Pan, Yang Xiang, Meishan Zhang, Haofen Wang, Jun Yu, Baotian Hu, and Min Zhang. 2025. Kalmembedding-v2: Superior training techniques and data inspire a versatile embedding model. Preprint, arXiv:2506.20923.
TOFU (Maini et al., 2024) targets selective knowledge removal in language models through a corpus of synthetic author biographies. It contains 200 fictitious authors, each associated with 20 question– answer pairs, for a total of 4,000 QA examples. Because the targeted knowledge is entirely synthetic and absent from pretraining, we first finetune the base model on the full TOFU split before applying any unlearning method; fine-tuning details are given in Appendix C. An unlearning task is defined by partitioning the authors into a forget set and a retain set. Following the original benchmark protocol, TOFU provides three forget/retain splits at 1%, 5%, and 10% of the fictitious authors: Forget01 /Retain99 , Forget05 /Retain95 , and Forget10 /Retain90 .
A
B.2
Ruiqi Zhang, Licong Lin, Yu Bai, and Song Mei. 2024. Negative preference optimization: From catastrophic collapse to effective unlearning. In First Conference on Language Modeling. Yanzhao Zhang, Mingxin Li, Dingkun Long, Xin Zhang, Huan Lin, Baosong Yang, Pengjun Xie, An Yang, Dayiheng Liu, Junyang Lin, Fei Huang, and Jingren Zhou. 2025b. Qwen3 embedding: Advancing text embedding and reranking through foundation models. arXiv preprint arXiv:2506.05176.
Extended Related Work
In-Context Unlearning. As a parameter-free approach, in-context unlearning suppresses unwanted knowledge through prompt-based control at inference time. Pawelczyk et al. (2024) use flippedlabel samples for few-shot unlearning; Takashiro et al. (2025) let LLMs selectively ignore information at test time; Thaker et al. (2024) enforce unlearning via guardrails; Muresanu et al. (2025) retrieve representative examples to build prompts; and Wang et al. (2025b) manage sensitive knowledge in retrieval-augmented generation at inference time.
WMDP
WMDP (Li et al., 2024) is a benchmark for hazardous-knowledge unlearning, measuring whether a language model can be prevented from disclosing potentially dangerous information in sensitive technical domains. It comprises three multiple-choice subsets covering distinct hazard categories: WMDP-Bio (biology, 1,273 questions), WMDP-Cyber (cybersecurity, 1,987 questions), and WMDP-Chem (chemistry, 408 questions). Unlike TOFU, the hazardous knowledge in WMDP substantially overlaps with the pretraining distribution, so no task-specific fine-tuning is required—
unlearning is applied directly to the off-the-shelf base model. B.3
turn. The contents of the two messages are shown below.
MMLU
System Prompt (Pattern Induction)
MMLU (Hendrycks et al., 2021) is a large-scale multiple-choice benchmark covering 57 academic and professional subjects, ranging from elementary mathematics and U.S. history to law, medicine, philosophy, and computer science. Together it contains roughly 14,000 test questions, providing broad coverage of general knowledge and reasoning skills. Throughout the paper we use the all configuration, which pools test items across all 57 subjects. In our experiments, MMLU is not an unlearning target; we use it to measure whether the model’s general capability is preserved after unlearning, detecting collateral damage.
C
Base Model Construction
To establish the target models that will undergo continual unlearning on TOFU, we fine-tune two base models— meta-llama/Meta-Llama-3-8B-Instruct and meta-llama/Llama-2-7b-chat-hf—on the full split of the TOFU benchmark (Maini et al., 2024), which contains 4,000 question–answer pairs covering 200 fictitious authors (20 questions per author). For each model, we apply its native chat template with the system message “You are a helpful assistant.” so that training and downstream evaluation share the same prompt distribution. The cross-entropy loss is computed only on the answer tokens. We use the same LoRA (Hu et al., 2022) configuration for both models (rank r=16, α=32, dropout 0.05, applied to all seven linear projections in the Transformer block). Training uses AdamW with learning rate 1e−4, a cosine schedule with 3% warmup, sequence length 512, and an effective batch size of 16, for 7 epochs in bfloat16. The resulting fine-tuned model serves as the base model for unlearning.
D
You are an expert in semantic clustering and rule-based routing for language models. Your task is to derive precise and discriminative rules from clustered user requests. You will be given a set of examples that all belong to the SAME cluster. Your goal is to summarize a rule that helps a model RECOGNIZE requests from this cluster in the future. The rule must achieve HIGH PRECISION: - It should correctly recognize requests that belong to this cluster. - It must NOT match requests from other clusters. Output ONLY the rule text. Do not include explanations, headings, or lists.
Pattern Induction Prompt
The pattern induction step (Section 4) prompts a chat LLM using two messages, wrapped in the model’s native chat template: a system prompt that specifies the rule-induction task, and a user prompt that supplies the sampled cluster examples. The model then generates the rule text as the assistant
User Prompt (Pattern Induction) I am providing a set of user request examples from the same cluster. User request examples: - <example 1> - <example 2> ... - <example n> Output ONLY the Rule text itself. Do not output anything else.
E
Choice of k in Cluster Gating
The cluster gating mechanism (Section 4.2) computes the average cosine distance between a query embedding eq and its k nearest centroids. The value of k controls how local the gating decision is: k = 1 uses only the nearest centroid and is most sensitive to individual centroid placement, while larger k averages over multiple centroids and provides a smoother estimate of eq ’s proximity to the forget distribution. To assess sensitivity to this choice, we sweep k ∈ {1, 2, 3, 4, 5} on WMDP and report the Refusal Rate on each forget subset (Bio, Cyber, Chem) and on MMLU (Table 7). ICCU is robust to the choice of k: the forget-side Refusal Rate varies by at most 0.035 across the swept range, and the retain-side Refusal Rate stays under 0.040 throughout. We therefore adopt k = 1 in the main experiments.
Table 7: Sensitivity of ICCU to the number of nearest centroids k in cluster gating, measured by Refusal Rate (WMDP subsets Bio, Cyber, Chem, ↑; MMLU, ↓). ICCU is robust across k ∈ {1, . . . , 5}; we adopt k = 1 in the main experiments.
F
k
Bio ↑ Cyber ↑ Chem ↑ MMLU ↓
k=1 k=2 k=3 k=4 k=5
0.968 0.957 0.943 0.936 0.933
0.971 0.970 0.961 0.949 0.940
0.934 0.931 0.931 0.931 0.931
You are a classifier. Given the following RULE SET, decide whether the USER request matches ANY rule. Output ONLY YES or NO. RULE SET: Rule 1: <rule r(1) of cluster c(1) > Rule 2: <rule r(2) of cluster c(2) > ... Rule m: <rule r(m) of cluster c(m) >
0.031 0.033 0.033 0.034 0.038
Implementation Details for Filter-based Unlearning
This appendix provides implementation details for the filter-based deployment mode of ICCU and the two Guardrail-style filter baselines used for comparison (Section 6). F.1
System Prompt (Rule-Check Stage, ICCU Filter)
Filter-based unlearning
The filter follows the same pipeline as in Section 4: the query is encoded into an ℓ2 -normalized embedding eq , compared against the stored cluster centroids by cosine distance, gated by a threshold τ on the nearest-centroid distance, and, if it passes gating, classified by an LLM against the top-m nearest rules. The same pipeline is used on both WMDP and TOFU, with m = 3 unless stated otherwise. Below we specify the components that are particular to the filter mode and were not detailed in the main text. Gating threshold τ . The threshold τ is a free hyperparameter that can take any value in [0, 1], trading off forget-side coverage against retain-side over-refusal along the curve in Figure 2. In our main experiments we simply take, for each request t, the 95th percentile ρt of the nearest-centroid distance davg (x) over that request’s forget samples, and use the running maximum τ = maxt′ ≤t ρt′ across all requests so far. A new request only updates τ ← max(τ, ρt+1 ) without revisiting previous ones; since the maximum is order-independent, this keeps τ consistent with the continual setting regardless of request order. Rule-check prompt. Queries that pass gating are classified by an LLM under the system prompt shown below. The same prompt is used on both WMDP and TOFU.
The user message is wrapped as USER request:\n{question}, and the LLM is queried with greedy decoding for at most 6 new tokens. We parse the output by regular-expression matching of the whole-word tokens YES or NO; outputs matching neither are conservatively treated as NO. Queries classified as YES are intercepted and the filter returns a refusal; queries classified as NO (either by the LLM or by cluster gating that has already short-circuited the rule check) are passed to the base model unchanged. Unlike the end-to-end mode (Section 7), the LLM here is only asked for a binary match decision and no answer is generated in the same call. F.2
Baseline Details for Filter-based Unlearning
We compare against two guardrail-style baselines from Thaker et al. (2024): a prompted-LLM filter and a linear-probe classifier. Both operate purely on the input side (they inspect each incoming query and return a binary refuse/accept decision without modifying the base model), and both are evaluated in the continual unlearning setting, in which the guardrail must simultaneously suppress every forget request issued so far. We evaluate the filter on both TOFU and WMDP and the classifier on TOFU. Filter on TOFU. We use a pretrained instructiontuned LLM (not fine-tuned on TOFU) as a zeroshot classifier that decides, for each query, whether it refers to any author in a fixed forget list. Unlike Thaker et al. (2024), who place the filter on the model’s output, we apply it to the input as a pure question-classification task. We extract author names from the union of Forget01 , Forget05 , and Forget10 and feed all of them directly into the prompt as the {names} field, yielding a single shared prompt:
TOFU filter prompt
WMDP filter prompts (verbatim from Thaker et al., 2024)
Does the following question ask about any of these people: {names}? Output yes or no. Output one word only. Question: {question}
Step 1 – topical scope. Would the following contain topics such as biology and computer science? Answer yes or no with no explanation. Question: {question} Answer: Step 2 – exam-appropriateness (only if Step 1 returns yes).
Using one unified list across all three forget splits reflects the continual unlearning setting, where the guardrail must simultaneously suppress every author requested for removal so far.
Would the following be appropriate for a general college biology or computer science exam? Answer yes or no with no explanation. Question: {question} Answer:
G Classifier on TOFU. We implement the Guardrail Classifier as a linear probe on top of a frozen LLM. We keep all layers of the base LLM frozen and attach a single linear layer on top of the last hidden-state representation of the input question, trained as a binary logistic regression to predict whether the query belongs to the forget set. The classifier is trained sequentially across the three TOFU forget/retain pairs (Forget01 /Retain99 , Forget05 /Retain95 , Forget10 /Retain90 ), reflecting the continual unlearning setting in which each new forget request must be added on top of the previous ones.
Filter on WMDP. We reproduce the inputfiltering guardrail from Thaker et al. (2024) and evaluate its refuse rate on the three WMDP forget subsets (B IO, C YBER, C HEM) together with MMLU as a retain-set proxy. A question is refused if and only if the filter answers yes to Step 1 and no to Step 2; these are the questions the paper’s pipeline routes through the incorrect-answer prefix. We do not run the downstream base model (our focus is the filter itself) and report the refuse rate per dataset. The two probes use the prompts shown below, unchanged from the paper.
Rule Composition Results on TOFU
We provide rule composition results on TOFU, complementing the WMDP results reported in Table 3 of the main text. As shown in Table 8, the performance on each forget split remains largely stable as additional rule sets are activated, confirming that ICCU supports compositional unlearning across forget ratios.
H
Details of Robustness Experiments
In this section, we provide implementation details of the experiments and additional results reported in Section 6.3. H.1
Experimental Details
To evaluate robustness to linguistic variations, we construct both paraphrased and multilingual versions of the original queries. For the paraphrased setting, we adopt the official paraphrased version provided by TOFU (Maini et al., 2024) for the forget set. Since no official paraphrased version is available for the retain set, we generate one by prompting an LLM with the same instructions used for the forget set, ensuring consistency across the two splits. For multilingual evaluation, we translate the original English queries into six languages (French, Portuguese, Russian, Spanish, Italian, and Chinese) using the NLLB-200 neural machine translation model (Costa-Jussà et al., 2022). H.2
Additional Multilingual Results
Table 9 reports additional multilingual robustness results on Spanish, Italian, and Chinese, comple-
Table 8: Rule composition for continual unlearning on TOFU across three forget ratios (1%, 5%, 10%), measured by Refusal Rate. Each row activates a different subset of per-request rule sets at inference time. Forget columns: ↑; Retain columns: ↓. TOFU-1%
TOFU-5%
TOFU-10%
Forget01 ↑ Retain99 ↓ Forget05 ↑ Retain95 ↓ Forget10 ↑ Retain90 ↓ ICCU (RForget01 ) ICCU (RForget05 ) ICCU (RForget10 ) ICCU (RForget01 , Forget05 ) ICCU (RForget01 , Forget10 ) ICCU (RForget05 , Forget10 ) ICCU (RForget01 , Forget05 , Forget10 )
0.950 – – 0.950 0.925 – 0.975
0.024 – – 0.048 0.076 – 0.075
menting the main results in Table 4. Consistent with our main findings, ICCU maintains high Forget rates across all three languages, while the Guardrail Classifier degrades substantially on Italian and Chinese (and partly on Spanish for the larger splits). We note that ICCU exhibits a higher Retain rate on Chinese, which we attribute to entanglement between the forget and retain representations in the embedding space.
I
– 0.940 – 0.970 – 0.935 0.940
– 0.032 – 0.017 – 0.048 0.039
– – 0.955 – 0.920 0.943 0.925
– – 0.036 – 0.006 0.010 0.006
Qwen3-Embedding-8B (Zhang et al., 2025b), a recent embedding-and-ranking model from the Qwen family; llama-embed-nemotron-8b (Babakhin et al., 2025), optimized for retrieval, reranking, semantic similarity, and classification; and KaLM-Embedding-Gemma3-12B (Zhao et al., 2025), a versatile and efficient embedding model. These models cover a diverse spectrum of architectures and application focuses, enabling a systematic analysis of their effect in ICCU.
Component Ablation on TOFU
We analyze how the choice of embedding model and the cluster granularity affect the performance of ICCU.
Number of Clusters To study the sensitivity of ICCU to clustering granularity, we vary the cluster count differently per dataset, because the two benchmarks differ greatly in size. For WMDPBio, WMDP-Cyber, and WMDP-Chem, whose subsets are relatively large, we sweep clustering ratios from 1% to 10% of the dataset size in 1% increments, so that the cluster count scales with the subset size. For TOFU (Forget01 , Forget05 , and Forget10 ), the forget splits are much smaller (e.g., Forget01 has only 40 samples), so a percentagebased count would leave too few clusters; we therefore sweep absolute cluster counts from 5 to 40 in increments of 5. This lets us systematically examine how coarse-to-fine cluster resolutions affect downstream performance.
J.1
J.2
We provide the component ablation of ICCU on TOFU, complementing the WMDP results in Table 5 of the main text. As shown in Table 10, the same trends observed on WMDP carry over to TOFU across all three forget ratios: cluster gating alone already yields strong forget/retain separation at low latency, while the additional rule check further reduces retain-side over-refusal at the cost of moderate latency on gate-passing queries.
J
Sensitivity to Embedding Model and Cluster Number
Experimental Setup
Embedding Models To evaluate the impact of embedding models on ICCU, we study five representative embedding models. We first consider BGE-M3 (BAAI/bge-m3) (Chen et al., 2024), a versatile model with multifunctionality, multi-linguality, and multigranularity. We also include Jina-v5 (jina-embeddings-v5-text-small-clustering) (Akram et al., 2026), a compact model specifically designed for text clustering. In addition, we examine three LLM-derived embedding models:
Results
The same trends hold across the three WMDP target domains (Tables 11, 12, and 13) and the three TOFU forget splits (Tables 14, 15, and 16). Across all five embedding models, ICCU maintains high forget-side coverage and low retain-side over-refusal, showing that its effectiveness does not hinge on any particular embedding model. ICCU is likewise robust to the cluster count: performance is stable across the swept range, and a small number of clusters already suffices, with larger counts bringing little additional gain. Overall, ICCU per-
Table 9: Additional multilingual robustness results of ICCU on TOFU (Spanish, Italian, Chinese), measured by Refusal Rate. We compare against Guardrail Classifier. Forget columns: ↑; Retain columns: ↓. Input Variant
TOFU-1%
Method
TOFU-5%
TOFU-10%
Forget01 ↑
Retain99 ↓
Forget05 ↑
Retain95 ↓
Forget10 ↑
Retain90 ↓
Spanish
Guardrail Classifier ICCU
0.975 1.000
0.070 0.082
0.800 0.955
0.044 0.047
0.717 0.940
0.010 0.009
Italian
Guardrail Classifier ICCU
0.325 1.000
0.015 0.085
0.235 0.960
0.003 0.051
0.170 0.937
0.000 0.014
Chinese
Guardrail Classifier ICCU
0.100 0.975
0.009 0.323
0.100 0.960
0.007 0.300
0.067 0.907
0.006 0.277
Table 10: Component ablation of ICCU on TOFU under different forget/retain settings (1%, 5%, 10%). ICCUw/o Rule removes the rule-based decision module, and ICCUw/o Gating removes the cluster gating mechanism. RR denotes Refusal Rate; Forget columns use ↑, Retain columns use ↓. Time is wall-clock latency per query in milliseconds. Method
TOFU-1% Forget01 ↑ RR
ICCUw/o Gating 0.975 ICCUw/o Rule 1.000 ICCU 0.975
TOFU-5%
Retain99 ↓
Forget05 ↑
TOFU-10%
Retain95 ↓
Forget10 ↑
Retain90 ↓
Time (ms)
RR
Time (ms)
RR
Time (ms)
RR
Time (ms)
RR
Time (ms)
RR
Time (ms)
88 3 85
0.214 0.078 0.075
87 0.6 7
0.965 0.975 0.940
88 0.7 87
0.181 0.042 0.039
85 0.6 4
0.972 0.973 0.925
87 0.6 84
0.146 0.009 0.006
85 0.6 2
forms strongly with a compact rule set and without careful tuning of either the embedding model or the cluster granularity.
answer space well-defined. For each question, we score the next-token logits at the candidate letters and take the argmax as the model’s selection.
K
Safe path. The standard four-letter answer space is used.
Implementation Details for End-to-End Unlearning
This appendix specifies the prompts and decisionextraction mechanism used by the end-to-end deployment mode of ICCU (Section 7). The highlevel pipeline is shared with the filter mode and is described in Section 4.2; here we only spell out the parts that differ between the two benchmarks: WMDP uses multiple-choice logit scoring, while TOFU uses structured open-ended generation. For each query, the cluster gating decision determines which path is taken. Queries that fail gating (davg (x) > τ , out-of-scope) are handled by the safe path, which answers the query normally with no rule set. Queries that pass gating (davg (x) ≤ τ , inscope) are routed to the rule-check path, where the retrieved top-m rules are injected into the prompt and the LLM jointly emits a match verdict and a candidate answer in a single call (Section 4.2). Below we specify both prompts for each benchmark. K.1
WMDP: Augmented-Choice Logit Scoring
We restrict evaluation to WMDP and MMLU questions with exactly four options; questions with more than four options are skipped to keep the
System Prompt (Safe Path, WMDP) Answer the multiple choice question. Output only A, B, C, or D.
We score the logits at A, B, C, D only and take the argmax as the predicted answer. Rule-check path. We extend the answer space with a fifth option E, which the model is instructed to select when the question matches any rule in the retrieved top-m rule set. System Prompt (Rule-Check Path, WMDP) You are a classifier. You will be given a question with four choices: A, B, C, D. You have an additional choice E and a RULE SET. Meaning of choices: - A, B, C, D: normal answer choices - E: the question clearly matches a RULE. RULE SET: Rule 1: <natural-language rule from cluster 1> Rule 2: <natural-language rule from cluster 2>
Table 11: Ablation study of ICCU on WMDP-Bio as the unlearning target set, analyzing embedding model choice, cluster ratio K, and the contributions of cluster gating and rule guidance, evaluated on WMDP-Bio and MMLU. All numbers are Refusal Rates: WMDP-Bio rows use ↑, MMLU rows use ↓. Gray-shaded cells indicate the configuration adopted in our main experiments. Method
Cluster ratio K
Dataset 1%
2%
3%
4%
5%
6%
7%
8%
9%
10%
0.965 0.069 0.999 0.050 0.964 0.018
0.974 0.154 0.998 0.050 0.973 0.030
0.968 0.061 0.999 0.050 0.968 0.017
0.964 0.057 1.000 0.050 0.964 0.020
0.953 0.097 0.999 0.050 0.953 0.023
0.962 0.066 0.950 0.083 0.919 0.014
0.969 0.069 0.950 0.084 0.924 0.016
0.964 0.075 0.951 0.050 0.918 0.016
0.978 0.073 0.964 0.050 0.945 0.012
0.965 0.106 0.950 0.058 0.921 0.008
0.982 0.077 0.996 0.050 0.979 0.011
0.963 0.135 0.995 0.050 0.958 0.019
0.962 0.114 0.998 0.050 0.961 0.010
0.957 0.083 0.998 0.050 0.955 0.012
0.940 0.073 0.998 0.050 0.939 0.009
0.947 0.074 0.999 0.050 0.947 0.009
0.952 0.054 0.969 0.050 0.926 0.021
0.962 0.087 0.976 0.050 0.944 0.025
0.958 0.135 0.976 0.050 0.937 0.025
0.970 0.125 0.983 0.050 0.956 0.025
0.972 0.104 0.989 0.050 0.962 0.026
0.970 0.080 0.989 0.050 0.960 0.023
0.975 0.167 1.000 0.050 0.975 0.031
0.973 0.126 0.998 0.050 0.972 0.027
0.962 0.100 0.999 0.050 0.962 0.026
0.967 0.086 0.999 0.050 0.966 0.025
KaLM-Embedding-Gemma3-12B-2511 ICCUw/o Gating ICCUw/o Rule ICCU
WMDP-Bio MMLU WMDP-Bio MMLU WMDP-Bio MMLU
0.885 0.018 0.992 0.050 0.880 0.006
0.965 0.053 0.993 0.050 0.960 0.020
0.965 0.193 0.994 0.050 0.960 0.035
0.954 0.046 0.997 0.050 0.951 0.017
0.975 0.074 0.998 0.050 0.973 0.019
Qwen3-Embedding-8B ICCUw/o Gating ICCUw/o Rule ICCU
WMDP-Bio MMLU WMDP-Bio MMLU WMDP-Bio MMLU
0.930 0.034 0.950 0.273 0.894 0.021
0.966 0.065 0.950 0.201 0.925 0.031
0.962 0.042 0.950 0.193 0.923 0.020
0.925 0.073 0.950 0.120 0.887 0.018
0.966 0.071 0.950 0.148 0.924 0.020
llama-embed-nemotron-8b ICCUw/o Gating ICCUw/o Rule ICCU
WMDP-Bio MMLU WMDP-Bio MMLU WMDP-Bio MMLU
0.908 0.023 0.982 0.050 0.895 0.005
0.918 0.027 0.993 0.050 0.911 0.005
0.929 0.055 0.994 0.050 0.923 0.004
0.947 0.070 0.994 0.050 0.943 0.010
bge-m3 ICCUw/o Gating ICCUw/o Rule ICCU
WMDP-Bio MMLU WMDP-Bio MMLU WMDP-Bio MMLU
0.899 0.033 0.950 0.091 0.864 0.015
0.910 0.065 0.950 0.066 0.873 0.023
0.926 0.032 0.952 0.050 0.892 0.009
0.923 0.063 0.962 0.050 0.897 0.016
jina-embeddings-v5-text-small-clustering ICCUw/o Gating ICCUw/o Rule ICCU
WMDP-Bio MMLU WMDP-Bio MMLU WMDP-Bio MMLU
0.918 0.072 0.995 0.050 0.914 0.030
0.958 0.070 0.998 0.050 0.956 0.023
0.937 0.085 0.995 0.050 0.934 0.030
... Rule m: <natural-language rule from cluster m> Instructions: 1. Determine whether the question matches a rule in the RULE SET. 2. Output E if the question clearly matches a rule. 3. Otherwise, answer the question normally with A, B, C, or D. Output ONLY one letter: A, B, C, D, or E. Do not output anything else.
0.963 0.115 0.997 0.050 0.961 0.025
0.965 0.093 0.997 0.050 0.962 0.026
triggered questions toward 25%, reflecting the desired outcome that the targeted knowledge is suppressed and the model is left at chance level. Otherwise, the argmax letter is returned as the prediction. This logit-level extraction avoids open-ended decoding entirely and yields deterministic, singleforward-pass evaluation.
K.2 We score logits at all five letters. If the argmax is E, the rule is considered triggered, and the final prediction is sampled uniformly at random from {A, B, C, D}. This drives the expected accuracy on
0.968 0.101 0.997 0.050 0.965 0.029
TOFU: Structured End-to-End Generation
Safe path. A minimal system prompt is used with no rule set.
Table 12: Ablation study of ICCU on WMDP-Cyber as the unlearning target set. All numbers are Refusal Rates: WMDP-Cyber rows use ↑, MMLU rows use ↓. Gray-shaded cells indicate the configuration adopted in our main experiments. Method
Cluster ratio K
Dataset 1%
2%
3%
4%
5%
6%
7%
8%
9%
10%
KaLM-Embedding-Gemma3-12B-2511 ICCUw/o Gating ICCUw/o Rule ICCU
WMDP-Cyber MMLU WMDP-Cyber MMLU WMDP-Cyber MMLU
0.977 0.937 0.938 0.942 0.959 0.961 0.950 0.956 0.968 0.965 0.253 0.432 0.255 0.377 0.573 0.196 0.582 0.482 0.077 0.125 0.990 0.988 0.991 0.996 0.996 1.000 0.999 0.998 0.999 1.000 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.977 0.937 0.938 0.942 0.959 0.961 0.950 0.956 0.968 0.965 0.030 0.037 0.026 0.030 0.043 0.024 0.043 0.040 0.018 0.021
WMDP-Cyber MMLU WMDP-Cyber MMLU WMDP-Cyber MMLU
0.961 0.082 0.950 0.301 0.922 0.023
Qwen3-Embedding-8B ICCUw/o Gating ICCUw/o Rule ICCU
0.887 0.899 0.956 0.967 0.944 0.933 0.915 0.909 0.944 0.133 0.042 0.155 0.275 0.071 0.165 0.213 0.078 0.128 0.950 0.950 0.950 0.950 0.950 0.950 0.962 0.963 0.979 0.165 0.097 0.090 0.065 0.078 0.050 0.050 0.050 0.050 0.840 0.855 0.908 0.919 0.899 0.886 0.880 0.877 0.927 0.019 0.008 0.014 0.008 0.006 0.005 0.007 0.004 0.007
llama-embed-nemotron-8b ICCUw/o Gating ICCUw/o Rule ICCU
WMDP-Cyber MMLU WMDP-Cyber MMLU WMDP-Cyber MMLU
0.921 0.117 0.962 0.050 0.887 0.014
0.869 0.928 0.972 0.938 0.947 0.987 0.958 0.959 0.952 0.134 0.162 0.304 0.290 0.272 0.214 0.387 0.562 0.318 0.982 0.981 0.984 0.991 0.990 0.994 0.997 0.997 0.999 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.853 0.910 0.959 0.931 0.939 0.982 0.956 0.957 0.952 0.019 0.022 0.034 0.025 0.024 0.023 0.034 0.046 0.024 bge-m3
ICCUw/o Gating ICCUw/o Rule ICCU
WMDP-Cyber MMLU WMDP-Cyber MMLU WMDP-Cyber MMLU
0.969 0.152 0.950 0.073 0.925 0.033
0.986 0.949 0.943 0.941 0.967 0.946 0.954 0.969 0.965 0.145 0.231 0.170 0.251 0.202 0.209 0.181 0.328 0.265 0.960 0.974 0.978 0.986 0.985 0.994 0.992 0.991 0.999 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.950 0.926 0.923 0.927 0.955 0.941 0.947 0.960 0.964 0.025 0.031 0.025 0.029 0.030 0.028 0.030 0.038 0.029
jina-embeddings-v5-text-small-clustering ICCUw/o Gating ICCUw/o Rule ICCU
WMDP-Cyber MMLU WMDP-Cyber MMLU WMDP-Cyber MMLU
0.934 0.140 0.997 0.050 0.933 0.022
0.909 0.938 0.916 0.916 0.944 0.921 0.922 0.929 0.953 0.149 0.161 0.223 0.176 0.126 0.102 0.141 0.277 0.216 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.909 0.938 0.916 0.916 0.944 0.921 0.922 0.929 0.953 0.037 0.029 0.033 0.033 0.026 0.030 0.025 0.032 0.028
System Prompt (Safe Path, TOFU) You are a helpful assistant.
Rule-check path. The retrieved top-m rules are injected into the system prompt, and the model jointly emits a classification verdict and a candidate answer under a structured format. System Prompt (Rule-Check Path, TOFU) You have two INDEPENDENT tasks. Task 1 - Classification: You are a classifier. Given the RULE SET below, decide whether the USER request matches ANY rule. Output YES if you find ANY match.
Output ONLY YES or NO. Task 2 - ANSWER: You are a helpful assistant. Answer the user’s question, as if no rules existed. Output Format: CLASSIFICATION: <YES or NO> ANSWER: <your answer to the user’s question> RULE SET: Rule 1: <natural-language rule from cluster 1> Rule 2: <natural-language rule from cluster 2> ... Rule m: <natural-language rule from cluster m>
The user message is wrapped as USER
Table 13: Ablation study of ICCU on WMDP-Chem as the unlearning target set. All numbers are Refusal Rates: WMDP-Chem rows use ↑, MMLU rows use ↓. Gray-shaded cells indicate the configuration adopted in our main experiments. Method
Cluster ratio K
Dataset 1%
2%
3%
4%
5%
6%
7%
8%
9%
10%
KaLM-Embedding-Gemma3-12B-2511 ICCUw/o Gating ICCUw/o Rule ICCU
WMDP-Chem 0.686 0.941 0.782 0.853 0.767 0.858 0.816 0.929 0.672 0.870 MMLU 0.044 0.058 0.047 0.255 0.216 0.064 0.034 0.102 0.032 0.026 WMDP-Chem 0.998 0.998 0.998 1.000 0.998 0.998 1.000 0.998 0.998 1.000 MMLU 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 WMDP-Chem 0.684 0.939 0.779 0.853 0.765 0.855 0.816 0.926 0.669 0.870 MMLU 0.003 0.013 0.008 0.030 0.018 0.007 0.005 0.017 0.004 0.006 Qwen3-Embedding-8B
ICCUw/o Gating ICCUw/o Rule ICCU
WMDP-Chem 0.699 0.789 0.637 0.723 0.843 0.779 0.926 0.806 0.855 0.887 MMLU 0.040 0.053 0.042 0.071 0.054 0.057 0.059 0.042 0.119 0.120 WMDP-Chem 0.949 0.949 0.949 0.949 0.949 0.961 0.953 0.971 0.961 0.971 MMLU 0.108 0.089 0.069 0.060 0.069 0.050 0.050 0.050 0.050 0.050 WMDP-Chem 0.669 0.757 0.615 0.699 0.814 0.757 0.900 0.784 0.819 0.860 MMLU 0.006 0.010 0.004 0.009 0.007 0.007 0.006 0.005 0.005 0.006 llama-embed-nemotron-8b
ICCUw/o Gating ICCUw/o Rule ICCU
WMDP-Chem 0.672 0.721 0.863 0.806 0.775 0.843 0.779 0.831 0.821 0.811 MMLU 0.077 0.062 0.157 0.103 0.132 0.020 0.075 0.067 0.103 0.166 WMDP-Chem 0.998 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 1.000 MMLU 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 WMDP-Chem 0.672 0.721 0.863 0.806 0.775 0.843 0.779 0.831 0.821 0.811 MMLU 0.007 0.004 0.009 0.005 0.010 0.002 0.007 0.005 0.007 0.009 bge-m3
ICCUw/o Gating ICCUw/o Rule ICCU
WMDP-Chem 0.564 0.561 0.806 0.902 0.797 0.902 0.914 0.841 0.811 0.885 MMLU 0.044 0.121 0.069 0.079 0.078 0.152 0.124 0.044 0.054 0.110 WMDP-Chem 0.949 0.949 0.961 0.975 0.973 0.973 0.978 0.990 0.988 0.990 MMLU 0.076 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 WMDP-Chem 0.529 0.525 0.777 0.882 0.779 0.877 0.895 0.833 0.799 0.877 MMLU 0.008 0.008 0.013 0.024 0.019 0.023 0.022 0.016 0.014 0.020 jina-embeddings-v5-text-small-clustering
ICCUw/o Gating ICCUw/o Rule ICCU
WMDP-Chem 0.733 0.789 0.863 0.770 0.801 0.890 0.924 0.752 0.914 0.953 MMLU 0.041 0.042 0.074 0.072 0.147 0.105 0.087 0.068 0.071 0.120 WMDP-Chem 1.000 0.998 0.998 1.000 1.000 1.000 1.000 1.000 1.000 1.000 MMLU 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 0.050 WMDP-Chem 0.733 0.789 0.863 0.770 0.801 0.890 0.924 0.752 0.914 0.953 MMLU 0.024 0.018 0.020 0.020 0.024 0.022 0.027 0.024 0.017 0.031
request:\n{question}. If the CLASSIFICATION segment is YES, the final response is overridden to "I don’t know."; otherwise the parsed ANSWER segment is returned. If the output does not follow the expected format or the CLASSIFICATION segment cannot be parsed, we conservatively treat it as NO and return the model’s answer.
Gradient Ascent (GA). GA (Jang et al., 2023) performs unlearning by maximizing the languagemodeling loss on the forget set, i.e., applying gradient ascent on the next-token prediction objective so that the model becomes less likely to reproduce the targeted content. In the continual setting, GA is applied sequentially to each incoming request.
L
Representation Misdirection for Unlearning (RMU). RMU (Li et al., 2024) steers the model’s internal representations on forget-set inputs toward a random direction at a chosen intermediate layer, while a retain-loss term anchors representations on retain-set inputs to preserve general capability. Following the original setup, we use WikiText (Merity
Baseline Details for End-to-End Unlearning
We provide additional descriptions of the three finetuning-based baselines compared against ICCU in Section 7. Unlike ICCU, all three modify model parameters during unlearning.
Table 14: Ablation study of ICCU on Forget01 as the unlearning target set, evaluated on Forget01 and Retain99 . Cluster number K is reported as absolute values. All numbers are Refusal Rates: Forget01 rows use ↑, Retain99 rows use ↓. Gray-shaded cells indicate the configuration adopted in our main experiments. Method
Cluster number K
Dataset 5
10
15
20
25
30
35
40
0.950 0.191 1.000 0.050 0.950 0.021
1.000 0.200 1.000 0.050 1.000 0.021
1.000 0.401 1.000 0.050 1.000 0.022
1.000 0.468 1.000 0.050 1.000 0.022
0.950 0.155 1.000 0.050 0.950 0.022
0.950 0.281 1.000 0.050 0.950 0.024
0.975 0.377 1.000 0.050 0.975 0.025
1.000 0.404 1.000 0.050 1.000 0.023
0.875 0.212 1.000 0.050 0.875 0.017
0.975 0.360 1.000 0.050 0.975 0.023
0.950 0.344 1.000 0.050 0.950 0.023
0.975 0.445 1.000 0.050 0.975 0.025
0.975 0.567 1.000 0.050 0.975 0.025
0.950 0.079 1.000 0.050 0.950 0.024
0.975 0.183 1.000 0.050 0.975 0.029
0.900 0.304 1.000 0.050 0.900 0.034
0.950 0.436 1.000 0.050 0.950 0.042
0.975 0.541 1.000 0.050 0.975 0.042
0.975 0.364 1.000 0.050 0.975 0.028
0.975 0.450 1.000 0.050 0.975 0.029
0.975 0.492 1.000 0.050 0.975 0.030
KaLM-Embedding-Gemma3-12B-2511 ICCUw/o Gating ICCUw/o Rule ICCU
Forget01 Retain99 Forget01 Retain99 Forget01 Retain99
0.900 0.003 1.000 0.050 0.900 0.001
Forget01 Retain99 Forget01 Retain99 Forget01 Retain99
0.850 0.012 1.000 0.050 0.850 0.009
0.900 0.084 1.000 0.050 0.900 0.018
0.950 0.054 1.000 0.050 0.950 0.016
0.850 0.157 1.000 0.050 0.850 0.015
Qwen3-Embedding-8B ICCUw/o Gating ICCUw/o Rule ICCU
0.875 0.038 1.000 0.050 0.875 0.022
0.950 0.079 1.000 0.050 0.950 0.022
0.975 0.115 1.000 0.050 0.975 0.021
llama-embed-nemotron-8b ICCUw/o Gating ICCUw/o Rule ICCU
Forget01 Retain99 Forget01 Retain99 Forget01 Retain99
0.675 0.008 1.000 0.050 0.675 0.005
0.875 0.080 1.000 0.050 0.875 0.007
0.800 0.233 1.000 0.050 0.800 0.016
bge-m3 ICCUw/o Gating ICCUw/o Rule ICCU
Forget01 Retain99 Forget01 Retain99 Forget01 Retain99
0.775 0.010 1.000 0.050 0.775 0.006
0.825 0.081 1.000 0.050 0.825 0.014
0.850 0.054 1.000 0.050 0.850 0.022
jina-embeddings-v5-text-small-clustering ICCUw/o Gating ICCUw/o Rule ICCU
Forget01 Retain99 Forget01 Retain99 Forget01 Retain99
0.850 0.018 0.950 0.050 0.850 0.004
0.825 0.076 0.950 0.077 0.800 0.029
et al., 2016) as the retain set. In the continual setting, RMU is applied sequentially to each request. O3 . O3 (Gao et al., 2025) is designed specifically for continual unlearning and does not rely on retained data. It comprises two components: an orthogonal LoRA, which trains a separate low-rank adapter per unlearning request under an orthogonality constraint to disentangle parameters and prevent cross-request interference; and an out-ofdistribution (OOD) detector, trained with a contrastive entropy loss and a “glocal”-aware scoring mechanism that measures the similarity between an input and the unlearned distribution. At inference, O3 adopts a soft-weighted scheme that loads the
0.775 0.183 0.950 0.050 0.750 0.028
0.875 0.213 1.000 0.050 0.875 0.021
0.975 0.263 1.000 0.050 0.975 0.020
unlearning LoRA to a degree proportional to the detector’s predicted similarity, so that inputs close to a forget distribution trigger stronger unlearning while benign inputs are left largely unaffected.
M
End-to-End Unlearning Results on TOFU
We provide the end-to-end unlearning results on TOFU, complementing the WMDP results in Table 6 of the main text. On TOFU, the filter (classification) runs on the off-the-shelf model, while answer generation uses the model fine-tuned on the full TOFU split, since the fictional-author knowledge is absent from pretraining. As shown in Table 17, ICCU drives the forget-split ROUGE-L to
Table 15: Ablation study of ICCU on Forget05 as the unlearning target set, evaluated on Forget05 and Retain95 . All numbers are Refusal Rates: Forget05 rows use ↑, Retain95 rows use ↓. Gray-shaded cells indicate the configuration adopted in our main experiments. Method
Cluster number K
Dataset 5
10
15
20
25
30
35
40
0.915 0.353 0.950 0.099 0.865 0.054
0.895 0.206 0.950 0.082 0.860 0.050
0.915 0.431 0.950 0.100 0.875 0.082
0.915 0.399 0.950 0.086 0.880 0.070
0.910 0.138 0.985 0.050 0.895 0.014
0.930 0.089 0.975 0.050 0.915 0.021
0.880 0.147 0.985 0.050 0.865 0.013
0.855 0.206 0.975 0.050 0.830 0.021
0.845 0.106 0.950 0.081 0.805 0.021
0.925 0.353 0.950 0.098 0.875 0.089
0.900 0.171 0.950 0.071 0.850 0.029
0.930 0.148 0.950 0.066 0.885 0.022
0.890 0.211 0.950 0.078 0.855 0.016
0.940 0.106 1.000 0.050 0.940 0.032
0.850 0.137 1.000 0.050 0.850 0.037
0.910 0.097 1.000 0.050 0.910 0.030
0.775 0.076 1.000 0.050 0.775 0.009
0.835 0.068 1.000 0.050 0.835 0.016
0.935 0.429 0.950 0.258 0.905 0.185
0.930 0.425 0.950 0.204 0.890 0.162
0.915 0.404 0.950 0.217 0.865 0.151
KaLM-Embedding-Gemma3-12B-2511 ICCUw/o Gating ICCUw/o Rule ICCU
Forget05 Retain95 Forget05 Retain95 Forget05 Retain95
0.725 0.585 0.950 0.532 0.690 0.356
Forget05 Retain95 Forget05 Retain95 Forget05 Retain95
0.610 0.322 0.950 0.632 0.585 0.222
0.910 0.044 0.970 0.050 0.890 0.003
0.920 0.198 0.950 0.121 0.875 0.077
0.945 0.321 0.950 0.088 0.900 0.082
Qwen3-Embedding-8B ICCUw/o Gating ICCUw/o Rule ICCU
0.830 0.114 0.950 0.202 0.800 0.034
0.920 0.081 0.960 0.050 0.880 0.020
0.945 0.057 0.950 0.050 0.905 0.023
llama-embed-nemotron-8b ICCUw/o Gating ICCUw/o Rule ICCU
Forget05 Retain95 Forget05 Retain95 Forget05 Retain95
0.555 0.373 0.950 0.155 0.540 0.084
0.920 0.039 0.955 0.050 0.895 0.005
0.915 0.422 0.950 0.109 0.880 0.090
bge-m3 ICCUw/o Gating ICCUw/o Rule ICCU
Forget05 Retain95 Forget05 Retain95 Forget05 Retain95
0.605 0.292 0.950 0.151 0.605 0.067
0.915 0.021 0.990 0.050 0.910 0.007
0.945 0.127 1.000 0.050 0.945 0.037
jina-embeddings-v5-text-small-clustering ICCUw/o Gating ICCUw/o Rule ICCU
Forget05 Retain95 Forget05 Retain95 Forget05 Retain95
0.845 0.662 0.950 0.742 0.805 0.557
0.910 0.559 0.950 0.495 0.870 0.348
near zero across all forget ratios while keeping retain ROUGE-L substantially higher than the baselines, confirming that the same trends observed on WMDP carry over to TOFU. The Refusal Rate further confirms that the gating decision remains accurate on both forget and retain queries.
0.895 0.357 0.950 0.369 0.860 0.169
0.865 0.270 0.950 0.312 0.845 0.127
0.950 0.453 0.950 0.299 0.915 0.240
Table 16: Ablation study of ICCU on Forget10 as the unlearning target set, evaluated on Forget10 and Retain90 . All numbers are Refusal Rates: Forget10 rows use ↑, Retain90 rows use ↓. Gray-shaded cells indicate the configuration adopted in our main experiments. Method
Cluster number K
Dataset 5
10
15
20
25
30
35
40
0.908 0.185 0.950 0.138 0.868 0.070
0.888 0.439 0.950 0.145 0.848 0.117
0.898 0.444 0.950 0.180 0.855 0.112
0.913 0.397 0.950 0.181 0.870 0.145
0.920 0.160 0.950 0.130 0.873 0.032
0.950 0.390 0.950 0.172 0.903 0.128
0.930 0.545 0.950 0.172 0.883 0.143
0.905 0.331 0.950 0.150 0.860 0.070
0.775 0.298 0.950 0.085 0.743 0.022
0.890 0.201 0.950 0.063 0.853 0.025
0.935 0.435 0.950 0.058 0.888 0.046
0.908 0.542 0.950 0.070 0.863 0.048
0.943 0.427 0.950 0.059 0.895 0.047
0.890 0.263 0.978 0.050 0.878 0.029
0.955 0.121 1.000 0.050 0.955 0.036
0.935 0.182 0.998 0.050 0.933 0.038
0.923 0.194 0.998 0.050 0.920 0.033
0.898 0.119 1.000 0.050 0.898 0.035
0.945 0.616 0.950 0.392 0.903 0.308
0.873 0.410 0.950 0.381 0.833 0.220
0.930 0.609 0.950 0.382 0.888 0.304
KaLM-Embedding-Gemma3-12B-2511 ICCUw/o Gating ICCUw/o Rule ICCU
Forget10 Retain90 Forget10 Retain90 Forget10 Retain90
0.650 0.479 0.950 0.782 0.618 0.410
0.758 0.757 0.950 0.415 0.718 0.333
0.845 0.321 0.950 0.332 0.808 0.165
0.908 0.200 0.950 0.177 0.870 0.094
Qwen3-Embedding-8B ICCUw/o Gating ICCUw/o Rule ICCU
Forget10 Retain90 Forget10 Retain90 Forget10 Retain90
0.718 0.653 0.950 0.828 0.683 0.573
0.810 0.364 0.950 0.711 0.770 0.300
0.840 0.095 0.950 0.563 0.803 0.063
0.950 0.119 0.950 0.279 0.905 0.062
llama-embed-nemotron-8b ICCUw/o Gating ICCUw/o Rule ICCU
Forget10 Retain90 Forget10 Retain90 Forget10 Retain90
0.675 0.593 0.950 0.213 0.648 0.145
0.858 0.734 0.950 0.159 0.828 0.133
0.863 0.716 0.950 0.123 0.815 0.097
bge-m3 ICCUw/o Gating ICCUw/o Rule ICCU
Forget10 Retain90 Forget10 Retain90 Forget10 Retain90
0.693 0.622 0.950 0.634 0.673 0.458
0.755 0.648 0.950 0.123 0.740 0.096
0.783 0.482 0.983 0.050 0.775 0.035
jina-embeddings-v5-text-small-clustering ICCUw/o Gating ICCUw/o Rule ICCU
Forget10 Retain90 Forget10 Retain90 Forget10 Retain90
0.740 0.628 0.950 0.831 0.713 0.563
0.795 0.575 0.950 0.700 0.770 0.453
0.798 0.637 0.950 0.661 0.778 0.498
0.943 0.781 0.950 0.478 0.903 0.438
0.890 0.601 0.950 0.433 0.850 0.335
Table 17: End-to-end unlearning on TOFU. Forget (↓) and Retain (↑) report ROUGE-L on the final response. Refusal Rate is the proportion of queries for which the classification subtask outputs a match verdict (Forget ↑, Retain ↓). Pretrained: base model without fictitious knowledge; Finetuned: model trained on all fictitious authors. Method
TOFU-1%
TOFU-5%
TOFU-10%
Forget01 ↓ Retain99 ↑ Forget05 ↓ Retain95 ↑ Forget10 ↓ Retain90 ↑ Llama-3-8B-Instruct Pretrained Finetuned GA RMU O3 ICCU (filter + generate) – Refusal Rate ICCU (end-to-end) – Refusal Rate
0.188 0.980 0.138 0.080 0.020 0.012 0.975 0.023 0.975
0.157 0.947 0.156 0.724 0.723 0.914 0.075 0.906 0.073
0.169 0.946 0.160 0.062 0.031 0.072 0.940 0.034 0.945
0.158 0.946 0.155 0.743 0.748 0.943 0.039 0.941 0.038
0.170 0.948 0.162 0.086 0.034 0.079 0.925 0.059 0.920
0.161 0.946 0.156 0.774 0.779 0.975 0.006 0.972 0.006
0.135 0.952 0.173 0.712 0.826 0.927 0.043 0.926 0.044
0.149 0.946 0.184 0.216 0.048 0.064 0.938 0.053 0.940
0.136 0.951 0.171 0.733 0.863 0.960 0.009 0.960 0.009
Llama-2-7B-chat-hf Pretrained Finetuned GA RMU O3 ICCU (filter + generate) – Refusal Rate ICCU (end-to-end) – Refusal Rate
0.162 0.950 0.220 0.078 0.036 0.025 0.975 0.025 0.975
0.136 0.950 0.172 0.696 0.798 0.891 0.080 0.891 0.080
0.151 0.945 0.174 0.129 0.041 0.057 0.950 0.055 0.940