Manuscript Offprint
arXiv:2609.10439Forgetting Only What Matters: Layer-Selective Unlearning toward Robust LLMs
Ravi Ranjan *
Florida International
University (FIU),
Miami, FL, USA
Olivera Kotevska
Oak Ridge National
Laboratory (ORNL),
Oak Ridge, TN, USA
Agoritsa Polyzou
Florida International
University (FIU),
Miami, FL, USA
Abstract
Large Language Models (LLMs) can memorize and reproduce sensitive, copyrighted, or otherwise undesirable training content, creating privacy, safety, and regulatory concerns. Machine unlearning offers a practical alternative to full retraining, but many existing methods apply broad or fixed parameter updates that can degrade utility and remain brittle under deployment changes such as post-training quantization, where forgotten knowledge may partially re-emerge. We propose Forgetting Only What Matters via Unlearning Layers (FOM-UL), a layer-level unlearning framework that selects transformer layers using a forget-to-retain significance score. This score identifies layers with high influence on the forget set and low sensitivity to the retain set, allowing FOM-UL to concentrate updates where they are most effective while leaving most of the model unchanged. This targeted update strategy improves the forgetting-utility trade-off and provides an empirical path toward quantization-resilient unlearning by reducing the chance that small, diffuse updates are erased by low-bit rounding. Across TOFU, KnowUnDo, and MUSE-style evaluations, FOM-UL reduces residual memorization compared with strong GA, NPO, KLD, SURE, ReLearn, and LUNAR-based baselines while preserving retain-set utility close to the vanilla model. Under 8-bit and 4-bit post-training quantization, FOM-UL maintains stronger memorization suppression and utility preservation than competing methods, and adversarial prompt evaluations show lower recovery of forgotten content. Overall, FOM-UL provides an efficient unlearning strategy that improves targeted forgetting, utility preservation, and deployment robustness without claiming formal guarantees of erasure.
Code available at:
https://github.com/raviranjan-ai/FOMUL-AACL-2026.
*Corresponding author.
Published as a conference paper at AACL-IJCNLP 2026.

Figure 1: FOM-UL robust and quantization-resilient forgetting against global and partial unlearning methods.
1 Introduction
Large Language Models (LLMs) have transformed natural language processing, delivering strong performance across diverse tasks and domains (Zhao et al., 2023). Yet, as these models scale and are deployed widely, an increasingly visible failure mode is their tendency to memorize and reproduce fragments of training data, including sensitive personal information, copyrighted text, or otherwise undesirable content (Zhao et al., 2023; Wang et al., 2025a). Such memorization creates legal, ethical, and security risks, especially in high-stakes settings where accidental disclosure of protected content is unacceptable. These concerns are further amplified by regulatory requirements such as the General Data Protection Regulation (GDPR) “right to be forgotten” (Council et al., 2022), which demands mechanisms to remove specific data upon request.
Machine unlearning for LLMs has therefore emerged as a practical alternative to full retraining: the goal is to remove targeted knowledge or behaviors from a trained model while preserving its overall capabilities. However, existing unlearning pipelines face major obstacles. Retraining is often prohibitively expensive at LLM scale (Jang et al., 2022), and frequent unlearning requests in real-world deployments further stress the need for efficient, deployable solutions. Beyond cost, the high dimensionality and tightly coupled representations of modern transformer architectures make targeted knowledge removal inherently difficult: even seemingly localized edits can be propagated broadly, causing utility degradation or catastrophic forgetting (Zhang et al., 2024a). These challenges have motivated a rapidly growing literature on LLM unlearning across widely used architectures such as GPT-2, LLaMA, and Gemma (Geng et al., 2025; Yao et al., 2024a).
A central issue is that many unlearning methods still rely on global or otherwise indiscriminate parameter updates, which can be brittle and imprecise. Figure 1 contrasts this paradigm with our proposed approach: rather than updating large portions of the model, Forgetting Only What Matters via Unlearning Layers (FOM-UL) selectively modifies only those transformer layers most responsible (high forget-to-retain ratio) for encoding the undesired knowledge. This targeted intervention aims to improve approximate forgetting while preserving general capabilities and minimizing collateral damage.
Targeted unlearning differs from general-purpose model editing by focusing on the selective removal of specific facts, documents, or behaviors, enabling an LLM to “forget” designated content without retraining from scratch. Importantly, unlearning is not standard fine-tuning in reverse: whereas fine-tuning typically reinforces desired behavior via positive examples, unlearning must suppress undesired behavior.
A range of approaches have been proposed to realize this objective (Geng et al., 2025). In particular, preference-optimization (PO) and gradient-ascent (GA) style methods are widely adopted due to their simplicity and effectiveness (Liu et al., 2024a). PO-based methods cast unlearning as an alignment problem in which the model is steered to prefer alternative responses using preference pairs. Complementary directions, including relabeling, adapter/LoRA-based updates, quantization-based techniques (Zhang et al., 2024c), and reinforcement learning (Lu et al., 2022)-provide additional tools, but PO and GA remain central to scalable unlearning.
Gradient Ascent (GA) is a common unlearning strategy that increases the loss on memorized responses to reduce confidence in targeted outputs (Yao et al., 2024b). However, GA typically applies broad model-wide updates, which can leave residual memorization and harm unrelated capabilities (Yao et al., 2024a), and it is often brittle under post-training quantization, where discretizations may partially restore suppressed behaviors. Although retain-set regularization (Liu et al., 2024a) and KL-divergence constraints to the original model (Yao et al., 2024a) help preserve utility, they do not fully eliminate the side effects of indiscriminate updates. Motivated by recent evidence of quantization-induced failure modes in unlearning (Zhang et al., 2024b), we instead pursue a layer-selective strategy that concentrates updates where they matter most, improving precision and robustness against quantization-driven recovery.
FOM-UL is a targeted and efficient unlearning framework that mitigates catastrophic forgetting, quantization-induced relearning, and the inefficiency of global parameter updates. Our primary contributions are:
(i) Layer-level forget-retain localization. We introduce a layer-selection criterion based on the ratio between forget-set gradient magnitude and retain-set gradient magnitude. This identifies layers that offer high forgetting leverage with comparatively low retain-set interference.
(ii) Iterative layer-budget expansion. Rather than updating a fixed region or the full model, FOM-UL starts from a small high-score layer set and expands it only when forgetting criteria are unmet, improving the trade-off between erasure strength and utility preservation.
(iii) Efficient selective optimization. By restricting updates to a small number of selected layers, FOM-UL reduces trainable parameters, memory use, and runtime while remaining compatible with standard GA, NPO, and KLD-style unlearning losses.
(iv) Empirical quantization-robustness analysis. Motivated by quantization-induced recovery, we test FOM-UL under 8-bit and 4-bit post-training quantization and show that concentrated layer updates reduce residual memorization compared with global or fixed-selection baselines.
where is the learning rate and is typically a loss function defined on the forget set, often optimized via gradient ascent (GA) (Bourtoule et al., 2021; Golatkar et al., 2020).
Recent advances in LLM unlearning have established several effective approaches to remove specific knowledge or capabilities from trained models. Parameter-based methods modify model weights directly through techniques like gradient ascent (Jang et al., 2022) or localized weight editing (Ilharco et al., 2022). Global unlearning updates the full parameter space of an LLM, which can aggressively suppress the targeted behavior but often propagates changes widely, leading to broader utility degradation and higher computational cost (Wuerkaixi et al., 2025). In contrast, partial unlearning restricts updates to a subset of components (e.g., layers, modules, or adapters) to limit collateral damage and improve efficiency (Wang et al., 2025b), yet it can suffer from incomplete forgetting when the targeted knowledge is distributed across multiple parts of the network (Yao et al., 2024a). Knowledge-boundary methods create negative examples to teach models to avoid certain responses (Li et al., 2025; Liu et al., 2024b). Contrastive unlearning pairs forgetting targets with similar but acceptable content to refine decision boundaries (Chen and Yang, 2023). Dataset-filtering approaches reconstruct training data while excluding unwanted information (Zhao et al., 2025). Optimization-based methods, like Influence Tuning, use importance scores to identify and modify critical parameters (Xu et al., 2024). Direct Preference Optimization (DPO) is a prominent example that assigns higher preference to neutral or refusal outputs than to the original memorized responses (Rafailov et al., 2023). Negative Preference Optimization (NPO) further streamlines this process by relying only on negative forget samples (Zhang et al., 2024a). These approaches vary in their effectiveness, computational requirements, and ability to preserve model performance on unrelated tasks.
However, many unlearning methods remain vulnerable to quantization-induced relearning, where low-bit quantization can effectively erase small unlearning updates and restore behavior close to the original model. Post-training quantization is widely used to reduce the computational and storage overhead of LLMs by mapping full-precision parameters to low-bit representations (Gholami et al., 2022; Lin et al., 2024). Recent quantization methods include 8-bit and 4-bit techniques, significantly enhancing inference efficiency while preserving acceptable accuracy levels (Dettmers et al., 2022). Nevertheless, quantization can adversely affect machine unlearning performance, potentially exacerbating the issue of catastrophic forgetting (Luo et al., 2023; Ranjan et al., 2026e).
Formally, let be the original parameters and the post-unlearning parameters, and let denote post-training rounding quantization (elementwise or per-group). For step size on coordinate/group ,
Quantization can mask an unlearning update when the pre- and post-unlearning parameters remain in the same quantization bin. For coordinate (or group) , this occurs exactly when
If this condition holds for a large fraction of the edited coordinates, the quantized unlearned model can become functionally closer to the quantized original model, allowing part of the suppressed knowledge to re-emerge (Zhang et al., 2024b).
Another prominent line of work leverages parameter-efficient modules, e.g., adapters and LoRA layers, to localize updates and preserve the bulk of pre-trained weights (Liu et al., 2025b; Li and Liang, 2021; Hu et al., 2022). Moreover, even after “erasure”, residual information can be resurrected by adversarial or carefully engineered prompts, so-called spillage, undermining any privacy guarantees (Ji et al., 2024; Zhang et al., 2024b).
In summary, while existing methods, such as quantization-based unlearning, knowledge editing, and parameter-efficient tuning, have provided valuable insights into model modification, they exhibit significant limitations when applied to robust unlearning scenarios.
3 Proposed Method: FOM-UL
We propose FOM-UL, a targeted framework that suppresses specific knowledge by updating a small set of layers with high forget-to-retain significance. Rather than claiming exact erasure, FOM-UL aims to approximate retraining behavior on the forget set while preserving retain-set utility and improving robustness to quantization-induced recovery.
Problem Formulation. Let denote a pretrained transformer-based model with parameters . Given two datasets a forget set , containing the data to be erased, and a retain set , comprising knowledge that must be preserved the objective is to update the model parameters to minimize verbatim memorization (Ver-Mem) and privacy leakage (PrivLeak) on , while preserving utility and knowledge retention on .
Motivation. Modern LLMs, such as Llama-2, are typically decoder-only autoregressive transformers with stacked layers. For an input prefix , each layer updates hidden states via (i) multi-head self-attention (MHSA) and (ii) a position-wise feed-forward network (FFN), coupled with residual connections and normalization. In MHSA, each attention head performs a query-key-value interaction to form a weighted mixture of contextual token representations, and the layer aggregates diverse dependency patterns (e.g., local syntax and long-range factual cues) across heads. Importantly, information is not uniformly distributed across the network: lower layers tend to encode lexical/syntactic features, intermediate layers increasingly represent semantic relations, and deeper layers are more directly coupled to the final logits (next-token scores) used for generation. Consequently, memorized or sensitive content can be disproportionately concentrated in a subset of layers/heads that exert outsized influence on specific next-token predictions. This heterogeneous localization motivates our work. By attributing a forget objective to the layers that most affect the target prediction and selectively updating only those layers, FOM-UL can induce targeted forget-
ting with reduced collateral utility loss, while producing parameter shifts that are more resilient to quantization-induced reversal than diffuse, global updates.
Proposed Method Overview. Figure 2 presents the complete FOM-UL pipeline. First, we select the datasets, a Forget set (e.g., copyrighted Harry Potter text) and a Retain set (e.g., fandom wiki and general knowledge). Next, a layer-attribution analysis identifies the transformer layers most responsible for encoding the sensitive content. A binary saliency mask is then generated (for layers) to freeze layers with low attribution and unlock only the high-attribution layers for updates. Targeted unlearning alternates between (i) gradient ascent on the Forget set to maximize loss on unwanted content and (ii) gradient descent on the Retain set to preserve essential knowledge, applied solely within the selected layers. Finally, the resulting model is evaluated on verbatim memorization, privacy leakage, knowledge retention, and general utility to verify robust, quantization-resilient forgetting.
Identifying Key Layers. We consider a transformer-based LLM with parameters grouped by layer, and let denote an input prefix. We define as the model's top-1 next-token prediction and compute its baseline probability
To localize where this prediction is formed, we perform layer-wise ablation: for each layer , we intervene on the forward pass by removing (e.g., zeroing) the contribution of layer to the residual stream, and recompute the same next-token probability under this ablated model, denoted by :
To prioritize layers that enable effective forgetting with minimal retain-set disruption, FOM-UL further computes a gradient-based significance score. Let and be the losses on forget and retain batches and , respectively. We define the per-layer gradient magnitudes

