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

arXiv:2601.10471 · cs.LG · Submitted 2026-01-15 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: Today's paper: "DeFlow: Decoupling Behavior-Prior Modeling and Value Maximization for Offline Policy Extraction".

Jane: The gist:

Tom: First, who's behind it and why it matters.

Paper summary: Jane: So, wrapping up on DeFlow, the authors focus on decoupling manifold representation from value maximization using flow matching for the first part and a deterministic policy gradient approach for the second >

Tom: The authors are very clear about what they did: they learned a Flow Matching Policy optimized only by supervised learning to capture the behavior manifold >

Lu: And then they have this Action Refinement Module that maximizes Q-values using deterministic policy gradients, DDPG from two thousand sixteen > <ref:2601.10471#pg2,Action Refinement Module that maximizes Q-values>

Meng: I’m still thinking about how you handle the constraint mechanism in a production setting where data distribution might shift. The Lagrangian multiplier alpha adjustment sounds like it could be sensitive to noise in the reward estimation >

Tom: It is. But they frame it as an auto-tuning gatekeeper during online fine-tuning, which is where they show real promise for adaptation >

Jane: The implication for people who only listen is that this method offers a stable way to extract policies from offline data without having to manually manage the tension between generating diverse actions and maximizing the value function separately >

Lu: It’s about navigating that signal-to-noise ratio of the learned Q-function through constrained gradient steps instead of just blind maximization >

Tom: DeFlow is a specific structural disentanglement that keeps the policy grounded in the dataset support while still pushing for better outcomes >

Conclusion: Tom: So, DeFlow is this new framework that splits up the problem of making AI policies from two different jobs: understanding what humans actually do, and trying to make those actions good for a reward system.

Jane: Right, so it takes a generative model to figure out the behavior first, and then a separate part to pick the best actions for you.

Tom: The authors are focusing on this decoupling using flow matching for the behavior part and some sort of lightweight refinement module for the value part >

Jane: It uses something called flow matching to capture that complex shape of human behavior in a way that is robust, even when we don't have perfect data.

Lu: What’s interesting about their method is how they use this explicit, data-derived trust region of the flow manifold for the refinement module >

Meng: So it learns a small adjustment on top of the generated action instead of trying to mess with the main flow weights to get higher rewards, which sounds much more stable for deployment >

Jane: Because it treats that base flow model as fixed during those refinement updates, it avoids all that complicated backpropagating through ODE solvers, which is usually a huge headache in these types of models.

Tom: And they’ve got this Lagrangian constraint mechanism to stop the refinement module from drifting into actions that aren't actually in the data distribution >

Jane: That sounds like they are using a mathematical penalty to keep the refined action close to what we know is possible, which is a smart way to handle those out-of-distribution actions.

Lu: They introduce a learnable Lagrangian multiplier alpha that automatically adjusts based on how far off the refined action is from the flow support >

Meng: So if the refinement gets too aggressive, that alpha goes up to pull it back toward reality, and if the policy is too conservative, alpha drops so we can explore more for value >

Jane: It’s a self-tuning gatekeeper that manages that tension between needing diversity and needing high rewards without you having to manually set those tricky regularization numbers.

Tom: The empirical results on things like OGBench show that DeFlow actually gets better performance than methods where everything is optimized together >

Lu: They also found something about inference scaling, which suggests the refinement module uses its optimization budget very efficiently in just one forward pass, not requiring massive sampling to find a good action >

Jane: So what does this mean for people who just want to use offline data without spending all day tuning complex loss functions?

Tom: It means you get superior performance on hard tasks like cube-double-play and puzzle-three times three-play, and it adapts pretty well when you move from offline training to online testing. (Segment music swells slightly)

Peking University, Institute of Artificial Intelligence

cs.LG

Submitted: 2026-01-15

Updated: 2026-10-15

Comments: 14 pages, 3 figures

Project page: http://muzhancun.github.io/preprints/deflow

License: http://creativecommons.org/licenses/by/4.0/

Importance score: 92/100

The gist: The gist: DeFlow presents a decoupled offline RL framework that separates manifold modeling from value maximization to achieve superior policy extraction by leveraging multi-step flow matching for

Key concepts

