=== PDF PAGE 1 ===
           Invariance Makes LLM Unlearning Resilient Even to Unanticipated

                              Downstream Fine-Tuning





          Changsheng Wang 1 Yihua Zhang 1 Jinghan Jia 1 Parikshit Ram 2 Dennis Wei 2 Yuguang Yao 1

                             Soumyadeep Pal 1 Nathalie Baracaldo 2 Sijia Liu 1 2





                          Abstract                                    pora introduces critical ethical and security risks, including

                                                                      privacy violations through memorization of sensitive data

       Machine unlearning offers a promising solution

                                                                      (Huang et al., 2024; Shi et al., 2024), amplification of soci-

       to privacy and safety concerns in large language

                                                                      etal biases (Motoki et al., 2023), and generation of harmful

       models (LLMs) by selectively removing targeted

                                                                      or illegal content (Wen et al., 2023; Li et al., 2024). These

       knowledge while preserving utility. However, cur-

                                                                      challenges necessitate effective mechanisms to eliminate

       rent methods are highly sensitive to downstream

                                                                      undesirable data-model influences in pre-trained models

       fine-tuning, which can quickly recover forgotten

                                                                      without compromising their utility—a problem referred to

       information—even from unrelated tasks. To ad-

                                                                      as LLM unlearning (Liu et al., 2024c; Maini et al., 2024;

       dress this, we introduce invariance into unlearn-

                                                                      Yao et al., 2024b).

       ing for the first time, inspired by invariant risk

       minimization (IRM). Building on this principle,                Existing LLM unlearning methods often operate under the

       we propose invariant LLM unlearning (ILU), a                   assumption of being standalone interventions for safe model

       regularization-based framework that enhances ro-               deployment (Yao et al., 2024a; Zhang et al., 2024a; Li et al.,

       bustness. Notably, ILU generalizes well to diverse             2024; Gao et al., 2024; Cooper et al., 2024; Liu et al., 2024b),

       fine-tuning tasks, even when trained using a single            meaning they do not account for subsequent operations post-

       dataset. A task vector analysis is also provided to            unlearning. However, in practice, unlearning is rarely the

       further elucidate the rationale behind ILU’s effec-            final optimization step, as industrial pipelines often apply

       tiveness. Extensive experiments on the WMDP                    subsequent fine-tuning to adapt models for downstream

       and MUSE benchmark, reveal that ILU signif-                    tasks. Recent empirical studies (Barez et al., 2025; Łucki

       icantly outperforms state-of-the-art unlearning                et al., 2024; Hu et al., 2024; Tamirisa et al., 2024; Lynch

       methods, including negative preference optimiza-               et al., 2024) reveal a critical vulnerability in current unlearn-

       tion (NPO) and representation misdirection for un-             ing approaches: knowledge erased during unlearning can

       learning (RMU). Notably, ILU achieves superior                 unexpectedly resurface through downstream fine-tuning,

       unlearning robustness across diverse downstream                even on data unrelated to the unlearning objective.

       fine-tuning scenarios (e.g., math, paraphrase de-

                                                                      This vulnerability suggests that existing unlearning ap-

       tection, and sentiment analysis) while preserving

                                                                      proaches only remove unwanted knowledge temporarily.

       the fine-tuning performance. Our experiments and

                                                                      However, unlearning should ideally be permanent for a

       codes are available at https://github.com/OPTML-

                                                                      large variety of use cases including removing copyrighted

       Group/Unlearn-ILU.

                                                                      or harmful material. Therefore, we ask:



                                                                       Q: How can we define ‘invariance’ and integrate it into

1. Introduction                                                       LLM unlearning to enhance resilience against fine-tuning?

Large language models (LLMs) have revolutionized genera-

tive AI (Touvron et al., 2023; Achiam et al., 2023; Liu et al.,       Addressing Q necessitates a fundamental rethinking of LLM

2024a). However, their extensive training on diverse cor-             unlearning optimization to account for the impact of future

                                                                      model adaptations, a highly non-trivial challenge given the

   1

     Michigan State University 2 IBM Research. Correspon-             unforeseen nature of downstream fine-tuning operations.

dence to: Changsheng Wang <wangc168@msu.edu>, Sijia Liu               One straightforward yet computationally intensive approach

<liusiji5@msu.edu>.                                                   is to leverage meta-learning (Finn et al., 2017; Tamirisa

Proceedings of the 42 st International Conference on Machine          et al., 2024), which frames the unlearned model as a meta-

Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025           model designed to be agnostic to downstream fine-tuning.

by the author(s).                                                     However, this approach could be challenging to scale due



                                                                  1


=== PDF PAGE 2 ===
                Invariance Makes LLM Unlearning Resilient Even to Unanticipated Downstream Fine-Tuning



to the need for gradient unrolling to simulate fine-tuning          2. Related Work

paths during the optimization process (Tamirisa et al., 2024;

Zhang et al., 2024b).                                               Machine unlearning in LLMs. Recent advances in ma-

                                                                    chine unlearning for LLMs have shown promise in address-

Thus, instead of meta-learning, we explore invariance in            ing risks associated with undesired data retention (Liu et al.,

the unlearned model—ensuring that forgotten knowledge               2024c; Yao et al., 2024a; Zhuang et al., 2024; Maini et al.,

remains irretrievable through parameter updates from irrele-        2024; Eldan & Russinovich, 2023). Practical implementa-

vant downstream fine-tuning tasks. To model and promote             tions span critical applications, such as privacy protection

‘invariance’, we adopt the technique of invariant risk min-         through the removal of sensitive information (Wu et al.,

imization (IRM) (Arjovsky et al., 2019), incorporating its          2023; Yu et al., 2023), prevention of harmful content gen-

invariance regularization (which achieves invariant predic-         eration (Lu et al., 2022; Li et al., 2024), and elimination of

tions agnostic to different training environments) into LLM         memorized sequences (Barbulescu & Triantafillou, 2024;

unlearning. If downstream fine-tuning is treated as an envi-        Jang et al., 2023). Most LLM unlearning methods rely on

ronment that challenges unlearning, invariance regulariza-          effective and efficient optimization techniques to avoid com-

tion can be then integrated with the unlearning objective to        putationally prohibitive retraining while aiming to ‘faith-

obtain unlearning resilience against fine-tuning.                   fully’ remove unwanted data-model influences (Liu et al.,

In our work, the integration of IRM into unlearning leads           2024c). For instance, regularized optimization (Yao et al.,

to a new regularized optimization framework, termed in-             2024b; Liu et al., 2024c; Li et al., 2024; Zhang et al., 2024a)

variant LLM unlearning (ILU), which optimizes the model             has been predominantly employed to balance unlearning

to remain stationary under fine-tuning perturbations during         effectiveness with preserved model utility post-unlearning.

unlearning, aiming to “immunize” against the revival of             Some approaches employ localized interventions that tar-

erased knowledge through fine-tuning. In addition, ILU              get specific model components associated with unwanted

employs lightweight gradient regularization that integrates         capabilities (Meng et al., 2022; Wei et al., 2024; Jia et al.,

seamlessly with state-of-the-art (SOTA) unlearning meth-            2024). Other unlearning approaches leverage in-context

ods like negative preference optimization (NPO) (Zhang              learning (Pawelczyk et al., 2023; Thaker et al., 2024) or task

et al., 2024a) and representation misdirection for unlearn-         vector (Ilharco et al., 2023) to negate the effects of unwanted

ing (RMU) (Li et al., 2024), avoiding the computational             data or model capabilities in LLMs.

overhead of meta-learning while enabling robust knowl-

edge erasure when subjected to fine-tuning. Furthermore,            Robustness challenge in LLM unlearning. Despite the

ILU generalizes effectively to diverse fine-tuning datasets,        growing importance of LLM unlearning, recent studies

including those absent during (invariant) training.                 have revealed significant shortcomings in the robustness

We summarize our contributions below:                               of current unlearning methods (Deeb & Roger, 2024). For

                                                                    example, Lynch et al. (2024) demonstrated that standard-

❶ We introduce the concept of invariance into LLM un-               ized evaluation protocols often overlook residual knowledge

learning, establishing a novel connection between IRM and           persisting in unlearned models. This empirical finding is

LLM unlearning to enhance resilience against downstream             consistent with adversarial analyses in Łucki et al. (2024),

fine-tuning. This integration results in ILU.                       where fine-tuning on just 10 unrelated examples restores

❷ We demonstrate that the invariance regularization in ILU,         most of the unlearned information. The so-called relearning

even with a simple formulation built upon a single unrelated        attacks (Hu et al., 2024) further underscore the robustness

fine-tuning set, can effectively enhance the resilience of          limitations of LLM unlearning, showing that a small amount

an unlearned model against new, unforeseen downstream               of unlearning-related data can quickly recover most of the

fine-tuning tasks. We also conduct a task vector analysis to        unlearned information through fine-tuning. The above vul-

elucidate the underlying rationale behind ILU.                      nerabilities align with a broader limitation of LLMs: weight

                                                                    modifications (such as fine-tuning) can undermine previ-

❸ We show that ILU enhances SOTA LLM unlearning meth-               ously applied alignment operations (Qi et al., 2024; Jain

ods, such as NPO and RMU, when subjected to downstream              et al., 2024). Indeed, additional evidence includes erased

fine-tuning. For instance, on the WMDP unlearning bench-            concepts resurfacing through neuron repurposing (Lo et al.,

mark, ILU achieves a 23% average robustness improvement             2024) and quantization attacks restoring unlearned knowl-

over RMU across 6 fine-tuning tasks, while maintaining              edge (Zhang et al., 2024c). Compared to ‘attacking’ un-

fine-tuning accuracy.                                               learned models, efforts to enhance the robustness of LLM

                                                                    unlearning are quite limited. One concurrent study (Fan

                                                                    et al., 2025) adopts smoothness-oriented optimization tech-

                                                                    niques, e.g., sharpness-aware minimization (SAM), to im-

                                                                    prove resistance to relearning by promoting local flatness



                                                                2


=== PDF PAGE 3 ===
                 Invariance Makes LLM Unlearning Resilient Even to Unanticipated Downstream Fine-Tuning



in the forget loss landscape. Latent adversarial training                        the original training objective. However, the design of the

(Sheshadri et al., 2024) strengthens robustness by perturb-                      forget objective ℓf requires more careful consideration, with

ing intermediate activations, thereby suppressing undesir-                       two widely adopted approaches. The first approach, known

able behaviors and reducing relearning potential. Tamper-                        as negative preference optimization (NPO) (Zhang et al.,

resistant safeguards (Tamirisa et al., 2024) show promise                        2024a), treats the forget data in Df as negative samples, ef-

but involve meta-learning-like complex optimization. Ad-                         fectively disrupting the model’s retention of these negative

ditionally, recent findings (Barez et al., 2025) reveal that                     samples. The second approach leverages random features,

existing unlearning algorithms struggle in dual-use knowl-                       aligning the representations of the forget data with random

edge scenarios, where safety and utility objectives conflict.                    vectors to enforce unlearning, which is referred to as rep-

Unlike existing approaches, our work promotes invariance                         resentation misdirection for unlearning (RMU) (Li et al.,

in LLM unlearning to ensure robustness against post-fine-                        2024). We refer readers to the corresponding literature for

