Spectral Unlearning: Transformer Structure-Preserving Updates for Language Models
Abstract
Machine unlearning in large language models (LLMs) aims to remove specific learned knowledge, capabilities, or behaviors while preserving model utility. Existing methods have mostly focused on the design of unlearning objectives, while largely overlooking the intrinsic matrix structure of transformer weights. In particular, standard optimizers operate on independent scalar coordinates, thereby ignoring this matrix structure. We propose spectral unlearning, an update framework that combines standard unlearning objectives with matrix-structured optimization. We show that the spectral update corresponds to the steepest-descent direction for transformers composed of linear layers with normalized inputs and outputs. Our approach is applied on top of existing unlearning methods and evaluated across complementary axes of memorization, privacy, and utility, summarized via their harmonic mean. Spectral unlearning consistently outperforms a broad range of baselines and closes most of the gap to a retain-trained reference. Code is available at https://github.com/unlearn-ml/spectral-unlearning/.
Create a lesson
Metadata
- Categories
- cs.LG, cs.CL, cs.CR
- Comments
- Accepted at NeurIPS 2026
Related papers
Discovering Structurally Plausible and Interpretable Cognitive Models with Large Language Models
Shared title terminologycs.LGBoyoung Kwon, Jiyoon Seo, Sang Ho Lee
Tokenization and Architecture Jointly Allocate Component Roles in Time Series Transformers
Shared title terminologycs.LGMingyu Kim, Doguk Kim
Boundary Representation-Driven Graph Transformer Modeling for Machining Operation Sequencing
Shared title terminologycs.LGFatemeh Elhambakhsh, Gaurav Ameta, Aditi Roy et al.
Eliciting sandbagged LLM capability via structural interventions on attention-head functional networks
Shared title terminologycs.LGManzi Fabrice Niyigaba, Ishan Verma Prasad, Sansheng Cao et al.
SwiftLoop: Selective Refinement for Adaptive Implicit Reasoning in Looped Transformers
Shared title terminologycs.LGTianyi Zhao, Ke Wan, Chen Chen
Small Learned Projections for Semantic-Reversal-Aware Retrieval with Spectral Acceleration: A Four-Domain Empirical Study
Shared title terminologycs.LGSayed Amir Karim