Constrained Entropic Unlearning: A Primal-Dual Framework for Large Language Models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Entesari, Taha, Hatami, Arman, Khaziev, Rinat, Ramakrishna, Anil, Fazlyab, Mahyar
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911232938737664
author Entesari, Taha
Hatami, Arman
Khaziev, Rinat
Ramakrishna, Anil
Fazlyab, Mahyar
author_facet Entesari, Taha
Hatami, Arman
Khaziev, Rinat
Ramakrishna, Anil
Fazlyab, Mahyar
contents Large Language Models (LLMs) deployed in real-world settings increasingly face the need to unlearn sensitive, outdated, or proprietary information. Existing unlearning methods typically formulate forgetting and retention as a regularized trade-off, combining both objectives into a single scalarized loss. This often leads to unstable optimization and degraded performance on retained data, especially under aggressive forgetting. We propose a new formulation of LLM unlearning as a constrained optimization problem: forgetting is enforced via a novel logit-margin flattening loss that explicitly drives the output distribution toward uniformity on a designated forget set, while retention is preserved through a hard constraint on a separate retain set. Compared to entropy-based objectives, our loss is softmax-free, numerically stable, and maintains non-vanishing gradients, enabling more efficient and robust optimization. We solve the constrained problem using a scalable primal-dual algorithm that exposes the trade-off between forgetting and retention through the dynamics of the dual variable, all without any extra computational overhead. Evaluations on the TOFU and MUSE benchmarks across diverse LLM architectures demonstrate that our approach consistently matches or exceeds state-of-the-art baselines, effectively removing targeted information while preserving downstream utility.
format Preprint
id arxiv_https___arxiv_org_abs_2506_05314
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Constrained Entropic Unlearning: A Primal-Dual Framework for Large Language Models
Entesari, Taha
Hatami, Arman
Khaziev, Rinat
Ramakrishna, Anil
Fazlyab, Mahyar
Computation and Language
Artificial Intelligence
Machine Learning
Large Language Models (LLMs) deployed in real-world settings increasingly face the need to unlearn sensitive, outdated, or proprietary information. Existing unlearning methods typically formulate forgetting and retention as a regularized trade-off, combining both objectives into a single scalarized loss. This often leads to unstable optimization and degraded performance on retained data, especially under aggressive forgetting. We propose a new formulation of LLM unlearning as a constrained optimization problem: forgetting is enforced via a novel logit-margin flattening loss that explicitly drives the output distribution toward uniformity on a designated forget set, while retention is preserved through a hard constraint on a separate retain set. Compared to entropy-based objectives, our loss is softmax-free, numerically stable, and maintains non-vanishing gradients, enabling more efficient and robust optimization. We solve the constrained problem using a scalable primal-dual algorithm that exposes the trade-off between forgetting and retention through the dynamics of the dual variable, all without any extra computational overhead. Evaluations on the TOFU and MUSE benchmarks across diverse LLM architectures demonstrate that our approach consistently matches or exceeds state-of-the-art baselines, effectively removing targeted information while preserving downstream utility.
title Constrained Entropic Unlearning: A Primal-Dual Framework for Large Language Models
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2506.05314