arXiv:2610.19783cs.LGOct 2026

Manuscript Offprint

arXiv:2610.19783

Reinforcement Learning via Advantage Guidance

Zhiyuan Zhou, Sergey Levine

Abstract

Abstract — Reinforcement learning (RL) holds the promise of learning a policy that can outperform what is shown in the data. However, in practice, such systems suffer from instability and hyperparameter sensitivity. In contrast, supervised learning provides a stable and scalable training objective, but is fundamentally limited by the quality of the demonstrated behavior. In this paper, we ask whether we can perform policy optimization with something as simple and stable as supervised learning but as performant as RL. Unfortunately, naïvely training the policy with supervised learning and conditioning on future rewards or advantages typically underperform dedicated RL methods. We introduce a new policy extraction method, Advantage Guidance, that retains the simple supervised learning structure with advantage conditioning while outperforming prior RL methods through effective conditional training and contrastive diffusion guidance during sampling. We show that Advantage Guidance can significantly improve a model's ability to respond to conditional advantage signals, and the contrastive guidance during sampling can use the learned advantage-conditioned policy to target the KL-regularized optimal policy. Empirically, we find that Advantage Guidance significantly outperforms prior state-of-the-art RL methods on 26 long-horizon, sparse reward tasks across datasets with varying degrees of optimality. Code: github.com/zhouzypaul/advantage-guidance

Figure

Figure

Figure 1: We introduce a new RL method, Advantage Guidance (AG), that uses a simple supervised learning objective with advantage conditioning while outperforming prior RL methods through effective conditional training and contrastive diffusion guidance during sampling. Left: Naïve advantage-conditioned policies often fail to match the requested advantage, producing actions whose advantages vary widely and frequently fall below the requested value. We call this the advantage alignment problem. Our approach (AG) significantly improves advantage alignment, and our contrastive guidance formulation further enables advantage maximization rather than matching a prespecified value, as desired for policy extraction. Right: Our method significantly outperforms baselines on 26 long-horizon sparse-reward tasks across datasets with varying degrees of optimality.

1. Introduction

Reinforcement learning (RL) holds the promise of improving policy performance beyond what is shown in the data, and can in theory outperform imitation learning under suitable conditions [46, 30]. However, RL algorithms suffer from lots of instability and hyperparameter sensitivity issues in practice [49, 17, 22], especially over off-policy or offline data. Imitation learning, on the other hand, has been shown to be stable and scalable for policy training with modern generative modeling techniques.

like diffusion and flow matching. This raises the question: can we perform policy training with something as simple and stable as imitation learning, but as performant as RL?

To achieve the stability of imitation learning, one might be tempted to directly apply the supervised-learning loss function, training the policy to maximize the likelihood of actions seen in the data. Previous works have explored accomplishing this with conditional, filtered, or weighted supervised learning [13]. One set of methods, which we will refer to as advantage-conditioned methods [28, 2, 18, 42], resorts to training a policy conditioned on advantage values, which estimate how “good” actions are. During inference, the policy is queried with a high advantage to generate “good” actions.

Unfortunately, such naïve advantage-conditioned policies typically underperform dedicated RL methods (see Figure 1). This is in part because advantage-conditioning does not generally result in a policy that always favors actions with higher advantages as RL policies do: the resulting policy is restricted to the queried advantage level, and this restricts the degree of policy improvement. Moreover, we find it difficult to train a policy to respond to advantage conditioning in the first place: the policy often cannot match the requested advantage (see Figure 1), and can ignore the conditioning altogether and revert to unconditional imitation.

In this work, our goal is to train a policy with the simple and stable supervised learning objective conditional on continuous advantage estimates, while enabling the policy to generate actions that maximize advantage. To accomplish this, we first derive a diffusion guidance formulation we call contrastive guidance for sampling at test time, which can target actions that maximize the advantage under a KL behavior constraint. Then, to effectively train a flow-matching conditional policy that responds to the conditional values, we re-parameterize the conditional policy as a residual flow on top of a reference unconditional flow field. We also propose an action imagination scheme: we use “imagined actions” sampled from the unconditional policy, and their advantage estimates, to train the advantage-conditioned policy under a broader action distribution for each state.

The resulting algorithm, Advantage Guidance, significantly improves the policy’s ability to respond to advantage inputs, and can target the KL-regularized optimal policy during sampling. Across 26 long-horizon, sparse reward tasks with both play-style and demonstration datasets in the offline RL setting, Advantage Guidance outperforms prior strong RL algorithms.

References (58)