MAPO: Mixed Advantage Policy Optimization

Wenke Huang, Quan Zhang, Yiyang Fang, Jian Liang, Xuankun Rong, Huanjin Yao, Guancheng Wan, Ke Liang, Wenwen He, Mingjun Li, Leszek Rutkowski, Mang Ye, Bo Du, Dacheng Tao

TL;DR

Reinforcement learning post-training methods like Group Relative Policy Optimization (GRPO) have vastly improved foundation models' reasoning skills, but their reliance on a fixed advantage function causes optimization issues when dealing with very easy or very hard tasks. To fix this, Mixed Advantage Policy Optimization (MAPO) introduces a dynamic, certainty-aware advantage function that blends standard z-score normalization with a novel relative percent deviation metric. This simple, hyperparameter-free adjustment prevents training distortions and yields more stable, accurate reasoning across diverse tasks.

What Problem Does This Paper Address?

When fine-tuning foundation models using reinforcement learning, Group Relative Policy Optimization (GRPO) has become highly popular because it eliminates the need for a costly, separate reward critic model. Instead, it samples a group of reasoning trajectories for a given prompt and scores them relatively using a rule-based reward function.

However, GRPO relies on a fixed advantage formulation—specifically, standard z-score normalization:

$$\hat{A}_i = \frac{r_i - \mu}{\sigma}$$

The authors point out that this uniform approach breaks down when a model has high "trajectory certainty" (i.e., when a prompt is either too easy or too hard, causing the rollout rewards to be nearly identical and the standard deviation $\sigma$ to collapse toward zero). This creates two major flaws:

  1. Advantage Reversion: When $\sigma$ is abnormally small, minor deviations from the mean are massively exaggerated. A high-performing trajectory on an easy task might receive an overly harsh negative penalty simply because the other trajectories were slightly perfect.
  2. Advantage Mirror: Because the formula ignores the absolute mean ($\mu$), two semantically opposite scenarios—such as a very hard prompt with mostly failures vs. a very easy prompt with mostly successes—can yield identical normalized advantage scores if their distributions are symmetric.
Figure 3: Discussion on existed advantage functions. r means the group reward. We denote µ = mean(r) and σ = std(r). The reward is defined as a combination of the format reward (rF ormat) and the accuracy reward (rAccuracy), with a weighting factor of β = 0.9, i.e., r = (1 −β)rF ormat + βrAccuracy. α = 0.6 is the valid sample rescale parameter for GPG Chu et al. (2025b). Refer to Sec. 3.3 for details.

Ultimately, these flaws distort the optimization gradient, causing the model's performance to degrade even on prompts it could originally answer correctly.

Methods

MAPO elegantly solves these issues by dynamically adapting the advantage function based on how certain the model is about a given sample.

First, the authors define Trajectory Certainty ($p$) empirically as the ratio of successful trajectories ($N$) to the total number of rollouts ($G$) in a group: $p = N/G$. A group is highly uncertain when $p \approx 0.5$ and highly certain when $p$ approaches $0$ or $1$.

To fix the issues with high-certainty samples, they introduce Advantage Percent Deviation (APD), which swaps out the volatile standard deviation normalizer for the absolute mean:

$$\hat{A}^{APD}_i = \frac{r_i - \mu}{\mu}$$

Finally, they propose Trajectory Certainty Reweight (TCR) to smoothly interpolate between the standard deviation-based advantage and the new mean-based APD. The mixing coefficient is calculated using the variance of a Bernoulli trial:

$$\lambda(p) = 1 - 4p(1 - p)$$

When uncertainty is high, $\lambda(p) \to 0$, favoring the standard variance-sensitive advantage. When the model is highly certain (mature stage), $\lambda(p) \to 1$, shifting the weight to the stable APD formulation.

Figure 2: Architecture illustration of MAPO. We reveal that the trajectory certainty varies across samples. In general, we introduce the Advantage Percent Deviation to replace the advantage function for high-certainty elements. We utilize the Trajectory Certainty Reweight to dynamically reweight the advantage function via trajectory certainty. Assume rollout number G=4. Best viewed in color. Zoom in for details. See Sec. 3.2.

Datasets

The authors evaluated MAPO across two distinct reasoning domains: mathematics and visual emotion recognition.

  • In-Domain Training:
  • Geo3K: A geometry problem-solving dataset (2.1K training samples).
  • EmoSet: A large-scale visual emotion recognition dataset (2.1K training samples).
  • Out-of-Domain Evaluation:
  • Math Benchmarks: MathVista, MathVision, and MathVerse to test cross-domain mathematical generalization.
  • Emotion Benchmarks: WEBEmo and Emotion6 to evaluate robust emotional reasoning.

Key Insights and Ideas

  • Variance is a Fickle Normalizer: Standard z-score normalization assumes a relatively stable distribution. In LLM generation rollouts, binary success/failure metrics cause variance to collapse rapidly as the model learns, breaking traditional RL assumptions.
  • Implicit Smart Gradient Scaling: Theoretical analysis reveals that MAPO implicitly assigns larger gradients to harder samples ($p < 0.5$) and smaller updates to easier ones ($p > 0.5$). This naturally prioritizes challenging tasks without needing explicit curriculum learning.
  • Zero Architecture Overhead: MAPO requires no additional critic models, no input perturbations, and no extra data augmentation. It fixes the learning signal purely by rewriting a few lines of the mathematical objective.

Key Results

Using the Qwen2.5-VL-7B-Instruct model as a baseline, MAPO consistently outperformed standard GRPO and other variants like DAPO.

  • Mathematical Reasoning: With a rollout size of $G=12$, MAPO achieved an overall average accuracy ($\bar{A}$) of 51.26 on math benchmarks, outperforming standard GRPO (49.85) and the baseline vanilla model (40.67).
  • Emotional Reasoning: On the emotion tasks, MAPO reached an overall average accuracy of 66.77, outperforming GRPO (66.18) and the vanilla model (51.58).
  • Sample Efficiency: Even when restricting the rollout size to $G=8$, MAPO maintained superior performance over its competitors, proving that its advantage allocation is highly efficient.

Limitations and Future Work

While MAPO provides a robust fix for advantage calculation, the authors note a few limitations:

  • Dependence on Base Capabilities: If the initial foundation model is too weak to generate any successful trajectories for a hard task ($p=0$), MAPO cannot accurately estimate trajectory certainty and collapses back to a single function strategy.
  • Scale Constraints: Due to compute limitations, the experiments were restricted to 7B parameter models and datasets containing a few thousand samples. Testing MAPO's behavior on frontier-scale models (e.g., 70B+) remains an open direction.

Summary updated

BibTeX
@misc{huang2025mapo,
  author = {Wenke Huang and Quan Zhang and Yiyang Fang and Jian Liang and Xuankun Rong and Huanjin Yao and Guancheng Wan and Ke Liang and Wenwen He and Mingjun Li and Leszek Rutkowski and Mang Ye and Bo Du and Dacheng Tao},
  title = {{MAPO: Mixed Advantage Policy Optimization}},
  year = {2025},
  eprint = {2509.18849},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.18849},
}
Figure