Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Dong, Ming, Zhang, Jinkui, Zheng, Bolong, Tu, Xinhui, Hu, Po, He, Tingting
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2510.13183
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866912648405188608
author Dong, Ming
Zhang, Jinkui
Zheng, Bolong
Tu, Xinhui
Hu, Po
He, Tingting
author_facet Dong, Ming
Zhang, Jinkui
Zheng, Bolong
Tu, Xinhui
Hu, Po
He, Tingting
contents Detoxification in large language models (LLMs) remains a significant research challenge. Existing decoding detoxification methods are all based on external constraints, which require additional resource overhead and lose generation fluency. This work proposes Detoxification with Self-Constrained Decoding (DSCD), a novel method for LLM detoxification without parameter fine-tuning. DSCD strengthens the inner next-token distribution of the safety layer while weakening that of hallucination and toxic layers during output generation. This effectively diminishes toxicity and enhances output safety. DSCD offers lightweight, high compatibility, and plug-and-play capabilities, readily integrating with existing detoxification methods for further performance improvement. Extensive experiments on representative open-source LLMs and public datasets validate DSCD's effectiveness, demonstrating state-of-the-art (SOTA) performance in both detoxification and generation fluency, with superior efficiency compared to existing methods. These results highlight DSCD's potential as a practical and scalable solution for safer LLM deployments.
format Preprint
id arxiv_https___arxiv_org_abs_2510_13183
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle DSCD: Large Language Model Detoxification with Self-Constrained Decoding
Dong, Ming
Zhang, Jinkui
Zheng, Bolong
Tu, Xinhui
Hu, Po
He, Tingting
Computation and Language
Detoxification in large language models (LLMs) remains a significant research challenge. Existing decoding detoxification methods are all based on external constraints, which require additional resource overhead and lose generation fluency. This work proposes Detoxification with Self-Constrained Decoding (DSCD), a novel method for LLM detoxification without parameter fine-tuning. DSCD strengthens the inner next-token distribution of the safety layer while weakening that of hallucination and toxic layers during output generation. This effectively diminishes toxicity and enhances output safety. DSCD offers lightweight, high compatibility, and plug-and-play capabilities, readily integrating with existing detoxification methods for further performance improvement. Extensive experiments on representative open-source LLMs and public datasets validate DSCD's effectiveness, demonstrating state-of-the-art (SOTA) performance in both detoxification and generation fluency, with superior efficiency compared to existing methods. These results highlight DSCD's potential as a practical and scalable solution for safer LLM deployments.
title DSCD: Large Language Model Detoxification with Self-Constrained Decoding
topic Computation and Language
url https://arxiv.org/abs/2510.13183