DeFlow: Decoupling Behavior-Prior Modeling and Value Maximization for Offline Policy Extraction

Zhancun Mu, Chi ZhangNeurIPS 2026

TL;DR

Training generative models (like flow matching) for offline reinforcement learning usually forces an uncomfortable choice: backpropagate gradients through a heavy multi-step ODE solver, or compress the policy into a single-step "shortcut" that risks flattening out rich, multimodal behaviors. DeFlow sidesteps this dilemma by leaving the multi-step flow model untouched as a behavior prior and attaching a tiny, lightweight network on top that nudges sampled actions toward higher rewards. It is a clean, modular way to get precise control without breaking the bank on memory or collapsing complex action distributions.

What Problem Does This Paper Address?

Imagine teaching a robot to manipulate objects using only a pre-recorded dataset of varied, sometimes sub-optimal demonstrations—the core setup of offline reinforcement learning (RL). Because there are often multiple valid ways to solve a task (say, pushing a block from the left or the right), standard unimodal Gaussian policies struggle; they tend to average the two paths and crash straight into the middle.

Iterative generative models—like diffusion and Conditional Flow Matching (CFM)—excel at capturing these complex, multimodal distributions by gradually transforming random noise into realistic actions over several steps. However, once you want to improve upon the dataset using a learned value function (a critic, $Q$), you hit an expressivity-optimizability dilemma:

  1. End-to-end steering: Differentiating the critic's signal backward through an entire chain of ODE solver steps (Backpropagation Through Time, or BPTT) is memory-hungry and prone to unstable gradients.
  2. Shortcut distillation: Compressing the multi-step flow into a one-step generator makes $Q$-optimization fast and easy, but can blur or collapse distinct behavioral modes.

The authors ask: Can we keep an expressive multi-step prior completely intact, and just do local value improvement with a tiny add-on module?

Methods

DeFlow decouples imitating the dataset from maximizing reward into two separate components connected by a stop-gradient operator:

Figure 1: DeFlow Framework. (a) Iterative Flow Prior: A multi-step flow policy models multimodal behavior. (b) Shortcut Extraction: One-step distillation enables direct Q-optimization but may compress the generated action distribution. (c) DeFlow: We keep the iterative prior (Blue) and train a lightweight residual module (Orange) to perform local value improvement while penalizing large deviations from the prior.
  • The Base Flow Prior (Standard): A multi-step Conditional Flow Matching model ($\mu_\psi$) trained purely via supervised learning to mimic the dataset's behavior distribution. It never sees a RL gradient.
  • Action-Conditioned Residual Module (New combination): A small, 4-layer MLP ($f_\phi$) that takes both the current state $s$ and a base action $a_{\text{base}}$ sampled from the flow prior, outputting a small shift $\Delta$. The final action is $a_{\text{base}} + \Delta$. Because of the stop-gradient, critic gradients only flow through this tiny MLP, completely bypassing the ODE solver.
  • Adaptive Trust-Region Penalty: In offline RL, critics are notoriously overly optimistic about out-of-distribution actions. To keep $\Delta$ from wandering too far from the safe flow prior, DeFlow constrains the mean-squared size of $\Delta$ to a budget $\delta$. Using a learnable Lagrangian multiplier ($\alpha$) updated automatically via dual gradient descent (similar to temperature tuning in Soft Actor-Critic), the penalty dynamically tightens if residuals grow too large and relaxes if they are within budget.

Crucially, unlike classical residual RL which adds a shift based only on the state, DeFlow conditions on the sampled action itself—meaning two different proposals from the same state can be nudged in completely different directions.

Datasets

No new benchmarks are introduced; the authors evaluate across 73 offline RL tasks and 15 offline-to-online (O2O) tasks from two established suites:

  • OGBench: The primary testbed, designed specifically to stress-test multimodal behaviors. The authors use 50 state-based single-task environments (navigation, soccer, cube manipulation, puzzles) and 5 pixel-based visual manipulation tasks.
  • D4RL: A classic offline RL suite, from which they evaluate 6 antmaze navigation tasks and 12 adroit dexterous hand manipulation tasks.

