arXiv(opens in a new tab)cs.LGSep 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2609.10439

Forgetting Only What Matters: Layer-Selective Unlearning toward Robust LLMs

Ravi Ranjan, Olivera Kotevska, Agoritsa Polyzou

Ravi Ranjan *

Florida International

University (FIU),

Miami, FL, USA

rkuma031@fiu.edu

Olivera Kotevska

Oak Ridge National

Laboratory (ORNL),

Oak Ridge, TN, USA

kotevskao@ornl.gov

Agoritsa Polyzou

Florida International

University (FIU),

Miami, FL, USA

apolyzou@fiu.edu

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

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.

References (24)