Flow Matching
This technique is used to learn the distribution of behavior actions from offline data. Instead of directly modeling the complex behavior manifold, flow matching provides a way to learn this distribution through a continuous process, which is then used as the base policy for action generation.
Action Refinement Module
This lightweight module takes an initial action from the flow model and learns a small residual shift. It does not retrain the main flow model but instead focuses on making precise adjustments to generate high Q-value actions, ensuring stability during value maximization.
Lagrangian Constraint Mechanism
This is a dynamic penalty system that prevents the refinement module from generating actions far outside the learned behavior manifold. It automatically adjusts a penalty based on how much the refined action deviates from the data support, acting as an adaptive gatekeeper for constraint adherence.

Terminology

Summary

The gist: DeFlow presents a decoupled offline RL framework that separates manifold modeling from value maximization to achieve superior policy extraction by leveraging multi-step flow matching for behavior cloning and a lightweight refinement module for Q-value maximization.

How it works

DeFlow is structured around two distinct components: a Flow Matching Policy optimized exclusively via supervised learning to capture the behavior manifold, and a lightweight Action Refinement Module that maximizes Q-values via deterministic policy gradients (DDPG). The refinement module learns a residual shift on the generated action rather than distorting the flow model’s weights to find high rewards.

The framework utilizes a composite policy where the final action is derived from a Base Flow adjusted by a Refinement Module. Specifically, the action is formulated as a function of the Base Flow and the refinement module output, with stop-gradient applied to the flow model during refinement updates. This design choice bypasses backpropagating through ODE solvers by treating the base flow as a fixed stochastic generator when updating fϕ.

Decoupling and Constraints

The core philosophy of DeFlow is a structural disentanglement of policy learning, which prevents the competing objectives of density estimation and value maximization from creating a conflicting objective landscape. The Base Flow model is updated solely via the Flow Matching objective LFM(ψ) to ensure it remains an unbiased estimator of the behavior distribution.

To prevent the refinement module from drifting off the valid data manifold (Out-of-Distribution actions), DeFlow employs an automated Lagrangian constraint mechanism. This mechanism dynamically adjusts a penalty based on the divergence between the refined action and the flow support, unlike standard regularization which requires fixed, brittle hyperparameters.

Advantages of Decoupling

This decoupled design yields three significant advantages over prior joint-optimization methods:

** Preservation of Manifold Geometry:**

By isolating the flow training from Q-learning gradients, DeFlow prevents mode collapse, ensuring the policy remains grounded in the dataset support even during aggressive value maximization.

** Optimization Stability & Efficiency:**

DeFlow bypasses the need for computationally expensive BPTT, utilizing efficient, standard gradients for the refinement module to make policy extraction significantly faster and more stable.

** Seamless Offline-to-Online Adaptation:**

The Lagrangian mechanism acts as an auto-tuning gatekeeper; during online fine-tuning, the multiplier automatically adjusts, allowing the refinement module to explore more aggressively without manual hyperparameter retuning.

Hyperparameter Management and Adaptivity

DeFlow introduces a learnable Lagrangian multiplier α that is automatically adjusted to satisfy the constraint by minimizing L(α). This mechanism acts as a feedback controller, where if the refinement becomes too aggressive (∥∆a∥ squared > δ), α increases to enforce manifold adherence, and if the policy is conservative, α decreases to prioritize value maximization.

The target divergence δ is set based on the estimated Intrinsic Action Variance (IAV) of the dataset, calculated by averaging the variance of actions among k-nearest neighbors. This heuristic contrasts sharply with the exhaustive grid search required for the behavioral cloning weight α in prior works.

Experimental Validation

Empirical evaluations on 73 offline RL tasks and 15 O2O tasks demonstrate that DeFlow achieves SOTA or near-SOTA performance on complex environments such as cube-double-play and puzzle-3x3-play. The results show that DeFlow matches or exceeds state-of-the-art methods relying on complex joint optimization.

Furthermore, the analysis of inference scaling reveals a Trust Region Saturation phenomenon, indicating that the refinement module efficiently consumes the optimization budget in a single forward pass, suggesting that simply “sampling more” is futile when the valid optimization landscape is already saturated. The method also shows success in combining with value modeling methods like floq’s value function, observing synergistic improvements without any tuning.

The paper concludes that DeFlow positions itself as a lens to re-examine the interplay between generative diversity and critic-guided optimization, suggesting that navigating the signal-to-noise ratio of the learned Q-function through a deterministic, constrained gradient step could be safer than blind maximization. The next breakthrough is posited to lie in Manifold-Aware Sampling to explore the value landscape while explicitly adhering to the complex topology of the behavior manifold.

References

Agrawalla, B., Nauman, M., Agrawal, K., and Kumar, A. floq: Training critics via flow-matching for scaling compute in value-based rl. arXiv preprint arXiv:2509.06863, 2025