Key Insights and Ideas

  • Instance-level nudges preserve multimodality: By conditioning the residual on the sampled proposal $a_{\text{base}}$, DeFlow avoids collapsing nearby action modes. Visualization of action landscapes shows that while one-step shortcut policies (like FQL) can drop samples in low-data valleys between modes, DeFlow keeps samples anchored to distinct modes and nudges each locally uphill on the $Q$-landscape.
Figure 2: Visualization of Action Landscapes. Overlay of Q-value contours and action samples. Gray: Base Flow samples (data proxy); Blue: FQL (one-step); Red: DeFlow (ours). Arrows indicate the refinement trajectory. DeFlow performs local residual updates around base-flow proposals, illustrating smaller local shifts in this representative state.
  • Different tasks favor different extraction trade-offs: DeFlow isn't a silver bullet that beats every baseline everywhere. Shortcut methods with test-time compute scaling (like SORL) shine in broad navigation tasks, whereas DeFlow's high-fidelity prior + local precision shines in fine-grained multimodal manipulation (like cube-double and puzzle-3x3).
  • Seamless Offline-to-Online (O2O) transfer: Because behavior modeling and value maximization don't fight over the same network weights, transitioning to online fine-tuning requires zero architectural changes—just append new online transitions to the replay buffer.

Key Results

  • Offline Manipulation Gains: On OGBench cube-double, DeFlow scores 40 ± 5, substantially outperforming one-step Flow Q-Learning (FQL at 29 ± 2) and shortcut-scaling SORL (25 ± 3). On puzzle-3x3, DeFlow hits 43 ± 4 vs. FQL's 30 ± 1, and leads visual manipulation at 69 ± 2 (vs. FQL's 65 ± 2).
  • Navigation Trade-offs: On navigation tasks like antmaze-large (81 ± 3) and humanoidmaze-medium (48 ± 4), DeFlow trails SORL (89 ± 2 and 64 ± 4, respectively), reflecting the advantage of SORL's inference-time step scaling in those regimes.
  • Strong Online Adaptation: In O2O settings, DeFlow jumps from 4 → 100 on puzzle-4x4 (where FQL goes 8 → 38) and 13 → 65 on humanoidmaze-medium (FQL: 12 → 22).
  • Minimal Compute Overhead: Despite running a multi-step ODE solver, skipping BPTT keeps training and inference fast—offline training takes 2.4 ms/step vs. FQL's 2.2 ms/step on an NVIDIA RTX 3090, and inference takes 4.5 ms vs. 4.2 ms.

Limitations and Future Work

  • Bound by the Prior: Because the residual is strictly local, DeFlow cannot magically discover distant, high-value behaviors if the base flow model fails to propose anything near them. Furthermore, staying close to an imperfect learned prior does not mathematically guarantee staying within true dataset support.
  • Hyperparameter & Critic Sensitivity: While $\alpha$ adapts automatically, you still have to choose the trust-region budget $\delta$ and the MLP capacity—and neither completely immunizes the policy against exploiting flawed critics (seen on some cloned Adroit tasks).
  • Future Directions: The authors note that DeFlow keeps the door open to ranking multiple refined proposals with a critic at test time, and suggest that this lightweight, BPTT-free residual setup is a natural fit for steering massive pretrained Vision-Language-Action (VLA) models in future work.

Summary updated

Abstract

We present DeFlow, a decoupled offline RL framework for extracting high-value actions from a learned multi-step flow prior. Directly optimizing iterative generative policies typically requires backpropagation through ODE solvers, while shortcut policies trade off expressivity, inference cost, and policy-improvement objectives. DeFlow keeps the flow model as a behavior prior and trains a lightweight action-conditioned residual module for value improvement under an adaptive trust-region penalty. This design bypasses solver differentiation and encourages proximity to the learned prior without treating the trust region as exact data-support preservation. Empirically, DeFlow is competitive with recent generative offline RL baselines, with the clearest gains on selected multimodal manipulation and offline-to-online settings.
BibTeX
@inproceedings{mu2026deflow,
  author = {Zhancun Mu and Chi Zhang},
  title = {{DeFlow: Decoupling Behavior-Prior Modeling and Value Maximization for Offline Policy Extraction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=1oqxe0EmlH},
}
Figure