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:
- 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.
- 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:
- 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
antmazenavigation tasks and 12adroitdexterous 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.
- 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-doubleandpuzzle-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). Onpuzzle-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) andhumanoidmaze-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 onhumanoidmaze-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