Abstract
This paper presents the first model-free, simulator-free reinforcement learning algorithm for Constrained Markov Decision Processes (CMDPs) with sublinear regret and zero constraint violation. The algorithm, named Triple-Q, incorporates three key components: a Q-function for cumulative reward, a Q-function for cumulative utility (constraints), and a virtual-Queue that overestimates cumulative constraint violations. By selecting actions based on a combination of these values and employing a two-time-scale update rule, Triple-Q achieves a regret bound of $\tilde{\mathcal{O}}\left(\frac{1}{\delta} H^4 S^{\frac{1}{2}} A^{\frac{1}{2}} K^{\frac{4}{5}}\right)$ while guaranteeing zero constraint violation for large $K$.
Introduction
Standard Reinforcement Learning (RL) focuses on maximizing a reward signal, which can lead to unsafe behavior in real-world applications like autonomous driving or healthcare. These scenarios are better modeled as Constrained Markov Decision Processes (CMDPs), where an agent must maximize rewards while keeping certain costs or utilities within specified bounds.
Existing CMDP solutions generally fall into two categories: model-based methods, which require learning environment transitions, and simulator-based methods, which require the ability to reset to any state. Triple-Q breaks this mold by providing a model-free and simulator-free approach that learns safely through direct interaction.
The Triple-Q Algorithm
The core of Triple-Q lies in its three tracking components:
- $Q_h(x, a)$: An action-value function for cumulative reward.
- $C_h(x, a)$: An action-value function for cumulative utility (safety).
- Virtual-Queue ($Z$): A dynamic variable tracking cumulative constraint violations, acting as a pessimistic Lagrange multiplier.
Two-Time-Scale Learning
Triple-Q operates across two distinct timescales by dividing the learning process into "frames" (groups of episodes):
- Fast Scale: Within each frame, the agent updates its reward and utility Q-functions using a SARSA-like rule. Actions are chosen greedily based on a "pseudo-Q-value": $Q_h + \frac{Z}{\eta}C_h$.
- Slow Scale: At the start of each new frame, the algorithm updates the Virtual-Queue ($Z$) based on previous violations and resets the learning rates and visit counts. This resetting is crucial for handling the non-stationarity introduced by the evolving safety priorities (the dual variable $Z$).
Theoretical Guarantees
Triple-Q is distinguished by its ability to achieve zero constraint violation in a model-free setting.
As illustrated in the table above, Triple-Q is the first model-free algorithm to provide a sublinear regret bound of $\tilde{\mathcal{O}}(K^{4/5})$ while maintaining exactly zero constraint violation. This is achieved through a "pessimistic" update to the virtual queue, which adds an extra utility buffer $\epsilon$ to ensure the agent stays well within safety boundaries. Unlike many model-based counterparts that achieve $\tilde{\mathcal{O}}(\sqrt{K})$ regret but allow for some violation, Triple-Q prioritizes absolute safety in the long run.
Experimental Results
The algorithm's effectiveness was validated across several benchmarks:
- Dynamic Gym: In a continuous 2D navigation task, "Deep Triple-Q" (using neural networks) learned a safe, high-reward policy in 0.45 million steps, an order of magnitude faster than the WCSAC baseline (4.5 million steps).
- Constrained Pendulum: Triple-Q achieved higher rewards than Control Barrier Function (CBF) methods without requiring any prior knowledge of the pendulum's physical model.
- Grid-World and Ball-1D: These tasks confirmed the algorithm's stability and its ability to handle both tabular and continuous state spaces.
Conclusion
Triple-Q provides a computationally efficient and theoretically grounded framework for safe RL. By leveraging a three-component Q-value system and a two-time-scale update mechanism, it bridges the gap between model-free flexibility and the strict safety requirements of real-world systems. While improving the regret bound remains an open research question, Triple-Q sets a new standard for model-free CMDP algorithms.
Summary updated