arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.19371cs.CL
收藏

Suri:面向长文本生成的多约束指令遵循

Suri: Multi-constraint Instruction Following for Long-form Text Generation

University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校);NVIDIA(英伟达)

Chau Minh Pham, Simeng Sun, Mohit Iyyer

AI总结:

本文构建含复杂约束的长文本数据集 Suri,并提出利用合成损坏指令提供负反馈的 I-ORPO 对齐方法,使 7B 模型在保持质量的同时生成约 5K tokens 且更受人类偏好。

摘要:

现有关于指令遵循的研究主要集中在具有简单指令和短回复的任务上。在本工作中,我们探索用于生成长文本的多约束指令遵循。我们创建了 Suri,这是一个包含 2 万篇人工撰写长文本的数据集,并配有由 LLM 生成的、包含多个复杂约束的回译指令。由于收集关于长文本的人类偏好判断存在难以承受的挑战,DPO 等偏好微调算法在我们的场景中不可行;因此,我们提出 Instructional ORPO(I-ORPO),这是一种基于 ORPO 算法的对齐方法。I-ORPO 并非从不受偏好的回复中获得负反馈,而是从 LLM 生成的合成损坏指令中获得负反馈。利用 Suri,我们在 Mistral-7b-Instruct-v0.2 上执行监督微调和 I-ORPO 微调。所得模型 Suri-SFT 和 Suri-I-ORPO 生成的文本(约 5K tokens)显著长于基础模型,且质量没有显著下降。我们的人工评估表明,尽管 SFT 和 I-ORPO 模型都能满足大多数约束,但 Suri-I-ORPO 的生成通常因连贯且信息丰富地融入约束而更受偏好。我们在 https://github.com/chtmp223/suri 发布代码。

英文摘要:

Existing research on instruction following largely focuses on tasks with simple instructions and short responses. In this work, we explore multi-constraint instruction following for generating long-form text. We create Suri, a dataset with 20K human-written long-form texts paired with LLM-generated backtranslated instructions that contain multiple complex constraints. Because of prohibitive challenges associated with collecting human preference judgments on long-form texts, preference-tuning algorithms such as DPO are infeasible in our setting; thus, we propose Instructional ORPO (I-ORPO), an alignment method based on the ORPO algorithm. Instead of receiving negative feedback from dispreferred responses, I-ORPO obtains negative feedback from synthetically corrupted instructions generated by an LLM. Using Suri, we perform supervised and I-ORPO fine-tuning on Mistral-7b-Instruct-v0.2. The resulting models, Suri-SFT and Suri-I-ORPO, generate significantly longer texts (~5K tokens) than base models without significant quality deterioration. Our human evaluation shows that while both SFT and I-ORPO models satisfy most constraints, Suri-I-ORPO generations are generally preferred for their coherent and informative incorporation of the constraints. We release our code at https://github.com/chtmp223/suri.

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

↑