Off-Context GRPO: Learning to Reason on Hard Problems using Privileged Information

Priyank Agrawal, Ankur Samanta, Shervin Ghasemlou, Boris Vidolov, Jalaj Bhandari, Kavosh Asadi, Daniel Jiang, Aditya ModiarXiv 2026

TL;DR

Reinforcement learning with verifiable rewards (RLVR) often fails on exceptionally hard reasoning problems because models cannot generate any correct answers to learn from—a phenomenon known as the "learning cliff." This paper introduces Off-Context GRPO (OC-GRPO), a method that uses privileged guidance (like solution prefixes) during training to jumpstart exploration, while mathematically correcting for the resulting prompt distribution mismatch via importance sampling. This simple modification yields a 13.8% relative improvement on mathematical reasoning benchmarks over vanilla GRPO with negligible additional computational cost.

What Problem Does This Paper Address?

Large Language Models (LLMs) are increasingly trained using Reinforcement Learning with Verifiable Rewards (RLVR), where an external verifier (like a compiler or math checker) provides binary feedback on correctness. Group Relative Policy Optimization (GRPO) is a dominant algorithm in this space, relying on the variance of rewards within a group of model generations to compute advantages and update the policy.

However, when facing highly complex problems, the model might fail every single rollout in a group. When all rewards are uniformly zero, the within-group variance collapses, providing absolutely no gradient signal. The model gets stuck on a learning cliff.

To escape this cliff, researchers often inject "privileged guidance" (such as hints or solution prefixes) into the prompt during training to make correct answers reachable. But this creates an off-context problem: the model learns to solve problems using hints it will never see at deployment time. Existing methods ignore this distribution mismatch, which can lead to misaligned objectives, biased gradients, or training instability.

Methods

The authors propose Off-Context GRPO (OC-GRPO) to resolve the off-context problem using a principled importance sampling correction.

Instead of treating guided rollouts as if they came from the target deployment distribution, OC-GRPO reweights the per-token advantages by the importance ratio between the unguided policy (the target distribution at deployment) and the guided policy (the behavior distribution during training):

$$\rho_{i,t}^{oc}(\theta) = \frac{\pi_\theta(y_{i,t} \mid x, y_{i,<t})}{\pi_{\theta_{\text{old}}}(y_{i,t} \mid g(x), y_{i,<t})}$$

Where $x$ is the original unguided prompt and $g(x)$ is the guided prompt containing privileged information.

Overview of Off-Context GRPO compared to standard GRPO

The authors evaluate two implementation strategies:

  1. OC-GRPO-Fixed: Determines the minimum required guidance level (e.g., a 20%, 40%, or 60% solution prefix) using the base model before training starts, keeping it fixed throughout.
  2. OC-GRPO-Adaptive: Dynamically adjusts the guidance level during training if the model fails all unguided rollouts at a specific step.
Comparison of GRPO variants along key architectural axes

Datasets

  • MATH dataset: Used to construct the hard training set. The authors filtered for intermediate-to-advanced problems (Levels 3–5) where all 64 rollouts from the base model failed, resulting in 595 hard training problems.
  • Evaluation Benchmarks: AIME (1983–2026), Gaokao2023, OmniMath, OlympiadBench, and Minerva were used to evaluate generalization performance on unseen, challenging mathematical reasoning tasks.

Key Insights and Ideas

  • Behavior-Aware Credit Assignment: The importance sampling ratio acts as an automatic, intuitive credit-assignment mechanism. If a model achieves a correct answer but relied heavily on a large hint, the correction dampens the positive credit. Conversely, if the model fails despite receiving a helpful hint, it draws an amplified penalty. This forces the model to learn genuine problem-solving rather than simple hint-following.
  • Variance Control via Shortest Guidance: The authors prove that the variance of the importance correction scales with the length of the guidance prefix, not the total rollout length. This yields a clear design principle: use the shortest possible guidance that breaks the learning cliff.
  • Capacity-Dependent Back-Generalization: Larger models (e.g., 7B parameters) can sometimes tolerate the objective mismatch of uncorrected guided training through empirical "back-generalization." However, smaller models (1.5B and 3B parameters) lack the capacity to absorb this mismatch, making the off-context correction absolutely critical at smaller scales.
Solution prefixes unlocking hard problems as guidance level increases

Key Results

  • Performance Gains: On Qwen2.5-7B-Instruct, OC-GRPO-Fixed achieved a 31.7% average Pass@1 across math benchmarks, representing a 13.8% relative gain over vanilla GRPO (27.8%) and outperforming uncorrected guided baselines like POPE (30.3%).
  • Robustness at Scale: At smaller scales (3B and 1.5B), uncorrected guided baselines degraded below vanilla GRPO due to the off-context mismatch. In contrast, OC-GRPO maintained consistent improvements (+7.2% at 3B and +10.2% at 1.5B over vanilla GRPO).
  • Prevention of Training Collapse: The importance correction successfully prevented the reward collapse and gradient norm spikes that typically plague uncorrected off-context training.

Limitations and Future Work

  • Scale and Scope: The evaluation was limited to academic scales (up to 7B parameters) using LoRA adapters on a small cluster; behavior at frontier scale remains to be verified.
  • Domain Specificity: The experiments focused exclusively on mathematical reasoning with verifiable binary rewards. Generalization to code generation, agentic tool-use, or multimodal reasoning is left for future work.
  • Guidance Quality: The study primarily relied on clean, ground-truth solution prefixes. How the algorithm handles partial, noisy, or adversarial guidance remains an open question.

Summary updated

BibTeX
@misc{agrawal2026off,
  author = {Priyank Agrawal and Ankur Samanta and Shervin Ghasemlou and Boris Vidolov and Jalaj Bhandari and Kavosh Asadi and Daniel Jiang and Aditya Modi},
  title = {{Off-Context GRPO: Learning to Reason on Hard Problems using Privileged Information}},
  year = {2026},
  eprint = {2607.19313},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.19313},
}
Figure