arXiv:2410.06458cs.CLcs.AI2024-10EMNLP被引 42

提出DeCRIM框架,让大模型更好遵守多约束指令。

LLM Self-Correction with DeCRIM: Decompose, Critique, and Refine for Enhanced Following of Instructions with Multiple Constraints

  • 将指令拆解为约束项,用批判模型判断是否需修正。
  • 使Mistral在真实指令集上性能提升7.3%,弱反馈下超GPT-4。
  • 适合需要精准执行复杂指令的开发者与评测人员。

指令遵循是大模型的关键能力,但现有模型在包含多个约束的指令(如‘用幽默语气发布社交动态且不带标签’)上表现不佳。多数评估依赖合成数据,缺乏真实场景检验。为此,我们构建了首个真实指令基准RealInstruct,基于用户向AI助手提出的真实查询。同时探索模型自评作为低成本替代人工标注的方法。结果发现,即使顶级模型GPT-4也在超过21%的指令中未能满足至少一项约束。为缩小开源与闭源模型差距,我们提出分解-批判-优化(DeCRIM)自纠正流程:将原始指令拆分为约束列表,通过批判模型判断何时及何处需修正响应。实验表明,DeCRIM使Mistral在RealInstruct上提升7.3%,在IFEval上提升8.0%,即便使用弱反馈;强反馈下,开源模型性能甚至超越GPT-4。

原文摘要 · Abstract (English)

Instruction following is a key capability for LLMs. However, recent studies have shown that LLMs often struggle with instructions containing multiple constraints (e.g. a request to create a social media post "in a funny tone" with "no hashtag"). Despite this, most evaluations focus solely on synthetic data. To address this, we introduce RealInstruct, the first benchmark designed to evaluate LLMs' ability to follow real-world multi-constrained instructions by leveraging queries real users asked AI assistants. We also investigate model-based evaluation as a cost-effective alternative to human annotation for this task. Our findings reveal that even the proprietary GPT-4 model fails to meet at least one constraint on over 21% of instructions, highlighting the limitations of state-of-the-art models. To address the performance gap between open-source and proprietary models, we propose the Decompose, Critique and Refine (DeCRIM) self-correction pipeline, which enhances LLMs' ability to follow constraints. DeCRIM works by decomposing the original instruction into a list of constraints and using a Critic model to decide when and where the LLM's response needs refinement. Our results show that DeCRIM improves Mistral's performance by 7.3% on RealInstruct and 8.0% on IFEval even with weak feedback. Moreover, we demonstrate that with strong feedback, open-source LLMs with DeCRIM can outperform GPT-4 on both benchmarks.

指令遵循自纠错多约束真实数据

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。