Score-Based One-step MeanFlow Policy Optimization

Kyungyoon Kim, Donghyeon Ki, Hee-Jun Ahn, Byung-Jun LeearXiv 2026

TL;DR

Diffusion and flow-matching models are highly expressive policy representations for reinforcement learning (RL), but their iterative, multi-step sampling makes them computationally expensive for online deployment. This paper introduces Score-Based One-step MeanFlow Policy Optimization (SOM), a novel actor-critic framework that achieves state-of-the-art performance with single-step action generation. By constructing a target velocity field directly from Q-function gradients via score estimation, SOM eliminates the need for target-distribution samples, drastically reducing both training and inference latency.

What Problem Does This Paper Address?

Standard reinforcement learning often relies on Gaussian policies, which struggle to capture the complex, multimodal action distributions common in real-world tasks. While generative models like diffusion and flow matching offer a solution by representing highly expressive, multimodal policies, they suffer from a major bottleneck: they require multiple iterative network evaluations to sample a single action. This computational overhead is particularly problematic in online RL, where policy inference must happen continuously during data collection.

Recent frameworks like MeanFlow attempt to solve this by learning an average velocity field that maps noise to data in a single step. However, training MeanFlow requires explicit samples from the target distribution to define this velocity field. In online RL, such optimal target samples are unavailable because the agent is actively discovering the policy. Prior attempts to bypass this (like Best-of-N sampling) scale poorly as action dimensionality grows.

Methods

SOM bridges the gap between one-step MeanFlow generation and online RL by deriving the target velocity field directly from the critic (the Q-function).

Figure 1: Unlike existing diffusion and flow matching algorithms, SOM does not require multi-step denoising and can perform denoising in just one step. Furthermore, to train MeanFlow in online RL, SOM directly constructs a target velocity from the Q-function without requiring target-distribution samples.

The core components of the method include:

  1. Energy-Based Formulation: The authors treat the negative Q-function as the energy of a Boltzmann target distribution ($\pi^* \propto \exp(\alpha Q)$). This allows the target score (the gradient of the log-density) to be expressed analytically via the critic's gradients.
  2. Score Estimation via PF-ODE: Since computing the exact time-dependent energy gradient is intractable, SOM adapts a Monte Carlo score estimator (inspired by iDEM) to the Variance Preserving Stochastic Differential Equation (VP-SDE) setting. This estimated score is plugged into a Probability Flow Ordinary Differential Equation (PF-ODE) to yield a deterministic target velocity field.
  3. Stabilization Techniques: To handle highly varying score scales, the authors introduce score normalization/rescaling and batch-wise Q-value advantage normalization. They also incorporate Best-of-N (BoN) sampling during critic updates to accelerate training in complex Q-landscapes.

Datasets

The authors evaluated SOM on the standard MuJoCo v4 suite in Gymnasium, focusing on nine continuous control tasks with varying state-action dimensionalities: Ant-v4, HalfCheetah-v4, Hopper-v4, Humanoid-v4, Walker2d-v4, Swimmer-v4, Pusher-v4, Reacher-v4, and InvertedDoublePendulum-v4. They also tested the algorithm on synthetic 2D bandit environments (Eight Mode Bandit, Two-Moons, and Checkerboard) to evaluate multimodal mode coverage.

Key Insights and Ideas

  • Timestep-Adaptive Smoothing: The score estimator naturally acts as a Gaussian-smoothing kernel over the Q-landscape. At early diffusion timesteps (large $t$), heavy smoothing averages out coarse critic errors and TD noise. At later timesteps (small $t$), the local structure near high-value modes is preserved. This makes the policy update remarkably robust to imperfect critics.
  • Division of Labor: The PF-ODE formulation includes a "prior-pull" term that contracts outer noise samples inward during early steps. Because of this, the score estimator only needs to be highly accurate near the actual high-value modes, preventing partial mode collapse from degrading performance.
  • Gradient Scaling over Sampling: Unlike previous one-step methods (like MFP) that rely purely on sampling candidates and picking the best one (BoN), SOM utilizes gradient information from the critic. This allows it to scale much better to high-dimensional action spaces like Humanoid-v4.

Key Results

  • State-of-the-Art Performance: SOM achieved the highest mean return on four out of five locomotion benchmarks and matched the top performer on the fifth. The performance gain was most pronounced on Humanoid-v4, the task with the highest action dimensionality.
Figure 2: Training curves on locomotion benchmarks Curves denote the mean across five random seeds, with shaded regions representing the 95% confidence interval. The bottom-right panel reports a per-environment min–max normalized return averaged across the five locomotion benchmarks.
  • Massive Speedups: At inference time, SOM requires only a single generation step. On HalfCheetah-v4, SOM achieved an inference latency of 0.218 ms, compared to 0.606 ms to 1.562 ms for multi-step diffusion baselines (like QSM, DPMD, SDAC, and DIPO). Training time per step was also reduced to 6.512 ms, outperforming all diffusion baselines.
  • Superior Mode Coverage: In 2D bandit tasks, while other one-step baselines collapsed to a single reward mode, SOM successfully mapped the initial noise grid to all available high-reward modes.

Limitations and Future Work

The authors note a few key limitations:

  • Benchmark Scope: The evaluation was restricted to continuous control locomotion tasks within the MuJoCo suite. Extending SOM to more complex, higher-dimensional, or partially observable settings—such as visual control or robotic manipulation—remains an open challenge.
  • Critic Dependency: Because the target velocity field is derived directly from the Q-function, SOM's performance is ultimately bounded by the quality and accuracy of the learned critic. Exploring tighter integration with distributional or uncertainty-aware critics is highlighted as a promising direction for future work.

Summary updated

BibTeX
@misc{kim2026score,
  author = {Kyungyoon Kim and Donghyeon Ki and Hee-Jun Ahn and Byung-Jun Lee},
  title = {{Score-Based One-step MeanFlow Policy Optimization}},
  year = {2026},
  eprint = {2605.23365},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.23365},
}

Loading related content...

Figure