[Paper Review] Stochastic Primal-Dual Q-Learning
This paper proposes Stochastic Primal-Dual Q-Learning (SPD Q-learning), a novel model-free, off-policy reinforcement learning algorithm that formulates Q-learning as a stochastic primal-dual optimization problem. It guarantees convergence with a provable rate even under time-varying state-action distributions, achieving an $ \varepsilon$-suboptimal policy with $\mathcal{O}\left(\frac{|\mathcal{S}|^{6}|\mathcal{A}|^{4}}{\zeta^{4}(1-\alpha)^{6}}\frac{1}{\varepsilon^{2}}\ln\left(\frac{1}{\delta}\right)\right)$ samples with probability $1-\delta$. The method enables policy recovery from both primal and dual solutions without importance sampling.
In this work, we present a new model-free and off-policy reinforcement learning (RL) algorithm, that is capable of finding a near-optimal policy with state-action observations from arbitrary behavior policies. Our algorithm, called the stochastic primal-dual Q-learning (SPD Q-learning), hinges upon a new linear programming formulation and a dual perspective of the standard Q-learning. In contrast to previous primal-dual RL algorithms, the SPD Q-learning includes a Q-function estimation step, thus allowing to recover an approximate policy from the primal solution as well as the dual solution. We prove a first-of-its-kind result that the SPD Q-learning guarantees a certain convergence rate, even when the state-action distribution is time-varying but sub-linearly converges to a stationary distribution. Numerical experiments are provided to demonstrate the off-policy learning abilities of the proposed algorithm in comparison to the standard Q-learning.
Motivation & Objective
- To address the gap between theory and practice in off-policy reinforcement learning by enabling reliable policy learning from real-world trajectories.
- To develop a model-free, off-policy RL algorithm that does not require importance sampling, unlike standard off-policy methods.
- To provide theoretical guarantees for convergence and sample complexity under non-stationary, time-varying state-action distributions.
- To unify Q-function estimation with primal-dual optimization, allowing policy recovery from both primal and dual solutions.
- To establish the first convergence rate guarantee for off-policy RL under sub-linearly converging state-action distributions.
Proposed method
- Formulates the Bellman equation as a linear program (LP) and derives its Lagrangian dual, enabling a primal-dual optimization framework.
- Proposes a stochastic primal-dual algorithm that updates both primal (Q-function) and dual (Lagrangian multipliers) variables using online samples from arbitrary behavior policies.
- Introduces a Q-function estimation step that allows recovery of an approximate policy directly from the primal solution.
- Uses a diminishing step size rule and stochastic subgradients to handle sampling noise and ensure convergence.
- Employs a saddle-point problem formulation to jointly optimize the Lagrangian, leveraging duality to ensure convergence to the optimal policy.
- Analyzes the algorithm using martingale difference sequences and concentration inequalities to derive sample complexity bounds.
Experimental results
Research questions
- RQ1Can a model-free, off-policy RL algorithm be designed that guarantees convergence under time-varying state-action distributions without importance sampling?
- RQ2Can a primal-dual formulation of Q-learning be constructed such that both primal and dual solutions yield a recoverable policy?
- RQ3What is the theoretical convergence rate of such a primal-dual Q-learning algorithm under non-stationary sampling?
- RQ4How does the sample complexity scale with state and action space size, discount factor, and desired accuracy?
- RQ5Can the duality gap be bounded with high probability under stochastic sampling?
Key findings
- The SPD Q-learning algorithm guarantees convergence with a provable rate even when the state-action distribution is time-varying but sub-linearly converges to a stationary distribution.
- The algorithm achieves a duality gap less than or equal to $\varepsilon$ with probability $1-\delta$ using $\mathcal{O}\left(\frac{|\mathcal{S}|^{4}|\mathcal{A}|^{4}}{\zeta^{4}(1-\alpha)^{4}}\frac{1}{\varepsilon^{2}}\ln\left(\frac{1}{\delta}\right)\right)$ iterations.
- An $\varepsilon$-suboptimal policy can be recovered with probability at least $1-\delta$ using $\mathcal{O}\left(\frac{|\mathcal{S}|^{6}|\mathcal{A}|^{4}}{\zeta^{4}(1-\alpha)^{6}}\frac{1}{\varepsilon^{2}}\ln\left(\frac{1}{\delta}\right)\right)$ iterations.
- The method enables policy recovery from both primal and dual solutions, eliminating the need for additional policy optimization steps.
- The convergence analysis establishes a non-asymptotic sample complexity bound that depends on the size of the state and action spaces, the discount factor, and the distribution's mixing rate via $\zeta$.
- Numerical experiments validate the off-policy learning capability of SPD Q-learning, demonstrating robust performance compared to standard Q-learning under non-uniform behavior policies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.