paper-with-me

홈 › Papers

WPN: An Unlearning Method Based on N-pair Contrastive Learning in Language Models

2024-08-18 · Guitao Chen, Yunshen Wang, Hongye Sun, Guang Chen

Generative language models (LMs) offer numerous advantages but may produce inappropriate or harmful outputs due to the harmful knowledge acquired during pre-training. This knowledge often manifests as undesirable correspondences, such as "harmful prompts" leading to "harmful outputs," which our research aims to mitigate through unlearning techniques.However, existing unlearning methods based on gradient ascent can significantly impair the performance of LMs. To address this issue, we propose a novel approach called Weighted Positional N-pair (WPN) Learning, which leverages position-weighted mean pooling within an n-pair contrastive learning framework. WPN is designed to modify the output distribution of LMs by eliminating specific harmful outputs (e.g., replacing toxic responses with neutral ones), thereby transforming the model's behavior from "harmful prompt-harmful output" to "harmful prompt-harmless response".Experiments on OPT and GPT-NEO LMs show that WPN effectively reduces the proportion of harmful responses, achieving a harmless rate of up to 95.8\% while maintaining stable performance on nine common benchmarks (with less than 2\% degradation on average). Moreover, we provide empirical evidence to demonstrate WPN's ability to weaken the harmful correspondences in terms of generalizability and robustness, as evaluated on out-of-distribution test sets and under adversarial attacks.

📄 PDF Abstract BibTeX arXiv:2408.09459

Code (0)

등록된 구현이 없습니다.

Tasks

Contrastive Learning

Methods 이 논문이 사용한 방법론

GPT-Neo An implementation of model & data parallel GPT3-like models using the mesh-tensorflow…
OPT OPT is a suite of decoder-only pre-trained transformers ranging from 125M to 175B parameters. The model uses an AdamW optimizer and weight decay of 0.1. It follows a linear…
Contrastive Learning 설명 없음

Similar Papers 제목 키워드 기반

WSS-CL: Weight Saliency Soft-Guided Contrastive Learning for Efficient Machine Unlearning Image Classification

2025-08-06 · Thang Duc Tran, Thai Hoang Le arxiv

Machine unlearning, the efficient deletion of the impact of specific data in a trained model, remains a challenging problem. Current machine unlearning approaches that focus primarily on data-centric or weight-based stra…

Contrastive LearningImage Classification

CATNIP: LLM Unlearning via Calibrated and Tokenized Negative Preference Alignment

2026-02-02 · Zhengbang Yang, Yisheng Zhong, Junyuan Hong, Zhuangdi Zhu arxiv

Pretrained knowledge memorized in LLMs raises critical concerns over safety and privacy, which has motivated LLM Unlearning as a technique for selectively removing the influences of undesirable knowledge. Existing approa…

UCD: Unlearning in LLMs via Contrastive Decoding

2025-06-12 · Vinith M. Suriyakumar, Ayush Sekhari, Ashia Wilson

Machine unlearning aims to remove specific information, e.g. sensitive or undesirable content, from large language models (LLMs) while preserving overall performance. We propose an inference-time unlearning algorithm tha…

Machine Unlearning

Contrastive Unlearning: A Contrastive Approach to Machine Unlearning

2024-01-19 · Hong kyu Lee, Qiuchen Zhang, Carl Yang, Jian Lou 외

Machine unlearning aims to eliminate the influence of a subset of training samples (i.e., unlearning samples) from a trained model. Effectively and efficiently removing the unlearning samples without negatively impacting…

Machine UnlearningRepresentation Learning

FALCON: Fine-grained Activation Manipulation by Contrastive Orthogonal Unalignment for Large Language Model

2025-02-03 · Jinwei Hu, Zhenglin Huang, Xiangyu Yin, Wenjie Ruan 외

Large language models have been widely applied, but can inadvertently encode sensitive or harmful information, raising significant safety concerns. Machine unlearning has emerged to alleviate this concern; however, exist…

Language ModelingLanguage ModellingLarge Language ModelMachine Unlearning