Continuous Q-Score Matching: Diffusion Guided Reinforcement Learning for Continuous-Time Control
Chengxiu Hua, Jiawen Gu, Yushun Tang
TL;DR
This work develops Continuous Q-Score Matching (CQSM), a continuous-time reinforcement learning framework where state-action dynamics follow stochastic differential equations and the Q-function $Q(t,x,a)$ is learned via a martingale-based characterization. By deriving a dynamic programming/HJB formulation and a score-improvement theorem, CQSM couples the Q-function with the score of a diffusion policy, enabling model-free, actor-critic–style policy updates that align the policy score with the action gradient of $Q$. The approach yields analytic validation in linear-quadratic stochastic control and demonstrates early-training advantages over continuous-time policy gradient and little q-learning on LQ tasks, with competitive performance on broader continuous-control benchmarks. Overall, CQSM preserves action-aware Q-learning in continuous time without time discretization, offering principled policy improvement and potential applications in finance, robotics, and other domains with fine-grained temporal decision-making.
Abstract
Reinforcement learning (RL) has achieved significant success across a wide range of domains, however, most existing methods are formulated in discrete time. In this work, we introduce a novel RL method for continuous-time control, where stochastic differential equations govern state-action dynamics. Departing from traditional value function-based approaches, our key contribution is the characterization of continuous-time Q-functions via a martingale condition and the linking of diffusion policy scores to the action gradient of a learned continuous Q-function by the dynamic programming principle. This insight motivates Continuous Q-Score Matching (CQSM), a score-based policy improvement algorithm. Notably, our method addresses a long-standing challenge in continuous-time RL: preserving the action-evaluation capability of Q-functions without relying on time discretization. We further provide theoretical closed-form solutions for linear-quadratic (LQ) control problems within our framework. Numerical results in simulated environments demonstrate the effectiveness of our proposed method and compare it to popular baselines.