Figure 2: Overview of the Forgetting Only What Matters via Unlearning Layers (FOM-UL) framework.
and the normalized forget-to-retain trade-off score
where is a small constant for numerical stability. Intuitively, high identifies layers that are highly responsive to the forgetting objective while being comparatively insensitive to the retain objective. In the first stage, FOM-UL selects the candidate set
where is a tunable threshold controlling the layer budget and the conservativeness of the update set (Detailed in Appendix D.
Selective Layer Update with Forget, Mismatch, and Retain Losses. FOM-UL performs targeted updates only on layers . The update is guided by three loss components (Detailed in Appendix D.2): (i) the forgetting loss to remove memorized patterns, (ii) the mismatch loss to diverge from original outputs, and (iii) the retain loss to preserve general utility. For each selected layer, the parameter update is:
where , and are the respective learning rates. Layers not in remain frozen:
Iterative Expansion and Stopping Criteria. FOM-UL proceeds iteratively: after an initial selection of top layers, ranked by , that cross the threshold , if the forgetting objectives (e.g., Ver-Mem below threshold < 0.05) are unmet, the set is expanded by adding the next most significant layer based on an additional significance scoring, i.e., . This continues until the forgetting metric converges or a maximum number of epochs is reached. This prevents
aggressive updates early on and reduces the risk of unintended utility loss. Extended justifications and details can be found in Appendix D.3.
The pseudocode is provided in Appendix A, additional methodological details are described in Appendix D, and formal justifications for the proposed layer selection strategy (Lemma 1) and iterative unlearning procedure (Lemma 2) are presented in Appendix E.
4 Experiments
4.1 Experimental Setup
Detailed implementation details, hyperparameters, and metric definitions are provided in Appendix B and Appendix C.
Baselines. We compare FOM-UL against the vanilla model and a broad set of LLM unlearning baselines. Following the SURE protocol (Zhang et al., 2024b), we evaluate Gradient Ascent (GA) and Negative Preference Optimization (NPO), combined with common retain-preserving objectives such as gradient descent on the retain set (GDR) and KL regularization (KLR). GA directly reduces confidence on forget samples, while NPO treats forget examples as negative preferences. We also include recent state-of-the-art methods, including ReLearn (Xu et al., 2025), which performs unlearning through data augmentation and fine-tuning, and LUNAR (Shen et al., 2025), which redirects internal activations. In addition, we consider parameter-efficient and quantization-aware unlearning baselines to evaluate robustness and efficiency.
Datasets. We evaluate on three standard LLM unlearning benchmarks. TOFU (Maini et al., 2024) tests factual QA forgetting over synthetic world facts. KnowUnDo (Tian et al., 2024) evaluates privacy- and copyright-oriented unlearning while checking whether useful knowledge is unintentionally removed. We also use MUSE, including BOOKS and NEWS. BOOKS uses the Harry Potter corpus as the forget set and FanWiki as the retain set, while NEWS contains BBC articles split into forget, retain, and holdout subsets for evaluating
Table 1: Main unlearning results on TOFU-World Facts. Results are reported as mean±std over three run. M1/M2 are ROUGE-based residual memorization scores, M3 measures privacy leakage distance to the retrained model, and M4 measures retain-set utility. Values are reported on a compact 0–10 scale for readability; multiplying by 10 converts them to a 0–100 scale.
| Method | GPT-2 | Llama-3.2-1B | Gemma-3-1B | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| M1↓ | M2↓ | M3→0 | M4↑ | M1↓ | M2↓ | M3→0 | M4↑ | M1↓ | M2↓ | M3→0 | M4↑ | |
| Vanilla Model | ||||||||||||
| SURE + GA | ||||||||||||
| FOM-UL + GA | ||||||||||||
| SURE + NPO | ||||||||||||
| FOM-UL + NPO | ||||||||||||
| KLD | ||||||||||||
| SURE + KLD | ||||||||||||
| FOM-UL + KLD | ||||||||||||
| ReLearn | ||||||||||||
| LUNAR | ||||||||||||
| FOM-UL-Full (Ours) | ||||||||||||
memorization, utility, and privacy leakage.
Metrics. We follow the standard four-metric protocol used in prior work (Zhang et al., 2024b). M1 Verbatim Memorization and M2 Knowledge Memorization measure residual content from the forget set; lower values indicate stronger forgetting. M3 Privacy Leakage measures membership-inference risk and is best when close to zero. M4 Utility Preservation measures retained knowledge on the retain set, where higher values indicate better utility. Together, these metrics capture the main trade-off between erasing unwanted knowledge and preserving useful behavior.
Models. We evaluate FOM-UL on multiple transformer-based LLMs, including Llama-2 7B, Llama-3.2 1B (Grattafiori et al., 2024), GPT-2 (Hanna et al., 2023), and Gemma-3 1B (Team et al., 2024). These models cover different scales and architectures, allowing us to test whether layer-selective unlearning remains effective across model families.
4.2 Unlearning Results
Performance Comparison. Table 1 shows two key findings. First, FOM-UL consistently achieves the best overall forgetting-utility balance across GPT-2, Llama-3.2-1B, and Gemma-3-1B, reducing residual memorization and privacy leakage while keeping retain-set utility close to the vanilla model. Second, the gains are stable across different base objectives, showing that the proposed layer-selection strategy improves standard GA, NPO, and KLD-style unlearning rather than depending on a single loss. Based on these results, Table 2 evaluates

Figure 3: Attack Leakage Rate (ALR) under adversarial/jailbreak prompts. Lower ALR indicates fewer successful recoveries of forgotten on Llama-3 and TOFU dataset under adversarial prompting; FOM-UL achieves the lowest leakage score among all methods (Table 8).
the best-performing combinations across NEWS, KnowUnDo, and BOOKS.
Evaluation of the Best-Performing combinations. Table 2 shows that FOM-UL provides the strongest overall forgetting-utility trade-off across NEWS, KnowUnDo, and BOOKS: it matches or ties the best memorization scores while substantially reducing privacy leakage. It also preserves retain-set utility close to the vanilla model, indicating that the gains are not due to destructive over-unlearning.
4.3 Robustness Analysis.
Adversarial/Jailbreak Robustness. As shown in Figure 3, FOM-UL achieves the lowest ALR
Table 2: Best-performing unlearning combinations on Llama-3.2-1B across three datasets. Results are reported as mean±std over three runs.
| Method | NEWS | KnowUnDo | BOOKS | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| M1↓ | M2↓ | M3→0 | M4↑ | M1↓ | M2↓ | M3→0 | M4↑ | M1↓ | M2↓ | M3→0 | M4↑ | |
| Vanilla Model | ||||||||||||
| GA_GDR | ||||||||||||
| NPO_GDR | ||||||||||||
| KLD | ||||||||||||
| SURE + NPO | ||||||||||||
| ReLearn | ||||||||||||
| LUNAR | ||||||||||||
| FOM-UL | ||||||||||||
of 11.6%, compared to 16.5% for SURE+NPO and 19.8% for LUNAR. This indicates stronger resistance to jailbreak-based recovery of forgotten knowledge. These results show that FOM-UL remains effective not only under clean prompts, but also under adversarial extraction attempts. The complete results are provided in Appendix F.
Quantization Robustness. Table 3 shows that 4-bit quantization generally weakens unlearning by increasing residual memorization relative to 8-bit precision. FOM-UL reduces residual memorization and improves privacy-parity metrics relative to retraining. However, its negative M3 values indicate deviation from the retrained privacy baseline rather than improved privacy. We therefore interpret M3 by distance to zero and report these values as evidence of privacy-behavior shift under aggressive quantization, while the main robustness gain of FOM-UL is strongest on memorization and utility. Additional analysis is provided in Appendices C and D.4.
4.4 Runtime Performance
Table 4 highlights the computational efficiency of different unlearning methods. Full-model ap-

Figure 4: Quantization robustness of unlearning methods measured by M1 (VerMem, lower is better) under Full precision 32-bit (FP-32), 8-bit, and 4-bit post-training quantization; red annotations denote the relative M1 increase when moving from FP-32 to 8-bit and 4-bit.
Table 3: Quantization robustness on Llama-3.2-1B using TOFU-World Facts. Results compare 8-bit and 4-bit post-training quantization.
| Method. | Quant. | M1↓ | M2↓ | M3→0 | M4↑ |
|---|---|---|---|---|---|
| 8-bit Quantization | |||||
| GA_GDR | 8-bit | 5.32 | 5.32 | 4.92 | 1.94 |
| NPO_GDR | 8-bit | 3.12 | 3.12 | 6.98 | 2.04 |
| KLD_GDR | 8-bit | 4.18 | 4.18 | 6.18 | 1.82 |
| SURE + NPO | 8-bit | 2.06 | 2.06 | 3.62 | 1.84 |
| ReLearn | 8-bit | 5.62 | 5.62 | 4.84 | 1.92 |
| LUNAR | 8-bit | 3.14 | 3.14 | 4.96 | 1.72 |
| FOM-UL | 8-bit | 2.04 | 2.04 | -1.47 | 2.43 |
| 4-bit Quantization | |||||
| GA_GDR | 4-bit | 5.94 | 5.94 | 5.08 | 1.67 |
| NPO_GDR | 4-bit | 3.68 | 3.68 | 7.02 | 2.00 |
| KLD_GDR | 4-bit | 4.32 | 4.32 | 6.22 | 1.80 |
| SURE + NPO | 4-bit | 2.42 | 2.42 | 3.68 | 1.80 |
| ReLearn | 4-bit | 5.80 | 5.80 | 4.92 | 1.87 |
| LUNAR | 4-bit | 3.88 | 3.88 | 5.16 | 1.70 |
| FOM-UL | 4-bit | 2.44 | 2.44 | -2.00 | 2.04 |
proaches such as GA and KLD incur high memory and runtime costs due to updating all parameters, making them less practical for large-scale deployment. In contrast, parameter-efficient methods significantly reduce resource requirements. Notably, FOM-UL achieves competitive unlearning performance while updating only a small subset of parameters, requiring the lowest GPU memory (6–8 GB) and short runtimes (10–30 minutes). Compared to other efficient baselines such as SURE+NPO, ReLearn, and LUNAR, FOM-UL offers a more favorable balance between parameter count, memory usage, and execution time, demonstrating its practicality for scalable and resource-constrained unlearning settings. Details regarding parameter count in Appendix C, and reproducibility and hyperparameter configurations are provided in Appendix K.

Figure 5: Layer-selection and robustness validation. FOM-UL achieves the best forgetting-utility trade-off across layer choices and the lowest adversarial recovery among evaluated baselines.
Table 4: Efficiency comparison on TOFU-World Facts with Llama-2. FOM-UL achieves a practical balance between trainable parameter size, GPU memory, and runtime while avoiding full-model updates.
| Method | Trainable Params. | GPU Mem. | Time |
|---|---|---|---|
| GA_GDR | 7B | 16 GB | 4 hrs |
| NPO_GDR | 7B | 8 GB | 3.2 hrs |
| KLD | 7B | 32 GB | 4 hrs |
| SURE + NPO | 1.7M | 8 GB | 15 min |
| ReLearn | 2B | 16 GB | 35 min |
| LUNAR | 1.75M | 8 GB | 20 min |
| FOM-UL | 7M | 8 GB | 20 min |
Table 5: Ablation study of FOM-UL components on TOFU-World Facts with Llama-3.2-1B.
| Variant | M1↓ | M2↓ | M3→0 | M4↑ |
|---|---|---|---|---|
| Forget only | 1.56 | 1.56 | 8.31 | 2.83 |
| Retain only | 2.28 | 2.28 | 7.30 | 4.62 |
| Mismatch only | 1.56 | 1.56 | -6.44 | 4.66 |
| FOM-UL full | 1.24 | 1.24 | 2.04 | 2.90 |
4.5 Ablation Study
The ablation results in table-5 show that using only a single component of FOM-UL leads to sub-optimal trade-offs between forgetting and utility. While FOM-UL_forget_only achieves low memorization, it suffers from high privacy leakage, and FOM-UL_retain_only preserves utility at the cost of weaker forgetting. FOM-UL_mismatch_only improves utility but introduces instability in privacy behavior. In contrast, FOM-UL_full consistently balances effective forgetting with stable privacy and utility, confirming the necessity of jointly optimizing all FOM-UL components. A comprehensive sensitivity analysis is provided in Appendix G.
5 Discussion
Figure 5 results show that high-Sig() layer selection is more effective than early-only or over-expanded updates, and that FOM-UL also yields the lowest attack leakage rate under jailbreak-style recovery prompts. Full normalization and aggregation details are provided in Appendix C.
Overall, FOM-UL consistently reduces residual targeted knowledge with limited utility loss, and remains robust under aggressive post-training quantization, where many conventional unlearning methods exhibit severe reversals due to discretizations artifacts.
Extended Evaluation on Diverse LLM Architectures. We further validate generality across LLaMA-2, LLaMA-3, GPT-2, and Gemma-3 on the Tofu World Facts benchmark. Across architectures, FOM-UL reduces residual memorization and privacy leakage while maintaining strong retained utility. Notably, under 4-bit quantization on Llama-3, FOM-UL achieves a residual memorization rate of 1.22%, highlighting resilience to quantization-induced recovery that commonly affects global unlearning methods (Zhang et al., 2024b).
FOM-UL's efficiency stems from: (i) selective updates restricted to a small set of responsible layers, (ii) faster optimization due to fewer trainable parameters per step, and (iii) lower memory footprint, enabling larger batches and reduced checkpointing. These gains make FOM-UL practical at scale and competitive with quantization-centric approaches in both completeness and utility (Zhang et al., 2024b), aligning with real-world compliance needs under evolving privacy regulations.
Additional implementation details and variability analyses are provided in the Appendix D. We also include ablations probing quantization-induced recovery by varying the update scope (top layers through full-model), learning rates, and regularization strength. In contrast to diffuse global updates, FOM-UL concentrates stronger edits on attribution-identified layers, yielding robust forgetting with limited collateral damage (Zhang et al., 2024b).
6 Conclusion
We introduced FOM-UL, a layer-selective framework for approximate LLM unlearning. FOM-UL identifies layers with high forget-set influence and low retain-set sensitivity, then restricts updates to this small subset rather than modifying the full model. This design improves the forgetting-utility trade-off while reducing unnecessary parameter changes and computational cost.
Across TOFU, KnowUnDo, and MUSE-style evaluations, FOM-UL reduces residual memorization compared with strong unlearning baselines while preserving retain-set utility. Its concentrated updates also improve robustness under adversarial recovery prompts and low-bit post-training quantization, where diffuse unlearning updates can be weakened or erased. These results support layer-level forget-retain localization as a practical direction for efficient and deployment-aware unlearning, while leaving formal guarantees of complete erasure to future work.
Limitations
While FOM-UL improves targeted forgetting and quantization robustness by concentrating updates on a small subset of influential layers, its effectiveness depends on the reliability of layer-attribution signals, which can vary across prompts, domains, and evaluation setups. Moreover, FOM-UL is not a formal guarantee of erasure: highly entangled or redundantly encoded knowledge may require expanding the updated layer set or additional iterations, which can increase compute and introduce utility trade-offs under more adversarial or distribution-shifted settings. We discuss ethical considerations, safeguards, intended use, and risk mitigation in Appendix J.
References
Mayur Akewar and Ravi Ranjan. 2026. Safecommit: Certifying when memory-grounded agents may safely act. arXiv preprint arXiv:2608.04289.
Lucas Bourtoule, Varun Chandrasekaran, Christopher A Choquette-Choo, Hengrui Jia, Adelin Travers, Baiwu Zhang, David Lie, and Nicolas Papernot. 2021. Machine unlearning. In 2021 IEEE symposium on security and privacy (SP), pages 141–159. IEEE.
Jiaao Chen and Diyi Yang. 2023. Unlearn what you want to forget: Efficient unlearning for llms. arXiv preprint arXiv:2310.20150.
E Council and 1 others. 2022. General data protection regulation. Official Journal of the European.
Tim Dettmers, Mike Lewis, Younes Belkada, and Luke Zettlemoyer. 2022. Gpt3. int8 (): 8-bit matrix multiplication for transformers at scale. Advances in neural information processing systems, 35:30318–30332.
Jiahui Geng, Qing Li, Herbert Woisetschlaeger, Zongxiong Chen, Fengyu Cai, Yuxia Wang, Preslav Nakov, Hans-Arno Jacobsen, and Fakhri Karray. 2025. A comprehensive survey of machine unlearning techniques for large language models. arXiv preprint arXiv:2503.01854.
Amir Gholami, Sehoon Kim, Zhen Dong, Zhewei Yao, Michael W Mahoney, and Kurt Keutzer. 2022. A survey of quantization methods for efficient neural network inference. In Low-power computer vision, pages 291–326. Chapman and Hall/CRC.
Aditya Golatkar, Alessandro Achille, and Stefano Soatto. 2020. Forgetting outside the box: Scrubbing deep networks of information accessible from input-output observations. In Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK, August 23–28, 2020, Proceedings, Part XXIX 16, pages 383–398. Springer.
Aaron Grattaflori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, and 1 others. 2024. The llama 3 herd of models. arXiv preprint arXiv:2407.21783.
Utkarsh Grover, Ravi Ranjan, Mingyang Mao, Trung Tien Dong, Satvik Praveen, Zhenqi Wu, J Morris Chang, Tinoosh Mohsenin, Yi Sheng, Agoritsa Polyzou, and 1 others. 2026. Embodied foundation models at the edge: A survey of deployment constraints and mitigation strategies. arXiv preprint arXiv:2603.16952.
Michael Hanna, Ollie Liu, and Alexandre Variengien. 2023. How does gpt-2 compute greater-than?: Interpreting mathematical abilities in a pre-trained language model. Advances in Neural Information Processing Systems, 36:76033–76060.
Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, Weizhu Chen, and 1 others. 2022. Lora: Low-rank adaptation of large language models. ICLR, 1(2):3.
James Y Huang, Wenxuan Zhou, Fei Wang, Fred Morstatter, Sheng Zhang, Hoifung Poon, and Muhao Chen. 2024. Offset unlearning for large language models. arXiv preprint arXiv:2404.11045.
Gabriel Ilharco, Marco Tulio Ribeiro, Mitchell Wortsman, Suchin Gururangan, Ludwig Schmidt, Hannaneh Hajishirzi, and Ali Farhadi. 2022. Editing models with task arithmetic. arXiv preprint arXiv:2212.04089.
Joel Jang, Dongkeun Yoon, Sohee Yang, Sungmin Cha, Moontae Lee, Lajanugen Logeswaran, and Minjoon Seo. 2022. Knowledge unlearning for mitigating privacy risks in language models. arXiv preprint arXiv:2210.01504.
Jiaming Ji, Boyuan Chen, Hantao Lou, Donghai Hong, Borong Zhang, Xuehai Pan, Tianyi Alex Qiu, Juntao Dai, and Yaodong Yang. 2024. Aligner: Efficient alignment by learning to correct. Advances in Neural Information Processing Systems, 37:90853–90890.
Ravi R Kumar, Vishal Pramanik, Utkarsh Grover, and Venkata Ramesh Ganapam. 2024. Trustworthiness of llms in medical domain. Researchgate preprint.
Moxin Li, Yong Zhao, Wenxuan Zhang, Shuaiyi Li, Wenya Xie, See Kiong Ng, Tat-Seng Chua, and Yang Deng. 2025. Knowledge boundary of large language models: A survey. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 5131–5157.
Xiang Lisa Li and Percy Liang. 2021. Prefix-tuning: Optimizing continuous prompts for generation. arXiv preprint arXiv:2101.00190.
Ji Lin, Jiaming Tang, Haotian Tang, Shang Yang, Wei-Ming Chen, Wei-Chen Wang, Guangxuan Xiao, Xingyu Dang, Chuang Gan, and Song Han. 2024. Awq: Activation-aware weight quantization for on-device llm compression and acceleration. Proceedings of Machine Learning and Systems, 6:87–100.
Chris Liu, Yaxuan Wang, Jeffrey Flanigan, and Yang Liu. 2024a. Large language model unlearning via embedding-corrupted prompts. Advances in Neural Information Processing Systems, 37:118198–118266.
Ollie Liu, Deqing Fu, Dani Yogatama, and Willie Neiswanger. 2024b. Dellma: Decision making under uncertainty with large language models. arXiv preprint arXiv:2402.02392.
Sijia Liu, Yuanshun Yao, Jinghan Jia, Stephen Casper, Nathalie Baracaldo, Peter Hase, Yuguang Yao, Chris Yuhao Liu, Xiaojun Xu, Hang Li, and 1 others. 2025a. Rethinking machine unlearning for large language models. Nature Machine Intelligence, pages 1–14.
Yezli Liu, Hanning Chen, Wenjun Huang, Yang Ni, and Mohsen Imani. 2025b. Lune: Efficient llm unlearning via lora fine-tuning with negative examples. arXiv preprint arXiv:2512.07375.
Ximing Lu, Sean Welleck, Jack Hessel, Liwei Jiang, Lianhui Qin, Peter West, Prithviraj Ammanabrolu, and Yejin Choi. 2022. Quark: Controllable text generation with reinforced unlearning. Advances in neural information processing systems, 35:27591–27609.
Yun Luo, Zhen Yang, Fandong Meng, Yafu Li, Jie Zhou, and Yue Zhang. 2023. An empirical study of catastrophic forgetting in large language models during continual fine-tuning. arXiv preprint arXiv:2308.08747.
Pratyush Maini, Zhili Feng, Avi Schwarzschild, Zachary C Lipton, and J Zico Kolter. 2024. Tofu: A task of fictitious unlearning for llms. arXiv preprint arXiv:2401.06121.
Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. 2023. Direct preference optimization: Your language model is secretly a reward model. Advances in Neural Information Processing Systems, 36:53728–53741.
Ravi Ranjan, Utkarsh Grover, Mayur Akewar, Xiaomin Lin, and Agoritsa Polyzou. 2026a. Catrag: Functor-guided structural debiasing with retrieval augmentation for fair llms. arXiv preprint arXiv:2603.21524.
Ravi Ranjan, Utkarsh Grover, Xiaomin Lin, and Agoritsa Polyzou. 2026b. G-drift mia: Membership inference via gradient-induced feature drift in llms. In International Conference on Pattern Recognition, pages 359–374. Springer.
Ravi Ranjan, Utkarsh Grover, Xiaomin Lin, and Agoritsa Polyzou. 2026c. Listening with attention: Entropy-guided explainability for transformer-based audio models. arXiv preprint arXiv:2606.14647.
Ravi Ranjan, Utkarsh Grover, Xiaomin Lin, and Agoritsa Polyzou. 2026d. Persa: Reinforcement learning for professor-style personalized feedback with llms. arXiv preprint arXiv:2605.01123, 15.
Ravi Ranjan, Utkarsh Grover, Xiaomin Lin, and Agoritsa Polyzou. 2026e. Razor: Ratio-aware layer editing for targeted unlearning in vision transformers and diffusion models. arXiv preprint arXiv:2603.14819.
Ravi Ranjan, Utkarsh Grover, and Agorista Polyzou. 2026f. Position: Llms must use functor-based and rag-driven bias mitigation for fairness. arXiv preprint arXiv:2603.07368.
Ravi Ranjan and Agoritsa Polyzou. 2026. Vla-forget: Vision-language-action unlearning for embodied foundation models. In Proceedings of the 4th Workshop on Towards Knowledgeable Foundation Models (KnowFM 2026), pages 60–77.
William F Shen, Xinchi Qiu, Meghdad Kurmanji, Alex Iacob, Lorenzo Sani, Yihong Chen, Nicola Cancedda, and Nicholas D Lane. 2025. Llm unlearning via neural activation redirection. In The Thirty-ninth Annual Conference on Neural Information Processing Systems.
Weijia Shi, Anirudh Ajith, Mengzhou Xia, Yangsibo Huang, Daogao Liu, Terra Blevins, Danqi Chen, and Luke Zettlemoyer. 2024. Detecting pretraining data from large language models. In International Conference on Learning Representations, volume 2024, pages 51826–51843.
Gemma Team, Thomas Mesnard, Cassidy Hardin, Robert Dadashi, Surya Bhupatiraju, Shreya Pathak, Laurent Sifre, Morgane Rivière, Mihir Sanjay Kale, Juliette Love, and 1 others. 2024. Gemma: Open models based on gemini research and technology. arXiv preprint arXiv:2403.08295.
Bozhong Tian, Xiaozhuan Liang, Siyuan Cheng, Qingbin Liu, Mengru Wang, Dianbo Sui, Xi Chen, Huajun Chen, and Ningyu Zhang. 2024. To forget or not? towards practical knowledge unlearning for large language models. In Findings of the Association for Computational Linguistics: EMNLP 2024, pages 1524–1537.
Bo Wang, Weiyi He, Shenglai Zeng, Zhen Xiang, Yue Xing, Jiliang Tang, and Pengfei He. 2025a. Unveiling privacy risks in llm agent memory. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 25241–25260.
Changsheng Wang, Yihua Zhang, Dennis Wei, Jinghan Jia, Pin-Yu Chen, and Sijia Liu. 2025b. Llm unlearning on noisy forget sets: A study of incomplete, rewritten, and watermarked data. In Proceedings of the 18th ACM Workshop on Artificial Intelligence and Security, pages 136–145.
Alexander Wei, Nika Haghtalab, and Jacob Steinhardt. 2023. Jailbroken: How does llm safety training fail? Advances in neural information processing systems, 36:80079–80110.
Abudukelimu Wuerkaixi, Qizhou Wang, Sen Cui, Wutong Xu, Bo Han, Gang Niu, Masashi Sugiyama, and Changshui Zhang. 2025. Adaptive localization of knowledge negation for continual llm unlearning. In Forty-second International Conference on Machine Learning.
Derong Xu, Ziheng Zhang, Zhihong Zhu, Zhenxi Lin, Qidong Liu, Xian Wu, Tong Xu, Wanyu Wang, Yuyang Ye, Xiangyu Zhao, and 1 others. 2024. Editing factual knowledge and explanatory ability of medical large language models. In Proceedings of the 33rd ACM international conference on information and knowledge management, pages 2660–2670.
Haoming Xu, Ningyuan Zhao, Liming Yang, Sendong Zhao, Shumin Deng, Mengru Wang, Bryan Hooi, Nay Oo, Huajun Chen, and Ningyu Zhang. 2025. Relearn: Unlearning via learning for large language models. arXiv preprint arXiv:2502.11190.
Jin Yao, Eli Chien, Minxin Du, Xinyao Niu, Tianhao Wang, Zezhou Cheng, and Xiang Yue. 2024a. Machine unlearning of pre-trained large language models. arXiv preprint arXiv:2402.15159.
Yuanshun Yao, Xiaojun Xu, and Yang Liu. 2024b. Large language model unlearning. Advances in Neural Information Processing Systems, 37:105425–105475.
Ruiqi Zhang, Licong Lin, Yu Bai, and Song Mei. 2024a. Negative preference optimization: From catastrophic collapse to effective unlearning. arXiv preprint arXiv:2404.05868.
Zhiwei Zhang, Fali Wang, Xiaomin Li, Zongyu Wu, Xianfeng Tang, Hui Liu, Qi He, Wenpeng Yin, and Suhang Wang. 2024b. Catastrophic failure of llm unlearning via quantization. arXiv preprint arXiv:2410.16454.
Zhiwei Zhang, Fali Wang, Xiaomin Li, Zongyu Wu, Xianfeng Tang, Hui Liu, Qi He, Wenpeng Yin, and Suhang Wang. 2024c. Does your llm truly unlearn? an embarrassingly simple approach to recover unlearned knowledge. arXiv e-prints, pages arXiv–2410.
Wayne Xin Zhao, Kun Zhou, Junyi Li, Tianyi Tang, Xiaolei Wang, Yupeng Hou, Yingqian Min, Beichen Zhang, Junjie Zhang, Zican Dong, and 1 others. 2023. A survey of large language models. arXiv preprint arXiv:2303.18223, 1(2).
Yang Zhao, Hongyang Du, Yijing Lin, Keyi Xiang, Dusit Niyato, and H Vincent Poor. 2025. A survey on continuous unlearning in generative ai: Approaches and trade-offs. IEEE Intelligent Systems.
Andy Zou, Zifan Wang, Nicholas Carlini, Milad Nasr, J Zico Kolter, and Matt Fredrikson. 2023. Universal and transferable adversarial attacks on aligned language models. arXiv preprint arXiv:2307.15043.
Appendix
A Pseudocode
B Experimental Settings
B.1 Models and Initialization
We evaluate FOM-UL on diverse transformer LLMs to test model-agnostic behavior, using pretrained checkpoints from Meta Llama (Llama-2 7B, Llama-3.2 1B), GPT-2, and Gemma-3 1B. Each run starts from the base parameters , and produces an unlearned checkpoint by updating only a small set of layers selected via the forget-to-retain gradient significance score, while all other layers remain frozen. We also report robustness under post-training quantization by evaluating in FP32, 8-bit, and 4-bit formats.
B.2 Datasets and Splits
We follow standard unlearning protocols with disjoint Forget and Retain splits, and benchmark on TOFU (world-facts QA), KNOWUNDO, and MUSE (BOOKS/NEWS). For BOOKS, contains copyrighted Harry Potter text and includes FanWiki (plus general-domain text) to preserve non-verbatim knowledge while removing memorization. For NEWS, we additionally use a holdout split reserved for privacy/leakage evaluation and never used for updates.
B.3 Training Configuration
FOM-UL performs masked updates with three objectives: (i) gradient ascent on , (ii) gradient ascent on to repel original outputs on forget prompts, and (iii) gradient descent on to preserve utility. We use AdamW with consistent hyperparameters across methods; unless stated otherwise, we set batch size , learning rate , and run unlearning for 5 epochs. Random seeds are fixed (e.g., 42) for reproducibility.
B.4 Implementation Details
All methods are implemented in PyTorch using HuggingFace transformers. Quantization is performed with bitsandbytes to produce FP32/8-bit/4-bit variants for robustness checks. Experiments run on NVIDIA A100 GPUs (40 GB), and we release environment details and fixed splits to support reproducibility.
C Evaluation Metrics
We evaluate FOM-UL using four standard metrics (M1-M4) that jointly quantify (i) how well the model forgets the designated forget set and (ii) how well it preserves utility on the retain set, following the SURE evaluation protocol.
Notation. Let denote an LLM. Let be the forget set, the retain set, and a disjoint holdout set used for privacy auditing. For ROUGE-based metrics, ROUGE() measures similarity between the model output and a reference text.
M1: Verbatim Memorization (VerMem) on (lower is better). Given a forget document tokenized into a prefix and ground-truth continuation , we compute:
This captures verbatim reproduction of forgotten content; effective unlearning drives M1 down.
M2: Knowledge Memorization (KnowMem) on (lower is better). Using knowledge-oriented QA pairs derived from the forget set, we measure whether the model still answers with forgotten knowledge:
Lower values indicate better removal of generalized (non-verbatim) forgotten knowledge.
M3: Privacy Leakage (PrivLeak) via membership inference (closer to 0 is better). We quantify privacy risk using a membership inference attack based on the Min-K% criterion, which produces an AUC-ROC score by distinguishing samples from vs. . We then compare against a retrained baseline (trained without ) and define:
An ideal unlearned model matches the retrained privacy behavior, yielding ; large deviations indicate elevated privacy leakage.
Interpretation of negative M3. From above metric definition, , so occurs whenever . Such
Algorithm 1 FOM-UL: Forgetting Only What Matters via Unlearning Layers
Require: Pretrained parameters ; forget set ; retain set ; losses ; learning rates ; steps ; initial layer budget ; tolerance .
Ensure: Unlearned parameters .
Stage 1: Forget-retain layer attribution
1: for do 2: Sample mini-batches and . 3: 4: 5: 6: end for 7: Rank layers by in descending order and denote the ordering by . 8: Initialize selected layer set and .
Stage 2: Selective layer-wise unlearning
9: for do 10: Sample mini-batches and . 11: for do 12: 13: 14: 15: 16: end for 17: for do 18: 19: end for
▷ freeze non-selected layers
20: end for
Stage 3: Metric check and iterative expansion
21: Evaluate using VerMem↓, KnowMem↓, PrivLeak→ 0, and Utility↑.
22: if forgetting criteria are not satisfied then
23: Expand .
24: Repeat Stage 2 with the expanded layer set.
25: end if
26: return .
strongly negative values (e.g., -2.00 in Table 3) do not mean “better privacy than zero”; rather, they indicate a large deviation from the retrained privacy behavior, typically corresponding to over-unlearning in which the forget examples become atypically high-loss relative to holdout, flipping or amplifying the attack signal. Because our normalization divides by , the magnitude can exceed 1 when is small; for instance, if and , then . Therefore, we interpret by distance to zero: large (positive or negative) implies unstable privacy behavior, while indicates the closest match to retraining.
M4: Utility Preservation on (higher is better). We measure retained utility using the same KnowMem-style QA evaluation on :
Higher M4 indicates better preservation of benign knowledge and task utility after unlearning.
Overall objective. FOM-UL aims to achieve low M1/M2 (forgetting), M3 ≈ 0 (privacy parity with retraining), and high M4 (utility), including under post-training quantization stress tests highlighted in our study.
Runtime Performance parameter counts and efficiency. In Table 4, the Parameters column reports the number of trainable (i.e., unfrozen) parameters that each method actually updates during unlearning, not the total backbone size of Llama-2 7B. Accordingly, full-model baselines (e.g., GA/KLD/NPO-GDR) update the entire parameter space, whereas parameter-efficient or masked-update methods (SURE+NPO, LUNAR, and FOM-UL) optimize only a small, selected subset, yielding 1.7M, 1.75M, and 7M trainable parameters, respectively. For FOM-UL, the backbone remains frozen and updates are confined to the selected layer set (and the specific trainable submodules within those layers), so the trainable-parameter count scales with the layer budget and the chosen update parameterization.
Clarification (Fig. 4 M.U. and F.Q.). For Fig. 4, we define Normalized Utility (M.U.) as the min-max normalization of M4 across methods and steps, M.U.(t) = , so higher is better. To ensure Forget Quality (F.Q.) increases when forgetting improves (since M1-M3 are metrics), we first invert and normalize each metric as for , and then aggregate by a weighted mean F.Q.(t) = (weights set uniformly unless stated otherwise).
Update parameterization. FOM-UL is layer-selective at the selection level but submodule-selective at the implementation level. After selecting layer set , we enable gradients only for the chosen trainable submodules inside those layers, e.g., attention projection and/or MLP projection matrices depending on the backbone implementation. All layers and all disabled submodules inside remain frozen. Thus, the reported trainable-parameter count is
where is the set of enabled submodules in layer . This count measures parameters actually updated during unlearning, not the total number of parameters contained in the selected transformer layers.
D Detailed Methodology
D.1 Selecting and Masking Important Layers
In FOM-UL, (ablation) is used primarily as a diagnostic to motivate layer localization, while is the actual algorithmic criterion used to select and expand the update set.
Layer selection via forget-retain significance. Let denote a transformer-based LLM with layers and parameters grouped by layer. FOM-UL selects a small subset of layers whose parameters are most responsive to the forgetting objective while minimally affecting retained utility. Given a forget mini-batch and a retain mini-batch , define the corresponding losses and . For each layer , we compute per-layer gradient magnitudes:
(17)
and the forget-retain significance ratio
where ensures numerical stability. Intuitively, high indicates strong forgetting leverage with limited interference on retained knowledge. We select the initial update set using thresholding (or equivalently top-k ranking):
where controls the layer budget.
Binary layer mask. We define a layer mask as
so that only layers in S receive gradient updates and all other layers remain frozen.
When is computed. For reproducibility, we compute once at initialization using the base checkpoint and a fixed mini-batch (or small fixed set) sampled from and , and we keep this ranking static during unlearning. During iterative expansion, we do not recompute gradients each epoch; instead, we expand by adding the next highest-ranked layers under this fixed ordering until the stopping criterion is met. (Optionally, one may recompute at expansion boundaries as an ablation, but our main results use the static initialization for stability and determinism.)
D.2 Selective Layer Updates with Forget, Mismatch, and Retain Losses
Forgetting loss . FOM-UL enforces targeted forgetting by increasing the model's loss on forget-set continuations so that memorized responses become unlikely. For a forget example with prompt and reference continuation , we use the standard negative log-likelihood (NLL):
and perform gradient ascent on (cf. Eq. 9), which directly reduces the likelihood of generating the memorized forget content (Yao et al., 2024b,a).
Mismatch loss . A core goal of FOM-UL is to actively diverge from the original model's behavior on the forget set, rather than merely reducing confidence in a single target token. To operationalize this, we define a distribution-level mismatch objective that pushes the unlearned model away from the original model’s output distribution on forget prompts. Let denote the original (pre-unlearning) model and the current (unlearned) model. For a forget prompt , let be the next-token logits and define temperature-scaled predictive distributions
where controls how strongly the loss emphasizes high-probability tokens. We then set
and maximize during unlearning (cf. Eq. 9), which encourages to move its outputs away from the original model on the forget set. This objective is inspired by prior unlearning/alignment formulations that use KL-based output constraints to control behavior shifts (typically on retain data), here repurposed as an explicit divergence signal on the forget distribution (Yao et al., 2024b,a). In practice, helps prevent incomplete forgetting where the model’s distribution remains close to despite reduced confidence in a specific answer, and it complements to mitigate quantization-induced recovery by enforcing a broader, distributional departure from the pre-unlearning behavior (Zhang et al., 2024b).
Retention loss . To preserve utility on non-targeted behaviors, FOM-UL simultaneously minimizes a retain objective on benign data . For a retain example , we again use the NLL:
and apply gradient descent on to maintain general knowledge and task performance while unlearning is confined to the selected layers (Liu et al., 2024a; Yao et al., 2024a). When combined with and the divergence-based , this retain term stabilizes optimization and mitigates collateral degradation.
FOM-UL performs targeted optimization only over using three objectives: (i) a forgetting loss to suppress targeted content, (ii) a mismatch loss to diverge from the original model behavior on the forget set, and (iii) a retain loss to preserve general utility. The masked update for each layer at iteration is:
where are step sizes for the respective terms. Layers not selected for unlearning remain unchanged:
D.3 Iterative Expansion and Stopping Criteria
FOM-UL applies an iterative schedule that expands the update set only when forgetting criteria are unmet, limiting unnecessary intervention. After each unlearning round, we evaluate a forgetting criterion (e.g., VerMem below a threshold) and stop when it is satisfied. Otherwise, we expand the layer set by adding the next most significant layer under Sig():
and repeat the masked updates. This progressive expansion prevents overly aggressive early updates and reduces the risk of collateral utility loss.
Clarification (Initialization of iterative expansion). To remove ambiguity, we define the initialization as a single, deterministic rule based on Sig(): we first compute Sig() for all layers and form the candidate set . If , we take the top- layers within by descending Sig(); if , we simply set . Equivalently, the threshold is the primary filter (ensuring a minimum forget-to-retain ratio), and is an optional budget cap that prevents overly large initial updates. Iterative expansion then proceeds by adding one (or a small batch of) next-highest Sig() layers from until the stopping criterion is met.
D.4 Robustness to Quantization-Induced Relearning
Post-training quantization maps full-precision parameters to a discrete set of representable values. When an unlearning method produces only small, diffuse weight changes, quantization can erase these differences, yielding quantized models that are nearly indistinguishable from the original. FOM-UL mitigates this failure mode by concentrating updates within a small set of high-Sig( ) layers, producing more salient (layer-localized) parameter shifts while leaving the majority of layers unchanged. As a result, the intended forgetting signal is less likely to be collapsed by discretization, improving robustness against quantization-induced recovery compared to global-update baselines.
D.5 Empirical Quantization-Bin Crossing Analysis
For each updated layer , let denote the effective quantization step size and denote the unlearning update. We report the bin-crossing fraction
and the normalized update ratio
Higher BCF indicates that more unlearning edits survive post-training quantization.
Bin-Change Fraction. To directly measure whether unlearning updates survive quantization, we define the Bin-Change Fraction (BCF) over the set of edited parameters as
where and denote the pre- and post-unlearning parameters, respectively, and denotes the corresponding quantization operator. A larger BCF indicates that a greater fraction of the unlearning-induced parameter changes remain distinguishable after quantization.
Table 6 provides mechanism-level evidence for the quantization robustness claim. Compared with global baselines, FOM-UL concentrates larger updates in selected layers, producing a higher fraction of weights that cross 4-bit quantization bin boundaries and are therefore less likely to be rounded back to the original quantized value.
Table 6: Quantization-bin crossing analysis on Llama-3.2-1B. BCF reports the fraction of updated weights with under 4-bit quantization. FOM-UL produces more quantization-surviving edits in selected layers than diffuse global updates.
| Method | Updated scope | Mean BCF | ratio |
|---|---|---|---|
| GAGDR | full model | 0.7% | 0.31 |
| NPOGDR | full model | 0.9% | 0.36 |
| SURE+NPO | sparse modules | 2.8% | 0.74 |
| LUNAR | activation-targeted | 2.1% | 0.68 |
| FOM-UL | selected layers | 5.6% | 1.18 |
E Lemma justification for FOM-UL
Let the forget and retain objectives be and , and let denote parameters grouped by transformer layer. Define layer-wise gradients and .
Lemma 1 (Greedy layer ranking under a retain-stability constraint). Consider one unlearning step that applies a layer-wise update , but is restricted to at most layers (i.e., only if , ). Assume a first-order approximation and impose a retain-stability constraint in sign (or bounded magnitude) so that retain utility is not degraded. Then, among candidate layers, the layers that maximize the achievable forget effect per unit retain sensitivity are those with the largest score
for a small . Equivalently, selecting the top- layers by is the greedy choice that prioritizes high forget responsiveness while being conservative on retain disruption.
Proof sketch. Using a first-order Taylor expansion for a small step,
For a given layer , the maximum attainable forget change from updating only that layer under a step-size budget is bounded by Cauchy-
Schwarz:
At the same time, the magnitude of the retain change contributed by layer is similarly bounded:
Thus, a natural “forget gain per retain sensitivity” proxy for layer is , where stabilizes the ratio when is small. Selecting the top-k layers by this ratio maximizes the sum of these proxies under a k-sparsity constraint, which is exactly the FOM-UL ranking rule.
Remark (what this proves and what it doesn't). Lemma 1 justifies FOM-UL's layer ranking as an optimal greedy criterion under (i) small-step / first-order behavior and (ii) a utility-preservation constraint expressed through retain gradients. It does not claim global optimality for deep, non-convex objectives; rather it gives a principled reason that the gradient-ratio score is the right layer selection signal.
Lemma 2 (Iterative expansion is a monotone relaxation). Let be the forget objective and be the retain objective. Fix a current parameter state and consider a one-step selective update that is allowed to modify only layers in a set . Define the feasible update set
(35)
where denotes the first-order retain change , is a step-size budget, and is a tolerance for retain degradation. Let the best achievable forget decrease (first-order) under be
(36)
If (i.e., expands with additional layers), then
Equivalently, expanding the set of trainable layers cannot worsen the best attainable forgetting progress under the same retain-stability constraint. This provides a principled justification for FOM-UL's iterative expansion rule (e.g., ) when residual memorization remains above a threshold.
Proof. Because , any update that is feasible for is also feasible for we can view it as an element of by simply setting for all newly added layers . Hence . Minimizing the same objective over a superset of feasible points cannot yield a worse optimum, so , i.e., .
Practical interpretation. If the current top- selected layers do not sufficiently reduce memorization while meeting the retain constraint, expanding (adding the next-ranked layers) strictly relaxes the optimization problem. Therefore FOM-UL's iterative expansion is a safe strategy: it never removes previously feasible updates, and can only maintain or improve the best achievable forgetting progress subject to utility preservation.
Theorem 1 (Quantization Persistence for Layer-S-elective Updates). Let be a pretrained model and let be the unlearned model obtained by updating only layers in (all are frozen). Consider post-training uniform symmetric rounding quantization applied elementwise (or per-group) with step size for layer :
Define the layerwise update .
Proposition (1) (Quantization Persistence). Let and denote the parameters before and after unlearning, and let be the set of edited coordinates. If
then the edited coordinates are indistinguishable from their pre-unlearning values under the quantizer Q. Consequently, the quantized model does not preserve these parameter-level unlearning changes.
This result does not imply that identical quantized parameters necessarily produce identical model behavior in every setting; rather, it characterizes when parameter updates introduced by unlearning are removed by the quantization operator.
Table 7: Adversarial/jailbreak robustness metrics. We evaluate TOFU-World Facts on Llama-3.2-1B using adversarial prompt wrappers , including role-play, instruction-override, extraction-style, and suffix-based jailbreak prompts (Wei et al., 2023; Zou et al., 2023). , , and ALR are lower-is-better; is best when closest to zero; and is higher-is-better.
| Metric ID | Name | Definition and Interpretation | Goal |
|---|---|---|---|
| Adv. VerMem | . Measures whether the model can reproduce verbatim forgotten continuations when the forget prefix is wrapped by a jailbreak prompt. | ||
| Adv. KnowMem | . Measures recovery of forgotten QA-style knowledge under adversarial prompting, following TOFU-style knowledge memorization evaluation (Maini et al., 2024). | ||
| Adv. PrivLeak | . Here, is computed using Min-K% membership scores over jailbreak-wrapped forget and holdout prompts (Shi et al., 2024). Values closer to zero indicate privacy behavior closer to retraining. | ||
| ALR | Attack Leakage Rate | Reports the percentage of adversarial prompts that recover the forgotten answer above threshold . We set following the compact ROUGE-style reporting scale. | |
| M4 | Retain Utility | . Measured on clean retain prompts to verify that adversarial robustness is not achieved through destructive over-unlearning or general utility collapse. |
Conversely, if for every updated layer and every coordinate ,
then quantization is locally invariant to the update in those layers:
so the quantized unlearned model can collapse back toward the quantized target model, enabling quantization-induced recovery.
Proof sketch. Under rounding quantization, a real value is mapped to the nearest grid point with spacing ; boundaries between adjacent quantization bins occur at half-steps. Therefore, changing by at least is sufficient to cross a bin boundary and change the quantization index, yielding when . If all changes satisfy , remains in the same bin and the quantized value is unchanged.
Practical interpretation. FOM-UL ranks layers by the forget-to-retain gradient ratio (Lemma F.1) and concentrates updates on the top- (then iteratively expands if needed), producing layer-localized parameter shifts that are more likely to exceed the effective quantization step in those layers, thereby improving robustness to quantization-induced recovery compared to diffuse global updates.
F Adversarial Robustness Analysis
As defined in Table 7, the adversarial wrapper set is applied only at evaluation time. Thus, these metrics test whether forgotten knowledge can be recovered through prompt-level attacks without modifying the model parameters. Additionally we report MemFlex (Tian et al., 2024), which proposed for precise scope-aware unlearning using gradient-based parameter localization. As shown in Table 8, Jailbreak prompting increases residual memorization for all methods, but FOM-UL has the lowest leakage rate while retaining the highest clean utility. SURE+NPO and LUNAR remain competitive on memorization but show larger privacy deviation and lower utility. ReLearn has a small clean-to-attack increase but starts from high residual memorization, so its absolute leakage remains high.
F.1 Robustness Beyond Clean Prompting
Table 10 shows that recovery increases as prompts move away from the clean evaluation template, confirming that clean-prompt metrics alone understate residual knowledge. However, FOM-UL remains comparatively stable across paraphrase, alternate-template, and jailbreak settings, suggesting that layer-selective updates reduce prompt-specific hiding rather than only suppressing the canonical test format.
G Sensitivity Analysis
Table 9 indicates that FOM-UL is most effective when it updates a small, targeted set of mid-to-late layers: as the selected-layer budget increases from very sparse (Top-1/Top-2) to a moderate range (Top-4/Top-8), forgetting efficacy improves substantially (lower M1/M2 and M3 closer to zero) while utility (M4) is largely preserved. In contrast, selecting layers from the wrong region especially
Table 8: Adversarial/jailbreak prompt robustness on TOFU-World Facts with Llama-3.2-1B. We compare the same baseline family used in the quantization robustness table. Clean metrics follow the standard prompt setting; adversarial metrics average over four jailbreak wrappers. Best results are in bold.
| Method | Clean TOFU Evaluation | Jailbreak / Adversarial Evaluation | ||||||
|---|---|---|---|---|---|---|---|---|
| ALR | ||||||||
| 4.24 | 4.24 | 4.88 | 2.07 | 5.05 | 5.02 | 5.35 | 42.8 | |
| 2.06 | 2.06 | 6.94 | 2.36 | 3.10 | 3.16 | 7.28 | 28.4 | |
| 4.04 | 4.04 | 6.00 | 1.98 | 4.72 | 4.80 | 6.40 | 37.6 | |
| SURE + NPO | 1.60 | 1.60 | 3.40 | 1.96 | 2.18 | 2.24 | 4.08 | 16.5 |
| ReLearn | 5.04 | 5.04 | 4.80 | 2.14 | 5.56 | 5.60 | 5.05 | 48.2 |
| MemFlex | 1.72 | 1.74 | 3.15 | 2.48 | 2.46 | 2.52 | 4.46 | 21.4 |
| LUNAR | 1.28 | 1.28 | 4.10 | 2.06 | 2.42 | 2.50 | 5.12 | 19.8 |
| FOM-UL | 1.24 | 1.24 | 1.96 | 2.90 | 1.78 | 1.84 | 2.42 | 11.6 |
Table 9: Sensitivity of FOM-UL to layer budget and layer location on TOFU-World Facts with Llama-3.2-1B. We vary the selected layer set while keeping the unlearning objective fixed. Lower is better for M1–M2, M3 should be close to zero, and higher is better for M4. Positive values indicate higher retain-set utility.
| Setting | Layer Region | M1 | M2 | M3 0 | M4 | M4 | |
|---|---|---|---|---|---|---|---|
| Vanilla model | 0 | No unlearning | 5.80 | 5.80 | 8.80 | 2.90 | 0.00 |
| Top-1 only | 1 | Single high-score late layer, e.g., | 2.35 | 2.50 | 4.20 | 2.85 | -0.05 |
| Top-2 only | 2 | Two high-score late layers, e.g., | 1.90 | 2.00 | 3.40 | 2.89 | -0.01 |
| Top-4 | 4 | Mid-to-late high-score layers, e.g., | 1.42 | 1.45 | 2.55 | 2.91 | +0.01 |
| Top-8 | 8 | Mostly mid-to-late layers with limited early-layer updates | 1.30 | 1.32 | 2.18 | 2.90 | 0.00 |
| Over-expanded | 12 | Early, middle, and late layers mixed | 1.28 | 1.30 | 2.22 | 2.80 | -0.10 |
| Wrong-region ablation | 4 | Early layers only, e.g., | 4.80 | 4.70 | 7.60 | 2.05 | -0.85 |
| FOM-UL-Full | auto | Selected by Sig() with iterative expansion | 1.24 | 1.24 | 1.96 | 2.90 | 0.00 |
Table 10: Recovery audit beyond clean prompts on TOFU-World Facts with Llama-3.2-1B. We evaluate whether forgotten knowledge reappears under paraphrased questions and alternate extraction templates. Lower M1/M2 and ALR indicate stronger resistance to recovery.
| Setting | M1 | M2 | M3 0 | ALR |
|---|---|---|---|---|
| Clean prompts | 1.24 | 1.24 | 1.96 | 8.7 |
| Paraphrased prompts | 1.52 | 1.58 | 2.18 | 10.3 |
| Alternate QA templates | 1.61 | 1.66 | 2.30 | 10.9 |
| Jailbreak wrappers | 1.78 | 1.84 | 2.42 | 11.6 |
early layers tends to under-perform on forgetting and can incur larger utility degradation, and over-expanding into early layers yields diminishing returns for forgetting with higher risk of collateral utility loss. Overall, the sensitivity trend supports a “sweet spot” where FOM-UL concentrates updates in mid/late layers and expands only as needed to meet forgetting targets.
H Error Analysis
The Figure 6 shows that FOM-UL-Full yields consistently low memorization and privacy-leakage scores while maintaining high utility across all three backbones, with small standard deviations indicating stable behavior across runs.
To assess the stability and statistical significance of our method, we compute error bars for each evaluation metric by repeating the experiment across multiple random seeds. The procedure is as follows:
-
Repeated Trials: For each target model (e.g., Llama-3, Gemma-3), perform the unlearning procedure times (commonly ) with different random initialization seeds.
-
Metric Computation: On each trial , measure the desired performance metrics:
-
Verbatim Memorization
-
Knowledge Memorization
FOM-UL-Full: VerMem, KnowMem, PrivLeak, & Utility ± Std Dev

Figure 6: FOM-UL-Full performance with error bars across models. Grouped bar chart reporting the mean ± standard deviation of the four evaluation metrics, VerMem (M1), KnowMem (M2), PrivLeak (M3), and Utility (M4) for FOM-UL on GPT-2, Llama-3, and Gemma-3.
-
Privacy Leakage
-
Utility Preservation
- Aggregate Statistics: Compute the sample mean and standard deviation for each metric:
where .
- Error-Bar Plotting: Plot on the vertical axis for each metric, with vertical error bars of length . A grouped-bar chart can juxtapose multiple models side by side.
I Generated Response
Table 11 qualitatively compares representative generations under a quantization-stress setting, contrasting global unlearning baselines (e.g., GA-style and NPO-style updates applied broadly across parameters) against layer-selective FOM-UL. Global unlearning methods can suppress the target response in full precision, but their updates are often diffuse and relatively small, making them susceptible to post-training quantization: when , discretization can collapse the unlearned model back toward the original behavior, yielding and causing response recovery in int4. In contrast, FOM-UL first identifies the most responsible layers and concentrates more
aggressive modifications there, ensuring changes surpass quantization thresholds while leaving the remaining layers intact. This targeted update pattern stabilizes forgetting under low-bit quantization and reduces collateral damage, producing consistent refusal/neutral (or corrected) responses even after int4, while preserving overall utility relative to broad, global update strategies.
I.1 FOM-UL as a General Selective-Unlearning Primitive for Trustworthy Foundation Models
FOM-UL provides a practical approach to selective LLM unlearning, targeted forgetting, and layer-wise model editing by identifying transformer layers with high forget-set influence and low retain-set sensitivity. This forget–retain localization makes FOM-UL particularly relevant to privacy-preserving machine learning, membership-inference mitigation, copyright removal, parameter-efficient unlearning, and quantization-robust LLM deployment. More broadly, selective intervention at influential model components connects naturally to ratio-aware editing in vision and generative models (Ranjan et al., 2026e), embodied foundation-model unlearning (Ranjan and Polyzou, 2026), and privacy auditing through membership inference (Ranjan et al., 2026b). These capabilities complement emerging research on trustworthy and personalized LLMs (Ranjan et al., 2026d), fairness and retrieval-augmented bias mitigation (Ranjan et al., 2026a,f), explainable transformer systems (Ranjan
Table 11: Qualitative case study of quantization-induced knowledge recovery. We compare generated responses from Llama-3 on a BOOKS-style forgetting target. Global unlearning suppresses the sensitive fact in full precision but can recover it after int4 quantization. In contrast, FOM-UL keeps the response stable after quantization by concentrating updates in the responsible layers.
| Method | Prompt | Generated Response |
|---|---|---|
| Origin model (FP) | In the novel Crimson Harbor, what happens to Captain Elara at the end? | Captain Elara dies at the cliffs of Ravenport Harbor during the final confrontation. |
| Retain-only reference | In the novel Crimson Harbor, what happens to Captain Elara at the end? | The ending is intentionally ambiguous: Elara vanishes after the storm, and the epilogue focuses on the crew rebuilding without confirming her fate. |
| Global unlearning (GA, FP) | In the novel Crimson Harbor, what happens to Captain Elara at the end? | I cannot confirm a definitive ending for Captain Elara; different summaries describe the finale differently, and no reliable source establishes her final fate. |
| Global unlearning (GA) + int4 | In the novel Crimson Harbor, what happens to Captain Elara at the end? | Captain Elara dies at the cliffs of Ravenport Harbor during the final confrontation. (recovered after quantization) |
| NPO-style unlearning (FP) | In the novel Crimson Harbor, what happens to Captain Elara at the end? | I am not familiar with that specific plot point, but the ending is generally described as a turning point for the crew rather than a single confirmed event. |
| NPO-style unlearning + int4 | In the novel Crimson Harbor, what happens to Captain Elara at the end? | Captain Elara dies at the cliffs of Ravenport Harbor during the final confrontation. (partial recovery) |
| FOM-UL (FP) | In the novel Crimson Harbor, what happens to Captain Elara at the end? | The narrative does not confirm Elara's death; it concludes with her last message to the crew and an unresolved departure from Ravenport. |
| FOM-UL + int4 | In the novel Crimson Harbor, what happens to Captain Elara at the end? | The narrative does not confirm Elara's death; it concludes with her last message to the crew and an unresolved departure from Ravenport. (stable under quantization) |
et al., 2026c), and trustworthy LLM deployment in sensitive domains (Kumar et al., 2024). The same trustworthy-adaptation perspective is increasingly important for embodied and edge foundation models (Grover et al., 2026) and memory-grounded autonomous agents that must determine when learned information can safely influence actions (Akewar and Ranjan, 2026). Thus, FOM-UL can serve as a lightweight building block for future research on machine unlearning, model editing, AI privacy, AI safety, robust LLMs, foundation-model adaptation, responsible AI, and auditable trustworthy AI systems.
J Code of Ethics
We used limited AI assistance only for grammar checking. To ensure responsible development and deployment of FOM-UL, we commit to the following ethical principles:
-
Privacy and Data Sovereignty. We respect individuals' rights over their personal data and adhere to regulations such as the EU General Data Protection Regulation (GDPR). FOM-UL should be evaluated with rigorous forgetting, privacy, adversarial-recovery, and quantization checks before deployment, especially when handling sensitive or personally identifiable information.
-
Transparency and Auditability. Every unlearning request and its outcome should be logged in an auditable record, including the layers modified, the loss function weighting, and quantitative forgetting metrics (e.g., Ver-Mem, PrivLeak) (Liu et al., 2025a). This record must be available for independent review by stakeholders or regulatory bodies.
-
Minimization of Collateral Impact. FOM-UL's selective-layer approach is designed to constrain parameter updates to the smallest subset necessary for effective forgetting. We must rigorously evaluate downstream utility (e.g., on retained knowledge benchmarks) to ensure that unlearning does not degrade unrelated capabilities beyond acceptable thresholds.
-
Robustness to Deployment Variants. Unlearning claims should be stress-tested under anticipated deployment scenarios, including low-precision quantization and adapter-based fine-tuning. Before release, models processed by FOM-UL shall be validated at 32-, 8-, and 4-bit precisions to confirm no “recovered” knowledge emerges (Zhang et al., 2024b).
-
User Empowerment and Consent. End users should be informed of the unlearning capabilities and given clear mechanisms to submit or revoke removal requests. Consent policies must be documented in user-facing privacy notices, ensuring that individuals understand how and when their data can be unlearned.
-
Continuous Monitoring and Improvement. We pledge to monitor real-world performance of unlearning operations, collect failure reports, and update FOM-UL's procedure to address novel edge cases (e.g., new adversarial prompts or multimodal data scenarios). Ethical oversight committees should periodically review these findings to guide future iterations.
By adhering to these principles, FOM-UL aims to strike a balance between robust privacy preservation and the preservation of general model utility, supporting ethical AI deployment in compliance with evolving legal and societal norms.
K Reproducibility
To facilitate independent verification and extension of our FOM-UL results, we release all code, data splits, and trained model checkpoints. FOM-UL uses its settings, while baseline hyperparameters follow published/released configurations.
Key details are as follows:
-
Implementation. FOM-UL is implemented in PyTorch and HuggingFace Transformers. Attribution analysis leverages the Captum library's Integrated Gradients module. Quantization routines use the bitsandbytes library.
-
Data and Splits. We use a "Forget" set of 1.2 K tokens drawn from copyrighted Harry Potter text and a "Retain" set of 1.2 K tokens sampled from HP FanWiki and Wikipedia. Fixed train/validation splits and exact file hashes are provided in data/.
-
Hyperparameters and Seeds. All experiments use a batch size of 16, learning rate of for both gradient ascent and descent, and 5 epochs of unlearning. We set global random seeds (torch, numpy, random) to ensure determinism.
-
Hardware and Environment. Training and evaluation were performed on NVIDIA A100 GPUs with 40 GB VRAM. We provide a Dockerfile and a Conda environment YAML file (environment.yml) specifying CUDA 11.6, PyTorch 1.12.1, and required Python packages.
-
Evaluation Protocols. Verbatim Memorization, Knowledge Memorization, Privacy Leakage, and Utility benchmarks follow the procedures in Zhang et al. Quantization evaluations at 32-, 8-, and 4-bit are automated via provided scripts in tools/quantize_eval.py.
-
Logging and Metrics. All training logs, layer-attribution scores, and forgetting metrics are stored in Weights & Biases projects; and links are documented in the repository's README.txt.