paper-with-me

홈 › Papers

Detoxifying LLMs via Representation Erasure-Based Preference Optimization

2026-02-24 · Nazanin Mohammadi Sepahvand, Eleni Triantafillou, Hugo Larochelle, Doina Precup, Daniel M. Roy, Gintare Karolina Dziugaite arxiv

Large language models (LLMs) trained on webscale data can produce toxic outputs, raising concerns for safe deployment. Prior defenses, based on applications of DPO, NPO, and similar algorithms, reduce the likelihood of harmful continuations, but not robustly so: they are vulnerable to adversarial prompting and easily undone by fine-tuning-based relearning attacks. Indeed, research has shown that these edits to the model are superficial: linear probing reveals that harmful "directions" remain present in representations. To address this, we propose Representation Erasure-based Preference Optimization (REPO), reformulating detoxification as a token-level preference problem. Using a novel objective with preference data, we force the representations of toxic continuations to converge toward their benign counterparts. Our mechanistic analysis reveals that this granular approach is critical: unlike baselines, REPO induces deep, localized edits to toxicity-encoding neurons while preserving general model utility. Exhaustive evaluations show that REPO achieves state-of-the-art robustness, stopping sophisticated threats-including relearning attacks and enhanced GCG jailbreaks-where existing representation- and output-based methods fail.

📄 PDF Abstract BibTeX arXiv:2602.23391

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Preference Tuning For Toxicity Mitigation Generalizes Across Languages

2024-06-23 · Xiaochen Li, Zheng-Xin Yong, Stephen H. Bach

Detoxifying multilingual Large Language Models (LLMs) has become crucial due to their increasing global use. In this work, we explore zero-shot cross-lingual generalization of preference tuning in detoxifying LLMs. Unlik…

RetrievalSentenceSentence Retrieval

Detoxifying Large Language Models via Knowledge Editing

2024-03-21 · Mengru Wang, Ningyu Zhang, Ziwen Xu, Zekun Xi 외

This paper investigates using knowledge editing techniques to detoxify Large Language Models (LLMs). We construct a benchmark, SafeEdit, which covers nine unsafe categories with various powerful attack prompts and equips…

knowledge editing

UniDetox: Universal Detoxification of Large Language Models via Dataset Distillation

2025-04-29 · Huimin Lu, Masaru Isonuma, Junichiro Mori, Ichiro Sakata

We present UniDetox, a universally applicable method designed to mitigate toxicity across various large language models (LLMs). Previous detoxification methods are typically model-specific, addressing only individual mod…

Dataset DistillationLanguage ModelingLanguage Modelling

MLLMEraser: Achieving Test-Time Unlearning in Multimodal Large Language Models through Activation Steering

2025-10-05 · Chenlu Ding, Jiancan Wu, Leheng Sheng, Fan Zhang 외 arxiv

Multimodal large language models (MLLMs) have demonstrated remarkable capabilities across vision-language tasks, yet their large-scale deployment raises pressing concerns about memorized private data, outdated knowledge,…

Unified Detoxifying and Debiasing in Language Generation via Inference-time Adaptive Optimization

2022-10-10 · Zonghan Yang, Xiaoyuan Yi, Peng Li, Yang Liu 외

Warning: this paper contains model outputs exhibiting offensiveness and biases. Recently pre-trained language models (PLMs) have prospered in various natural language generation (NLG) tasks due to their ability to genera…

Text Generation