Introduction
In many real-world reinforcement learning (RL) applications—such as autonomous driving, robotics, or automated ad auctions—simply maximizing rewards is insufficient. Agents must also strictly adhere to safety, physical, or budgetary constraints. These scenarios are modeled as Constrained Markov Decision Processes (CMDPs).
This paper introduces the first "best-of-both-worlds" (BoBW) algorithm for CMDPs that operates under bandit feedback. It achieves optimal performance guarantees (minimizing both regret and constraint violations) regardless of whether the environment's constraints are predictable (stochastic) or change maliciously over time (adversarial). Crucially, it accomplishes this using a computationally efficient policy optimization approach, bridging a significant gap in the current literature.
The Challenge of Constrained MDPs
Deploying RL agents safely requires overcoming two primary hurdles regarding how feedback is received and how constraints behave:
- Bandit Feedback vs. Full Feedback: Most existing theoretical algorithms assume "full feedback," meaning the agent can observe the rewards and costs for every possible action it could have taken. In reality, agents typically only receive "bandit feedback"—they only observe the outcome of the specific trajectory they actually executed.
- Stochastic vs. Adversarial Constraints: Constraints can be stochastic (drawn from a fixed, albeit unknown, distribution) or adversarial (changing dynamically to thwart the learner).
Previous BoBW algorithms successfully handled both types of constraints but relied heavily on full feedback. Furthermore, they were computationally expensive, requiring the solution of complex convex optimization problems over the space of "occupancy measures" at every step. This paper resolves these issues by designing an algorithm that works with limited bandit feedback and runs efficiently.
Methods: Primal-Dual Bandit Policy Search (PDB-PS)
The authors propose a novel algorithm called PDB-PS (Primal-Dual Bandit Policy Search), which relies on a primal-dual framework to balance reward maximization with constraint satisfaction:
- The Primal (Policy Update): PDB-PS utilizes a new method called FS-PODB (Fixed Share Policy Optimization with Dilated Bonus). Instead of optimizing over global occupancy measures, FS-PODB updates the policy state-by-state. It incorporates a "dilated bonus" to encourage exploration and a "fixed-share" update mechanism to ensure the algorithm remains stable over any arbitrary time interval (achieving "no-interval regret").
- The Dual (Constraint Management): The algorithm uses Online Gradient Descent to manage Lagrange multipliers, which act as dynamic penalties for violating constraints.
- Dynamic Learning Rates: Because the range of the losses depends on the fluctuating Lagrange multipliers, the algorithm dynamically adjusts its learning rate based on the highest penalty observed so far.
- Automatic Bounding: The algorithm automatically keeps penalties in check through its internal learning dynamics, removing the need to know the "Slater parameter" (a prior measure of how feasible the constraints are).
Key Insights
- Policy Space vs. Occupancy Space: In bandit settings, interpolating between occupancy measures is problematic because the resulting distribution might not represent a valid, physically traversable path. By performing updates directly in the policy space, PDB-PS maintains physical consistency and drastically improves computational efficiency.
- The Necessity of No-Interval Regret: To handle unknown constraint feasibility without the algorithm's penalties exploding, standard "no-regret" guarantees are insufficient. The algorithm must achieve low regret over any sub-interval of time. This stability allows the Lagrange multipliers to remain bounded automatically.
- Overcoming Impossibility Results: It is mathematically impossible to achieve sublinear regret and sublinear violation against a strong adversarial baseline. The authors circumvent this by proving their algorithm achieves a "competitive ratio" (a tight fraction of the optimal reward) while keeping violations low, or by achieving full optimality against a slightly weaker, step-by-step baseline.
Theoretical Guarantees
The paper provides rigorous mathematical bounds for the PDB-PS algorithm:
- Stochastic Constraints: The algorithm achieves $\tilde{\mathcal{O}}(\sqrt{T})$ regret and $\tilde{\mathcal{O}}(\sqrt{T})$ constraint violation. This matches the "gold standard" for online learning.
- Adversarial Constraints: It maintains $\tilde{\mathcal{O}}(\sqrt{T})$ constraint violation and achieves a tight fraction of the optimal reward. If evaluated against a baseline where the policy must satisfy constraints at every single step, it recovers the $\tilde{\mathcal{O}}(\sqrt{T})$ regret bound.
- Robustness: Even if the environment is barely feasible (characterized by a very small Slater parameter), the algorithm still guarantees sublinear bounds of $\tilde{\mathcal{O}}(T^{3/4})$.
Limitations and Future Work
While PDB-PS marks a significant theoretical leap, it remains a mathematically focused work. The algorithm requires maintaining various estimators (like the dilated bonus), which may become complex to implement in environments with highly dimensional state spaces. Additionally, performance in the adversarial setting is sensitive to the choice of the baseline, which remains a nuanced challenge.
The authors note that the next logical step is empirical validation. Testing this policy optimization approach on high-fidelity simulators for robotics or autonomous driving will be crucial to see how these strong theoretical bounds translate into real-world performance.
Summary updated