arXiv:2601.11776cs.CLcs.AI2026-01

让大模型自己识别并清除有害内容,无需人工或外部工具。

Cleansing the Artificial Mind: A Self-Reflective Detoxification Framework for Large Language Models

  • 用模型内部机制自动检测和修正有毒文本。
  • 在DetoxLLM和ParaDetox上表现优于现有方法,保留语义一致性。
  • 适合追求自净化、低成本部署的AI安全研究者。

大型语言模型(LLMs)虽具备生成能力与初步自我调节机制,但现有去毒技术仍依赖外部模块、人工标注或人工干预,难以规模化。本文提出一种完全自反思的去毒框架,利用模型自身能力实现有毒内容的检测、修正与优化,无需外部组件或数据标注。核心包括一个内部毒性信号检测器,配合系统性干预流程,将有毒文本转化为无害版本,并生成对比式去毒数据集用于微调。在DetoxLLM和ParaDetox等基准测试中,该方法在去毒性能上超越当前最优方案,同时保持语义保真度。结果表明,大模型具备内在自净化能力,为构建真正自主可控的可信文本生成系统提供了可行路径。

原文摘要 · Abstract (English)

Recent breakthroughs in Large Language Models (LLMs) have revealed remarkable generative capabilities and emerging self-regulatory mechanisms, including self-correction and self-rewarding. However, current detoxification techniques rarely exploit these built-in abilities; instead, they rely on external modules, labor-intensive data annotation, or human intervention --factors that hinder scalability and consistency. In this paper, we introduce a fully self-reflective detoxification framework that harnesses the inherent capacities of LLMs to detect, correct toxic content, and refine LLMs without external modules and data annotation. Specifically, we propose a Toxic Signal Detector --an internal self-identification mechanism, coupled with a systematic intervention process to transform toxic text into its non-toxic counterpart. This iterative procedure yields a contrastive detoxification dataset used to fine-tune the model, enhancing its ability for safe and coherent text generation. Experiments on benchmark datasets such as DetoxLLM and ParaDetox show that our method achieves better detoxification performance than state-of-the-art methods while preserving semantic fidelity. By obviating the need for human intervention or external components, this paper reveals the intrinsic self-detoxification ability of LLMs, offering a consistent and effective approach for mitigating harmful content generation. Ultimately, our findings underscore the potential for truly self-regulated language models, paving the way for more responsible and ethically guided text generation systems.

大模型安全自净化去毒

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。