arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.12207cs.AIcs.LG
收藏

划分-验证-细化:大语言模型能否与复杂指令自我对齐?

Divide-Verify-Refine: Can LLMs Self-Align with Complex Instructions?

The Pennsylvania State University(宾夕法尼亚州立大学);Amazon(亚马逊公司)

Xianren Zhang, Xianfeng Tang, Hui Liu, Zongyu Wu, Qi He, Dongwon Lee, Suhang Wang

AI总结:

针对大语言模型难以遵循复杂指令的问题,提出划分-验证-细化框架,通过工具验证和动态少样本提示提升约束遵守率,使Llama3.1-8B和Mistral-7B性能显著提升。

摘要:

近期研究表明,大语言模型在处理涉及多重约束(如长度、格式、情感)的复杂指令时存在困难。现有工作通过微调来解决此问题,但微调严重依赖微调数据的质量,且计算成本高昂。另一种方法是利用大语言模型的自我纠正能力来细化响应,以更好地遵守约束。然而,这种方法受限于反馈质量,因为大语言模型无法生成可靠的反馈或检测错误。此外,其有效性依赖于展示响应修改的少样本示例。由于复杂指令中的约束多种多样,为每种约束类型手动制作此类示例可能劳动密集且次优。为解决这两个挑战,我们提出了划分-验证-细化(DVR)框架,包含三个步骤:(1)将复杂指令划分为单一约束并准备适当的工具;(2)使用提供严格检查和文本指导的工具(如用于格式检查的Python工具包或用于内容分析的预训练分类器)验证响应;(3)细化:为最大化细化效果,我们提出动态少样本提示,其中细化存储库收集成功的细化示例,并选择性检索这些示例用于未来的细化。鉴于现有数据集缺乏复杂性,我们创建了一个新的复杂指令数据集。DVR使Llama3.1-8B的约束遵守率翻倍,并使Mistral-7B的性能提升三倍。

英文摘要:

Recent studies show LLMs struggle with complex instructions involving multiple constraints (e.g., length, format, sentiment). Existing works address this issue by fine-tuning, which heavily relies on fine-tuning data quality and is computational expensive. An alternative is leveraging LLMs' self-correction to refine responses for better constraint adherence. However, this is limited by the feedback quality, as LLMs cannot generate reliable feedback or detect errors. Moreover, its effectiveness relies on few-shot examples illustrating response modifications. As constraints in complex instructions are diverse, manually crafting such examples for each constraint type can be labor-intensive and sub-optimal. To address these two challenges, we propose the Divide-Verify-Refine (DVR) framework with three steps: (1) Divide complex instructions into single constraints and prepare appropriate tools; (2) Verify responses using tools that provide rigorous check and textual guidance (e.g., Python toolkit for format checks or pre-trained classifiers for content analysis); (3) Refine: To maximize refinement effectiveness, we propose dynamic few-shot prompting, where a refinement repository collects successful refinements, and these examples are selectively retrieved for future refinements. Recognizing the lack of complexity in existing datasets, we create a new dataset of complex instructions. DVR doubles Llama3.1-8B's constraint adherence and triples Mistral-7B's performance.

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

↑