Online Learning in CMDPs: Handling Stochastic and Adversarial Constraints
Francesco Emanuele Stradi, Jacopo Germano, Gianmarco Genalti, Matteo Castiglioni, Alberto Marchesi, Nicola Gatti
Abstract
We study online learning in episodic constrained Markov decision processes (CMDPs), where the learner aims at collecting as much reward as possible over the episodes, while satisfying some long-term constraints during the learning process. Rewards and constraints can be selected either stochastically or adversarially, and the transition function is not known to the learner. While online learning in classical (unconstrained) MDPs has received considerable attention over the last years, the setting of CMDPs is still largely unexplored. This is surprising, since in real-world applications, such as, e.g., autonomous driving, automated bidding, and recommender systems, there are usually additional constraints and specifications that an agent has to obey during the learning process. In this paper, we provide the first best-of-bothworlds algorithm for CMDPs with long-term constraints, in the flavor of Balseiro et al. (2023). Our algorithm is capable of handling settings in which rewards and constraints are selected either stochastically or adversarially, without requiring any knowledge of the underling process. Moreover, our algorithm matches state-of-the-art regret and constraint violation bounds for settings in which constraints are selected stochastically, while it is the first to provide guarantees in the case in which they are chosen adversarially.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
8 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Primal-Dual Policy Optimization for Linear CMDPs with Adversarial Losses cites Upper Confidence Primal-Dual Reinforcement Learning for CMDP with Adversarial Loss
- Markov Persuasion Processes: Learning to Persuade From Scratch cites Upper Confidence Primal-Dual Reinforcement Learning for CMDP with Adversarial Loss
- Markov Persuasion Processes: Learning to Persuade From Scratch cites Learning Adversarial Markov Decision Processes with Bandit Feedback and Unknown Transition
- No-Regret Learning Under Adversarial Resource Constraints: A Spending Plan Is All You Need! cites A Unifying Framework for Online Optimization with Long-Term Constraints
- No-Regret Learning Under Adversarial Resource Constraints: A Spending Plan Is All You Need! cites Online Learning with Knapsacks: the Best of Both Worlds
- Data-Dependent Regret Bounds for Constrained MABs cites Upper Confidence Primal-Dual Reinforcement Learning for CMDP with Adversarial Loss
- Data-Dependent Regret Bounds for Constrained MABs cites A Unifying Framework for Online Optimization with Long-Term Constraints
- Data-Dependent Regret Bounds for Constrained MABs cites Learning Adversarial Markov Decision Processes with Bandit Feedback and Unknown Transition
- Data-Dependent Regret Bounds for Constrained MABs cites Online Learning with Knapsacks: the Best of Both Worlds
- A Unifying Framework for Online Optimization with Long-Term Constraints cites Online Learning with Knapsacks: the Best of Both Worlds
- The best of both worlds: stochastic and adversarial episodic MDPs with unknown transition cites Learning Adversarial Markov Decision Processes with Bandit Feedback and Unknown Transition
- Taming Adversarial Constraints in CMDPs cites Upper Confidence Primal-Dual Reinforcement Learning for CMDP with Adversarial Loss
- Taming Adversarial Constraints in CMDPs cites Markov Persuasion Processes: Learning to Persuade From Scratch
- Taming Adversarial Constraints in CMDPs cites Data-Dependent Regret Bounds for Constrained MABs
- Taming Adversarial Constraints in CMDPs cites A Unifying Framework for Online Optimization with Long-Term Constraints
- Taming Adversarial Constraints in CMDPs cites Learning Adversarial Markov Decision Processes with Bandit Feedback and Unknown Transition
- Taming Adversarial Constraints in CMDPs cites Online Learning with Knapsacks: the Best of Both Worlds
Cited by top-tier papers8
- Markov Persuasion Processes: Learning to Persuade From ScratchFrancesco Bacchiocchi, Francesco Emanuele Stradi, Matteo Castiglioni, Alberto Marchesi et al.NeurIPS 2025 · 13 citations
- No-Regret Learning Under Adversarial Resource Constraints: A Spending Plan Is All You Need!Francesco Emanuele Stradi, Matteo Castiglioni, Alberto Marchesi, Nicola Gatti et al.NeurIPS 2025 · 7 citations
- Data-Dependent Regret Bounds for Constrained MABsGianmarco Genalti, Francesco Emanuele Stradi, Matteo Castiglioni, Alberto Marchesi et al.NeurIPS 2025 · 3 citations
- Primal-Dual Policy Optimization for Linear CMDPs with Adversarial LossesKihyun Yu, Seoungbin Bae, Dabeen LeeICLR 2026 · 2 citations
- Taming Adversarial Constraints in CMDPsFrancesco Emanuele Stradi, Anna Lunghi, Matteo Castiglioni, Alberto Marchesi et al.NeurIPS 2025 · 2 citations
Builds on8
- Learning Adversarial Markov Decision Processes with Bandit Feedback and Unknown TransitionChi Jin, Tiancheng Jin, Haipeng Luo, Suvrit Sra et al.ICML 2020 · 117 citations
- Upper Confidence Primal-Dual Reinforcement Learning for CMDP with Adversarial LossShuang Qiu, Xiaohan Wei, Zhuoran Yang, Jieping Ye et al.NeurIPS 2020 · 65 citations
- A Unifying Framework for Online Optimization with Long-Term ConstraintsMatteo Castiglioni, Andrea Celli, Alberto Marchesi, Giulia Romano et al.NeurIPS 2022 · 59 citations
- The best of both worlds: stochastic and adversarial episodic MDPs with unknown transitionTiancheng Jin, Longbo Huang, Haipeng LuoNeurIPS 2021 · 51 citations
- Online Learning with Knapsacks: the Best of Both WorldsMatteo Castiglioni, Andrea Celli, Christian KroerICML 2022 · 47 citations
Related papers
- Policy Optimization for CMDPs with Bandit Feedback: Learning Stochastic and Adversarial ConstraintsFrancesco Emanuele Stradi, Anna Lunghi, Matteo Castiglioni, Alberto Marchesi et al.ICML 2025
- Learning Adversarial MDPs with Stochastic Hard ConstraintsFrancesco Emanuele Stradi, Matteo Castiglioni, Alberto Marchesi, Nicola GattiICML 2025
- Near-Optimal Sample Complexity for Online Constrained MDPsChang Liu, Yunfan Li, Lin F. YangNeurIPS 2025 · 1 citation
- A Sample-Efficient Algorithm for Episodic Finite-Horizon MDP with ConstraintsKrishna Chaitanya Kalagarla, Rahul Jain, Pierluigi NuzzoAAAI 2021 · 58 citations
- An Optimistic Algorithm for online CMDPS with Anytime Adversarial ConstraintsJiahui Zhu, Kihyun Yu, Dabeen Lee, Xin Liu et al.ICML 2025
