TLDR: floq introduces a novel method for training Q-functions in reinforcement learning by modeling them as a velocity field. This approach uses flow-matching, a technique from generative modeling, to enable iterative computation with dense supervision at each step. This allows floq to scale Q-function capacity more effectively than traditional methods, leading to significant performance improvements in challenging offline and online RL tasks. It outperforms other scaling methods like ResNets and ensembles, and offers flexible test-time scaling.
In the rapidly evolving field of artificial intelligence, particularly in reinforcement learning (RL), the ability to scale models and computations is paramount for tackling increasingly complex problems. A new research paper introduces an innovative approach called floq (flow-matching Q-functions), which aims to significantly enhance how Q-functions, or ‘critics,’ are trained in value-based RL. This method draws inspiration from the success of iterative computation in large-scale machine learning techniques like language models and diffusion models, where dense supervision at intermediate steps allows for learning complex functions in a generalizable manner.
Traditionally, Q-functions in RL represent value functions in a monolithic way, meaning they predict a single value without iterative computation. This often limits their capacity and ability to generalize, especially in challenging scenarios like offline RL, where agents learn from static datasets. The authors, Bhavya Agrawalla, Michal Nauman, Khush Agarwal, and Aviral Kumar, from Carnegie Mellon University and the University of Warsaw, propose a paradigm shift by parameterizing the Q-function using a velocity field, a concept borrowed from flow-matching in generative modeling. This allows for a more fine-grained control over the Q-function’s capacity by adjusting the number of integration steps, effectively scaling compute.
How floq Works: An Iterative Approach to Value Learning
At its core, floq re-imagines Q-value prediction as a process of transforming a randomly sampled ‘noise’ input into a scalar Q-value. This transformation happens through the numerical integration of a learned velocity field. Imagine starting with a random point and then following a series of small, guided steps, each determined by the velocity field, until you arrive at the final Q-value. Crucially, the velocity field is trained using a temporal difference (TD) learning objective, but unlike traditional methods, it receives dense supervision at every intermediate step of this integration process. This is a key differentiator, as it allows the model to learn and correct itself iteratively, much like how diffusion models progressively denoise images.
The iterative nature of floq means that the complexity of the Q-function can be dynamically adjusted by simply changing the number of integration steps. More steps mean more computation and potentially a more accurate Q-value estimate. This contrasts with conventional Q-function architectures, where increasing capacity typically involves adding more layers or parameters, which can be difficult to train stably.
Significant Performance Gains and Scaling Advantages
The research demonstrates that floq delivers substantial performance improvements. Across a suite of challenging offline RL benchmarks and online fine-tuning tasks, floq improved performance by nearly 1.8 times compared to existing state-of-the-art methods that use monolithic Q-networks. These gains were particularly pronounced in ‘hard’ environments, where other methods struggled.
One of the most compelling findings is floq’s superior scaling properties. When compared against other ways of increasing Q-function capacity, such as using deeper ResNet architectures or ensembles of multiple Q-networks, floq consistently outperformed them, even when matched for computational budget. This suggests that the dense, step-wise supervision inherent in floq’s iterative computation is more effective than simply adding more parallel or sequential compute without such fine-grained guidance.
Furthermore, floq introduces a novel concept of ‘test-time scaling.’ This means that during deployment, the accuracy of the Q-function can be amplified by simply increasing the number of integration steps, without needing to retrain or add new parameters to the model. This offers a flexible way to trade off compute for performance as needed.
Key Design Choices for Robustness
The authors highlight several crucial design choices that were essential for making floq work effectively and preventing ‘flow collapse’ (where the flow behaves like a simple monolithic network):
- Initial Noise Distribution: Carefully setting the range of the initial noise sample ensures that the learned flow trajectories are sufficiently ‘curved,’ which is necessary for the iterative computation to add meaningful capacity.
- Categorical Input Representation: Using a categorical (HL-Gauss) representation for the intermediate values during integration helps stabilize training, especially when dealing with the non-stationary nature of Q-value targets.
- Fourier-Basis Time Embeddings: Employing Fourier embeddings for the ‘time’ variable allows the velocity network to effectively condition its predictions on the current step of the integration, enabling distinct behaviors at different times.
These design choices collectively ensure that floq can leverage iterative computation to its full potential, leading to more expressive and robust Q-functions.
Also Read:
- Reinforcement Learning: The Core Driver for Advanced AI Research Systems
- Optimizing Industrial Scheduling: A Novel DRL Environment for Flexible Job-Shops
Future Directions
The introduction of floq opens up several exciting avenues for future research. These include exploring optimal strategies for setting the number of integration steps, leveraging floq’s inherent ‘cascaded’ family of critics for deployment tuning or policy extraction, and combining this sequential scaling with other parallel scaling techniques. From a theoretical standpoint, understanding how floq’s iterative computation enables ‘error correction’ and ‘backtracking’ in the continuous value space, similar to reasoning in large language models, could provide profound insights for value-based RL and generative models alike.
For those interested in the technical details, the full research paper can be found at arXiv:2509.06863.


