                 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

