On Effects of Steering Latent Representation for Large Language Model Unlearning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Huu-Tien, Dang, Pham, Trung-Tin, Thanh-Tung, Hoang, Inoue, Naoya
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916599534977024
author Huu-Tien, Dang
Pham, Trung-Tin
Thanh-Tung, Hoang
Inoue, Naoya
author_facet Huu-Tien, Dang
Pham, Trung-Tin
Thanh-Tung, Hoang
Inoue, Naoya
contents Representation Misdirection for Unlearning (RMU), which steers model representation in the intermediate layer to a target random representation, is an effective method for large language model (LLM) unlearning. Despite its high performance, the underlying cause and explanation remain underexplored. In this paper, we theoretically demonstrate that steering forget representations in the intermediate layer reduces token confidence, causing LLMs to generate wrong or nonsense responses. We investigate how the coefficient influences the alignment of forget-sample representations with the random direction and hint at the optimal coefficient values for effective unlearning across different network layers. We show that RMU unlearned models are robust against adversarial jailbreak attacks. Furthermore, our empirical analysis shows that RMU is less effective when applied to the middle and later layers in LLMs. To resolve this drawback, we propose Adaptive RMU--a simple yet effective alternative method that makes unlearning effective with most layers. Extensive experiments demonstrate that Adaptive RMU significantly improves the unlearning performance compared to prior art while incurring no additional computational cost.
format Preprint
id arxiv_https___arxiv_org_abs_2408_06223
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle On Effects of Steering Latent Representation for Large Language Model Unlearning
Huu-Tien, Dang
Pham, Trung-Tin
Thanh-Tung, Hoang
Inoue, Naoya
Computation and Language
Artificial Intelligence
Representation Misdirection for Unlearning (RMU), which steers model representation in the intermediate layer to a target random representation, is an effective method for large language model (LLM) unlearning. Despite its high performance, the underlying cause and explanation remain underexplored. In this paper, we theoretically demonstrate that steering forget representations in the intermediate layer reduces token confidence, causing LLMs to generate wrong or nonsense responses. We investigate how the coefficient influences the alignment of forget-sample representations with the random direction and hint at the optimal coefficient values for effective unlearning across different network layers. We show that RMU unlearned models are robust against adversarial jailbreak attacks. Furthermore, our empirical analysis shows that RMU is less effective when applied to the middle and later layers in LLMs. To resolve this drawback, we propose Adaptive RMU--a simple yet effective alternative method that makes unlearning effective with most layers. Extensive experiments demonstrate that Adaptive RMU significantly improves the unlearning performance compared to prior art while incurring no additional computational cost.
title On Effects of Steering Latent Representation for Large Language Model Unlearning
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2408.06223