arXiv:2611.11902cs.LGNov 2026

Manuscript Offprint

arXiv:2611.11902

Spectral Unlearning: Transformer Structure-Preserving Updates for Language Models

Sung Il Choi, Junhao Cai, Dohun Kim, Changhee Joo

Sung Il Choi

School of Electrical Engineering

Korea University

Seoul 02841, South Korea

sungchoi@korea.ac.kr

Junhao Cai

Department of Computer Science and Engineering

Korea University

Seoul 02841, South Korea

junhochae@korea.ac.kr

Dohun Kim

Department of Computer Science and Engineering

Korea University

Seoul 02841, South Korea

dohunkim@korea.ac.kr

Changhee Joo*

Department of Computer Science and Engineering

Korea University

Seoul 02841, South Korea

changhee@korea.ac.kr

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.

1 Introduction

Large language models can memorize private information [1] and produce harmful outputs [2]. Mis-use of these models even extends to cyberattacks [3] and biological threats [4]. Machine unlearning seeks to remove such knowledge from a trained model while preserving its overall utility [5, 6]. The challenge in LLM machine unlearning is that residual knowledge surfaces through diverse pathways, including verbatim generation [7], extraction attacks [8, 9], and privacy leakage [10]. Prior methods have addressed this challenge primarily by designing forget and retain loss functions [11]. However, in essence, an unlearning update is determined by its direction and magnitude in parameter space [12]. Designing a new loss therefore reshapes the update direction.

The update direction depends not only on the loss but also on the geometry assumed on the parameter space. Most LLM unlearning methods rely on entry-wise update rules that scale each parameter independently, ignoring correlations between parameters [13]. However, transformer weights are matrix-valued and act on root-mean-square (RMS) normalized hidden states [14]. Therefore, the

*Corresponding author.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

(a) Objective vs. steps

(b) Objective vs. time

Figure 1: The Llama-3.2-1B model forgets data from the TOFU benchmark through the negative preference optimization (NPO) unlearning method. Loss curves are plotted against (a) unlearning steps and (b) wall-clock time. Dashed curves use conventional entry-wise updates. Solid curves use our proposed spectral update (SU), realized through Muon, KLShampoo, and SOAP.

natural geometry on these parameters is matrix-valued rather than entry-wise. Aligning the update direction with this geometry requires update rules defined directly on matrix-valued parameters.

We propose spectral unlearning, a transformer structure-preserving unlearning framework that updates the entries of each transformer weight matrix jointly. Spectral unlearning is general across unlearning objectives, applying uniformly to gradient-difference, preference-based, and representation-level losses. In particular, the weight matrices in transformers map RMS-normalized inputs to outputs. We show that the proposed updates are the steepest-descent directions [15] in this RMS-induced space. Computing this direction exactly is infeasible at LLM scale, so we introduce three practical methods with different matrix-structured strategies.

Fig. 1 previews unlearning objective curves, comparing entry-wise updates (NPO-AdamW [16] and NPO-Sophia [17]) with our spectral variants. Spectral updates reach the retain-trained target loss in fewer steps and lower wall-clock time. This advantage holds across unlearning objectives, model scales, spectral variants, and learning rates. Our contributions are summarized as follows.

  • We propose spectral unlearning, a loss-agnostic framework that updates the entries of each weight matrix jointly. We identify the geometry of the update as a separate and complementary design choice. We realize the spectral update with Muon, KLShampoo, and SOAP.

  • We show that the natural norm of pre-norm transformers, the RMS-to-RMS norm, is a rescaled spectral norm. Steepest descent of the unlearning objective under this norm gives the spectral update direction. Spectral updates capture the Kronecker structure of unlearning gradients.

  • We evaluate unlearning methods across memorization, privacy, and utility, aggregated via the harmonic mean. Spectral updates improve the aggregate score and the memorization-utility trade-off. The improvement holds over a wide range of learning rates and under matched wall-clock time. Spectral updates also reduce the recovery of forgotten knowledge under relearning attacks.