UltraIF: Advancing Instruction Following from the Wild

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: An, Kaikai, Sheng, Li, Cui, Ganqu, Si, Shuzheng, Ding, Ning, Cheng, Yu, Chang, Baobao
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911180305465344
author An, Kaikai
Sheng, Li
Cui, Ganqu
Si, Shuzheng
Ding, Ning
Cheng, Yu
Chang, Baobao
author_facet An, Kaikai
Sheng, Li
Cui, Ganqu
Si, Shuzheng
Ding, Ning
Cheng, Yu
Chang, Baobao
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_04153
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle UltraIF: Advancing Instruction Following from the Wild
An, Kaikai
Sheng, Li
Cui, Ganqu
Si, Shuzheng
Ding, Ning
Cheng, Yu
Chang, Baobao
Computation and Language
Artificial Intelligence
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.
title UltraIF: Advancing Instruction Following from the Wild
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2502.04153