Abstract
In safety-critical systems, "average" performance is often an insufficient metric for safety. While traditional constrained reinforcement learning focuses on expectation-based budgets, this paper introduces a framework for "anytime constraints" in Multi-Agent Reinforcement Learning (MARL). Anytime constraints require that costs remain under a specified budget at every discrete time step. Although determining feasibility in this setting is NP-hard, this research provides a theoretical pipeline and algorithms capable of computing equilibria in polynomial time, provided cost precision is limited or a marginal budget slack is permissible. This work establishes the first general theory for efficiently computing equilibria in Markov games with joint action constraints.
Introduction
In the domain of reinforcement learning, safety is frequently modeled as a constraint on the expected cumulative cost. However, in high-stakes environments such as autonomous driving or medical robotics, a violation at any single moment can be catastrophic. This necessitates "anytime constraints," which dictate that the accumulated cost must never exceed a budget at any point in the trajectory.
While anytime constraints have been explored in single-agent settings, the multi-agent transition to Markov Games introduces significant complexity. In these games, the feasibility of one agent's actions is often coupled with the actions of others. If multiple agents simultaneously execute high-cost actions, they may collectively violate a shared budget. This coupling breaks standard game-theory solvers because the available action space is no longer a simple product of individual action sets, making the search for an equilibrium—where no player has an incentive to deviate—a formidable computational challenge.
Problem Formulation and Complexity
The core difficulty of anytime-constrained MARL lies in the state-dependent and non-product nature of the action spaces. Because the "legality" of a joint move is intertwined across agents, the problem of even determining if a valid policy exists is NP-hard. Furthermore, the difficulty scales not just with the number of agents or states, but with the precision of the costs involved. High-precision decimal costs make the state space effectively much larger than simple integer costs, leading to what can be described as a "curse of precision."
Methodology
The paper addresses these challenges through a three-step theoretical framework designed to map, reduce, and solve the constrained game.
1. Feasibility Characterization
The algorithm first constructs an AND/OR tree (referred to as a "Feasibility Tree") to map every possible history of the game. By systematically pruning nodes that lead to unavoidable budget violations, the framework identifies the complete set of "safe" states and actions available to the agents.
2. Reduction to Action-Constrained Games
The research proves that an anytime-constrained Markov Game can be transformed into a more general "action-constrained" Markov Game. In this transformed model, the anytime constraints are integrated directly into the permitted action sets at each state, simplifying the equilibrium search to a known (though still difficult) class of problems.
3. The Constrained Solver
To solve these games, the author employs backward induction paired with a modified Linear Program (CLP). Unlike standard LP solvers used in game theory, the CLP specifically ignores illegal, budget-violating moves. This ensures that the resulting strategy only supports joint actions that are guaranteed to be feasible.
4. Approximation via Rounding
To bypass the NP-hardness associated with high-precision costs, the author introduces a rounding and truncation technique. By treating costs as multiples of a small value ((\ell)), the algorithm can find an "approximately feasible" equilibrium. This approach frames the solution as Fixed-Parameter Tractable (FPT) with respect to cost precision, ensuring polynomial-time computation when costs are not infinitely granular.
Key Results
The theoretical contributions of this paper are fourfold:
- Existence of Equilibrium: The paper proves that an Anytime-Constrained Equilibrium (ACE) is guaranteed to exist, provided there is at least one feasible policy for the game.
- Complexity Bounds: The author demonstrates a polynomial-time algorithm for computing ACE when the cost precision is logarithmic relative to the problem size.
- Approximation Guarantees: The proposed approximation algorithm (Algorithm 4) runs in (O(\text{poly}(|G|, 1/\epsilon^n))) time. It returns a policy that is (\epsilon)-additive feasible, meaning any budget violation is restricted to a tiny, controllable margin.
- General Action-Constrained Theory: Beyond the specific scope of anytime constraints, the paper develops a broader theory for efficiently computing equilibria in Markov games with arbitrary constraints on joint actions.
Discussion and Future Work
While this research provides a robust mathematical foundation for anytime constraints in MARL, several challenges remain. The "curse of precision" implies that as the number of agents increases, the computation time still scales exponentially ((1/\epsilon^n)), which may limit application in extremely large-scale systems. Additionally, while the paper successfully addresses Correlated Equilibria (where agents coordinate via a signal), finding a Nash Equilibrium (where agents must act independently) remains a more difficult open problem.
Finally, the current framework assumes a planning context where the game's transitions and costs are known. Transitioning these insights into a model-free reinforcement learning setting, where agents must learn these constraints through interaction, represents a significant and necessary path for future research.
Summary updated