Optimal Anytime Algorithms for Online Convex Optimization with Adversarial Constraints
Dhruv Sarkar, Abhishek Sinha
Abstract
We propose an anytime online algorithm for the problem of learning a sequence of adversarial convex cost functions while approximately satisfying another sequence of adversarial online convex constraints. A sequential algorithm is called anytime if it provides a non-trivial performance guarantee for any intermediate timestep t without requiring prior knowledge of the length of the entire time horizon T . Our proposed algorithm achieves optimal performance bounds without resorting to the standard doubling trick, which has poor practical performance due to multiple restarts. Our core technical contribution is the use of time-varying Lyapunov functions to keep track of constraint violations. This must be contrasted with prior works that used a fixed Lyapunov function tuned to the known horizon length T . The use of time-varying Lyapunov function poses unique analytical challenges as properties, such as monotonicity, on which the prior proofs rest, no longer hold. By introducing a new analytical technique, we show that our algorithm achieves O( √ t) regret and Õ( √ t) cumulative constraint violation bounds for any t ≥ 1. We extend our results to the dynamic regret setting, achieving bounds that adapt to the path length of the comparator sequence without prior knowledge of its total length. We also present an adaptive algorithm in the optimistic setting, whose performance gracefully scales with the cumulative prediction error. We demonstrate the practical utility of our algorithm through numerical experiments involving the online shortest path problem.
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.
Lineage
- Optimal Algorithms for Online Convex Optimization with Adversarial Constraints cites Online Convex Optimization with Hard Constraints: Towards the Best of Two Worlds and Beyond
- Optimal Algorithms for Online Convex Optimization with Adversarial Constraints cites Regret and Cumulative Constraint Violation Analysis for Online Convex Optimization with Long Term Constraints
- Online Convex Optimization with Hard Constraints: Towards the Best of Two Worlds and Beyond cites Regret and Cumulative Constraint Violation Analysis for Online Convex Optimization with Long Term Constraints
Builds on5
- Online Convex Optimization with Hard Constraints: Towards the Best of Two Worlds and BeyondHengquan Guo, Xin Liu, Honghao Wei, Lei YingNeurIPS 2022 · 76 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 Unifying Framework for Online Optimization with Long-Term ConstraintsMatteo Castiglioni, Andrea Celli, Alberto Marchesi, Giulia Romano et al.NeurIPS 2022 · 59 citations
- Optimal Algorithms for Online Convex Optimization with Adversarial ConstraintsAbhishek Sinha, Rahul VazeNeurIPS 2024 · 48 citations
- Learning Safety Constraints for Large Language ModelsXin Chen, Yarden As, Andreas KrauseICML 2025
Related papers
- Doubly-Bounded Queue for Constrained Online Learning: Keeping Pace with Dynamics of Both Loss and ConstraintJuncheng Wang, Bingjie Yan, Yituo LiuAAAI 2025 · 1 citation
- Constrained Online Convex Optimization with Memory and PredictionsMohammed Abdullah, George Iosifidis, Salah-Eddine Elayoubi, Tijani ChahedAAAI 2026
- Projection-Free Online Convex Optimization with Time-Varying ConstraintsDan Garber, Ben KretzuICML 2024 · 5 citations
- An Equivalence Between Static and Dynamic Regret MinimizationAndrew Jacobsen, Francesco OrabonaNeurIPS 2024 · 9 citations
- Online Convex Optimisation: The Optimal Switching Regret for all Segmentations SimultaneouslyStephen Pasteris, Chris Hicks, Vasilios Mavroudis, Mark HerbsterNeurIPS 2024 · 4 citations
