Conifer: Improving Complex Constrained Instruction-Following Ability of Large Language Models

Haoran Sun, Lixin Liu, Junjie Li, Fengyu Wang, Baohua Dong, Ran Lin, Ruohui HuangarXiv 2024 · DOI

Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities in general instruction following. However, they often struggle when tasks involve multiple, fine-grained constraints—such as specific word counts, formatting requirements, or lexical restrictions. While proprietary models like GPT-4 handle these better, smaller open-source models frequently fail to adhere to all specified rules simultaneously. This performance gap stems from standard instruction-tuning datasets focusing on general helpfulness rather than rigorous constraint satisfaction. To address this, we introduce Conifer, a framework designed to enhance the complex instruction-following abilities of LLMs through a specialized data generation pipeline and a progressive learning strategy.

Methods: The Conifer Framework

The Conifer approach consists of two primary components: a multi-stage data generation pipeline and a progressive learning scheme.

Data Generation Pipeline

Instead of direct complex prompt generation, Conifer employs a decomposed workflow to ensure high-quality synthetic data:

  • Query Reframing: Seed queries from ShareGPT are rewritten into diverse forms.
  • Constraint Generation: Potential constraints are identified based on the query's subjects and objects.
  • Recombination: Constraints are systematically added to instructions across five escalating difficulty levels.
  • Filtering: A two-stage process using GPT-4 ensures the generated instructions are high-quality and solvable.

Progressive Learning Strategy

To effectively train smaller models, Conifer utilizes an "easy-to-hard" curriculum. Data is organized into multi-turn conversations where the model addresses the same core task with increasing constraints. Furthermore, the framework incorporates process feedback—both internal (self-explanation) and external (critique and correction from GPT-4)—to teach the underlying logic of constraint satisfaction.

The Conifer data generation pipeline and progressive learning strategy.

Evaluation and Results

We evaluated Conifer-tuned models on three rigorous benchmarks: IFEval (lexical/formatting constraints), FollowBench (multi-level difficulty), and InFoBench (decomposed criteria).

As shown in the results table below, Conifer-7B-DPO significantly outperforms its base models and even exceeds the performance of much larger models. Notably, it achieved a score of 52.3 on IFEval, surpassing Qwen-72B-Chat (50.8) and LLaMA-2-70B-Chat. On the most challenging tier of FollowBench (Level 5), Conifer-7B-DPO reached a 41.0% success rate, demonstrating superior mastery of complex tasks compared to models ten times its size.

Performance comparison of Conifer models against baselines across multiple instruction-following benchmarks.

Beyond constraint-following, Conifer maintains strong general conversational performance, as evidenced by its competitive scores on MT-Bench (7.25) and AlpacaEval 2.0.

Conclusion

Conifer demonstrates that specialized data synthesis and curriculum-based training can enable smaller LLMs to achieve state-of-the-art performance in complex instruction following. By decomposing the reasoning process and learning from feedback, models like Conifer-7B-DPO can "punch up," rivaling or exceeding the capabilities of significantly larger proprietary and open-source models. Future work will explore scaling these techniques to larger model families and expanding the diversity of supported constraints.

Summary updated

BibTeX
@misc{sun2024conifer,
  author = {Haoran Sun and Lixin Liu and Junjie Li and Fengyu Wang and Baohua Dong and Ran Lin and Ruohui Huang},
  title = {{Conifer: Improving Complex Constrained Instruction-Following Ability of Large Language Models}},
  year = {2024},
  eprint = {2404.02823},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.02823},
}
Figure