净化人工智能:一种用于大型语言模型的自反思净化框架
Cleansing the Artificial Mind: A Self-Reflective Detoxification Framework for Large Language Models
AI总结:
本文提出一种自反思净化框架,利用LLMs自身能力检测并纠正有毒内容,提升文本生成的安全性和连贯性。
摘要:
最近大型语言模型(LLMs)的突破性进展揭示了其卓越的生成能力和新兴的自我调节机制,包括自我修正和自我奖励。然而,当前的净化技术很少利用这些内置能力;相反,它们依赖于外部模块、劳动密集型的数据标注或人工干预——这些因素阻碍了可扩展性和一致性。在本文中,我们介绍了一个完全自反思的净化框架,利用LLMs固有的能力来检测、纠正有毒内容并完善LLMs,而无需外部模块和数据标注。具体而言,我们提出了一种有毒信号检测器——一个内部的自我识别机制,结合系统干预过程,将有毒文本转化为非有毒的对应文本。这种迭代过程产生了一个对比净化数据集,用于微调模型,提高其安全且连贯的文本生成能力。在DetoxLLM和ParaDetox等基准数据集上的实验表明,我们的方法在净化性能上优于最先进的方法,同时保持语义保真度。通过消除对人工干预或外部组件的需要,本文揭示了LLMs内在的自我净化能力,提供了一种一致且有效的方法来缓解有害内容生成。最终,我们的发现强调了真正自我调节语言模型的潜力,为更负责任和伦理指导的文本生成系统铺平了道路。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。