arXivDaily arXiv每日学术速递 周一至周五更新
​通知:联邦节假日调休:哥伦布日 / 原住民日(Columbus Day / Indigenous Peoples' Day),今日(13日)无更新。
arXiv 2311.08685cs.CLcs.AI

Safer-Instruct:利用自动化偏好数据对齐语言模型

Safer-Instruct: Aligning Language Models with Automated Preference Data

University of Southern California(南加州大学)

Taiwei Shi, Kai Chen, Jieyu Zhao

AI总结:

Safer-Instruct提出一种无需人工标注的自动化偏好数据构建流水线,结合反向指令调优、指令归纳和专家评估,在安全偏好数据上微调Alpaca模型取得优于人工标注数据的效果,并可推广至多领域。

摘要:

基于人类反馈的强化学习(RLHF)是提升语言模型能力的关键策略。然而,为RLHF标注偏好数据是一个资源密集且需要创造力的过程,而现有的自动生成方法在数据多样性和质量方面存在局限。针对这一问题,我们提出了Safer-Instruct,一种用于自动构建大规模偏好数据的新型流水线。我们的方法利用反向指令调优、指令归纳和专家模型评估,在无需人工标注者的情况下高效生成高质量的偏好数据。为验证Safer-Instruct的有效性,我们将该流水线应用于构建安全偏好数据集作为案例研究。在该合成数据集上微调Alpaca模型不仅展现出更好的无害性,而且优于在人工标注的安全偏好数据上微调的模型,同时在下游任务中保持竞争优势。重要的是,我们的Safer-Instruct框架具有通用性,可应用于生成跨多个领域的偏好数据,将其效用扩展到安全偏好之外。它解决了偏好数据获取中的挑战,并推动了更具能力和更负责任的AI系统的发展。数据集和代码实现见 https://github.com/uscnlp-lime/safer-instruct。

英文摘要:

Reinforcement learning from human feedback (RLHF) is a vital strategy for enhancing model capability in language models. However, annotating preference data for RLHF is a resource-intensive and creativity-demanding process, while existing automatic generation methods face limitations in data diversity and quality. In response, we present Safer-Instruct, a novel pipeline for automatically constructing large-scale preference data. Our approach leverages reversed instruction tuning, instruction induction, and expert model evaluation to efficiently generate high-quality preference data without human annotators. To verify the effectiveness of Safer-Instruct, we apply the pipeline to construct a safety preference dataset as a case study. Finetuning an Alpaca model on this synthetic dataset not only demonstrates improved harmlessness but also outperforms models fine-tuned on human-annotated safety preference data, all the while maintaining a competitive edge in downstream tasks. Importantly, our Safer-Instruct framework is versatile and can be applied to generate preference data across various domains, extending its utility beyond safety preferences. It addresses the challenges in preference data acquisition and advances the development of more capable and responsible AI systems. For dataset and code implementation, see https://github.com/uscnlp-lime/safer-instruct

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

↑