Anytime-Constrained Equilibria in Polynomial Time

Jeremy McMahan

Introduction: The Challenge of Strict Safety

In real-world Reinforcement Learning (RL) applications, such as autonomous driving or medical treatments, safety cannot be treated as a mere "on average" requirement. Most existing constrained RL literature focuses on expectation-constrained models, where budgets are met over the long run. Unfortunately, these models can permit catastrophic short-term failures.

To address this, researchers study anytime constraints, which demand that a budget or safety threshold is never violated at any point during an episode. While well-explored for single agents, extending anytime constraints to multi-agent Markov Games introduces a massive hurdle: an agent's ability to remain safe is inextricably linked to the actions of others. This paper introduces the first comprehensive theoretical framework for Anytime-Constrained Equilibria (ACE) in multi-agent Markov games, bridging a critical gap in safe multi-agent RL.

The Anytime-Constrained Framework

The authors demonstrate that in multi-agent settings, standard algorithms fail because the set of feasible actions for one player is coupled with the choices of others. In fact, the paper proves that even for simple two-player zero-sum games with only a single state, finding a feasible joint policy is NP-hard. This inherent complexity justifies why approximation is the necessary gold standard for this domain.

Algorithmic Approach

To tackle this NP-hard problem, the authors develop a robust algorithmic pipeline:

  1. Feasibility Characterization via AND/OR Trees: The authors use an AND/OR tree (the Feasibility Tree) to identify all "feasibly realizable" histories. In this structure, an action represents an AND node (all resulting states must be safe), while a state-cost triple is an OR node (only one safe action needs to exist).
  2. Reduction to Action-Constrained Markov Games (aMGs): The anytime-constrained game is transformed into a more manageable aMG. By augmenting the state space with the current accumulated cost, the "anytime" requirement becomes a per-step restriction on the available action space, decoupling the need to track the entire history.
  3. Stage-Game Linear Programming: To solve these aMGs, the authors introduce a novel Linear Program (LP) for stage games. Unlike standard games, this LP ensures the support of the joint strategy stays strictly within the "safe" action set, handling the non-product nature of these constrained spaces.
  4. Approximation via Rounding: To achieve polynomial-time execution, a rounding and truncation technique is introduced. Discretizing the cost space prevents the state-space explosion that typically renders these problems intractable.

Key Theoretical Results

The paper provides several foundational guarantees for ACE:

  • Fixed-Parameter Tractable (FPT) Algorithm: An exact algorithm that runs in polynomial time if the precision of the costs (number of bits) is small.
  • Polynomial-Time Approximation: An algorithm that computes an $\epsilon$-feasible ACE in polynomial time relative to the game size $|G|$ and $1/\epsilon$.
  • Optimality: Because the underlying problem is NP-hard, these approximation guarantees are the best possible results under the assumption that $P \neq NP$.
  • Existence Proof: The authors mathematically prove that an Anytime-Constrained Subgame-Perfect Equilibrium (ACSPE) exists whenever a feasible policy exists.
  • Action-Constrained Theory: As a significant secondary contribution, the paper develops the first efficient theory for action-constrained Markov games, which has broad applicability beyond anytime constraints.

Limitations and Future Directions

As a purely theoretical and algorithmic contribution, the paper relies on mathematical proofs rather than empirical benchmarks. Several challenges remain for future work:

  • Curse of Dimensionality: While the approximation algorithm is polynomial, the augmented state space still grows exponentially with the number of agents ($n$) and the inverse of the approximation error ($1/\epsilon^n$). Scaling to very large systems remains a hurdle.
  • Tabular Assumptions: The current theory assumes a tabular (finite state/action) setting. Extending these guarantees to continuous spaces or function approximation (Deep RL) is a crucial next step.
  • Model-Based Requirements: The algorithms assume full knowledge of game transitions and costs. Developing "model-free" versions of these anytime-constrained solvers will be necessary for broader real-world deployment.

Summary updated

BibTeX
@inproceedings{mcmahan2025anytime,
  author = {Jeremy McMahan},
  title = {{Anytime-Constrained Equilibria in Polynomial Time}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=8mEhwcebmz},
}
Figure