Abstract: Diffusion Q-Learning (DQL) has established diffusion policies as a high-performing paradigm for offline reinforcement learning, but its reliance on multi-step denoising for action generation renders both training and inference slow and fragile. Existing efforts to accelerate DQL toward one-step denoising typically rely on auxiliary modules or policy distillation, sacrificing either simplicity or performance. It remains unclear whether a one-step policy can be trained directly without such trade-offs. To this end, we introduce One-Step Flow Q-Learning (OFQL), a novel framework that enables effective one-step action generation during both training and inference, without auxiliary modules or distillation. OFQL reformulates the DQL policy within the Flow Matching (FM) paradigm but departs from conventional FM by learning an average velocity field that directly supports accurate one-step action generation. This design removes the need for multi-step denoising and backpropagation-through-time updates, resulting in substantially faster and more robust learning. Extensive experiments on the D4RL benchmark show that OFQL, despite generating actions in a single step, not only significantly reduces computation during both training and inference but also outperforms multi-step DQL by a large margin. Furthermore, OFQL surpasses all other baselines, achieving state-of-the-art performance in D4RL.
The Diffusion Bottleneck in Offline RL
In Offline Reinforcement Learning (RL), agents must learn optimal behaviors from fixed datasets without environment interaction. Diffusion Q-Learning (DQL) has become a dominant paradigm because diffusion models are exceptionally good at capturing the complex, multi-modal action distributions found in human-collected data.
However, DQL has a major "bottleneck": it relies on iterative denoising. To generate a single action, the model must perform multiple sequential steps (often 5 to 50). This makes inference slow and training computationally expensive, as gradients must be backpropagated through the entire denoising chain (Backpropagation Through Time, or BPTT). While previous researchers tried to "distill" these multi-step models into one-step versions, these methods often added significant complexity or sacrificed performance.
Methods: One-Step Flow Q-Learning
OFQL replaces the standard diffusion process with a novel Flow Matching (FM) framework. Standard Flow Matching learns an instantaneous velocity field, which often results in curved paths that require multiple steps to follow accurately.
Average Velocity Matching
OFQL's core innovation is reinterpreting the velocity field. Instead of instantaneous velocity, it learns the average velocity over an interval. By training a neural network to predict this average velocity, the model conceptually "straightens" the trajectory. This allows the agent to transport a sample from pure noise to a high-performing action in a single differentiable step.
Because the action generation is now a single step, the authors can directly compute the gradient of the Q-function with respect to the policy parameters. This removes the need for BPTT, making the optimization much more stable and faster. They also utilize the MeanFlow Identity to derive a tractable loss function that avoids computationally expensive integration during training.
Key Results and Performance
OFQL was evaluated across standard benchmarks including D4RL (MuJoCo, AntMaze, Franka Kitchen), Adroit, and OGBench. The results demonstrate that OFQL is not just a faster alternative, but a superior one.
- State-of-the-Art Performance: OFQL outperformed all baselines on the D4RL benchmark. In MuJoCo locomotion, it improved the average score from DQL's 87.9 to 92.5. In the difficult AntMaze domain, it jumped from 64.6 to 84.6.
- Massive Speedup:
- Inference: OFQL reaches a decision frequency of 846.5 Hz on an A100 GPU, compared to just 35.5 Hz for a 50-step DQL model.
- Training: OFQL completes 1 million training steps in roughly 6.3 hours, whereas a 50-step DQL model takes nearly 50 hours.
Conclusion
By modeling average velocity rather than instantaneous velocity, OFQL inherently supports one-step generation without needing a separate distillation phase. Removing the recursive gradient flow through multiple denoising steps provides a significant stability win, preventing numerical instability and leading to better convergence. OFQL retains the expressivity of diffusion models while breaking the computational bottleneck, setting a new state-of-the-art for offline reinforcement learning.
Summary updated