tuning operations.                                                               detailed formulations of NPO and RMU.

                                                                                                 0.70                            4.0                   0.70                               2.0

Invariant risk minimization. The conceptual foundation                                           0.65                                                  0.65









                                                                            Forget Quality ( )









                                                                                                                                  Forget Quality ( )

                                                                                                                                   Epoch Number









                                                                                                                                                                                            Epoch Number

of invariant learning originates from causal inference frame-                                    0.60                                                  0.60

works (Peters et al., 2016), with Arjovsky et al. (2019)                                         0.55                                                  0.55

                                                                                                                                 2.0                                                      1.0

                                                                                                 0.50                                                  0.50

pioneering its adaptation for machine learning and practi-                                                 NPO                                                    NPO

                                                                                                 0.45                            1.0                   0.45                               0.5

cal adoption. Subsequent advances have expanded IRM’s                                                      RMU                                                    RMU

                                                                                                 0.40      Original              0.5                   0.40       Original                0.2

technical landscape across various dimensions, such as risk                                      0.35 0.00 0.10 0.20 0.30 0.40   0.0                   0.35 0.75 0.80 0.85 0.90 0.95 1.00 0.0

variance regularization across domains (Krueger et al., 2021;                                GSM8K Finetuning Accuracy ( )                        AGNews Finetuning Accuracy ( )

Xie et al., 2020), gradient distribution alignment (Rame

                                                                                Figure 1. Fine-tuning breaks existing unlearning methods. Per-

et al., 2022), and adversarial domain adaptation via regret

                                                                                formance evaluation of popular unlearning methods, NPO and

minimization (Jin et al., 2020). Other innovations include

                                                                                RMU, applied to the LLM Zephyr-7b-beta for removing harmful

Bayesian uncertainty quantification (Lin et al., 2022), sparse                  knowledge generation on the WMDP dataset (Li et al., 2024). The

feature selection mechanisms (Zhou et al., 2022), bi-level                      effectiveness of unlearning is measured by the accuracy of the

optimization (Zhang et al., 2023), second-order optimiza-                       unlearned model on the WMDP-Bio evaluation set, with lower ac-

tion (Zhang et al., 2023), and ensemble-based environment                       curacy indicating better forgetting. Accordingly, we define ‘forget

specialization (Ahuja et al., 2020). In this work, we estab-                    quality’ as ‘1 - evaluation accuracy’, where a higher value means

lish a connection between IRM and unlearning to enhance                         more effective unlearning. (Left: GSM8K fine-tuning) The tra-

the latter’s resilience against downstream fine-tuning.                         jectory of forget quality and fine-tuning accuracy is presented for

                                                                                various models, including NPO or RMU-unlearned models and the

                                                                                original (non-unlearned) model, when subjected to downstream

3. Preliminaries and Problem Statement                                          fine-tuning on the GSM8K dataset. The fine-tuning epoch number

                                                                                is indicated by the color, ranging from 0 (no fine-tuning) to the

LLM unlearning. Achieving the complete removal of un-

                                                                                number required to achieve lossless performance equivalent to full

desired data-model influences from an LLM–without com-                          fine-tuning of the original model (termed ‘Original’). The dots

promising model utility and without requiring full model                        with the same position (e.g., 1st, 2nd, 3rd) and color across NPO’s

retraining–remains a significant challenge for LLM unlearn-                     and RMU’s trajectories represent the same fine-tuning epoch num-

ing (Liu et al., 2024c). This necessitates the careful design                   ber. (Right: AGNews fine-tuning) Similar to the left plots but

of a forget objective function to enforce unlearning, reg-                      applied to fine-tuning on the AGNews downstream dataset.

ularized by a (utility-driven) retain objective to balance

unlearning efficacy and model utility (Zhang et al., 2024a;                      Unlearning vulnerability to downstream fine-tuning.

Li et al., 2024; Maini et al., 2024). Accordingly, the problem                   Recent studies (Barez et al., 2025; Łucki et al., 2024; Hu

formulation of LLM unlearning can be cast as:                                    et al., 2024; Tamirisa et al., 2024; Lynch et al., 2024) have

                                                                                 empirically demonstrated that knowledge removed through

   minimize     ℓu (θ; Df , Dr ) := ℓf (θ; Df ) + γℓr (θ; Dr ),   (1)            unlearning optimization (1) can be rapidly recovered via

        θ

                                                                                 post-unlearning fine-tuning, even when fine-tuning is per-

where θ denotes the model parameters to be optimized from                        formed using data entirely unrelated to the unlearning. We

a pre-trained state. The unlearning objective, ℓu , comprises                    refer to this unlearning challenge as the vulnerability of an

the forget objective, ℓf , which is defined over the forget set                  unlearned model to downstream fine-tuning.

Df , and the retain objective, ℓr , which regularizes model util-

                                                                                 In Fig. 1, we demonstrate the unlearning effectiveness and

ity using the retain set Dr . The parameter γ ≥ 0 serves as a

                                                                                 fine-tuning performance of unlearned models (obtained by

regularization factor to balance forget and retain objectives.

                                                                                 NPO and RMU) against a varying number of fine-tuning

In practice, the retain objective ℓr is often chosen as the                      epochs on two downstream datasets: GSM8K and AGNews.

cross-entropy-based sequence prediction loss, aligning with                      Here unlearning is applied to the model Zephyr-7b-beta on



                                                                        3


=== PDF PAGE 4 ===
                 Invariance Makes LLM Unlearning Resilient Even to Unanticipated Downstream Fine-Tuning



the WMDP dataset (Li et al., 2024) for harmful content                  empirical training objective for the representation model ϕ

degeneration and evaluated using 1 minus accuracy on the                but also ensures optimal fine-tuning performance on each

WMDP-Bio evaluation set, termed as ‘forget quality’, where              dataset Di . Formally, the IRM problem is formulated as

a higher value indicates better unlearning performance. For

                                                                         minimize     ℓERM (w∗ (ϕ) ◦ ϕ; ∪i Di )

comparison, we also include the performance of a model                       ϕ                                                           (2)

fine-tuned from the original pre-trained state (i.e., ‘Origi-            subject to   w∗ (ϕ) ∈ arg minw ℓi (w ◦ ϕ; Di ), ∀i ∈ [N ],

nal’). As we can see, both NPO and RMU lose their unlearn-

                                                                        where the upper-level objective ℓERM (·; ∪i Di ) represents

ing effectiveness during the fine-tuning process, despite (1)

                                                                        empirical risk minimization P  (ERM) across all data to op-

having high forget quality prior to fine-tuning (i.e., at 0 fine-

tuning epochs) and (2) the downstream tasks (GSM8K or

                                                                        timize ϕ (e.g., ℓERM (·) =       i ℓi (·; Di )), ℓi denotes the

                                                                        individual training loss over Di , and w∗ (ϕ) denotes an

AGNews) being unrelated to the unlearning task (WMDP).

                                                                        invariant predictor (built upon ϕ) that is optimal to any spe-

In addition, as the number of fine-tuning epochs increases,

                                                                        cific training environment. Here we explicitly express the

the fine-tuned models (even when starting from different

                                                                        solution w∗ (ϕ) as a function of ϕ.

initial unlearned models) exhibit improved fine-tuning ac-

curacy, converging to the performance of fine-tuning the                However, solving the original IRM problem (2) poses sig-

‘Original’ model. Furthermore, while RMU yields a higher                nificant challenges due to the need to compute the gradient

forget quality prior to fine-tuning, it demonstrates weaker             dw∗ (ϕ)

                                                                           dϕ . To circumvent that, problem (2) is typically relaxed

robustness to downstream fine-tuning, as evidenced by the               to a single-level, regularized problem, referred to as IRMv1:

faster ununlearning rate with increasing fine-tuning epochs.

                                                                                                  XN

                                                                            minimize ℓERM (θ) + λ     ∥∇w ℓi (w ◦ θ; Di ) | w=1 ∥22

Problem statement. As motivated by Fig. 1, fine-tuning                         θ     | {z }       i=1

                                                                                                                                    (3)

                                                                                       ERM

on unrelated information that reverses unlearning has

                                                                                                |              {z                 }

                                                                                                             Invariance regularization

emerged as a significant concern and a major limitation

of current LLM unlearning methods. Thus, the central prob-              where the original predictor’s parameters w are absorbed

lem addressed in this paper is: How can we enhance the                  into the full model parameters θ, λ > 0 serves as a regular-

current LLM unlearning approach (1) to achieve greater                  ization parameter, ∥ · ∥2 is the ℓ2 norm, and ∇w ℓi represents

resilience against downstream fine-tuning?                              the gradient of ℓi with respect to the (virtual) scalar predic-

                                                                        tor w, evaluated at w = 1. The invariance regularization

We will approach the above problem through the lens of                  in (3) enforces the necessary optimality condition for each

IRM (invariant risk minimization). By leveraging IRM, we                lower-level problem in (2) by penalizing non-stationarity.

can integrate and promote invariance in LLM unlearning.

                                                                        The IRMv1 approach (3), while a relaxation of (2), facil-

                                                                        itates the application of invariance regularization to LLM

4. Promoting Invariance in LLM Unlearning                               unlearning. First, composing θ with a constant scalar predic-

Invariance in LLM unlearning: From IRM to ILU.                          tor w = 1 ensures adaptability to a wide range of machine

IRM is designed to seek an “invariant” (i.e., training                  learning models, including LLMs. Second, if θ represents

environment-agnostic) model, aiming for universal repre-                the unlearned model obtained by replacing ERM with the

sentation learning to achieve optimal predictions across                unlearning objective ℓu in (1) and Di is a fine-tuning dataset,

diverse training environments (Arjovsky et al., 2019; Ahuja             the invariance regularization in (3) enforces robustness of θ

et al., 2020; Zhang et al., 2023). By treating a fine-tuning            against fine-tuning. Therefore, we propose ILU (invariant

task as an unlearning training environment, integrating IRM             LLM unlearning), extended from IRMv1 (3), as below:

with (1) is then expected to enhance the invariance of the                                          N

                                                                                                    X

unlearned model, i.e., improve its robustness against fine-                   minimize ℓu (θ) + λ         ∥∇w|w=1 ℓi (w ◦ θ; Di )∥22 ,   (4)

                                                                                  θ

tuning. Therefore, we propose framing the LLM unlearning                                            i=1



problem within the IRM framework.

                                                                        where ℓu is the unlearning objective, and Di is a fine-tuning

Following the IRM setup in (Arjovsky et al., 2019), let Di              dataset that can be unrelated to the unlearning task, e.g.,

denote the dataset associated with the training environment             GSM8K or AGNews in Fig. 1.

i ∈ [N ], where [N ] := {1, 2, . . . , N }, and N represents the

number of training environments. IRM learns a universal                 A single (unrelated) fine-tuning dataset may suffice to

representation model ϕ, which enables the existence of an               promote unlearning invariance. A key question in (4) is

invariant predictor w that remains simultaneously optimal               whether the introduction of multiple fine-tuning sets {Di }

across all environments. This results in the invariant (train-          (i.e., N > 1) is necessary, as it assumes greater access

ing environment-agnostic) model θ := w ◦ ϕ (where ◦                     to additional data and knowledge of potential fine-tuning

denotes model composition), which not only optimizes the                tasks. An ideal ILU framework should minimize reliance



                                                                    4


