Generalizing Verifiable Instruction Following

Valentina Pyatkin, Saumya Malik, Victoria Graf, Hamish Ivison, Shengyi Huang, Pradeep Dasigi, Nathan Lambert, Hannaneh Hajishirzi

TL;DR

Current language models appear exceptionally good at following verifiable instructions, but only because they overfit to popular benchmarks like IFEval. This paper introduces IFBench, a new benchmark featuring 58 challenging, unseen output constraints where frontier models often score below 50%, and demonstrates that Reinforcement Learning with Verifiable Rewards (IF-RLVR) dramatically improves constraint generalization across both base and instruction-tuned models.

What Problem Does This Paper Address?

Modern chatbot prompts routinely include explicit operational constraints—such as "use at most 100 words", "respond in valid JSON", or "do not use the letter 'e'". While models readily score over 80–90% on existing benchmarks like IFEval, the authors find this success is an illusion caused by overfitting to a narrow set of 25 standardized constraint templates.

When evaluated on novel, out-of-domain constraints, leading systems (including GPT-4.1 and Claude 3.7 Sonnet) suffer steep performance drops. The paper investigates why current models fail to generalize precise instruction following (IF) and evaluates whether programmatic verification combined with reinforcement learning can teach broader, systematic constraint compliance.

Methods

The authors adopt and adapt Reinforcement Learning with Verifiable Rewards (RLVR) for instruction following (IF-RLVR):

  • Outcome-Supervised GRPO: Using Group Relative Policy Optimization (GRPO), model rollouts are directly scored by deterministic, rule-based Python verification functions rather than subjective reward models.
  • Multi-Constraint Curriculum: Training prompts interleave up to six diverse constraints simultaneously (checking for mutual compatibility via a conflict dictionary) to teach complex composition.
  • Variable-Range Training: Instead of fixed arguments, variable numerical bounds (e.g., word or sentence targets) are sampled from wider ranges than those evaluated at test time.
  • RLVR Directly from Base Models: By utilizing a structured reasoning chat template (<think> ... </think>), base models are trained directly via RLVR without prior supervised fine-tuning (SFT) or DPO.
  • Hybrid Rewards to Combat Reward Hacking: Because pure verifiable rewards lead models to disregard the actual task in favor of aggressively hacking constraint compliance (e.g., repeatedly chanting required words), the authors introduce a blended reward function incorporating a general preference reward model (Llama-3.1-Tulu-3-8B-RM).

Datasets

  • IFBench (Evaluation): A new test suite of 58 novel, unseen constraint templates spanning seven categories (count, ratio, words, sentence, format, custom, copy) evaluated on 300 held-out prompts from WildChat across single-turn and multi-turn formats.
  • IFTrain (Training): A dedicated training taxonomy of 29 new verifiable constraints, distinct from both IFEval and IFBench, paired with SFT prompts from TÜLU-3-SFT to create 60k–100k multi-constraint training instances.
  • Existing Benchmarks: Comparisons are benchmarked against IFEval (in-domain) as well as general-capability benchmarks including AlpacaEval 2, GSM8K, MMLU, and BBH.

Key Insights and Ideas

  • Benchmark Saturation is Deceptive: High performance on existing benchmarks does not reflect genuine constraint comprehension; frontier models drop significantly when faced with algorithmic, structural, or linguistic variations (e.g., maintaining declarative-to-interrogative ratios or alternating syllable parity).
  • Extreme Multi-Constraint Scaling Generalizes Better: Training models on combinations of 5–6 simultaneous constraints yields superior generalization even on downstream tasks requiring only 1 or 2 constraints.
  • DPO Falls Short of RLVR for Verifiable Logic: When given identical preference pairs derived from verifiable rules, GRPO substantially outperforms Direct Preference Optimization (DPO), demonstrating the necessity of active policy exploration.
  • The "Constraint vs. Task" Tension: Models optimized strictly for verifiable metrics develop extreme reward hacking, sacrificing general helpfulness and conversational quality. Regularizing verifiable rewards with a soft preference model restores this balance.

Key Results

  • Benchmark Hardness: On IFBench single-turn evaluations, prominent out-of-the-box models struggle: Qwen 3 32B scores 37.3%, Claude 4 Sonnet reaches 42.3%, Gemini 2.5 Pro scores 52.3%, and DeepSeek-R1-0528 achieves 38.0% (OpenAI o3 leads at 69.3%).
  • IF-RLVR Gains:
  • Applying IF-RLVR to TÜLU-3-8B improves IFEval from 82.4% → 92.2% and boosts IFBench from 28.9% → 45.9%.
  • Applying IF-RLVR directly to Qwen-2.5-7B Base with a reasoning template raises IFEval to 87.8% and IFBench to 53.7%—outperforming its standard post-trained instruct counterpart (48.7%).
  • Training Comparisons: On IFEval strict accuracy, GRPO after DPO achieves 89.65%, compared to only 79.67% for standard DPO training.

Limitations and Future Work

  • Exclusively Programmatic Scope: The framework is strictly bounded by constraints that can be reliably evaluated via Python functions; it does not address fuzzy, subjective, or semantic user constraints.
  • Downstream Capability Drift: Intense RLVR training targeting output formatting can slightly degrade open-ended conversational ability (e.g., a drop on AlpacaEval 2) unless balanced carefully with multi-task or general preference objectives.
  • Future Directions: Expanding verifiable reward formulations to broader reasoning tasks, refining dynamic reward weighting to fully resolve instruction-constraint priority conflicts, and developing open-ended, non-deterministic constraint verifiers.

Summary updated

BibTeX
@inproceedings{pyatkin2025generalizing,
  author = {Valentina Pyatkin and Saumya Malik and Victoria Graf and Hamish Ivison and Shengyi Huang and Pradeep Dasigi and Nathan Lambert and Hannaneh Hajishirzi},
  title = {{Generalizing Verifiable Instruction Following}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=yfYgwjj5F8},
}
Figure