Look-ahead Variational Flow for Generative Online Reinforcement Learning

Tianyi Zhang, Likun Wang, Tianze Zhu, Guojian Zhan, Yinuo Wang, Feihong Zhang, Yang Guan, Yao Lyu, Shengbo Eben LiNeurIPS 2026

TL;DR

Generative models (like diffusion and flow matching) make remarkably expressive reinforcement learning (RL) policies, capable of navigating complex, multi-path action spaces. Unfortunately, in online RL, their high capacity is also their Achilles' heel: they aggressively overfit to value estimates that are constantly shifting, leading to volatile training. LEAF (Look-ahEad vAriational Flow) tames this chaos by building a steady, model-predicted target to aim at, and guiding the policy toward it using a mathematically grounded, two-phase "coarse-to-fine" flow.

What Problem Does This Paper Address?

Imagine trying to paint a photorealistic portrait while your subject is riding a mechanical bull. If you only have a thick roller brush (a simple Gaussian policy), you’ll just paint a blurry average. If you have a set of ultra-fine, expressive brushes (a generative model like diffusion or flow matching), you might try to capture every wild movement in high definition—and end up with a smeared mess.

In online RL, an "actor" (the policy) learns to take actions based on feedback from a "critic" (a $Q$-function estimating future rewards). Because the critic updates via bootstrapping—guessing values from its own previous guesses—the target distribution it creates is notoriously jumpy and non-stationary. High-capacity generative policies are too good at fitting distributions; they aggressively chase these transient fluctuations, overwriting good behaviors in a pathology known as target drift.

Existing fixes try to anchor the policy to old actions stored in the replay buffer. While this prevents total collapse, chaining an agent to its own history limits its ability to discover brand-new, high-reward behaviors.

Comparison of fluctuating Q-guided targets versus the stabilized look-ahead target proposed in LEAF.

Methods

LEAF tackles target drift from two angles: first, stop the target from shaking so much; second, teach the policy not to overreact when it does move.

  1. Stabilizing the Target via Look-Ahead: Instead of relying on a twitchy $Q$-critic, LEAF learns a lightweight predictive model of the environment's transition dynamics and immediate rewards. It rolls out an $H$-step "look-ahead" return, supervised by actual reward signals, pushing the bootstrapped value estimate ($V$) to the end of the horizon where its oscillations are exponentially dampened by the discount factor ($\gamma^H$). It also uses online planning (MPPI) during training to build a fresh, return-aware anchor distribution rather than relying on stale replay buffer data.
  2. Proximal Variational Flow: Even a smoother target still moves as the agent improves. Rather than snapping directly to the new target via standard KL-divergence minimization, LEAF frames policy updates as minimizing "free energy" in Wasserstein space (using the Jordan–Kinderlehrer–Otto, or JKO, scheme). Intuitively, this puts a distributional "trust region" around the policy—allowing it to flow smoothly toward higher rewards without straying violently far from its current self in a single step.
  3. Coarse-to-Fine Two-Phase Generation: The authors prove that this JKO optimization induces an optimal transport flow, which they implement as a two-stage ODE solver at inference time:
  4. Phase I (Global Transport): Using Conditional Flow Matching, initial noise particles are swept broadly across the action landscape toward promising multimodal regions.
  5. Phase II (Local Refinement): Turning the temperature down to zero, a second learned vector field nudges those particles directly uphill along the gradient of the look-ahead return for pinpoint accuracy.
LEAF's two-phase generation process: global transport across the landscape followed by local gradient refinement.

Datasets

Because this is an online RL paper, there are no static datasets—agents learn from scratch over 1 million live interaction steps across 14 high-dimensional continuous control tasks from two established benchmarks:

  • DeepMind Control (DMC) Suite: 7 tasks featuring whole-body balance and locomotion in the humanoid (67 state / 24 action dimensions) and dog (223 / 38 dimensions) domains.
  • Humanoid Bench (H-Bench): 7 complex locomotion and dexterous manipulation tasks built on a simulated Unitree H1 robot with articulated hands (151 / 61 dimensions), including opening doors, balancing on boards, and grasping a spoon to trace a circle.

No new benchmarks were introduced.

Key Insights and Ideas

  • Amortizing Model-Based Planning into Fast Flows: Model-based RL methods (like TD-MPC2) get great performance by planning online during deployment, which makes them painfully slow at inference time (~25–30 ms). LEAF uses its dynamics model only during training to stabilize the target and distill gradients. At test time, it executes just a few ODE steps (defaulting to 2 global + 1 local step), keeping the brains of a planner with the reflexes of a model-free policy.
  • Why Two Phases Beat One: Ablations show that global probability flow alone ($\tau=1$) lacks precision, while local gradient refinement alone ($\tau=0$) gets stuck in poor local optima near random initializations. Splitting the work—broad coverage first, greedy exploitation second—unlocks the best of both worlds.

Key Results

LEAF outperforms standard Gaussian actors (SAC), diffusion policies (DACER, DIME), flow-based policies (FlowRL, FLAC), and model-based planners across all 14 tasks.

  • DMC Suite: Achieved an average Total Average Return (TAR) of 849.3, beating the strongest diffusion baseline (DIME, 744.3) by +14.1% and the strongest flow baseline (FLAC, 645.7) by +31.5%. On the notoriously difficult Humanoid-run, LEAF scored 509.7, more than doubling runner-up DIME (231.5, +120.2%).
  • Humanoid Bench: Reached an average TAR of 603.5, surging past FLAC (339.5) by +77.8% and DIME (273.5) by +120.7%. On precision-heavy tasks like Pole and Spoon, LEAF outperformed the second-best baselines by +292.3% and +220.4%, respectively.
  • Speed vs. Performance: LEAF achieves the highest overall return while maintaining sub-5ms inference latency—roughly an order of magnitude faster than planning-heavy model-based baselines like BOOM and TD-MPC2.
Performance versus inference latency across 14 tasks, showing LEAF achieving top returns at minimal latency.

Limitations and Future Work

Not discussed in the main text of the paper. (Note: While training a dynamics model, reward predictor, MPPI proposal generator, and two separate vector fields naturally introduces additional training-time overhead and hyperparameters compared to pure model-free baselines, the authors defer detailed computational efficiency analyses to the appendices and do not include an explicit limitations or future work section in pages 1–11).

Summary updated

BibTeX
@inproceedings{zhang2026look,
  author = {Tianyi Zhang and Likun Wang and Tianze Zhu and Guojian Zhan and Yinuo Wang and Feihong Zhang and Yang Guan and Yao Lyu and Shengbo Eben Li},
  title = {{Look-ahead Variational Flow for Generative Online Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=BkbldiALe2},
}
Figure