UltraIF: Advancing Instruction Following from the Wild

Kaikai An, Li Sheng, Ganqu Cui, Shuzheng Si, Ning Ding +2 more
2/6/2025
cs.CLcs.AI

Official code: kkk-an/UltraIF (21 stars, last commit 2025-04-03).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

kkk-an/UltraIFOfficial100%

Code of EMNLP 2025 paper 'UltraIF: Advancing Instruction Following from the Wild'.

211Shell, PythonFeb 25, 20251 years ago

Similar Papers

Cite this paper

@article{an2025ultraif,
  title  = {UltraIF: Advancing Instruction Following from the Wild},
  author = {Kaikai An and Li Sheng and Ganqu Cui and Shuzheng Si and Ning Ding and Yu Cheng and Baobao Chang},
  year   = {2025},
  eprint = {2502.04153},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.04153v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.04153.svg)](https://codeofpaper.com/paper/2502.04153)

Discussion