Lune

ACL2023顶会

MIL-Decoding: Detoxifying Language Models at Token-Level via Multiple Instance Learning

Xu Zhang, Xiaojun Wan

摘要

Despite advances in large pre-trained neural language models, they are prone to generating toxic language, which brings security risks to their applications. We introduce MIL-Decoding, which detoxifies language models at token-level by interpolating it with a trained multiple instance learning (MIL) network. MIL model is trained on a corpus with a toxicity label for each text to predict the overall toxicity and the toxicity of each token in its context. Intuitively, the MIL network computes a toxicity distribution over next tokens according to the generated context which supplements the original language model to avoid toxicity. We evaluate MIL-Decoding with automatic metrics and human evaluation, where MIL-Decoding outperforms other baselines in detoxification while it only hurts generation fluency a little bit.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 9 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Plug and Play Language Models: A Simple Approach to Controlled Text Generation 引用了 The Curious Case of Neural Text Degeneration
  • Model Editing as a Robust and Denoised variant of DPO: A Case Study on Toxicity 引用了 Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • Process for Adapting Language Models to Society (PALMS) with Values-Targeted Datasets 引用了 RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
  • Process for Adapting Language Models to Society (PALMS) with Values-Targeted Datasets 引用了 The Curious Case of Neural Text Degeneration
  • Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing 引用了 Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing 引用了 Model Editing as a Robust and Denoised variant of DPO: A Case Study on Toxicity
  • Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing 引用了 Detoxifying Large Language Models via Knowledge Editing
  • Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing 引用了 RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
  • RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models 引用了 Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models 引用了 The Curious Case of Neural Text Degeneration
  • Breaking Bad Tokens: Detoxification of LLMs Using Sparse Autoencoders 引用了 Model Editing as a Robust and Denoised variant of DPO: A Case Study on Toxicity
  • Breaking Bad Tokens: Detoxification of LLMs Using Sparse Autoencoders 引用了 Detoxifying Large Language Models via Knowledge Editing
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper9

  1. Detoxifying Large Language Models via Autoregressive Reward Guided Representation EditingYisong Xiao, Aishan Liu, Siyuan Liang, Zonghao Ying 等NeurIPS 2025 · 12 次引用
  2. DSCD: Large Language Model Detoxification with Self-Constrained DecodingMing Dong, Jinkui Zhang, Bolong Zheng, Xinhui Tu 等EMNLP 2025 · 1 次引用
  3. Breaking Bad Tokens: Detoxification of LLMs Using Sparse AutoencodersAgam Goyal, Vedant Rathi, William Yeh, Yian Wang 等EMNLP 2025 · 1 次引用
  4. Model Editing as a Robust and Denoised variant of DPO: A Case Study on ToxicityRheeya Uppaal, Apratim Dey, Yiting He, Yiqiao Zhong 等ICLR 2025
  5. Detoxifying Large Language Models via Knowledge EditingMengru Wang, Ningyu Zhang, Ziwen Xu, Zekun Xi 等ACL 2024

它引用的 Paper13

  1. The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes 等ICLR 2020 · 4,112 次引用
  2. Plug and Play Language Models: A Simple Approach to Controlled Text GenerationSumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung 等ICLR 2020 · 1,166 次引用
  3. Generalization through Memorization: Nearest Neighbor Language ModelsUrvashi Khandelwal, Omer Levy, Dan Jurafsky, Luke Zettlemoyer 等ICLR 2020 · 1,038 次引用
  4. RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language ModelsSamuel Gehman, Suchin Gururangan, Maarten Sap, Yejin Choi 等EMNLP Findings 2020 · 692 次引用
  5. Process for Adapting Language Models to Society (PALMS) with Values-Targeted DatasetsIrene Solaiman, Christy DennisonNeurIPS 2021 · 276 次引用

相关 Paper

  1. Leashing the Inner Demons: Self-Detoxification for Language ModelsCanwen Xu, Zexue He, Zhankui He, Julian J. McAuleyAAAI 2022 · 30 次引用
  2. Self-Detoxifying Language Models via Toxification ReversalChak Tou Leong, Yi Cheng, Jiashuo Wang, Jian Wang 等EMNLP 2023 · 12 次引用
  3. Detoxification for LLM: From Dataset ItselfWei Shao, Yihang Wang, Gao yu Zhu, Ziqiang Cheng 等ACL 2026
  4. UniDetox: Universal Detoxification of Large Language Models via Dataset DistillationHuimin Lu, Masaru Isonuma, Junichiro Mori, Ichiro SakataICLR 2025
  5. Systematic Rectification of Language Models via Dead-end AnalysisMeng Cao, Mehdi Fatemi, Jackie C. K. Cheung, Samira ShabanianICLR 2023 · 2 次引用
黄昏的海面,两侧是细线勾勒的悬崖