Flow Matching for Offline Reinforcement Learning with Discrete Actions
Fairoz Nower Khan, Nabuat Zaman Nahim, Ruiquan Huang, Haibo Yang, Peizhong Ju
TL;DR
This paper extends flow matching to offline RL with discrete actions by introducing Q-weighted discrete flow matching (QDFM) built on Continuous-Time Markov Chains (CTMCs). It replaces continuous ODE-based flows with CTMC dynamics, enabling principled policy improvement via a Boltzmann-style, Q-guided objective and allowing multi-objective and multi-agent extensions through preference conditioning and factorized transitions. The authors prove gradient equivalence between the weighted conditional loss and a guided marginal objective, ensuring recovery of the KL-regularized optimal policy under suitable assumptions. Empirically, QDFM demonstrates strong performance on discretized MuJoCo tasks, multi-objective discrete benchmarks, and a two-agent coordination game, while offering flexible inference through action quantization and robust preference-driven behavior. The framework provides a principled, scalable path to discrete, multi-objective offline RL with potential extensions to online and decentralized multi-agent settings.
Abstract
Generative policies based on diffusion models and flow matching have shown strong promise for offline reinforcement learning (RL), but their applicability remains largely confined to continuous action spaces. To address a broader range of offline RL settings, we extend flow matching to a general framework that supports discrete action spaces with multiple objectives. Specifically, we replace continuous flows with continuous-time Markov chains, trained using a Q-weighted flow matching objective. We then extend our design to multi-agent settings, mitigating the exponential growth of joint action spaces via a factorized conditional path. We theoretically show that, under idealized conditions, optimizing this objective recovers the optimal policy. Extensive experiments further demonstrate that our method performs robustly in practical scenarios, including high-dimensional control, multi-modal decision-making, and dynamically changing preferences over multiple objectives. Our discrete framework can also be applied to continuous-control problems through action quantization, providing a flexible trade-off between representational complexity and performance.
