← All posts
Machine Learning

Visually-Perceptive Policy Optimization (VPPO)

Overview

How VPPO makes reinforcement learning for vision-language models pay attention to the image: it measures how much each token depends on the picture, scales each response's advantage by that dependency, and updates only the most image-dependent tokens.

VPPO cover: a reasoning trace where only the few tokens that depend on the image are highlighted

Introduction

Reinforcement learning with verifiable rewards (RLVR), usually with GRPO [1], has made language models much better at math and code. The same recipe is now applied to vision-language models, which answer questions about images: the model writes a chain of reasoning, and it gets a reward of if its final answer is correct and otherwise. But this recipe was built for text. It does not know that, for a vision-language model, some of the reasoning comes from looking at the image and some does not.

Take a geometry question: “In circle , is parallel to , and . What is ?” The key step is something only the diagram shows: and are both radii, so the triangle is isosceles. Most of the other tokens in the answer, such as “so”, “the”, or “therefore”, would be written the same way without the image. A response can also reach the right answer by guessing from the text alone, without looking at the diagram at all. GRPO treats all of these the same way. Every correct response gets the same advantage, and every token in it gets the same update.

In 2025, a team from the Shanghai AI Laboratory and several universities proposed VPPO (Visually-Perceptive Policy Optimization) [2]. It measures how much each generated token depends on the image, and uses that measure twice: it gives more weight to responses that rely more on the image, and it updates only the tokens that depend on the image the most. On Qwen2.5-VL-7B, this raised the average accuracy over eight multimodal reasoning benchmarks by over its baseline.

In this post, we first recall the GRPO objective that VPPO starts from, then measure how much a token depends on the image, build VPPO’s two mechanisms and its objective, show why it reduces the variance of the gradient, and end with the limitations.

The Starting Point: GRPO

A multimodal prompt has an image and a text question . The old policy writes a group of responses , and each one gets a binary reward for whether its final answer is correct. As in Eq. (3) of the GRPO post, the advantage of a response is its reward normalized within the group:

This single number is then given to every token of the response, and the policy is trained with the clipped objective of Eq. (5) of the GRPO post:

where is the probability ratio of token . The paper points out two problems with this for images [2]. At the level of responses, treats all correct responses equally, whether they found the answer in the diagram or guessed it from the text. At the level of tokens, the same is applied to every token, so the few tokens that actually read the image get no more credit than the many that do not.

Measuring How Much a Token Depends on the Image

To fix either problem, VPPO first needs a number for how much a token depends on the image. The idea is to ask the model the same thing twice, once with the real image and once with a version in which the image no longer carries useful information, and see how much its prediction changes. If the next-token distribution barely changes, the token did not need the image. If it changes a lot, the image mattered.

To build , VPPO divides the image into patches of pixels and blacks out each patch independently with probability [2]. Then, at each step of a response, with state , the token visual dependency is the KL divergence between the two predictions:

The KL divergence is when the masked image gives exactly the same prediction as the real one, and it grows as the two predictions move apart. In the implementation, it is computed with the same low-variance estimator as the KL penalty in Eq. (6) of the GRPO post. Computing it costs one extra forward pass per response, with the masked image.

The authors then measured the dependency of Eq. (3) for every token in many responses of Qwen2.5-VL-7B and found two patterns [2]. The first is that image-dependent tokens are rare. Most tokens have a dependency close to , and the number of tokens drops off sharply as the dependency grows. The few high-dependency tokens are mostly numbers, geometric terms, and logical operators, exactly the places where the reasoning reads the diagram.

The second pattern appears when the token scores are averaged over a whole response. The trajectory dependency of a response with tokens is:

and it varies widely between responses. Most responses sit around the average, but some depend on the image much more than others. Two responses can reach the same correct answer, one by reading the diagram and one mostly by guessing from the text, and GRPO cannot tell them apart.

Token-Level Gradient Filtering

The first pattern says the learning signal is spread over many tokens that do not matter for the image. So, within each response , VPPO keeps only the top of tokens by visual dependency, and calls this set . A binary mask records which tokens are kept [2]:

Only tokens with get a gradient. The others still appear in the response and still condition the later tokens, but the update does not change their probabilities. The paper uses , so the update falls on of each response. A smaller gives too little learning signal, and a larger one brings back the tokens that do not depend on the image.

Trajectory-Level Advantage Shaping

The second pattern says that some responses are more grounded in the image than others, so VPPO wants to give each response a weight based on its trajectory dependency . But cannot be used as the weight directly. Its values are small, around on average in the paper’s measurements, and their scale depends on the model and on how the image is masked. Multiplying the advantage by would shrink every update to almost nothing. What matters is only how a response compares with the others, so VPPO uses where each response stands within the batch , in two steps.

