                 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