=== PDF PAGE 5 ===
                 Invariance Makes LLM Unlearning Resilient Even to Unanticipated Downstream Fine-Tuning



on fine-tuning datasets while demonstrating generalization                           in (5). Otherwise, a conflict arises between the unlearning

to unseen ones at test time. To explore this, we focus on                            objective (which aims to lower accuracy on the forget set)

utilizing only a single fine-tuning dataset (D) in (4):                              and forget set-based invariance regularization (which may

                                                                                     increase accuracy on the forget set to satisfy stationarity).

         minimize ℓu (θ) + λ∥∇w|w=1 ℓi (w ◦ θ; D)∥22 .         (5)

             θ                                                                       Furthermore, although ILU(Multi) incorporates multiple

We then consider two specifications for D depending on                               fine-tuning sets (GSM8K, AGNews, and WinoGrande) for

the relationship with the unlearning task (Df ): (a) D ⊥ Df ,                        invariance regularization in (4), it does not exhibit a robust-

indicating that the fine-tuning set is unrelated to the forget                       ness advantage over the simpler ILU(GSM8K) approach.

set. Here, ⊥ denotes (nearly) zero cosine similarity between                         This might be because incorporating more fine-tuning sets

the corresponding task vectors, e.g., GSM8K vs. WMDP in                              introduces additional optimization complexities: The un-

Fig. 1; (b) D = Df , where the forget set itself is used as the                      learning direction needs to align with multiple fine-tuning

fine-tuning set during invariance regularization. The latter                         directions and cannot contradict any of them. Based on the

case is inspired by a specific fine-tuning scenario, known                           above, unless stated otherwise, we implement ILU (5) with

as relearning attack (Hu et al., 2024), where the forget                             D ⊥ Df in the rest of the paper. We also refer readers to

data samples are used to fine-tune the unlearned model.                              Appendix B.1 for more details on the comparison between

The speed of relearning the forgotten knowledge is then                              NPO and its ILU enhancement.

evaluated as a measure of unlearning effectiveness.

                                                                                                            RMU      0.68 0.36 0.37 0.36 0.36 0.38 0.38    0.65

For both ILU settings            0.70                          2.0

(a) and (b), we in-                                                                                           ILU                                          0.60

                               Forget Quality ( )









                                                                                                            (GSM8K) 0.68 0.65 0.67 0.61 0.67 0.64 0.64

                                                              Epoch Number



vestigate the effective-         0.60                                            Unlearning Algorithms









                                                                                                                                                              Forget Quality

                                                                                                              ILU                                          0.55

                                                                                                           (AGNews) 0.67 0.62 0.65 0.63 0.61 0.65 0.66

ness of (5) in alleviating                                     1.0

                                 0.50

unlearning vulnerability                  RMU

                                          ILU(GSM8K)           0.5                                            ILU                                          0.50

against downstream fine-         0.40     ILU(Multi)

                                          ILU(WMDP)

                                                                                                         (WinoGrande) 0.68 0.61 0.65 0.62 0.64 0.64 0.62

                                                               0.0

tuning at test time when              0.75 0.80 0.85 0.90 0.94                                                ILU                                          0.45

                  ′

new datasets D ̸= D             AGNews Finetuning Accuracy ( )                                              (WMDP) 0.66 0.56 0.51 0.55 0.58 0.51 0.49

                                                                                                              ILU

are used.      Extending      Figure 2. A single fine-tuning                                                 (Multi) 0.67 0.61 0.61 0.62 0.63 0.61 0.64    0.40

from the experiments in       dataset suffices for enhancing

                                                                                                                            ne



                                                                                                                     AG K

                                                                                                                           ws



                                                                                                                    no 2

                                                                                                                            de



                                                                                                                            LI



                                                                                                                             P

                                                                                                                  Wi ST-









                                                                                                                         QQ

                                                                                                                         M8





Fig. 1, Fig. 2 illustrates    unlearning robustness. Forget









                                                                                                                       MN

                                                                                                                        -tu









                                                                                                                         an

                                                                                                                       Ne



                                                                                                                       S

                                                                                                                      GS









                                                                                                                      Gr

                                                                                                               ine









the performance of ILU,       quality and fine-tuning accuracy

                                                                                                             eF

                                                                                                            Pr









achieved by solving (5)       of different unlearned models

                              are presented against AGNews                                                                  Test-time Fine-tune Tasks

with the RMU-based un-

learning objective for the    fine-tuning, following a similar                       Figure 3. Graceful generalization of ILU’s robustness to unseen

                              setup and presentation format to                       fine-tuning tasks during evaluation. Heatmap of forget quality

WMDP unlearning task.

                              Fig. 1.                                                on WMDP is presented for RMU and its ILU variants to demon-

We term ILU(D) as the

                                                                                     strate unlearning robustness under various unlearning training and

ILU variant that adopts D-based invariance regulariza-                               downstream fine-tuning settings, where the unlearning setup is

tion. In case (a) D ⊥ Df , ILU(D) is implemented as                                  consistent with Fig. 2, and the forget quality in each cell is reported

ILU(GSM8K). In case (b) D = Df , it corresponds to                                   at the final fine-tuning epoch. Each row corresponds to an unlearn-

ILU(WMDP). For comparison, we also consider ILU based                                ing training approach, while each column represents an evaluation

on multiple fine-tuning datasets (4), termed as ILU(Multi),                          setting (e.g., a fine-tuning dataset or no fine-tuning).

using GSM8K, AGNews, and WinoGrande as the fine-

                                                                                     As an extension of Fig. 2, Fig. 3 compares the WMDP un-

tuning datasets.

                                                                                     learning performance of various ILU variants with RMU,

As shown in Fig. 2, all ILU variants demonstrate greater                             evaluated across different downstream fine-tuning datasets.

robustness than RMU as the fine-tuning epoch number in-                              See additional results on NPO in Appendix B.2. As ob-

creases. In particular, ILU(GSM8K), which uses only a                                served, ILU(D), when realized with a single unlearning-

single fine-tuning set D (unrelated to both the forget set                           irrelevant fine-tuning set (i.e., D is either GSM8K,

Df and the evaluation fine-tuning set D′ ), achieves the                             AGNews, or WinoGrande), enables the unlearned model

highest robustness and maintains it consistently across fine-                        to be resilient against even unseen downstream fine-tuning

tuning epochs, even as the model approaches full fine-tuning                         evaluations. The resulting forget quality not only out-

performance. Additionally, ILU(WMDP) underperforms                                   performs RMU but also demonstrates advantages over

compared to ILU(GSM8K), resulting in weaker robustness                               ILU(WMDP) and ILU(Multi). This aligns with the insights

against downstream fine-tuning. This is unsurprising, as in-                         drawn from Fig. 2. The cross-assessment in Fig. 3 (different

variance in unlearning is conceptually better achieved using                         training and testing datasets) demonstrates that incorporat-

an unlearning-unrelated dataset for invariance regularization                        ing invariance into LLM unlearning can strongly generalize



                                                                             5


=== PDF PAGE 6 ===
                 Invariance Makes LLM Unlearning Resilient Even to Unanticipated Downstream Fine-Tuning



its robustness to unseen fine-tuning tasks (which differ from            both NPO and ILU are effective in unlearning, producing

those used in invariance regularization).                                unlearning directions opposite to the fine-tuning direction.

                                                                         This is supported by cos(∠(τNPO , τft )) = −0.92 and

5. Understanding ILU via Task Vectors                                    cos(∠(τILU , τft )) = −0.64. Focusing on NPO, we

                                                                         examine the cosine similarity between τNPO→ft and τNPO

To understand the effectiveness of ILU in building resilience            (or τft ), we obtain cos(∠(τNPO→ft , τNPO )) = −0.41

against fine-tuning, we examine the relationship between                 and cos(∠(τNPO→ft , τft )) = 0.16, i.e., ① in Fig. 4.

the ‘unlearning direction’ and ‘fine-tuning direction’ using             This suggests that after fine-tuning, the unlearning

task vector analysis (Ilharco et al., 2023).                             task vector of NPO (τNPO→ft ) is more aligned with

                                                                         the fine-tuning direction, shifting towards the op-

A task vector defines a direction in the weight space for a

                                                                         posite to the original unlearning direction (τNPO ).

specific task, where movement along this direction from

                                                                         This misalignment explains why fine-tuning signifi-

the pre-trained model enhances performance on this task.

                                                                         cantly undermines NPO’s unlearning effectiveness. In

Let θu and θo denote the unlearned model (obtained via

                                                                         contrast, ILU yields cos(∠(τILU→ft , τft )) = 0.3554

an unlearning approach) and the original pre-trained model,

                                                                         and cos(∠(τILU→ft , τILU )) = 0.09, i.e., ② in Fig. 4.

respectively. By the definition of task vector, the unlearn-

                                                                         If we compare cos(∠(τILU→ft , τILU )) > 0 with

ing direction (i.e., unlearning task vector) is given by

                                                                         cos(∠(τNPO→ft , τNPO )) < 0, it is clear that ILU preserves

τu = θu − θo . Specifically, τILU (or τNPO ) represents the

                                                                         better alignment between the unlearning direction before

unlearning direction resulting from ILU (or NPO), respec-

                                                                         and after fine-tuning. This explains why ILU yields much

tively. Similarly, we can define the fine-tuning direction

                                                                         higher resilience to fine-tuning compared to NPO.

based on θo by τft = θft − θo , where θft is the fine-tuned

model from θo . Note that the fine-tuning direction resides in           In brief, post-fine-tuning, NPO exhibits a substantial devia-

the ununlearning space, as fine-tuning alone cannot achieve              tion from its original unlearning direction (reflected by an

unlearning, especially when applied to an unrelated fine-                obtuse angle) whereas ILU maintains near-orthogonality in

tuning dataset (Łucki et al., 2024). Thus, we expect the                 cos(∠(τILU→ft , τILU )). This suggests that ILU more effec-

unlearning direction to be opposite to the fine-tuning di-               tively disentangles the fine-tuning effect from the original

rection, i.e., cos(∠(τu , τft )) = τuT τft /(∥τu ∥2 ∥τft ∥2 ) < 0,       unlearning, preserving the unlearning direction within the

where ∠ and cos represent the angle between two vectors                  unlearning space even after fine-tuning.

and its cosine, respectively. Furthermore, we define the post-

unlearning fine-tuning direction: τu→ft = θuft −θu , where               6. Experiments

θuft denotes the fine-tuned model obtained from θu through

downstream fine-tuning. Post-unlearning, if τu→ft is more                6.1. Experiment Setups

aligned with τu , implying cos(∠(τu→ft , τu )) ≥ 0, then

                                                                         LLM unlearning tasks. Our experiments primarily focus

the unlearning method can be considered resilient to fine-

                                                                         on the WMDP benchmark (Li et al., 2024) for LLM unlearn-

tuning, as the unlearning direction is preserved after down-

                                                                         ing, which aims to remove hazardous domain knowledge

stream fine-tuning. Conversely, if τu→ft is more aligned

                                                                         related to biosecurity and cybersecurity from the Zephyr-

with τft , implying cos(∠(τu→ft , τft )) ≥ 0, then it becomes

                                                                         7B-beta model (Tunstall et al., 2023). In addition, we also

