Group Relative Policy Optimization (GRPO) has emerged as an effective method for training reasoning models. While it computes advantages based on group mean, GRPO treats each output as an independent sample during the optimization and overlooks a vital structural signal: the natural contrast between correct and incorrect solutions within the same group, thus ignoring the rich, comparative data that could be leveraged by explicitly pitting successful reasoning traces against failed ones. To capitalize on this, we present a contrastive reformulation of GRPO, showing that the GRPO objective implicitly maximizes the margin between the policy ratios of correct and incorrect samples. Building on this insight, we propose Bilateral Context Conditioning (BICC), a mechanism that allows the model to cross-reference successful and failed reasoning traces during the optimization, enabling a direct information flow across samples. We further introduce Reward-Confidence Correction (RCC) to stabilize training by dynamically adjusts the advantage baseline in GRPO using reward-confidence covariance derived from the first-order approximation of the variance-minimizing estimator. Both mechanisms require no additional sampling or auxiliary models and can be adapted to all GRPO variants. Experiments on mathematical reasoning benchmarks demonstrate consistent improvements across comprehensive models and algorithms. Code is available at https://github.com/Skylanding/BiCC.
Figures & tables
Figure 1: Overview of the proposed methods. The standard GRPO pipeline processes query q through the policy model to generate G outputs, which are scored by reward model and normalized to compute advantages for policy gradient update. BiCC partitions outputs by reward and conditions each sample on opposite-partition outputs, enabling cross-partition information flow where right and wrong attempts inform each other. RCC computes covariance between rewards and log-probability shifts to correct the advantage estimation.
Table 1: BiCC applied to GRPO variants. For each method, the first row shows the standard formulation and the shaded row shows the bilateral modification. Green highlights the change.
Figure 2: Reward-confidence correlation analysis. Cov(R,δ) increases throughout training for both models. Distribution of δ at training steps 2.5k–3k shows clear separation by reward, with mean separation Δμ=0.27 for Qwen3-4B and 0.56 for Phi-4-mini.
Qwen3-4B-Instruct-2507
Phi-4-mini-instruct-3.8B
Method
Math500
AMC 23
AIME24
AIME25
Math500
AMC 23
AIME24
AIME25
SFT Baseline
89.2
69.4
53.8
45.4
72.3
36.5
9.8
4.3
Standard GRPO Baseline
GRPO ( G=2 )
90.6
70.2
53.5
45.8
75.8
39.2
10.2
4.5
BiCC GRPO
91.0 ↑ 0.4
71.4 ↑ 1.2
54.2 ↑ 0.7
46.2 ↑ 0.4
76.4 ↑ 0.6
40.5 ↑ 1.3
10.5 ↑ 0.3
4.8 ↑ 0.3
GRPO ( G=8 )
91.4
72.8
54.0
46.4
76.2
42.5
10.4
4.5
Table 2: Main results on mathematical reasoning benchmarks. We report the average Pass@1 accuracy (%) over 32 independent runs using Qwen3-4B and Phi-4-mini. BiCC denotes our Bi lateral C onditioning extension applied to various GRPO-based baselines. Shaded rows represent the proposed variants, with subscripts indicating the absolute performance change relative to the corresponding base method. BiCC yields consistent gain of 0.3–1.9 percentage points across settings, with larger gains on weaker base models.
Figure 3: Training and evaluation performance.
Context Ratio
Qwen3-4B
Phi-4-mini
20%
91.8
77.4
40%
92.2
78.1
60%
92.0
77.8
Table 3: Effect of context length allocation for opposite-partition samples on Math500 accuracy.
Figure 4: Evolution of δ distributions during training. The separation between R=0 and R=1 partitions widens as training progresses, reflecting the model’s increasing ability to assign higher probability to correct outputs.
Appendix figures & tables5 assets
Supplementary material from the paper’s appendix.
Appendix
Hyperparameter
Value
Optimization
Learning rate
1×10−6
Optimizer (Adam β1,β2 )
AdamW (0.9, 0.999)
Weight decay / Gradient clipping
0.01 / 1.0
LR schedule (warmup / total steps)
Cosine (100 / 3000)
Batch & Model
Appendix
Table 4: Hyperparameter configuration (shared across both models unless noted).
Method
Parameter
Value
Dr.GRPO
KL coefficient β ; Reference policy
0.01; Frozen initial
DAPO
Clip bounds (ϵl,ϵh)
(0.2, 0.28)
GMPO
Geometric mean exponent
1/Ti
GSPO
Aggregation; Stop-gradient
Geometric mean; Yes
Appendix
Table 5: Variant-specific hyperparameters.
Benchmark
Problems
Difficulty
Answer Type
Source
Math500
500
Competition
Integer/Expr
Hendrycks et al. (2021)
AMC 2023
40
Competition
Integer
AMC 10/12
AIME 2024
30
Olympiad
Integer (0–999)
AIME I/II
AIME 2025
30
Olympiad
Integer (0–999)
AIME I/II
Evaluation Configuration : Temperature 0.6, Top- p 0.95, Max tokens 4096, Seeds 0–31
Appendix
Table 6: Evaluation benchmarks and sampling configuration.