Align-then-Unlearn: Embedding Alignment for LLM Unlearning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Spohn, Philipp, Girrbach, Leander, Bader, Jessica, Akata, Zeynep
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918060096487424
author Spohn, Philipp
Girrbach, Leander
Bader, Jessica
Akata, Zeynep
author_facet Spohn, Philipp
Girrbach, Leander
Bader, Jessica
Akata, Zeynep
contents As large language models (LLMs) are trained on massive datasets, they have raised significant privacy and ethical concerns due to their potential to inadvertently retain sensitive information. Unlearning seeks to selectively remove specific data from trained models, such as personal information or copyrighted content. Current approaches targeting specific output sequences at the token level often fail to achieve complete forgetting and remain susceptible to prompt rephrasing. We propose Align-then-Unlearn, a novel framework that performs unlearning in the semantic embedding space rather than directly on output tokens. Align-then-Unlearn first augments the LLM with an embedding prediction module trained to anticipate future context representations. Unlearning is then achieved by fine-tuning the model to minimize the similarity between these predicted embeddings and a target embedding that represents the concept to be removed. Initial results show that Align-then-Unlearn effectively removes targeted knowledge with minimal degradation in overall model utility. These findings suggest that embedding-based unlearning offers a promising and robust approach to removing conceptual knowledge. Our code is available at https://github.com/ExplainableML/align-then-unlearn.
format Preprint
id arxiv_https___arxiv_org_abs_2506_13181
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Align-then-Unlearn: Embedding Alignment for LLM Unlearning
Spohn, Philipp
Girrbach, Leander
Bader, Jessica
Akata, Zeynep
Computation and Language
Machine Learning
As large language models (LLMs) are trained on massive datasets, they have raised significant privacy and ethical concerns due to their potential to inadvertently retain sensitive information. Unlearning seeks to selectively remove specific data from trained models, such as personal information or copyrighted content. Current approaches targeting specific output sequences at the token level often fail to achieve complete forgetting and remain susceptible to prompt rephrasing. We propose Align-then-Unlearn, a novel framework that performs unlearning in the semantic embedding space rather than directly on output tokens. Align-then-Unlearn first augments the LLM with an embedding prediction module trained to anticipate future context representations. Unlearning is then achieved by fine-tuning the model to minimize the similarity between these predicted embeddings and a target embedding that represents the concept to be removed. Initial results show that Align-then-Unlearn effectively removes targeted knowledge with minimal degradation in overall model utility. These findings suggest that embedding-based unlearning offers a promising and robust approach to removing conceptual knowledge. Our code is available at https://github.com/ExplainableML/align-then-unlearn.
title Align-then-Unlearn: Embedding Alignment for LLM Unlearning
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2506.13181