misaligned with the unlearning direction and thus shifts

                                                                         evaluate on the MUSE dataset (Shi et al., 2024), targeting

toward the ununlearning space.

                                                                         the unlearning of content from the Harry Potter book series

Fig. 4 presents a 2D                                                     (labeled “Books”) and from BBC news (labeled “News”).

visualization of the

                                                                         Table 1. An overview of fine-tuning datasets used in experiments

task vector analysis,

                                                                          Dataset           Task Type                  Domain/Topic

explaining the robust-

                                                 2                        GSM8K          Mathematical QA       Elementary math word problems

ness     advantage      of                                                AGNews         Text classification     News articles (4 categories)

ILU        (implemented                                                   SST-2          Sentiment analysis       Movie review sentiments

                                                1

with the NPO-based                                                        MNLI          Language inference        Multi-genre sentence pairs

                                                                          WinoGrande        Coreference           Commonsense reasoning

unlearning      objective             1                                   QQP           Paraphrase detection        Quora question pairs

and       GSM8K-based                 2

invariance regularization)                                               LLM unlearning methods. The baseline approaches we

                                Figure 4. Illustration of ILU’s

over the conventional           improved unlearning robustness           used include two SOTA methods, as formulated by (1):

NPO       approach     on       compared to NPO through the re-          NPO (Zhang et al., 2024a) and RMU (Li et al., 2024).

WMDP. As we can                 lationships between unlearning           Our proposed ILU approach adopts the unlearning objec-

see, in the absence of          and fine-tuning task vectors on          tive function of either NPO or RMU while incorporating

downstream fine-tuning,         the WMDP dataset.                        invariance regularization. This regularization follows ei-



                                                                     6


=== PDF PAGE 7 ===
                     Invariance Makes LLM Unlearning Resilient Even to Unanticipated Downstream Fine-Tuning





Table 2. Comparison of model performance across multiple tasks before and after fine-tuning. Pre-Finetune columns display the forget

quality (FQ) and MMLU scores. Post-Finetune columns include robust accuracy (RA) and fine-tuning accuracy (FA) for six downstream

tasks (GSM8K, AGNews, SST-2, WinoGrande, MNLI, and QQP). Different unlearning methods (including the original model before

unlearning) are evaluated. ‘Average’ refers to the mean value computed across all downstream fine-tuning scenarios for RA or FA. The

best performance under each metric for each unlearning scenario is highlighted in bold.

                        Pre-Finetune                                                Post-Finetune

       Method

                                        GSM8K          AGNews          SST-2        WinoGrande        MNLI           QQP            Average

                       FQ ↑   MMLU ↑

                                       RA   FA        RA   FA        RA    FA       RA    FA        RA   FA        RA   FA        RA ↑ FA ↑

    Original Model     0.36    58.15   0.37   41.25   0.36   93.20   0.37   95.20   0.37   87.28    0.37   85.26   0.37   92.80   0.37   82.50

        RMU            0.68    57.46   0.41   42.41   0.42   93.20   0.42   94.80   0.42   87.30    0.41   84.24   0.41   92.60   0.42   82.43

     +ILU(Multi)       0.67    57.41   0.63   41.17   0.63   92.40   0.65   95.20   0.62   86.24    0.66   83.48   0.64   92.80   0.64   81.88

    +ILU(GSM8K)        0.68    57.64   0.64   42.04   0.67   91.80   0.62   96.20   0.67   85.68    0.65   85.20   0.66   93.00   0.65   82.32

        NPO            0.52    56.69   0.47   40.03   0.48   91.80   0.47   93.80   0.48   85.24    0.45   81.24   0.47   89.70   0.47   80.30

     +ILU(Multi)       0.53    51.65   0.53   40.14   0.52   92.20   0.51   93.60   0.53   85.68    0.51   83.38   0.52   90.80   0.52   80.97

    +ILU(GSM8K)        0.56    55.50   0.57   40.26   0.57   92.60   0.59   93.80   0.58   86.77    0.52   82.44   0.58   91.20   0.56   81.18



ther the multi-fine-tuning set formulation (4) or the single                utility performance of ILU against NPO, RMU, and the orig-

fine-tuning set formulation (5). As illustrated by Figs. 2-                 inal model (without unlearning) on WMDP, before and after

3, by default, we specify ILU as ILU(GSM8K), where                          downstream fine-tuning. Recall that ILU is implemented

GSM8K serves as the fine-tuning set for invariance regu-                    as ILU(GSM8K), with ILU(Multi) (utilizing GSM8K, AG-

larization. For the ILU variant (4), the datasets GSM8K,                    News, and WinoGrande) included for comparison. The

AGNews, WinoGrande are used, termed ILU(Multi). See                         performance for an unlearned model is measured by FQ and

Appendix A for more experiment setups.                                      MMLU before fine-tuning, and by RA and FA when facing

                                                                            downstream fine-tuning.

Fine-tuning tasks. We use six fine-tuning datasets cov-

ering a broad range of task categories, as summarized in                    First, without downstream fine-tuning (i.e., pre-finetune in

Table 1. This includes: ① GSM8K (grade school math prob-                    Table 2), all the proposed ILU methods and the baselines

lems) for mathematical reasoning; ② AGNews (news topic                      (NPO and RMU) demonstrate effective unlearning, with

classification) and ③ SST-2 (sentiment analysis) for text                   higher FQ values indicating better performance. Addition-

classification; ④ MNLI (multi-genre entailment classifica-                  ally, RMU-based methods outperform NPO-based meth-

tion) for natural language inference; ⑤ WinoGrande (com-                    ods in both FQ and model utility (measured by MMLU).

monsense coreference resolution) for linguistic reasoning;                  Compared to NPO or RMU, the incorporation of invariance

And ⑥ QQP (paraphrase detection) for semantic similar-                      regularization (i.e., NPO+ILU or RMU+ILU) maintains sim-

ity. During ILU training, the datasets GSM8K, AGNews,                       ilar FQ and MMLU performance before fine-tuning. How-

WinoGrande might be used. When evaluating unlearning                        ever, NPO+ILU(Multi) appears less stable in MMLU, likely

robustness against fine-tuning, all datasets listed in Tab. 1               due to the increased optimization complexity introduced

can be utilized. We perform fine-tuning until convergence,                  by incorporating multiple fine-tuning sets for invariance

defined as a less than 1% change in fine-tuning accuracy                    regularization. This aligns with Fig. 2, where ILU(Multi)

over three consecutive epochs.                                              underperforms ILU(GSM8K).

Evaluation metrics. To evaluate the unlearning effective-                   Second, under downstream fine-tuning (i.e., post-finetune in

ness on WMDP, we consider FO (forget quality) given by                      Table 2), ILU significantly outperforms its baselines in RA

(1 − Accuracy on forget evaluation set), as used in Fig. 1.                 (robust accuracy) across various fine-tuning scenarios. This

For an unlearned model, we also evaluate model utility us-                  is evidenced by the averaged RA of 0.65 for RMU+ILU com-

ing zero-shot accuracy on MMLU (Hendrycks et al., 2020),                    pared to 0.42 for RMU, and 0.56 for NPO+ILU compared

ensuring the preservation of the unlearned model’s general                  to 0.47 for NPO. We emphasize that the robustness achieved

capabilities before downstream fine-tuning. In the presence                 by ILU (using only GSM8K for invariance regularization)

of fine-tuning, we introduce robust accuracy (RA) for LLM                   demonstrates strong generalization to other downstream

unlearning, defined as the average FQ values across three                   fine-tuning cases. Also, FA (fine-tuning accuracy) is im-

key fine-tuning milestones: first quartile, median, and final               proved when fine-tuning is performed on the ILU-obtained

epochs. Additionally, we measure fine-tuning accuracy                       unlearned model compared to the NPO or RMU-obtained

(FA) on the downstream task throughout fine-tuning.                         model. This is expected, as the invariance promotion in

                                                                            ILU likely enhances the smoothness of the loss landscape,

6.2. Experiments results                                                    which can improve transfer learning performance during

Overview performance of ILU vs. NPO before and after                        fine-tuning (Liu et al., 2019). Furthermore, ILU(Multi) does

fine-tuning. In Table 2, we compare the unlearning and



                                                                       7


=== PDF PAGE 8 ===
                                    Invariance Makes LLM Unlearning Resilient Even to Unanticipated Downstream Fine-Tuning



                                                                             FQ of NPO                                     FQ of ILU                      FA of NPO                                    FA of ILU

                          Finetune on Agnews                                   Finetune on SST2                                Finetune on Winogrande                               Finetune on MNLI                                     Finetune on QQP

                                                     0.90                                                                                                0.85           0.55                                  0.80                                               0.90

                0.55                                                0.55

   Forget Quality









                                                       Forget Quality









                                                                                                          Forget Quality









                                                                                                                                                           Forget Quality









                                                                                                                                                                                                                Forget Quality

                                                                                                        0.90









                                                       Fine-tune Acc









                                                                                                          Fine-tune Acc









                                                                                                                                                           Fine-tune Acc









                                                                                                                                                                                                                Fine-tune Acc









                                                                                                                                                                                                                                                                   Fine-tune Acc

                                                                                                                       0.55                                                                                                  0.55

                                                     0.85                                                                                                0.80                                                 0.75                                               0.85

                0.50                                                0.50                                                                                                0.50

                                                                                                        0.85           0.50                                                                                                  0.50

                                                     0.80                                                                                                0.75                                                 0.70                                               0.80

                0.45                                                0.45                                0.80                                                            0.45

                                                     0.75                                                              0.45                                                                                   0.65           0.45                                0.75

                       0.0 0.5 1.0             2.0                         0.0 0.5 1.0            2.0                         0.0 0.5 1.0          2.0                         0.0 0.5 1.0              2.0                         0.0 0.5 1.0            2.0

                              Epochs                                              Epochs                                             Epochs                                           Epochs                                               Epochs



                            (a) AGNews                                            (b) SST-2                                     (c) WinoGrande                                         (d) MNLI                                              (e) QQP

                          Finetune on Agnews                                   Finetune on SST2                        0.70 Finetune on Winogrande                                  Finetune on MNLI                                     Finetune on QQP         0.90

                                                     0.90                                                                                                0.85                                                 0.80

   Forget Quality









                                                       Forget Quality









                                                                                                          Forget Quality









                                                                                                                                                           Forget Quality









                                                                                                                                                                                                                Forget Quality

                                                                    0.60                                0.90                                                                                                                 0.6

                                                       Fine-tune Acc









                                                                                                          Fine-tune Acc









                                                                                                                                                           Fine-tune Acc









                                                                                                                                                                                                                Fine-tune Acc









                                                                                                                                                                                                                                                                   Fine-tune Acc

                0.60                                                                                                   0.60                                             0.6                                                                                      0.85

                                                     0.85                                                                                                0.80                                                 0.75

                0.50                                                0.50                                0.85           0.50                                             0.5                                                  0.5

                                                     0.80                                                                                                0.75                                                 0.70                                               0.80

                0.40                                                0.40                                0.80           0.40                                                                                   0.65           0.4

                                                     0.75                                                                                                               0.4

                       0.0 0.5 1.0             2.0                         0.0 0.5 1.0            2.0                         0.0 0.5 1.0          2.0                        0.0   0.5     1.0         2.0                        0.0   0.5     1.0       2.0

                              Epochs                                              Epochs                                             Epochs                                               Epochs                                               Epochs



                           (f) AGNews                                            (g) SST-2                                      (h) WinoGrande                                        (i) MNLI                                                 (j) QQP

                                                                             FQ of RMU                                     FQ of ILU                      FA of RMU                                    FA of ILU

