Online Convex Optimization with Hard Constraints: Towards the Best of Two Worlds and Beyond
Hengquan Guo, Xin Liu, Honghao Wei, Lei Ying
Abstract
This paper considers online convex optimization with hard constraints and analyzes achievable regret and cumulative hard constraint violation (violation for short). The problem distinguishes itself from online convex optimization with soft constraints, where a violation at one round can be compensated/cancelled by a conservative decision at a different round. We propose a RECtified Online Optimization al-gorithm (RECOO) and consider two settings: fixed constraints and adversarial constraints. Both settings have been considered in the literature. Compared with existing results, RECOO achieves the best of two worlds and beyond. For the fixed-constraints setting, RECOO achieves O ? T ˘ regret and O p 1 q violation, where T is the learning horizon. The best known results in this case are O p? T q regret and O T 1 4 ˘ violation. For the adversarial-constraints setting, it guarantees O p? T q regret and O p T 3 4 q violation, which match the best existing results. When the loss function is strongly convex, RECOO can guarantee O p log T q regret and O p 1 q violation for fixed constraints, and O p log T q regret and O p? T log T q violation for adversarial constraints. Both these results are order-wise better than the existing bounds. The regret and violation bounds mentioned above use the best fixed decision in hindsight as the baseline. This paper further considers a dynamic baseline where the comparator sequence is time-varying. This paper shows that RECOO not only improves the existing bounds for the fixed-constraints setting but also for the first time, establishes dynamic regret and violation bounds for the adversarial-constraints setting. Our experiment results confirm that RECOO outperforms several existing algorithms for both fixed and adversarial
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 597ae4a6-55c4-49c1-8f04-2eb6f2ec3c22Cited by top-tier papers20
- Optimal Algorithms for Online Convex Optimization with Adversarial ConstraintsAbhishek Sinha, Rahul VazeNeurIPS 2024 · 48 citations
- O√T Static Regret and Instance Dependent Constraint Violation for Constrained Online Convex OptimizationRahul Vaze, Abhishek SinhaNeurIPS 2025 · 15 citations
- Enhancing Safety in Reinforcement Learning with Human Feedback via Rectified Policy OptimizationXiyue Peng, Hengquan Guo, Jiawei Zhang, Dongqing Zou et al.NeurIPS 2025 · 9 citations
- Revisiting Projection-Free Online Learning with Time-Varying ConstraintsYibo Wang, Yuanyu Wan, Lijun ZhangAAAI 2025 · 6 citations
- Beyond Õ(√T)$ Constraint Violation for Online Convex Optimization with Adversarial ConstraintsAbhishek Sinha, Rahul VazeNeurIPS 2025 · 6 citations
Builds on4
- Dual Mirror Descent for Online Allocation ProblemsSantiago R. Balseiro, Haihao Lu, Vahab S. MirrokniICML 2020 · 102 citations
- Regret and Cumulative Constraint Violation Analysis for Online Convex Optimization with Long Term ConstraintsXinlei Yi, Xiuxian Li, Tao Yang, Lihua Xie et al.ICML 2021 · 63 citations
- A Single Recipe for Online Submodular Maximization with Adversarial or Stochastic ConstraintsOmid Sadeghi, Prasanna Sanjay Raut, Maryam FazelNeurIPS 2020 · 11 citations
- MLaaS in the Wild: Workload Analysis and Scheduling in Large-Scale Heterogeneous GPU ClustersQizhen Weng, Wencong Xiao, Yinghao Yu, Wei Wang et al.NSDI 2022
Related papers
- Double Queue for Constrained Online Convex Optimization: Bridging the Best-of-Two-Worlds Constraint ViolationsWeiyi Qin, Wei Bao, Juncheng Wang, Min ZhouINFOCOM 2026
- Doubly-Bounded Queue for Constrained Online Learning: Keeping Pace with Dynamics of Both Loss and ConstraintJuncheng Wang, Bingjie Yan, Yituo LiuAAAI 2025 · 1 citation
- Online Nonstochastic Control with Adversarial and Static ConstraintsXin Liu, Zixian Yang, Lei YingICML 2023 · 6 citations
- Projection-Free Online Convex Optimization with Time-Varying ConstraintsDan Garber, Ben KretzuICML 2024 · 5 citations
- Constrained Online Convex Optimization with Memory and PredictionsMohammed Abdullah, George Iosifidis, Salah-Eddine Elayoubi, Tijani ChahedAAAI 2026
