2025-02-07 · 进阶 · 自然语言处理 · 机器学习

UltraIF: Advancing Instruction Following from the Wild

ULTRAIF通过分解用户指令并训练一个合成器模型,实现了利用开源数据构建能够遵循复杂指令的大型语言模型。

更新于 2025-02-07。作者:Kaikai An、Li Sheng、Ganqu Cui、Shuzheng Si、Ning Ding、Yu Cheng、Baobao Chang。

中文摘要

指令遵循使现代大型语言模型(LLMs)成为有用的助手。然而,在复杂指令上驯服LLMs的关键仍然是个谜,因为开源社区训练的模型与领先公司训练的模型之间存在巨大差距。为了弥合这一差距,我们提出了一种简单且可扩展的方法UltraIF,用于利用开源数据构建能够遵循复杂指令的LLMs。UltraIF首先将现实世界的用户提示分解成更简单的查询、约束以及对应的约束评估问题。然后,我们训练了一个UltraComposer来组合与评估问题相关的约束提示。这个提示合成器使我们能够综合复杂的指令,并通过评估问题过滤响应。在我们的实验中,我们首次成功地将LLaMA-3.1-8B-Base与它的指令版本在5个指令遵循基准上对齐,以跟上其指令版本,而无需任何基准信息,仅使用8B模型作为响应生成器和评估器。对齐后的模型在其他基准上也取得了有竞争力的分数。此外,我们还展示了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 will be available at https://github.com/kkk-an/UltraIF.

解读

一句话总结

ULTRAIF通过分解用户指令并训练一个合成器模型,实现了利用开源数据构建能够遵循复杂指令的大型语言模型。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源