ScopeIF: Improving Scope-Aware Precise Instruction-Following in Large Language Models via Graded Reward Modeling

Bosi Wen, Yilin Niu, Xiaoying Ning, Ying Zhang, Hongning Wang, Minlie HuangarXiv 2026

TL;DR

ScopeIF is a novel reinforcement learning (RL) framework designed to help Large Language Models (LLMs) master "scope-aware" instructions—constraints that apply to specific segments of a response rather than the entire text. By decomposing constraints into a unified schema and replacing sparse binary rewards with continuous "graded" rewards, ScopeIF enables mid-sized models like Qwen3-8B to outperform frontier models like Gemini-2.5-Pro on complex instruction-following benchmarks.

What Problem Does This Paper Address?

Precise instruction-following is the bedrock of reliable LLM applications, especially in agentic workflows where a single formatting error can break a downstream system. While current models handle global constraints well (e.g., "Write a 500-word essay"), they often stumble on scope-aware constraints that govern specific parts of a response (e.g., "In every paragraph discussing toxicity, do not use exclamation marks").

The authors identify two primary bottlenecks in existing methods:

  1. Data Scarcity: Most training datasets lack diverse, fine-grained constraints that target specific response segments.
  2. Sparse Supervision: Standard RL uses binary rewards (pass/fail). For complex instructions with multiple constraints, a model might satisfy 90% of the requirements but receive a reward of zero, providing no signal on how to improve the final 10%.

Methods

The ScopeIF framework introduces three synergistic innovations to bridge these gaps:

1. Unified Constraint Schema

The authors factorize every objective constraint into three decoupled dimensions:

  • Scope ($S$): The governed segment (e.g., the entire response, every paragraph, or the last two sentences).
  • Target ($T$): The measurable object (e.g., word count, presence of keywords, or JSON keys).
  • Range ($R$): The permissible bounds (e.g., "exactly 3," "between 80-120," or "prohibited").

2. Tool-Grounded Verification

To verify if a model followed a scope-aware instruction, the system must first isolate the correct segment and then count or check the target. ScopeIF uses a "judge" LLM to dynamically write and execute Python tools tailored to the response. This combines the flexibility of LLMs with the mathematical precision of code-based rules.

3. Graded Reward Modeling

Instead of a binary 0 or 1, ScopeIF calculates a continuous violation degree. If a constraint requires 100 words and the model produces 98, it receives a high partial reward rather than zero. These rewards are then hierarchically aggregated: the model gets a "discrete leap" in reward for every fully satisfied constraint, while the graded component provides dense supervision for the failures.

The ScopeIF framework: Data collection via factorized synthesis and policy optimization via graded reward modeling.

Datasets

The authors introduced SCOPEINSTRUCT, a large-scale dataset containing 17,968 training and 1,000 test instructions.

  • Construction: They generated atomic constraints by recombining dimensions from their schema and used "LLM-based crossover" to merge them into complex, multi-constraint instructions.
  • Evaluation: They tested ScopeIF on three public benchmarks: IFEval (global constraints), IFBench, and IFHierBench (complex scope-aware constraints).

Key Insights and Ideas

  • Scope Complexity is the Real Hurdle: Models perform best on "Global" scopes but their performance craters on "Nested" scopes (e.g., the final sentence of every paragraph). Figure 3 illustrates this performance decay as scope complexity increases.
  • Graded Rewards Solve Sparsity: By providing a signal for "near misses," the graded reward significantly reduces the number of rollout pairs that receive identical rewards, which is critical for effective RL optimization.
  • Hierarchical Aggregation Matters: Simply averaging graded rewards can lead to "reward misalignment" where a model might prefer partially satisfying many constraints over fully satisfying a few. The hierarchical approach ensures that full compliance is always the highest-rewarded outcome.
Performance across different scope categories, showing the increased difficulty of nested scopes.

Key Results

ScopeIF consistently outperformed DPO and standard RL baselines across all benchmarks:

  • Frontier Performance: Optimized Qwen3-8B models achieved an average score of 55.2%, surpassing Gemini-2.5-Pro (52.9%) and DeepSeek-V3.2 (46.9%).
  • Relative Gains: On the most challenging benchmarks (IFBench and IFHierBench), ScopeIF provided average relative improvements of 60.7% and 44.7% respectively over the base models.
  • Efficiency: The advantage was particularly pronounced for smaller models (4B), which are typically more sensitive to the sparse reward problem.

Limitations and Future Work

  • Synthetic Bias: The SCOPEINSTRUCT dataset relies heavily on Seed-2.0-Pro for generation, which may introduce model-specific biases.
  • Verification Overhead: The tool-grounded verification process (LLM judge + Python interpreter) adds significant computational cost during the training phase, though it does not affect inference speed.
  • Future Directions: The authors suggest exploring lightweight judge models and reusable verification tools to reduce training overhead.

Summary updated

BibTeX
@misc{wen2026scopeif,
  author = {Bosi Wen and Yilin Niu and Xiaoying Ning and Ying Zhang and Hongning Wang and Minlie Huang},
  title = {{ScopeIF: Improving Scope-Aware Precise Instruction-Following in Large Language Models via Graded Reward Modeling}},
  year = {2026},
  eprint = {2609.32189},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.32189},
}
Figure