The first step puts the trajectory dependencies on a scale from to , by min-max normalization. Let and be the smallest and the largest trajectory dependency in the batch:

Subtracting the smallest value and dividing by the distance between the two gives:

The least image-dependent response in the batch gets , since its numerator is . The most dependent one gets , since its numerator equals the denominator. Every other response falls in between, in proportion to where it lies: a response halfway between the two gets . The absolute size of no longer matters, only its position relative to the rest of the batch.

The second step stretches this scale onto a chosen range with a straight line:

At this gives , at it gives , and halfway it gives the midpoint of the range. Substituting gives the full shaping factor [2]:

The range is there so that no response is switched off or blown up. The lower bound keeps even the least image-dependent response in the learning signal: with , it still keeps of its advantage, since a correct answer is still worth learning from. The upper bound limits how much the most image-dependent response is amplified, so that a single response cannot dominate the update. The paper sets and adjusts from each batch, which worked better than fixed ranges such as or in its ablation.

The shaping factor then scales the GRPO advantage of Eq. (1):

A correct response that relied heavily on the image is pushed up more than a correct response that did not, and an incorrect response that relied on the image is pushed down more. Since stays in a narrow band around , the advantage keeps its sign and roughly its size, and the shaping only adjusts it.

The VPPO Objective

Putting the two together, the shaped advantage replaces in Eq. (2), and the mask of Eq. (4) keeps only the image-dependent tokens [2]:

Compared with Eq. (2), Eq. (6) changes only two things: the advantage is scaled by the shaping factor of Eq. (5), and each token’s term is multiplied by its mask. Everything else, the group of responses, the probability ratio, and the clipping, stays the same. VPPO can therefore be added to other GRPO-style methods too. In the paper’s experiments, it is added on top of DAPO [3], with its clip-higher, dynamic sampling, and token-level loss.

Algorithm 1 VPPO training step

Why It Lowers the Variance

The paper also shows that the two changes make the gradient less noisy [2]. Write for the gradient of one token’s log-probability. Leaving out the ratio and the clipping, the GRPO gradient of one response is the advantage times the sum of these over all tokens:

VPPO scales the advantage by and sums only over the kept tokens :

To compare their variances, the paper compares their second moments, , which dominate the variance in high dimensions. It also assumes that the advantage is independent of the token gradients, that the gradients of different tokens are uncorrelated, for , and that is independent of the advantage. For GRPO, squaring Eq. (7) and taking the advantage out of the expectation:

The squared norm of a sum expands into the squared norms of each term plus the cross terms between different tokens:

The cross terms are uncorrelated, so their expectation is about , and only the squared norms are left. If every token’s gradient has roughly the same expected squared norm , the sum over tokens gives:

The same steps for Eq. (8) take out as well, and the sum now runs over only the kept tokens:

Dividing the two gives the ratio between the variances:

With and close to , the factor is well below , so the VPPO gradient is much less noisy. Most of the reduction comes from the mask: the tokens it drops add noise to the gradient but carry little of the image-related signal. The result in Eq. (9) rests on the simplifying assumptions above, so it shows the direction of the effect more than its exact size.

Limitations of VPPO

VPPO needs a second forward pass with the masked image for every response, which made training about slower in the paper. The dependency score depends on how the image is masked, and random patch blackening, the best of the strategies the authors tried, may not be the best choice for every kind of image. The filtering ratio and the shaping range were tuned on one training set and may need tuning again elsewhere. The method was tested on reasoning tasks with a single correct answer, such as math, geometry, and logic, and on models of up to billion parameters. How it works for open-ended tasks, such as detailed image descriptions, where there is no single answer to check, is not yet known.

VPPO showed that in multimodal reinforcement learning, the reward should flow to the moments where the model actually looks at the image, and that a simple KL divergence between the real and a masked image is enough to find them.

References

  1. Shao, Z., Wang, P., Zhu, Q., et al. (2024). DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models. arXiv:2402.03300.
  2. Huang, S., Qu, X., Li, Y., Luo, Y., He, Z., Liu, D., & Cheng, Y. (2026). Spotlight on Token Perception for Multimodal Reinforcement Learning. ICLR.
  3. Yu, Q., Zhang, Z., Zhu, R., et al. (2025). DAPO: An Open-Source LLM Reinforcement Learning System at Scale. arXiv:2503.14476.
Mir Sazzat Hossain

Mir Sazzat Hossain

Junior Research Scientist at CCDS, IUB. Working on computer vision, domain adaptation, and the occasional radio-galaxy problem.

Related posts

Comments

Join the discussion here or continue it on GitHub.