Introduction
In offline reinforcement learning (RL), agents must learn optimal behaviors from fixed datasets without any environment interaction. Recently, Diffusion Q-Learning (DQL) has emerged as a top-tier approach because diffusion models can represent complex, multi-modal action distributions far better than simple Gaussian policies.
However, DQL suffers from a major "bottleneck": it requires an iterative denoising process (often 5 to 50 steps) to generate a single action. This leads to two primary issues:
- Slow Inference: The agent cannot make decisions quickly enough for real-time applications.
- Fragile Training: To update the policy, the algorithm must backpropagate gradients through the entire chain of denoising steps. This "Backpropagation-Through-Time" (BPTT) is computationally expensive and prone to numerical instability, often leading to suboptimal convergence.
Existing solutions usually involve "distillation"—training a fast student model to mimic a slow teacher—but this adds complexity and often degrades performance. One-Step Flow Q-Learning (OFQL) eliminates this bottleneck by replacing slow, multi-step denoising with a single-step action generation process, achieving state-of-the-art performance while remaining significantly faster and more numerically stable.
The Solution: Average Velocity Matching
OFQL moves away from the standard Diffusion (DDPM) framework and adopts Flow Matching (FM). While standard FM learns an instantaneous velocity field to move noise toward data, those paths are often curved, making a single-step "jump" inaccurate.
To solve this, the authors introduce Average Velocity Matching. Instead of learning the velocity at a specific moment, the model learns the average velocity required to travel between any two points in time.
- The Innovation: By utilizing the MeanFlow Identity, a mathematical reformulation, the network learns this average velocity directly without needing to perform expensive numerical integration during training. This effectively "straightens" the trajectory for the model.
- One-Step Inference: Once trained, generating an action is a simple, differentiable one-step calculation: $Action = Noise - AverageVelocity$.
- Actor-Critic Integration: Because the action generation is a single step, the policy can be plugged into a standard Q-learning framework without the need for BPTT through multiple denoising iterations.
By removing the need to backpropagate through multiple steps, the training becomes much more stable. This stability is a primary reason why OFQL actually outperforms the multi-step models it was meant to accelerate, all while preserving the highly non-linear expressivity needed to capture multi-modal behavioral nuances.
Experimental Setup
The researchers evaluated OFQL on several standard and challenging benchmarks:
- D4RL: The industry standard, including MuJoCo (locomotion), AntMaze (navigation with sparse rewards), and Franka Kitchen (robotic manipulation).
- Adroit: High-dimensional (24-DoF) robotic hand tasks.
- OGBench: Visual manipulation tasks based on pixel observations.
- Toy Datasets: Synthetic distributions used to visualize the model's ability to capture complex shapes in a single step.
Key Results
OFQL demonstrates that eliminating the diffusion bottleneck is not just a speedup, but a fundamental improvement to the learning process.
- Superior Performance: On the D4RL MuJoCo benchmark, OFQL achieved an average normalized score of 92.5, significantly higher than DQL (87.9) and the previous one-step leader, FQL (79.2).
- Massive Speedups:
- Inference: OFQL reaches a decision frequency of 846.5 Hz on an A100 GPU. For comparison, a 5-step DQL runs at 238.7 Hz, and a 50-step DQL crawls at 35.5 Hz.
- Training: OFQL completes 1 million training steps in just 6.3 hours, whereas a 50-step DQL requires nearly 50 hours.
- Robustness in AntMaze: In the difficult AntMaze-Medium-Play task, OFQL scored 88.1, nearly doubling the performance of several diffusion-based planners.
Limitations and Future Work
While OFQL is highly effective for state-based RL (proprioception), its performance in purely visual tasks (OGBench) currently lags behind specialized baselines. High-dimensional pixel inputs make the coupling between the visual encoder and the flow network much more fragile.
Additionally, the current work is strictly offline. Extending this one-step flow approach to online RL—where the agent learns through active exploration—remains an open and promising research direction. Finally, the "flow ratio" (balancing instantaneous vs. average velocity learning) introduces a new hyperparameter that requires tuning for optimal stability.
Summary updated