Figure 5. Resilience of unlearning to downstream fine-tuning across different fine-tuning epochs. The unlearning setting follows Table 2.

The first row presents the comparison between NPO and NPO+ILU(GSM8K), while the second row corresponds to the comparison

between RMU and RMU+ILU(GSM8K). Each sub-plot represents a specific downstream fine-tuning dataset, with the left y-axis measuring

FQ (forget quality) and the right y-axis measuring FA (fine-tuning accuracy). The x-axis denotes the fine-tuning epoch, with the maximum

number set to ensure convergence and satisfactory fine-tuning performance for each downstream dataset.

not provide additional robustness advantages over ILU with                                                                                    epochs). In addition, ILU’s resilience to fine-tuning epochs

a single fine-tuning set, consistent with Fig. 2.                                                                                             is evident not only for GSM8K (the same dataset used in

                                                                                                                                              ILU training) but also for other new fine-tuning datasets

In addition, Table A1 in Appendix B.3 shows that ILU also

                                                                                                                                              during evaluation. Furthermore, ILU generally achieves

consistently outperforms NPO on the MUSE benchmarks

                                                                                                                                              improved FA compared to RMU and NPO at different fine-

by maintaining lower VerbMem and KnowMem scores af-

                                                                                                                                              tuning epoch numbers, as aligned with the results in Table 2.

ter downstream fine-tuning. For instance, on MUSE-News,

NPO’s VerbMem score increases from 2.53 to 57.27 after                                                                                        Unlearning robustness against relearning attacks. Re-

WinoGrande fine-tuning, nearly matching the pre-unlearn                                                                                       learning attacks aim to reverse the effects of unlearning by

memorization level (58.40), whereas ILU maintains a Verb-                                                                                     fine-tuning the model on data drawn from a distribution

Mem score of 0 across all fine-tuning settings.                                                                                               similar to that of the forget set, which can be considered as

Furthermore, Table A2 presents response examples from                                                                                         a worst-case fine-tuning scenario (Hu et al., 2024).

unlearned models before and after fine-tuning. We observe                                                                                     In Table 3, we         Table 3. Comparison of forget quality

that ILU consistently preserves the unlearning effect post-                                                                                   evaluate          FO   (FQ) with and without relearning at-

finetuning. In contrast, both RMU and NPO exhibit clear                                                                                       (forget     quality)    tacks on the WMDP dataset using the

relearning behaviors, with the model responses reverting to                                                                                   under relearning        Zephyr-7B-beta model. We report FQ

previously forgotten content. These further highlight ILU’s                                                                                   attacks on the         w/o attack (w/o atk), FQ w/ attack (w/

superior robustness against downstream fine-tuning.                                                                                           WMDP         dataset    atk), and their relative drop to assess

                                                                                                                                              using the Zephyr-       robustness. Relearning is performed us-

                                                                                                                                                                      ing 60 randomly sampled forget-set in-

Unlearning robustness against fine-tuning epochs. In                                                                                          7B-beta      model.

                                                                                                                                                                      stances over 1 epoch Bold indicates the

Fig. 5, we extend the analysis from Table 2 to peer into the                                                                                  We report FQ            best performance.

unlearning robustness of ILU (i.e., ILU(GSM8K)) compared                                                                                      both with and

                                                                                                                                                                                    W/o atk ↑ W/ atk ↑ Drop ↓

to the RMU and NPO baselines against various fine-tuning                                                                                      without       attack,

                                                                                                                                                                           NPO        0.52     0.37     0.15

epochs. Here, the left and right y-axes represent FQ and FA,                                                                                  along with the            NPO+SAM       0.56     0.54     0.02

respectively, while the x-axis denotes the epoch number. As                                                                                   relative degrada-          NPO+ILU      0.56     0.50     0.06

the number of downstream fine-tuning epochs increases, we                                                                                     tion, to quantify            RMU        0.68     0.36     0.32

                                                                                                                                                                        RMU+SAM       0.66     0.60     0.06

observe that while the FA (fine-tuning accuracy) of RMU                                                                                       each      method’s

                                                                                                                                                                        RMU+ILU       0.68     0.54     0.14

improves, its FQ rapidly degrades. In contrast, ILU sig-                                                                                      robustness against

nificantly enhances unlearning robustness to fine-tuning,                                                                                     knowledge reacquisition. Relearning is simulated by

as evidenced by its consistent FQ across different epochs.                                                                                    fine-tuning on 60 randomly sampled instances from the

Even when FA converges to the satisfactory value at a higher                                                                                  forget set for 1 epoch. All ILU-based models are trained

epoch number, ILU maintains its FQ with only a slight drop                                                                                    using a single downstream dataset (GSM8K), and we com-

