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

RECAST: Expanding the Boundaries of LLMs' Complex Instruction Following with Multi-Constraint Data

Zhengkang Guo, Wenhao Liu, Mingchen Xie, Jingwen Xu, Zisu Huang, Muzhao Tian, Jianhan Xu, Yuanzhe Shen, Qi Qian, Muling Wu, Xiaohua Wang, Heda Wang, Yao Hu, Changze Lv, Xuanjing Huang, Xiaoqing Zheng

The "Complexity Ceiling" in Instruction Following

While Large Language Models (LLMs) are remarkably adept at following simple directions, their performance often plummets as instructions become more crowded. If you ask a model to write a summary that is exactly three paragraphs, uses a formal tone, avoids the word "however," includes a specific legal citation, and formats the output as a JSON object, it will likely miss at least one of those rules.

Most existing research and datasets focus on "simple" complexity—usually 3 to 5 constraints per prompt. In real-world enterprise or legal settings, however, models often need to navigate dozens of rules simultaneously. We currently lack both the high-density datasets needed to train models for these scenarios and the scalable benchmarks required to evaluate them.

An example of a complex instruction with multiple constraints alongside charts demonstrating the performance drop of baseline models as complexity increases and the improvements gained through RECAST.

To address this gap, researchers introduce RECAST, a new framework designed to push LLMs past this complexity ceiling. By mining real-world data to create prompts with upwards of 15+ simultaneous constraints and using automated validators as reinforcement learning rewards, the authors successfully trained 8B-parameter models that can outperform 70B-parameter giants on intricate, multi-rule tasks.

The RECAST Framework: Mining Over Hallucinating

The RECAST pipeline moves away from the standard approach of simply prompting an LLM to "write a hard prompt." Instead, it utilizes a four-step "mining" process to ensure the data is realistic and the constraints are actually achievable:

  1. Seed Collection: The process begins with high-quality human or AI response pairs.
  2. Constraint Extraction: Instead of inventing rules from scratch, the system analyzes the existing response to identify what rules it already satisfies. It uses Rule-based extractors (Python scripts) for objective criteria like word count or JSON formatting, and Model-based extractors (LLMs) for subjective qualities like "politeness" or "formal tone."
  3. Instruction Enhancement: These extracted constraints are woven back into the original simple prompt. This creates a hyper-complex instruction that is guaranteed to be "solvable" because a compliant response already exists.
  4. Reinforcement Learning with Verifiable Constraints (RLVC): Because every constraint has an associated validator, the framework can provide "partial credit" rewards during training. Using Group Relative Policy Optimization (GRPO), the reward is calculated as the average satisfaction rate across all constraints in a prompt.
The RECAST framework pipeline, illustrating the extraction of constraints from seed data, instruction enhancement, and the subsequent SFT and RLVC training stages.

Datasets and Benchmarks

Using this pipeline, the authors generated RECAST-30K, a new training dataset of approximately 30,000 instances. While standard datasets average 3–5 constraints, RECAST-30K averages 13.4 constraints per prompt, with some exceeding 30.

To evaluate performance, they introduced RECAST-Test, a hierarchical benchmark with four difficulty levels (Basic to Comprehensive) to measure how models degrade as rules are added. The models were also tested on external benchmarks like IFEval and FollowBench to ensure the learned skills generalized beyond the new dataset.

Key Results and Insights

  • Small Models, Big Performance: A Llama-3.1-8B model fine-tuned on RECAST-30K outperformed the much larger Llama-3.3-70B-Instruct and GPT-4o on the most complex levels of the RECAST-Test benchmark.
  • The Power of Fine-Grained Rewards: Most Reinforcement Learning from Human Feedback (RLHF) uses a single holistic score. RECAST’s RLVC approach provides a much clearer gradient for the model to learn from (e.g., "You got 12 out of 15 rules right; here are the three you missed"). Adding this RLVC stage on top of standard Supervised Fine-Tuning (SFT) provided a consistent 1-2% gain in constraint satisfaction rates.
  • Complexity as a General Skill: Surprisingly, training models on these hyper-complex instructions did not hurt their general reasoning or knowledge (as tested via GPQA). Furthermore, the RECAST-trained models achieved state-of-the-art results on the IFEval benchmark for their size class, proving they learned the underlying logic of following rules rather than just memorizing the RECAST format.

Limitations and Future Work

While highly effective, the framework has a few limitations. Rule-based validators are 100% accurate, but LLM-based validators for subjective traits (like tone) are only about 90% consistent with humans, introducing occasional noise into the RL process. Additionally, the current system uses binary rewards (pass/fail) for constraints; future work could explore "graded" rewards for smoother learning signals. Finally, as constraint counts grow, models might increasingly benefit from "Chain-of-Thought" (CoT) reasoning—a planning step to map out how to satisfy all rules before generating the final response.

Summary updated

BibTeX
@inproceedings{guo2026recast,
  author = {Zhengkang Guo and Wenhao Liu and Mingchen Xie and Jingwen Xu and Zisu Huang and Muzhao Tian and Jianhan Xu and Yuanzhe Shen and Qi Qian and Muling Wu and Xiaohua Wang and Heda Wang and Yao Hu and Changze Lv and Xuanjing Huang and Xiaoqing Zheng},
  title = {{RECAST: Expanding the Boundaries of LLMs' Complex Instruction Following with Multi-Constraint Data}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=90tCp2KszA},
}
Figure