Lune

ICLR2023顶会

Systematic Rectification of Language Models via Dead-end Analysis

Meng Cao, Mehdi Fatemi, Jackie C. K. Cheung, Samira Shabanian

摘要

With adversarial or otherwise normal prompts, existing large language models (LLM) can be pushed to generate toxic discourses. One way to reduce the risk of LLMs generating undesired discourses is to alter the training of the LLM. This can be very restrictive due to demanding computation requirements. Other methods rely on rule-based or prompt-based token elimination, which are limited as they dismiss future tokens and the overall meaning of the complete discourse. Here, we center detoxification on the probability that the finished discourse is ultimately considered toxic. That is, at each point, we advise against token selections proportional to how likely a finished text from this point will be toxic. To this end, we formally extend the dead-end theory from the recent reinforcement learning (RL) literature to also cover uncertain outcomes. Our approach, called rectification, utilizes a separate but significantly smaller model for detoxification, which can be applied to diverse LLMs as long as they share the same vocabulary. Importantly, our method does not require access to the internal representations of the LLM, but only the token probability distribution at each decoding step. This is crucial as many LLMs today are hosted in servers and only accessible through APIs. When applied to various LLMs, including GPT-3, our approach significantly improves the generated discourse compared to the base LLMs and other techniques in terms of both the overall language and detoxification performance. 1

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • Plug and Play Language Models: A Simple Approach to Controlled Text Generation 引用了 The Curious Case of Neural Text Degeneration
  • CoSec: On-the-Fly Security Hardening of Code LLMs via Supervised Co-decoding 引用了 Language Models are Few-Shot Learners
  • Test-Time Detoxification without Training or Learning Anything 引用了 Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • Test-Time Detoxification without Training or Learning Anything 引用了 RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
  • Risk-Averse Fine-tuning of Large Language Models 引用了 RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
  • Risk-Averse Fine-tuning of Large Language Models 引用了 Language Models are Few-Shot Learners
  • 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
  • Language Models are Few-Shot Learners 引用了 Reducing Sentiment Bias in Language Models via Counterfactual Evaluation
  • Language Models are Few-Shot Learners 引用了 The Curious Case of Neural Text Degeneration
  • Enhancing Reinforcement Learning with Dense Rewards from Language Model Critic 引用了 Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • Enhancing Reinforcement Learning with Dense Rewards from Language Model Critic 引用了 RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
  • IF-Guide: Influence Function-Guided Detoxification of LLMs 引用了 Plug and Play Language Models: A Simple Approach to Controlled Text Generation
  • IF-Guide: Influence Function-Guided Detoxification of LLMs 引用了 RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper8

  1. Risk-Averse Fine-tuning of Large Language ModelsSapana Chaudhary, Ujwal Dinesha, Dileep Kalathil, Srinivas ShakkottaiNeurIPS 2024 · 12 次引用
  2. CoSec: On-the-Fly Security Hardening of Code LLMs via Supervised Co-decodingDong Li, Meng Yan, Yaosheng Zhang, Zhongxin Liu 等ISSTA 2024 · 10 次引用
  3. IF-Guide: Influence Function-Guided Detoxification of LLMsZachary Coalson, Juhan Bae, Nicholas Carlini, Sanghyun HongNeurIPS 2025 · 9 次引用
  4. Enhancing Reinforcement Learning with Dense Rewards from Language Model CriticMeng Cao, Lei Shu, Lei Yu, Yun Zhu 等EMNLP 2024 · 7 次引用
  5. Test-Time Detoxification without Training or Learning AnythingBaturay Saglam, Dionysios KalogeriasICML 2026 · 2 次引用

它引用的 Paper10

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. The Curious Case of Neural Text DegenerationAri Holtzman, Jan Buys, Li Du, Maxwell Forbes 等ICLR 2020 · 4,112 次引用
  3. Plug and Play Language Models: A Simple Approach to Controlled Text GenerationSumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung 等ICLR 2020 · 1,166 次引用
  4. RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language ModelsSamuel Gehman, Suchin Gururangan, Maarten Sap, Yejin Choi 等EMNLP Findings 2020 · 692 次引用
  5. Reducing Sentiment Bias in Language Models via Counterfactual EvaluationPo-Sen Huang, Huan Zhang, Ray Jiang, Robert Stanforth 等EMNLP Findings 2020 · 124 次引用

相关 Paper

  1. Detoxifying Large Language Models via Autoregressive Reward Guided Representation EditingYisong Xiao, Aishan Liu, Siyuan Liang, Zonghao Ying 等NeurIPS 2025 · 12 次引用
  2. From Chaos to Cure: A Prefix Heuristics Guided Model-Agnostic Adaptive Detoxification FrameworkYuhu Shang, Xiang Cheng, Yimeng Ren, Huijia Wu 等AAAI 2026
  3. You Only Prompt Once: On the Capabilities of Prompt Learning on Large Language Models to Tackle Toxic ContentXinlei He, Savvas Zannettou, Yun Shen, Yang ZhangS&P 2024 · 74 次引用
  4. CausalDetox: Causal Head Selection and Intervention for Language Model DetoxificationYian Wang, Yuen Chen, Agam Goyal, Hari SundaramACL Findings 2026
  5. Self-Detoxifying Language Models via Toxification ReversalChak Tou Leong, Yi Cheng, Jiashuo Wang, Jian Wang 等EMNLP 2023 · 12 次引用
黄昏的海面,两侧是细线勾勒的悬崖