compared to the pre-fine-tuning state (i.e., 0 fine-tuning                                                                                    pare them against existing unlearning methods, NPO and



                                                                                                                                        8


=== PDF PAGE 9 ===
                   Invariance Makes LLM Unlearning Resilient Even to Unanticipated Downstream Fine-Tuning





Table 4. Performance comparison of ILU (using GSM8K-based invariance regularization), LAT, and TAR on the WMDP dataset before

and after fine-tuning using the LLaMA3-8B-Instruct model. The table format follows that of Table 2. Running time (in minutes) indicates

the total training time for each method. The best result for each metric in each scenario is highlighted in bold.

                            Pre-Finetune                                                                 Post-Finetune

                                                                                                                                                                                                                     Running

             Method

                                            GSM8K          AGNews          SST-2                       WinoGrande                  MNLI           QQP                        Average                               time (mins) ↓

                           FQ ↑   MMLU ↑

                                           RA   FA        RA   FA        RA    FA                      RA    FA                  RA   FA        RA   FA                    RA ↑ FA ↑

          Original model   0.28    62.4    0.29   0.75    0.28   92.40   0.30   94.80                  0.28              85.34   0.28   84.24   0.30    92.60                 0.29                       75.02         N/A

              NPO          0.73    56.84   0.60   56.46   0.59   93.80   0.63   95.60                  0.65              89.24   0.64   84.32   0.60    93.80                 0.61                       85.54        15.30

              LAT          0.72    57.84   0.65   55.32   0.60   93.80   0.66   94.20                  0.68              88.68   0.66   86.46   0.64    93.80                 0.64                       85.38        21.20

              TAR          0.72    58.56   0.68   56.55   0.70   94.20   0.72   96.40                  0.70              90.27   0.70   85.68   0.72    93.80                 0.70                       86.15       7441.90

            NPO+ILU        0.73    57.68   0.70   55.84   0.69   94.00   0.72   95.60                  0.71              90.15   0.69   86.48   0.71    92.80                 0.70                       85.81        118.20





RMU, as well as their recent robustness-enhanced variants                                            λ when balancing the unlearning objective with the invari-

against relearning attacks by leveraging sharpness-aware                                             ance to fine-tuning. As we can see, setting an over large λ

minimization (SAM) (Fan et al., 2025). Compared to NPO                                               (e.g., λ > 0.1) to emphasize invariance regularization may

and RMU, ILU consistently mitigates FQ degradation                                                   compromise forget quality. Conversely, if λ is too small

across all settings, demonstrating stronger resistance to                                            (e.g., λ = 0.05 in the right heatmap), it becomes ineffective

relearning. While the SAM-based variants (Fan et al., 2025)                                          in promoting resilience to downstream fine-tuning, even

exhibit even greater robustness, this improvement stems                                              though the forget quality remains high before fine-tuning.

from explicitly optimizing model sharpness with prior

knowledge of the attack space. In contrast, ILU achieves









                                                                                                                                                                           Regularization Parameter

                                                                                        Regularization Parameter   0.05 0.43 0.42 0.44 0.42                                                           0.05 0.67 0.41 0.39 0.37

robustness implicitly by promoting invariance to unrelated                                                                                             0.55                                                                             0.60









                                                                                                                                                                                                                                           Forget Quality

                                                                                                                                                          Forget Quality

                                                                                                                   0.10 0.57 0.57 0.55 0.59                                                           0.10 0.68 0.65 0.67 0.61

downstream tasks (e.g., GSM8K), rather than tailoring

                                                                                                                                                       0.50

defenses to specific relearning attacks.                                                                           0.50 0.43 0.41 0.42 0.42                                                           0.50 0.51 0.43 0.42 0.43          0.50

                                                                                                                                                       0.45

                                                                                                                   1.00 0.48 0.43 0.42 0.41                                                           1.00 0.45 0.41 0.46 0.45          0.40

Additional robust unlearning comparison: ILU vs. TAR

and LAT. To further validate the generality of our pro-









                                                                                                                                                                                                              ne



                                                                                                                                                                                                       AG K

                                                                                                                                                                                                             ws

                                                                                                                                                                                                             T-2

                                                                                                                           ne



                                                                                                                    AG K

                                                                                                                          ws



                                                                                                                          T-2









                                                                                                                                                                                                           M8

                                                                                                                                                                                                          -tu





                                                                                                                                                                                                         Ne

                                                                                                                        M8









                                                                                                                                                                                                         SS

                                                                                                                       -tu







                                                                                                                      Ne



                                                                                                                      SS









                                                                                                                                                                                                        GS

                                                                                                                                                                                                      ine

                                                                                                                     GS









posed method, Table 4 presents additional results comparing

                                                                                                                   ine









                                                                                                                                                                                     eF

                                                                                                   eF









                                                                                                                                                                           Pr

                                                                                        Pr









ILU against two recent robust unlearning baselines: LAT                                                                  Test-time Fine-tune Tasks                                                          Test-time Fine-tune Tasks

(Sheshadri et al., 2024) and TAR (Tamirisa et al., 2024)                                                                     (a) RMU-based ILU                                                                 (b) NPO-based ILU

using the NPO-based unlearning objective and the base                                                Figure 6. Forget quality of the unlearning method ILU(GSM8K)

model LLaMA-3-8B-Instruct. Latent adversarial training                                               with different values of the invariance regularization parameter λ.

(LAT) enhances robustness by perturbing intermediate ac-

tivations to suppress undesirable behaviors and mitigate

relearning (Sheshadri et al., 2024), while tamper-resistant

                                                                                                      7. Conclusion

safeguards (TAR) employs a meta-learning approach to em-                                             Existing unlearning methods for large language models

bed persistent safeguards into model weights even under ad-                                          (LLMs) are vulnerable to downstream fine-tuning, which

versarial manipulation (Tamirisa et al., 2024). We evaluate                                          can inadvertently restore forgotten knowledge—even from

all methods under the same downstream fine-tuning setup as                                           unrelated tasks. To address this challenge, we propose In-

in Table 2, across six tasks. For each method, we report RA                                          variant LLM Unlearning (ILU), a novel approach that in-

(robustness accuracy, FA (fine-tuning accuracy), and train-                                          corporates invariant risk minimization (IRM) into the un-

ing time to assess the trade-off between robustness and effi-                                        learning process to enhance robustness. ILU effectively

ciency. As we can see, LAT yields only marginal improve-                                             prevents the recovery of unlearned content under subse-

ment over the non-robust unlearning baseline NPO, with                                               quent fine-tuning. Through task vector analysis, we provide

the average RA increasing by just 0.03. In contrast, both                                            insights into ILU’s resilience and mechanism. Extensive

TAR and our method, NPO+ILU (GSM8K), achieve signif-                                                 experiments demonstrate that ILU significantly outperforms

icantly stronger robustness (average RA: 0.70). However,                                             state-of-the-art baselines such as NPO and RMU, achiev-

TAR comes with a significant computational cost, while                                               ing superior forget quality while preserving strong utility on

NPO+ILU (GSM8K) attains comparable robustness with                                                   downstream tasks. As a future work, the promotion of invari-

over 63× greater computation efficiency. These findings                                              ance as a means to enhance robustness in unlearning can be

underscore ILU’s ability to strike the best balance between                                          naturally extended to general safety alignment operations,

robustness and efficiency, making it a practical and scalable                                        helping to ensure their resilience against post-alignment

solution for real-world robust unlearning.                                                           fine-tuning. We also plan to further investigate invariance in

                                                                                                     LLM unlearning to strengthen robustness against relearning

Sensitivity of invariance regularization in ILU. Fig. 6                                              attacks, while deepening the theoretical understanding of

presents the effect of the invariance regularization parameter                                       invariance-based unlearning mechanisms.



                                                                                   9


=== PDF PAGE 10 ===
                Invariance Makes LLM Unlearning Resilient Even to Unanticipated Downstream Fine-Tuning



Acknowledgments                                                      Barez, F., Fu, T., Prabhu, A., Casper, S., Sanyal, A., Bibi,

                                                                       A., O’Gara, A., Kirk, R., Bucknall, B., Fist, T., et al.

C. Wang, Y. Zhang, J. Jia, Y. Yao, S. Pal, and S. Liu ac-              Open problems in machine unlearning for ai safety. arXiv

knowledge support from the National Science Foundation                 preprint arXiv:2501.04952, 2025.

(NSF) CISE Core Program Award (IIS-2207052), the NSF

CAREER Award (IIS-2338068), the U.S. Army Research                   Chasan, A. U.s. tesla cybertruck bomber used chatgpt

Office (ARO) Award (W911NF2310343), the Amazon Re-                     to plan las vegas attack, police say. CBS NEWS,

search Award for AI in Information Security, the Cisco Fac-            2025. URL https://www.cbsnews.com/news/

ulty Research Award, and the Open Philanthropy Research                las-vegas-cybertruck-explosion-fire-

Grant on AI Safety.                                                    chatgpt-plan.



                                                                     Cooper, A. F., Choquette-Choo, C. A., Bogen, M., Jagiel-

Impact Statement                                                       ski, M., Filippova, K., Liu, K. Z., Chouldechova, A.,

This work advances the resilience and robustness of LLM                Hayes, J., Huang, Y., Mireshghallah, N., et al. Machine

unlearning algorithms, which play a critical role in mitigat-          unlearning doesn’t do what you think: Lessons for gen-

ing a range of negative societal impacts associated with the           erative ai policy, research, and practice. arXiv preprint

widespread deployment of large language models (LLMs).                 arXiv:2412.06966, 2024.

For example, LLMs are often trained on large-scale internet          Deeb, A. and Roger, F. Do unlearning methods remove in-

corpora that may inadvertently include copyrighted content.            formation from language model weights? arXiv preprint

As legal and ethical scrutiny increases, LLM developers                arXiv:2410.08827, 2024.

face growing pressure to remove the influence of such data

post hoc when violations are discovered. LLM unlearning              Eldan, R. and Russinovich, M.       Who’s harry pot-

offers a principled mechanism for complying with copyright             ter? approximate unlearning in llms. arXiv preprint

regulations without full model retraining. In addition, LLMs           arXiv:2310.02238, 2023.

can be prompted to produce harmful or dangerous outputs,

such as instructions for malicious activities. For instance,         Fan, C., Jia, J., Zhang, Y., Ramakrishna, A., Hong, M., and

reports (Chasan, 2025) indicate that the Tesla Cybertruck              Liu, S. Towards llm unlearning resilient to relearning

bomber in the 2024 Las Vegas incident sought guidance                  attacks: A sharpness-aware minimization perspective and

from ChatGPT on building explosives. Unlearning meth-                  beyond. arXiv preprint arXiv:2502.05374, 2025.

ods can be used to effectively erase such toxic knowledge            Finn, C., Abbeel, P., and Levine, S. Model-agnostic meta-

from a model, thereby reducing the risk of misuse and en-              learning for fast adaptation of deep networks. In Interna-

hancing the model’s ethical safeguards. Furthermore, the               tional conference on machine learning, pp. 1126–1135,

promotion of invariance as a means to enhance robustness in            2017.

unlearning can be naturally extended to general safety align-

ment operations, helping to ensure their resilience against          Gao, C., Wang, L., Weng, C., Wang, X., and Zhu, Q. Practi-

post-alignment fine-tuning.                                            cal unlearning for large language models. arXiv preprint

                                                                       arXiv:2407.10223, 2024.

References                                                           Hendrycks, D., Burns, C., Basart, S., Zou, A., Mazeika,

Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I.,             M., Song, D., and Steinhardt, J. Measuring mas-

  Aleman, F. L., Almeida, D., Altenschmidt, J., Altman, S.,            sive multitask language understanding. arXiv preprint

  Anadkat, S., et al. Gpt-4 technical report. arXiv preprint           arXiv:2009.03300, 2020.

  arXiv:2303.08774, 2023.

                                                                     Hu, S., Fu, Y., Wu, Z. S., and Smith, V. Jogging the memory

Ahuja, K., Shanmugam, K., Varshney, K., and Dhurandhar,                of unlearned model through targeted relearning attack.

 A. Invariant risk minimization games. In International                arXiv preprint arXiv:2406.13356, 2024.

 Conference on Machine Learning, pp. 145–155. PMLR,

                                                                     Huang, Y., Sun, L., Wang, H., Wu, S., Zhang, Q., Li, Y., Gao,

  2020.

                                                                       C., Huang, Y., et al. Position: TrustLLM: Trustworthiness

Arjovsky, M., Bottou, L., Gulrajani, I., and Lopez-Paz, D.             in large language models. In Proceedings of the 41st

  Invariant risk minimization. CoRR, 2019.                             International Conference on Machine Learning, volume

                                                                       235 of Proceedings of Machine Learning Research, pp.

Barbulescu, G.-O. and Triantafillou, P. To each (tex-                  20166–20270, 21–27 Jul 2024.

  tual sequence) its own: Improving memorized-data un-

  learning in large language models. arXiv preprint                  Ilharco, G., Ribeiro, M. T., Wortsman, M., Schmidt, L.,

  arXiv:2405.03097, 2024.                                               Hajishirzi, H., and Farhadi, A. Editing models with task



                                                                10


=== PDF PAGE 11 ===
                 Invariance Makes LLM Unlearning Resilient Even to Unanticipated Downstream Fine-Tuning



  arithmetic. In The Eleventh International Conference on               Liu, C. Y., Wang, Y., Flanigan, J., and Liu, Y. Large

  Learning Representations, 2023.                                         language model unlearning via embedding-corrupted

                                                                          prompts. In The Thirty-eighth Annual Conference on

Jain, S., Kirk, R., Lubana, E. S., Dick, R. P., Tanaka, H.,               Neural Information Processing Systems, 2024b.

   Rocktäschel, T., Grefenstette, E., and Krueger, D. Mech-

   anistically analyzing the effects of fine-tuning on pro-             Liu, H., Long, M., Wang, J., and Jordan, M. I. Towards

   cedurally defined tasks. In The Twelfth International                  understanding the transferability of deep representations.

  Conference on Learning Representations, 2024.                           arXiv preprint arXiv:1909.12031, 2019.

Jang, J., Yoon, D., Yang, S., Cha, S., Lee, M., Logeswaran,             Liu, S., Yao, Y., Jia, J., Casper, S., Baracaldo, N., Hase,

  L., and Seo, M. Knowledge unlearning for mitigating pri-                P., Yao, Y., Liu, C. Y., Xu, X., Li, H., Varshney, K. R.,

  vacy risks in language models. In Proceedings of the 61st               Bansal, M., Koyejo, S., and Liu, Y. Rethinking machine

  Annual Meeting of the Association for Computational                     unlearning for large language models. arXiv preprint

  Linguistics, pp. 14389–14408. Association for Computa-                  arXiv:2402.08787, 2024c.

  tional Linguistics, 2023.

                                                                        Lo, M., Barez, F., and Cohen, S. Large language models

Jia, J., Liu, J., Zhang, Y., Ram, P., Baracaldo, N., and Liu,             relearn removed concepts. In Findings of the Associa-

   S. WAGLE: Strategic weight attribution for effective and               tion for Computational Linguistics: ACL 2024, pp. 8306–

   modular unlearning in large language models. In The                    8323. Association for Computational Linguistics, August

   Thirty-eighth Annual Conference on Neural Information                  2024.

   Processing Systems, 2024.

                                                                        Lu, X., Welleck, S., Hessel, J., Jiang, L., Qin, L., West,

Jin, W., Barzilay, R., and Jaakkola, T. Domain ex-                        P., Ammanabrolu, P., and Choi, Y. Quark: Controllable

   trapolation via regret minimization. arXiv preprint                    text generation with reinforced unlearning. Advances in

   arXiv:2006.03908, 2020.                                                neural information processing systems, 35:27591–27609,

                                                                          2022.

Krueger, D., Caballero, E., Jacobsen, J.-H., Zhang, A., Bi-

  nas, J., Zhang, D., Le Priol, R., and Courville, A. Out-              Łucki, J., Wei, B., Huang, Y., Henderson, P., Tramèr, F.,

  of-distribution generalization via risk extrapolation (rex).            and Rando, J. An adversarial perspective on machine

  In International Conference on Machine Learning, pp.                    unlearning for ai safety. arXiv preprint arXiv:2409.18025,

  5815–5826. PMLR, 2021.                                                  2024.

Li, N., Pan, A., Gopal, A., Yue, S., Berrios, D., Gatti, A., Li,        Lynch, A., Guo, P., Ewart, A., Casper, S., and Hadfield-

  J. D., Dombrowski, A.-K., Goel, S., Mukobi, G., Helm-                   Menell, D. Eight methods to evaluate robust unlearning

   Burger, N., Lababidi, R., Justen, L., Liu, A. B., Chen, M.,            in llms. arXiv preprint arXiv:2402.16835, 2024.

   Barrass, I., Zhang, O., Zhu, X., Tamirisa, R., Bharathi,

   B., Herbert-Voss, A., Breuer, C. B., Zou, A., Mazeika,               Maini, P., Feng, Z., Schwarzschild, A., Lipton, Z. C., and

   M., Wang, Z., Oswal, P., Lin, W., Hunt, A. A., Tienken-               Kolter, J. Z. TOFU: A task of fictitious unlearning for

   Harder, J., Shih, K. Y., Talley, K., Guan, J., Steneker,              LLMs. In First Conference on Language Modeling, 2024.

   I., Campbell, D., Jokubaitis, B., Basart, S., Fitz, S., Ku-

                                                                        Meng, K., Bau, D., Andonian, A., and Belinkov, Y. Locating

   maraguru, P., Karmakar, K. K., Tupakula, U., Varadhara-

                                                                         and editing factual associations in gpt. Advances in Neu-

   jan, V., Shoshitaishvili, Y., Ba, J., Esvelt, K. M., Wang,

                                                                         ral Information Processing Systems, 35:17359–17372,

  A., and Hendrycks, D. The WMDP benchmark: Mea-

                                                                         2022.

   suring and reducing malicious use with unlearning. In

  Proceedings of the 41st International Conference on Ma-               Merity, S., Xiong, C., Bradbury, J., and Socher, R. Pointer

   chine Learning, pp. 28525–28550, 2024.                                sentinel mixture models, 2016.

Lin, Y., Dong, H., Wang, H., and Zhang, T. Bayesian invari-             Motoki, F., Pinho Neto, V., and Rodrigues, V. More human

  ant risk minimization. In Proceedings of the IEEE/CVF                  than human: Measuring chatgpt political bias. Available

  Conference on Computer Vision and Pattern Recognition,                 at SSRN 4372349, 2023.

  pp. 16021–16030, 2022.

                                                                        Pawelczyk, M., Neel, S., and Lakkaraju, H. In-context

Liu, A., Feng, B., Wang, B., Wang, B., Liu, B., Zhao, C.,                 unlearning: Language models as few shot unlearners.

  Dengr, C., Ruan, C., Dai, D., Guo, D., et al. Deepseek-v2:              arXiv preprint arXiv:2310.07579, 2023.

  A strong, economical, and efficient mixture-of-experts

  language model. arXiv preprint arXiv:2405.04434,                      Peters, J., Bühlmann, P., and Meinshausen, N. Causal in-

  2024a.                                                                  ference by using invariant prediction: identification and



                                                                   11


=== PDF PAGE 12 ===
                Invariance Makes LLM Unlearning Resilient Even to Unanticipated Downstream Fine-Tuning



  confidence intervals. Journal of the Royal Statistical Soci-        Wu, X., Li, J., Xu, M., Dong, W., Wu, S., Bian, C., and

  ety: Series B (Statistical Methodology), 78(5):947–1012,             Xiong, D. Depn: Detecting and editing privacy neu-

  2016.                                                                rons in pretrained language models. arXiv preprint

                                                                       arXiv:2310.20138, 2023.

Qi, X., Zeng, Y., Xie, T., Chen, P.-Y., Jia, R., Mittal, P.,

  and Henderson, P. Fine-tuning aligned language models               Xie, C., Ye, H., Chen, F., Liu, Y., Sun, R., and Li, Z. Risk

  compromises safety, even when users do not intend to!                 variance penalization. arXiv preprint arXiv:2006.07544,

  In The Twelfth International Conference on Learning                   2020.

  Representations, 2024.

                                                                      Yao, J., Chien, E., Du, M., Niu, X., Wang, T., Cheng, Z., and

Rame, A., Dancette, C., and Cord, M. Fishr: Invariant                   Yue, X. Machine unlearning of pre-trained large language

  gradient variances for out-of-distribution generalization.            models. arXiv preprint arXiv:2402.15159, 2024a.

  In International Conference on Machine Learning, pp.

                                                                      Yao, Y., Xu, X., and Liu, Y. Large language model unlearn-

  18347–18377. PMLR, 2022.

                                                                        ing. In The Thirty-eighth Annual Conference on Neural

Sheshadri, A., Ewart, A., Guo, P., Lynch, A., Wu, C., Heb-              Information Processing Systems, 2024b.

  bar, V., Sleight, H., Stickland, A. C., Perez, E., Hadfield-

                                                                      Yu, C., Jeoung, S., Kasi, A., Yu, P., and Ji, H. Unlearning

  Menell, D., et al. Latent adversarial training improves

                                                                        bias in language models by partitioning gradients. In

  robustness to persistent harmful behaviors in llms. arXiv

                                                                        Findings of the Association for Computational Linguis-

  preprint arXiv:2407.15549, 2024.

                                                                        tics: ACL 2023, pp. 6032–6048, 2023.

Shi, W., Lee, J., Huang, Y., Malladi, S., Zhao, J., Holtz-            Zhang, R., Lin, L., Bai, Y., and Mei, S. Negative preference

  man, A., Liu, D., Zettlemoyer, L., Smith, N. A., and                  optimization: From catastrophic collapse to effective un-

  Zhang, C. Muse: Machine unlearning six-way evaluation                 learning. In First Conference on Language Modeling,

  for language models. arXiv preprint arXiv:2407.06460,                 2024a.

  2024.

                                                                      Zhang, Y., Sharma, P., Ram, P., Hong, M., Varshney, K. R.,

Tamirisa, R., Bharathi, B., Phan, L., Zhou, A., Gatti, A.,              and Liu, S. What is missing in IRM training and evalua-

  Suresh, T., Lin, M., Wang, J., Wang, R., Arel, R., et al.             tion? challenges and solutions. In The Eleventh Interna-

  Tamper-resistant safeguards for open-weight llms. arXiv               tional Conference on Learning Representations, 2023.

  preprint arXiv:2408.00761, 2024.

                                                                      Zhang, Y., Khanduri, P., Tsaknakis, I., Yao, Y., Hong, M.,

Thaker, P., Maurya, Y., and Smith, V. Guardrail baselines               and Liu, S. An introduction to bilevel optimization: Foun-

  for unlearning in llms. arXiv preprint arXiv:2403.03329,              dations and applications in signal processing and machine

  2024.                                                                 learning. IEEE Signal Processing Magazine, 41(1):38–

                                                                        59, 2024b.

Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi,

  A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P.,             Zhang, Z., Wang, F., Li, X., Wu, Z., Tang, X., Liu, H., He,

  Bhosale, S., et al. Llama 2: Open foundation and fine-                Q., Yin, W., and Wang, S. Does your llm truly unlearn?

  tuned chat models. arXiv preprint arXiv:2307.09288,                   an embarrassingly simple approach to recover unlearned

  2023.                                                                 knowledge. arXiv preprint arXiv:2410.16454, 2024c.

Tunstall, L., Beeching, E., Lambert, N., Rajani, N., Rasul,           Zhou, X., Lin, Y., Zhang, W., and Zhang, T. Sparse invari-

  K., Belkada, Y., Huang, S., von Werra, L., Fourrier, C.,              ant risk minimization. In International Conference on

  Habib, N., Sarrazin, N., Sanseviero, O., Rush, A. M.,                 Machine Learning, pp. 27222–27244. PMLR, 2022.

  and Wolf, T. Zephyr: Direct distillation of lm alignment,

  2023.                                                               Zhuang, H., Zhang, Y., Guo, K., Jia, J., Liu, G., Liu,

                                                                        S., and Zhang, X. Uoe: Unlearning one expert is

Wei, B., Huang, K., Huang, Y., Xie, T., Qi, X., Xia, M.,                enough for mixture-of-experts llms. arXiv preprint

 Mittal, P., Wang, M., and Henderson, P. Assessing the                  arXiv:2411.18797, 2024.

 brittleness of safety alignment via pruning and low-rank

 modifications. arXiv preprint arXiv:2402.05162, 2024.



Wen, J., Ke, P., Sun, H., Zhang, Z., Li, C., Bai, J., and

 Huang, M. Unveiling the implicit toxicity in large lan-

 guage models. In The 2023 Conference on Empirical

 Methods in Natural Language Processing, 2023.



                                                                 12


=== PDF PAGE 13 ===
                 Invariance Makes LLM Unlearning Resilient Even to Unanticipated Downstream Fine-Tuning



Appendix

A. Experiment Setup and Implementation Details

A.1. Unlearning configurations

We use the forget set provided in the WMDP (Li et al., 2024) benchmark, which contains a large collection of biology-related

articles. For the retain set, we select WikiText (Merity et al., 2016), whose content is presumed unrelated to the forget set.

Our baseline model is Zephyr-7B-beta, as specified in the WMDP benchmark.

For unlearning, we first employ the NPO method with 2000 optimization steps, gradient accumulation every 4 steps, and a

context length of 1024 tokens for each data chunk. The learning rate is chosen via a grid search in [10−6 , 10−5 ], while the

parameter γ appearing before the retain loss is selected from [1, 2.5]. We choose the final unlearned model as the one that

preserves performance closest to the original Zephyr-7B-beta.

We also employ the RMU method, using a batch size of 4 and sampling 800 total data instances, each with 512 tokens per

data chunk. The learning rate is tuned within [10−5 , 10−3 ], and the parameter α appearing before the retain loss is searched

in [1, 10].

ILU integrates invariance regularization into the loss function. We tune the key parameter λ in [0.1, 2.0]. We set the batch

size to 48 for each unlearning step when using a single dataset on both NPO-based and RMU-based ILU. When combining

three datasets under the invariance regularization, we allocate each dataset a batch size of 16.



A.2. Fine-tuning dataset configurations

In the downstream fine-tuning phase, we perform six separate fine-tuning runs, each on a distinct dataset shown in Tab.1. For

GSM8K, we set the batch size to 10 and tune the learning rate within the range [10−4 , 10−6 ]. We train until convergence,

defined as a change in accuracy of less than 1% over two consecutive epochs. For each of the remaining datasets, we adopt a

batch size of 64 with a learning rate in [10−4 , 10−6 ], following the same convergence criterion.



B. Additional Experiment Results

                                                                  0.60                          2.0

                                             Forget Quality ( )









                                                                  0.55

                                                                                                  Epoch Number









                                                                  0.50                          1.0

                                                                          NPO

                                                                  0.45    ILU(GSM8K)            0.5

                                                                          ILU(Multi)

                                                                          ILU(WMDP)

                                                                  0.40 0.75 0.80 0.85 0.90 0.93 0.0

                                                            AGNews Finetuning Accuracy ( )

Figure A1. Forget quality and fine-tuning accuracy of different unlearned models, achieved by NPO and its ILU variants, when subjected

to Agnews fine-tuning, following a similar setup and presentation format to Fig. 1.





B.1. ILU performance across different fine-tuning sets against AGNews fine-tuning on NPO

Extending the experiments from Fig. 2, Fig. A1 presents the performance of ILU when applied to the WMDP unlearning

task using NPO-based unlearning objectives. As shown in Fig. A1, all ILU variants exhibit greater robustness compared to

NPO as the fine-tuning epoch number increases. Notably, ILU(GSM8K), which relies on a single fine-tuning set D (distinct

from both the forget set Df and the evaluation fine-tuning set D′ ), achieves the highest robustness and maintains stability

across fine-tuning epochs. Even as the model approaches full fine-tuning performance, ILU(GSM8K) effectively mitigates

the resurgence of forgotten information.



B.2. Heatmap of forget quality on WMDP for NPO and its ILU variants

As an extension of Fig. 3, Fig. A2 presents a comparative analysis of WMDP unlearning effectiveness across various

ILU variants and NPO, tested on multiple downstream fine-tuning datasets. As shown, ILU(D), when applied with a



                                                                                  13


=== PDF PAGE 14 ===
                  Invariance Makes LLM Unlearning Resilient Even to Unanticipated Downstream Fine-Tuning



                                                                                                           0.60

                                                            NPO      0.52 0.42 0.43 0.42 0.45 0.43 0.45

                                                                                                           0.58

                                                              ILU

                                                            (GSM8K) 0.56 0.57 0.55 0.59 0.58 0.49 0.58









                                 Unlearning Algorithms

                                                                                                           0.55









                                                                                                              Forget Quality

                                                              ILU

                                                           (AGNews) 0.56 0.56 0.61 0.52 0.55 0.50 0.54     0.53

                                                              ILU

                                                         (WinoGrande) 0.55 0.52 0.53 0.56 0.51 0.49 0.53   0.50

                                                              ILU                                          0.48

                                                            (WMDP) 0.59 0.50 0.51 0.50 0.49 0.48 0.49

                                                              ILU                                          0.45

                                                             (Multi) 0.53 0.52 0.52 0.50 0.52 0.49 0.50

                                                                                                           0.43





                                                                         ne



                                                                  AG K

                                                                        ws



                                                                 no 2

                                                                         de



                                                                         LI



                                                                          P

                                                               Wi ST-









                                                                      QQ

                                                                      M8









                                                                    MN

                                                                     -tu









                                                                      an

                                                                     Ne



                                                                     S

                                                                   GS









                                                                   Gr

                                                                  ine

                                                             eF

                                                            Pr





                                                                            Test-time Fine-tune Tasks

Figure A2. Forget quality heatmap of NPO and its ILU variants to demonstrate unlearning robustness against fine-tuning under various

unlearning training and fine-tuning evaluation settings, with a similar unlearning setting to Fig. 1. Each row corresponds to an unlearning

training approach, while each column represents an evaluation setting (e.g., a fine-tuning dataset and no fine-tuning). Each cell in the

heatmap represents the forget quality of an unlearned model on WMDP, either before fine-tuning or after fine-tuning.





single fine-tuning dataset unrelated to unlearning (i.e., D being GSM8K, AGNews, or WinoGrande), enhances the model’s

resilience to previously unseen fine-tuning evaluations. The observed forget quality surpasses that of NPO while also

exhibiting improvements over ILU(WMDP) and ILU(Multi). This finding is consistent with the observations in Fig. 3. The

cross-dataset evaluation in this figure highlights that integrating invariance into LLM unlearning significantly improves

its robustness against previously unencountered fine-tuning tasks, even when those tasks were not part of the invariance

regularization process.



B.3. Evaluation on MUSE benchmark

To further evaluate the generality of our method, we conduct experiments on the MUSE dataset (Shi et al., 2024). MUSE

defines two distinct unlearning scenarios: removing content from the Harry Potter book series (denoted as MUSE-Books) and

forgetting news articles from BBC News (denoted as MUSE-News). Following prior work, we use LLaMA-2 7B fine-tuned

on BBC News for MUSE-News, and ICLM-7B fine-tuned on Harry Potter books for MUSE-Books. For downstream

evaluation, we adopt the same six fine-tuning datasets as used in our previous experiments: GSM8K, AGNews, SST-2,

WinoGrande, MNLI, and QQP. For ILU, we use a single finetuning dataset, GSM8K, to promote model’s robustness again

downstream finetuning.

As shown in Table A1, we observe that for the VerbMem metric on MUSE-News, fine-tuning NPO with different downstream

datasets leads to a significant resurgence in memorization. For example, after fine-tuning on WinoGrande, the VerbMem

score increases sharply from 2.53 (pre-finetuning) to 57.27, almost fully recovering to the original model’s memorization

level of 58.40. This indicates that the NPO-unlearned models can recall previously forgotten content after fine-tuning.

In contrast, incorporating ILU (with GSM8K as the invariance regularization dataset) substantially improves robustness:

the VerbMem score remains at 0.00 across nearly all fine-tuning settings, while also maintaining comparable or even

higher fine-tuning accuracy (FA). This trend is consistent across tasks such as AGNews, SST-2, and QQP. A similar pattern

is observed for the KnowMem metric, which reflects knowledge-level forgetting. In many cases, NPO fails to prevent

knowledge recovery (e.g., KnowMem score of 64.96 after WinoGrande fine-tuning), whereas ILU significantly mitigates

this effect (e.g., 48.68 under the same condition), suggesting stronger unlearning preservation. These results demonstrate

that ILU provides robust protection against memorization and knowledge resurgence across diverse downstream fine-tuning

scenarios.



B.4. More visualization examples for ILU









                                                                                    14


=== PDF PAGE 15 ===
                 Invariance Makes LLM Unlearning Resilient Even to Unanticipated Downstream Fine-Tuning









Table A1. Comparison of ILU and NPO on the MUSE-News and MUSE-Books unlearning benchmarks, evaluating performance both

before and after fine-tuning. We report KnowMem and VerbMem scores on Df to evaluate unlearning effectiveness, and KnowMem scores

on Dr to assess utility retention. Post-finetuning unlearning performance is included to measure robustness against relearning across

six downstream tasks. Fine-tuning accuracy (FA) is also reported. The best result for each metric is shown in bold. ILU consistently

outperforms NPO in preserving unlearning robustness after fine-tuning.

                                                  MUSE-News                                      MUSE-Books

                                     VerbMem    KnowMem      KnowMem                VerbMem    KnowMem    KnowMem

                       Method         on Df ↓    on Df ↓      on Dr ↑       FA ↑     on Df ↓    on Df ↓    on Dr ↑    FA ↑

                    Original model    58.40       63.90        55.20          -       99.80      59.40        66.90     -

                                                                 Pre-Finetune

                        NPO            2.53       40.76        36.25          -       0.00       0.00         57.19     -

                    +ILU(GSM8K)        0.00       46.97        41.90          -       0.00       0.00         45.20     -

                                                            Post-Finetune on GSM8K

                        NPO           35.38       52.73        47.29        16.53     9.69       38.03        63.29   5.84

                    +ILU(GSM8K)        0.46       49.97        42.90        18.64     0.00       31.47        56.30   6.08

                                                           Post-Finetune on AGNews

                        NPO           13.96       53.87        44.43        94.20     1.39       36.35        66.00   94.00

                    +ILU(GSM8K)        0.00       44.95        44.97        94.00     0.00       14.37        61.17   93.80

                                                             Post-Finetune on SST-2

                        NPO            3.63       44.12        38.83        97.20     1.61       31.88        63.17   96.80

                    +ILU(GSM8K)        0.00       44.12        36.18        97.00     0.00       23.63        60.62   97.00

                                                          Post-Finetune on WinoGrande

                        NPO           57.27       64.96        54.36        67.40     2.86       38.00        66.67   60.22

                    +ILU(GSM8K)        0.00       48.68        44.58        59.00     0.00       20.03        61.34   59.27

                                                            Post-Finetune on MNLI

                        NPO           32.54       48.61        46.54        85.20     8.58       33.42        62.84   81.56

                    +ILU(GSM8K)        0.00       47.84        45.65        84.46     0.00       28.54        61.32   83.68

                                                             Post-Finetune on QQP

                        NPO           33.46       54.21        45.86        93.00     9.57       31.58        66.10   91.68

                    +ILU(GSM8K)        2.07       46.17        47.68        92.86     0.00       24.78        63.54   92.80









                                                                       15


=== PDF PAGE 16 ===
                 Invariance Makes LLM Unlearning Resilient Even to Unanticipated Downstream Fine-Tuning









Table A2. Examples of model responses before and after fine-tuning (FT). For RMU and ILU, responses are from the pre-fine-tuned

unlearned model, while RMU/ILU (post-FT) represents the post-fine-tuned state. Failed unlearning cases, where undesired outputs persist,

are highlighted in red, whereas successful unlearning cases, yielding the desired outputs, are highlighted in green.

                    Example 1

                    Prompt: HSV Epidemiology: Global Burden of Disease Herpes simplex virus type 2 (HSV-2)

                    is an incurable sexually transmitted pathogen that infects ...

                    NPO: \/******/\/******/\/******/ ...

                    ILU: \/******\******T\/******\/******/\/******/\/******/ ...

                    NPO (post-FT): epithelial cells before establishing latency in the dorsal root ganglia. The virus

                    employs immune evasion mechanisms, including ...

                    ILU (post-FT): \/******/\/******/Ω\/******/ ...

                    Prompt: HSV Epidemiology: Global Burden of Disease Herpes simplex virus type 2 (HSV-2)

                    is an incurable sexually transmitted pathogen that infects ...

                    RMU: \nTo\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n

                    ILU: \n\nα\n\nget\n\nβ\n\nget\n\nΓ\n\npr\\nΩ\n\nget\n\nα\n\nδ \n\nξ\n\nθ\n\nδ\n\nΨ\n\nγ\...

                    RMU (post-FT): millions of individuals worldwide, with a particularly high prevalence in low-

                    and middle-income countries. The virus establishes lifelong ...

                    ILU (post-FT):\n\nraw\n\\n\nraw\n\n text\n\n raw\n\n data\n\n raw n raw\n \n raw\n\ntext\n\n

                    raw\n\n code\n\nraw\n\nvalue\n\nraw ...

                    Example 2

                    Prompt: The development of mRna vaccines has been a significant achievement in the history

                    or vaccination, particularly in ...

                    NPO: \/******/\...

                    ILU: \/******\******\/******\/******/α\/******/\/******/ ...

                    NPO (post-FT): combating infectious diseases with unprecedented speed and efficacy. These

                    vaccines, such as ...

                    ILU (post-FT): nwere\nget\nget\n\nget\n\nget\n\nget\ngary\ng\nget\α\get\n\n on\nget\n\non\...

                    Prompt: The development of mRna vaccines has been a significant achievement in the history

                    or vaccination, particularly in ...

                    RMU: \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n ...

                    ILU: \n\nα\n\nget\n\nα\n\nget\n\nα\n\npr\\nα\n\nget\n\nα\n\nδ n\nα\n\nα\n\nδ\n\nα\n\nγ\...

                    RMU (post-FT): combating several infectious diseases. These vaccines, including developed by

                    the Moderna ...

                    ILU (post-FT):\n\nraw\n\\n\nraw\n\nraw\n\nraw\n\nraw nraw\n\nraw\n\nraw\n\nraw\n\ ...

                    Example 3

                    Prompt: Introduction Four factors can make a novel pathogen outbreak extremely deadly: a)

                    high reproduction number or Ro factor ...

                    NPO: \******\*********...

                    ILU: \/******\******************/\/******/\/******/ ...

                    NPO (post-FT): epithelial cells before establishing latency in the dorsal root ganglia. The virus

                    employs immune evasion mechanisms, including ...

                    ILU (post-FT): \/******/\/******/Ω\/******/Ωαα\/******/Ω\/******/ ...

                    Prompt: Introduction Four factors can make a novel pathogen outbreak extremely deadly: a)

                    high reproduction number or Ro factor ...

                    RMU: \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\...

                    ILU: \n\nget\n\nα\n\nδ \n\nξ\n\nθ\n\nδ\n\nΨ\n\nγ\...

                    RMU (post-FT): millions of individuals worldwide, with a particularly high prevalence in low-

                    and middle-income countries. The virus establishes lifelong ...

                    ILU (post-FT):raw\n\ntext\n\n raw\n\n code\n\nraw\n\nvalue\n\nraw\n\nraw\n\\n\nraw\n\n

                    text\n\n raw\n\n data\n\n raw n raw\n \n ...









                                                                   16

