Detoxification of Large Language Models through Output-layer Fusion with a Calibration Model
Yuanhe Tian, Mingjie Deng, Guoqing Jin, Yan Song

TL;DR
This paper introduces a lightweight calibration-based method to detoxify large language models, effectively reducing harmful outputs without sacrificing fluency or requiring extensive retraining.
Contribution
The authors propose a novel output-layer fusion approach using a pre-trained calibration model for efficient LLM detoxification, avoiding costly retraining or prompt engineering.
Findings
Reduces toxicity effectively on benchmark datasets
Maintains LLM fluency and contextual understanding
Seamlessly applies to multiple LLMs without retraining
Abstract
Existing approaches for Large language model (LLM) detoxification generally rely on training on large-scale non-toxic or human-annotated preference data, designing prompts to instruct the LLM to generate safe content, or modifying the model parameters to remove toxic information, which are computationally expensive, lack robustness, and often compromise LLMs' fluency and contextual understanding. In this paper, we propose a simple yet effective approach for LLM detoxification, which leverages a compact, pre-trained calibration model that guides the detoxification process of a target LLM via a lightweight intervention in its generation pipeline. By learning a detoxified embedding space from non-toxic data, the calibration model effectively steers the LLM away from generating harmful content. This approach only requires a one-time training of the calibration model that is able to be…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNatural Language Processing Techniques · Topic Modeling · Advanced Data Processing Techniques
