通过逆向添加约束提升大模型复杂指令遵循能力
Constraint Back-translation Improves Complex Instruction Following of Large Language Models
- 从高质量数据中逆向添加复杂约束生成新训练数据
- 在多个基准上显著提升主流大模型的复杂指令遵循能力
- 方法低成本低噪声,适合需要精准指令理解的研究
大语言模型在遵循格式、长度等复杂约束的指令时表现不佳。传统方法依赖先进大模型生成复杂指令-响应对,但其自身也难以准确遵循复杂指令,导致数据质量受限。本文发现现有数据集已隐含复杂约束,提出约束逆向翻译(constraint back-translation)技术:仅用先进大模型将原响应已满足的复杂约束反向添加到指令中,自然降低生成成本与数据噪声。实验使用 Llama3-70B-Instruct 构建高质量复杂指令-响应数据集 CRAB,基于该数据集进行后训练,显著提升多个主干大模型在广泛指令遵循基准上的表现。进一步发现该方法也可作为后训练中的有效辅助目标。代码、数据与模型将公开以促进后续研究。
原文摘要 · Abstract (English)
Large language models (LLMs) struggle to follow instructions with complex constraints in format, length, etc. Following the conventional instruction-tuning practice, previous works conduct post-training on complex instruction-response pairs generated by feeding complex instructions to advanced LLMs. However, even advanced LLMs cannot follow complex instructions well, thus limiting the quality of generated data. In this work, we find that existing datasets inherently contain implicit complex constraints and propose a novel data generation technique, constraint back-translation. Specifically, we take the high-quality instruction-response pairs in existing datasets and only adopt advanced LLMs to add complex constraints already met by the responses to the instructions, which naturally reduces costs and data noise. In the experiments, we adopt Llama3-70B-Instruct to back-translate constraints and create a high-quality complex instruction-response dataset, named CRAB. We present that post-training on CRAB improves multiple backbone LLMs' complex instruction-following ability, evaluated on extensive instruction-following benchmarks. We further find that constraint back-translation also serves as a useful auxiliary training objective in post-training. Our code, data, and models will be released to facilitate future research.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。