arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.04153cs.CLcs.AI
收藏

UltraIF:推进来自真实场景的指令遵循

UltraIF: Advancing Instruction Following from the Wild

Peking University(北京大学);Tsinghua University(清华大学);Shanghai AI Lab(上海人工智能实验室)

Kaikai An, Li Sheng, Ganqu Cui, Shuzheng Si, Ning Ding, Yu Cheng, Baobao Chang

AI总结:

本文提出 UltraIF,通过分解真实提示、训练 UltraComposer 合成复杂指令并过滤回复,仅用 8B 模型即使 LLaMA-3.1-8B-Base 在 5 个基准上追平 instruct 版本。

摘要:

指令遵循使现代大语言模型(LLM)成为有用的助手。然而,让 LLM 掌握复杂指令的关键仍然神秘,因为开源社区训练的模型与领先公司训练的模型之间存在巨大差距。为弥合这一差距,我们提出了一种简单且可扩展的方法 UltraIF,用于利用开源数据构建能够遵循复杂指令的 LLM。UltraIF 首先将真实世界用户提示分解为更简单的查询、约束以及对应于这些约束的评估问题。随后,我们训练一个 UltraComposer,用评估问题组合与约束相关的提示。该提示组合器使我们能够合成复杂指令,并利用评估问题过滤回复。在实验中,我们首次在不使用任何基准信息的情况下,仅使用 8B 模型作为回复生成器和评估器,成功使 LLaMA-3.1-8B-Base 对齐,在 5 个指令遵循基准上追平其 instruct 版本。对齐后的模型在其他基准上也取得了具有竞争力的分数。此外,我们还表明 UltraIF 可以通过自对齐进一步改进 LLaMA-3.1-8B-Instruct,从而激发该方法更广泛的用例。我们的代码可在 https://github.com/kkk-an/UltraIF 获取。

英文摘要:

Instruction-following made modern large language models (LLMs) helpful assistants. However, the key to taming LLMs on complex instructions remains mysterious, for that there are huge gaps between models trained by open-source community and those trained by leading companies. To bridge the gap, we propose a simple and scalable approach UltraIF for building LLMs that can follow complex instructions with open-source data. UltraIF first decomposes real-world user prompts into simpler queries, constraints, and corresponding evaluation questions for the constraints. Then, we train an UltraComposer to compose constraint-associated prompts with evaluation questions. This prompt composer allows us to synthesize complicated instructions as well as filter responses with evaluation questions. In our experiment, for the first time, we successfully align LLaMA-3.1-8B-Base to catch up with its instruct version on 5 instruction-following benchmarks without any benchmark information, using only 8B model as response generator and evaluator. The aligned model also achieved competitive scores on other benchmarks. Moreover, we also show that UltraIF could further improve LLaMA-3.1-8B-Instruct through self-alignment, motivating broader use cases for the method. Our code is available at https://github.com/kkk-an/UltraIF.

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

↑