arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.11838cs.CLcs.AI
收藏

确保安全且高质量的输出:面向语言模型的指南库方法

Ensuring Safe and High-Quality Outputs: A Guideline Library Approach for Language Models

XiaMen University(厦门大学);Yanshan University(雁山大学);IDEA Research(IDEA研究);Inner Mongolia University(内蒙古大学);Microsoft(微软);Microsoft Research Asia(微软亚洲研究院)

Yi Luo, Zhenghao Lin, Yuhao Zhang, Jiashuo Sun, Chen Lin, Chengjin Xu, Xiangdong Su, Yelong Shen, Jian Guo, Yeyun Gong

AI总结:

提出Guide-Align两阶段方法,通过安全模型构建指南库并检索指导LLM生成,显著提升安全性与质量,13B参数的Labrador模型在对齐能力上超越GPT-4。

摘要:

大型语言模型(LLMs)展现出令人瞩目的能力,但也存在偏见内容生成和隐私问题等风险。当前的对齐技术之一包括原则驱动整合,但它面临手工制定规则不精确以及缺乏安全训练的模型风险感知不足等挑战。为解决这些问题,我们引入了Guide-Align,一种两阶段方法。首先,由安全训练模型识别潜在风险并为各种输入制定具体指南,建立全面的指南库和输入-指南检索模型。随后,检索模型将新输入与相关指南关联,指导LLMs生成响应以确保安全且高质量的输出,从而与人类价值观对齐。额外的可选阶段涉及使用通过第二阶段实施过程生成的良好对齐数据集微调模型。我们的方法定制指南以适应多样化输入,从而增强指南库的精细度和全面性。此外,它通过轻量级检索模型整合来自安全训练LLM的安全专业知识。我们在三个基准上评估了该方法,证明LLM安全性和质量的显著提升。值得注意的是,我们微调的模型Labrador,即使在130亿参数规模下,也优于GPT-3.5-turbo并在对齐能力上超越GPT-4。

英文摘要:

Large Language Models (LLMs) exhibit impressive capabilities but also present risks such as biased content generation and privacy issues. One of the current alignment techniques includes principle-driven integration, but it faces challenges arising from the imprecision of manually crafted rules and inadequate risk perception in models without safety training. To address these, we introduce Guide-Align, a two-stage approach. Initially, a safety-trained model identifies potential risks and formulates specific guidelines for various inputs, establishing a comprehensive library of guidelines and a model for input-guidelines retrieval. Subsequently, the retrieval model correlates new inputs with relevant guidelines, which guide LLMs in response generation to ensure safe and high-quality outputs, thereby aligning with human values. An additional optional stage involves fine-tuning a model with well-aligned datasets generated through the process implemented in the second stage. Our method customizes guidelines to accommodate diverse inputs, thereby enhancing the fine-grainedness and comprehensiveness of the guideline library. Furthermore, it incorporates safety expertise from a safety-trained LLM through a lightweight retrieval model. We evaluate our approach on three benchmarks, demonstrating significant improvements in LLM security and quality. Notably, our fine-tuned model, Labrador, even at 13 billion parameters, outperforms GPT-3.5-turbo and surpasses GPT-4 in alignment capabilities.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