NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

UltraIF: Advancing Instruction Following from the Wild

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

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.

Introduction

While modern Large Language Models (LLMs) serve as capable assistants, a significant performance gap persists between open-source models and top-tier proprietary systems when handling complex, multi-constraint instructions. Existing alignment methods often struggle with a trade-off between the high cost of human annotation and the quality issues of automated evolution methods, which can produce unverified or "hallucinated" constraints.

UltraIF addresses this by leveraging "wild" data—real-world user prompts—and introducing a rigorous automated verification layer. This approach enables open-source models to achieve state-of-the-art instruction-following performance using only scalable, synthesized data.

Methodology: The UltraIF Framework

The UltraIF framework consists of two primary stages designed to transform simple queries into complex, verifiable instructions.

1. Training the UltraComposer

The process begins with Instruction Decomposition. High-quality instructions from datasets like ShareGPT are broken down into three components:

  • Simplified Queries: The core task.
  • Constraints: Specific requirements such as tone, length, or format.
  • Evaluation Questions: Natural language questions used to verify if a constraint is met (e.g., "Is the response written in the style of a pirate?").

A specialized model, the UltraComposer, is then trained to perform the inverse: taking a simplified query and synthesizing a complex, constraint-heavy instruction alongside its corresponding evaluation questions.

2. Generate-then-Evaluate

With the UltraComposer, data production is scaled through a "Generate-then-Evaluate" pipeline. The composer generates diverse instructions, and a response generator produces multiple candidates. Instead of relying on a generic global reward score, UltraIF uses the specific evaluation questions to filter responses via Rejection Sampling or to create preference pairs for Direct Preference Optimization (DPO).

The UltraIF framework: (1) UltraComposer training through instruction decomposition and (2) the Generate-then-Evaluate pipeline for scalable data synthesis.

Key Results and Insights

UltraIF demonstrates that base models possess significant latent instruction-following capabilities that can be unlocked through iterative self-improvement.

Benchmark Performance

In experiments using LLaMA-3.1-8B-Base, the UltraIF-aligned model achieved a score of 71.35 on the IFEval (Strict Prompt) benchmark, surpassing the official LLaMA-3.1-8B-Instruct score of 69.13. It also outperformed existing automated alignment baselines like AutoIF and Evol-Instruct across multiple benchmarks, including a +6.8% improvement on InfoBench.

Performance comparison of UltraIF against baselines on IFEval and Multi-IF benchmarks, showing significant improvements over base and instruct versions.

Core Insights

  • Decomposition as Structure: Breaking instructions into atomic constraints allows the model to learn the underlying structure of instruction-following rather than just memorizing patterns.
  • Verifiability: Finer-grained signals from per-constraint evaluation questions provide a more robust training signal for DPO than global scores.
  • Efficiency: By generating evaluation questions alongside prompts, UltraIF reduces the need for separate, computationally expensive "critic" models.
  • Stability: To handle the increased complexity in later training iterations, the authors utilized Noise Contrastive Estimation (NCA) to stabilize DPO training dynamics.

Conclusion

UltraIF provides a scalable path for bridging the gap between open-source and proprietary LLMs. By focusing on verifiable constraints derived from real-world data, it enables smaller models to match or exceed the performance of their officially tuned counterparts. Future research may explore scaling this method to larger parameter models and further refining automated evaluation to handle more subjective constraints.

Summary updated

BibTeX
@inproceedings{an2025ultraif,
  author = {Kaikai An and Li Sheng and Ganqu Cui and Shuzheng Si and Ning Ding and Yu Cheng and Baobao Chang},
  title = {{UltraIF: Advancing Instruction Following from the Wild}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
}
Figure