Ankile, L., Simeonov, A., Shenfeld, I., Torne, M., and Agrawal, P. From imitation to refinement – residual rl for precise assembly. In 2025 IEEE International Conference on Robotics and Automation (ICRA), pp. 01–08. IEEE, 2025

Ball, P. J., Smith, L., Kostrikov, I., and Levine, S. Efficient online reinforcement learning with offline data. In International Conference on Machine Learning (ICML), 2023

Chen, H., Lu, C., Wang, Z., Su, H., and Zhu, J. Score regularized policy optimization through diffusion behavior. In International Conference on Learning Representations (ICLR), 2024

Cho, K., van Merrienboer, B., Çaglar Gülçehre, Bahdanau, D., Bougares, F., Schwenk, H., and Bengio, Y. Learning phrase representations using rnn encoder–decoder for statistical machine translation. In Conference on Empirical Methods in Natural Language Processing (EMNLP), 2014

Ding, Z. and Jin, C. Consistency models as a rich and efficient policy class for reinforcement learning. In International Conference on Learning Representations (ICLR), 2024

Dong, P., Zheng, C., Finn, C., Sadigh, D., and Eysenbach, B. Value flows, 2025. URL https://arxiv.org/abs/2510.07650

Espinosa-Dice, N., Zhang, Y., Chen, Y., Guo, B., Oertell, O., Swamy, G., Brantley, K., and Sun, W. Scaling offline rl via efficient and expressive shortcut models. arXiv preprint arXiv:2505.22866, 2025

Fu, J., Kumar, A., Nachum, O., Tucker, G., and Levine, S. D4rl: Datasets for deep data-driven reinforcement learning. ArXiv, abs/2004.07219, 2020

Fujimoto, S. and Gu, S. S. A minimalist approach to offline reinforcement learning. In Neural Information Processing Systems (NeurIPS), 2021

Haarnoja, T., Zhou, A., Abbeel, P., and Levine, S. Soft actorcritic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. In arXiv, 2018. URL https://arxiv.org/pdf/1801.01290.pdf

Hansen-Estruch, P., Kostrikov, I., Janner, M., Kuba, J. G., and Levine, S. Idql: Implicit q-learning as an actor-critic method with diffusion policies. ArXiv, abs/2304.10573, 2023

He, K., Zhang, X., Ren, S., and Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016

Janner, M., Du, Y., Tenenbaum, J. B., and Levine, S.

Improvements for AI systems

  1. Bold header: Decoupled Modeling for Complex Manifolds

This system can faithfully capture complex, non-Gaussian behavior manifolds using a multi-step flow matching policy while simultaneously allowing for value maximization via a separate refinement module, thereby resolving the expressivity-optimization conflict.

  1. Bold header: Stable Policy Improvement via Residual Refinement

The AI can perform precise value maximization without destroying the manifold geometry by utilizing a lightweight Action Refinement Module that learns a residual shift on the generated action, bypassing computationally prohibitive backpropagation through ODE solvers.

  1. Bold header: Dynamic Constraint Management for Robustness

The system employs an automated Lagrangian constraint mechanism where the Lagrangian multiplier dynamically adjusts based on divergence, ensuring preservation of manifold geometry and providing stability during both offline training and online adaptation without requiring fixed, brittle hyperparameters.

  1. Bold header: Seamless Offline-to-Online Adaptation

The AI can transition from offline to online training by freezing the Base Flow (behavioral prior) while allowing the refinement module to evolve via the auto-tuned multiplier α, enabling online fine-tuning without manual hyperparameter retuning or structural changes.

  1. Bold header: Efficient and Scalable Policy Extraction

The framework achieves this by bypassing BPTT through the Stop-Gradient operator during refinement, making policy extraction significantly faster and more stable compared to methods that require differentiating through the solver.

Abstract

We present DeFlow, a decoupled offline RL framework that leverages flow matching to faithfully capture complex behavior manifolds. Optimizing generative policies is computationally prohibitive, typically necessitating backpropagation through ODE solvers. We address this by learning a lightweight refinement module within an explicit, data-derived trust region of the flow manifold, rather than sacrificing the iterative generation capability via single-step distillation. This way, we bypass solver differentiation and eliminate the need for balancing loss terms, ensuring stable improvement while fully preserving the flow's iterative expressivity. Empirically, DeFlow achieves superior performance on the challenging OGBench benchmark and demonstrates efficient offline-to-online adaptation.

Sources

Related papers