arXiv:2502.17787cs.CLcs.AI2025-02EMNLP被引 10

用迭代优化生成更符合真实需求的复杂指令

AIR: Complex Instruction Generation via Automatic Iterative Refinement

  • 通过文档生成初始指令,再用大模型自检迭代优化
  • 构建10,000条复杂指令数据集,显著提升模型理解力
  • 适合需要精准指令生成的应用场景,如智能助手

随着大语言模型的发展,其对简单指令的遵循能力已显著提升,但对复杂指令的遵循仍面临挑战。现有生成方法往往与当前指令需求无关,或存在可扩展性与多样性不足的问题。诸如回译等方法虽适用于简单指令生成,却未能充分利用大规模网络语料中的丰富内容与结构。本文提出一种新的自动迭代精炼框架AIR,用于生成带约束的复杂指令。该框架包含两个阶段:(1)从文档中生成初始指令;(2)通过大模型作为评判者,对比模型输出与原文,迭代优化指令以融入关键约束。最终,我们构建了包含10,000条复杂指令的AIR-10K数据集,并证明该方法生成的指令显著提升了大模型对复杂指令的理解与执行能力,优于现有指令生成方法。

原文摘要 · Abstract (English)

With the development of large language models, their ability to follow simple instructions has significantly improved. However, adhering to complex instructions remains a major challenge. Current approaches to generating complex instructions are often irrelevant to the current instruction requirements or suffer from limited scalability and diversity. Moreover, methods such as back-translation, while effective for simple instruction generation, fail to leverage the rich contents and structures in large web corpora. In this paper, we propose a novel automatic iterative refinement framework to generate complex instructions with constraints, which not only better reflects the requirements of real scenarios but also significantly enhances LLMs' ability to follow complex instructions. The AIR framework consists of two stages: (1)Generate an initial instruction from a document; (2)Iteratively refine instructions with LLM-as-judge guidance by comparing the model's output with the document to incorporate valuable constraints. Finally, we construct the AIR-10K dataset with 10K complex instructions and demonstrate that instructions generated with our approach significantly improve the model's ability to follow complex instructions, outperforming existing methods for instruction generation.

指令生成大模型迭代优化

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