Optimal Algorithms for Online Convex Optimization with Adversarial Constraints

Abhishek Sinha, Rahul Vaze

TL;DR

This paper solves a long-standing open question in constrained online convex optimization (COCO) by achieving optimal $O(\sqrt{T})$ regret and $\tilde{O}(\sqrt{T})$ constraint violation simultaneously, without relying on restrictive assumptions. By elegantly merging Lyapunov optimization from control theory with adaptive OCO policies, the authors provide a simple, first-order algorithm that is both computationally efficient and theoretically near-optimal.

What Problem Does This Paper Address?

In the world of Online Convex Optimization (OCO), a learner makes a sequence of decisions to minimize "regret"—the difference between their total cost and the cost of the best fixed decision they could have made in hindsight. Constrained OCO (COCO) adds a realistic layer of difficulty: every round, the learner faces convex constraints that are revealed after the decision is made.

Imagine managing a cloud data center where you must allocate resources to incoming tasks. You want to minimize energy costs (the objective), but you also have strict latency and budget limits (the constraints). These limits change based on network traffic and demand, which you only see after you've committed your resources.

The core challenge in COCO is balancing two competing goals:

  1. Low Regret: Performing as well as the best fixed strategy.
  2. Low Cumulative Constraint Violation (CCV): Ensuring that, on average, you don't break the rules too often.

Until now, achieving $O(\sqrt{T})$ for both metrics was considered a "barrier" unless researchers made restrictive assumptions, such as Slater’s condition (assuming there's a point that strictly satisfies all constraints). Without such assumptions, previous state-of-the-art algorithms could only manage a much worse $O(T^{3/4})$ constraint violation.

Methods

The authors introduce a surprisingly simple first-order policy. Instead of trying to solve the constrained problem directly, they construct a surrogate cost function $\hat{f}_t(x)$ that combines the actual cost and the constraints into a single objective.

Key components of their approach include:

  • Lyapunov Optimization: Borrowing a classic tool from control theory, they maintain a "queue" $Q(t)$ that tracks cumulative constraint violations. They then use a potential function $\Phi$ (exponential for general convex costs, quadratic for strongly convex costs) to penalize the learner when this queue grows.
  • Surrogate Construction: The surrogate function is defined as $\hat{f}_t(x) := V \tilde{f}_t(x) + \Phi'(Q(t))\tilde{g}_t(x)$, where $V$ is a weight parameter and $\tilde{g}_t$ is the constraint.
  • Black-box OCO: They treat this surrogate function as the input to a standard, "off-the-shelf" adaptive OCO algorithm like AdaGrad.
  • First-Order Efficiency: Unlike prior methods that required solving complex optimization problems every round, this approach only requires computing two gradients and performing one Euclidean projection per round.

Key Insights and Ideas

  • The "Aha" Moment: The authors realized that the difficulty in COCO wasn't the optimization itself, but how the regret and constraint violations were decomposed. By using a specific "regret decomposition inequality," they showed that any standard no-regret algorithm applied to their surrogate function automatically controls both regret and CCV.
  • Falsifying Conjectures: Previous researchers explicitly conjectured that $O(\sqrt{T})$ CCV was impossible without Slater's condition. This paper proves that conjecture wrong with a relatively simple and elegant proof.
  • Strong Convexity Bonus: If the cost functions are strongly convex (meaning they have a "bowl" shape that makes the minimum easier to find), the regret drops significantly to $O(\log T)$.
  • Logarithmic CCV: In a surprising twist, they show that if the learner's regret is non-negative (which happens against certain types of "convex adversaries"), the constraint violation can actually be reduced to $O(\log T)$, even if the constraints themselves are not strongly convex.

Key Results

The theoretical achievements of this paper effectively close a major gap in the COCO literature.

Comparison of theoretical bounds for COCO algorithms.
  • Convex Case: The algorithm achieves $O(\sqrt{T})$ regret and $O(\sqrt{T \log T})$ CCV. This matches the theoretical lower bound (which the authors also proved in this paper) up to a logarithmic factor, without requiring Slater's condition.
  • Strongly Convex Case: Achieves $O(\log T)$ regret and $O(\sqrt{T \log T})$ CCV.
  • Experimental Success: The authors evaluated their algorithm on a real-world Credit Card Fraud Detection task using a highly imbalanced dataset (only ~0.17% fraudulent transactions). Formulating fraud detection as a COCO problem, the algorithm achieved an ROC AUC of 0.92, demonstrating that it can learn effectively in a purely online fashion from a highly imbalanced stream of data.

Limitations and Future Work

  • Known Horizon: The current analysis assumes the total number of rounds $T$ is known in advance to set parameters. While the "doubling trick" can theoretically handle unknown $T$, developing a more direct parameter-free version would be a valuable extension.
  • Static vs. Dynamic Regret: This paper focuses on static regret (comparing against the best fixed action). Future work could explore dynamic regret, where the benchmark action is allowed to change over time.
  • Bandit Feedback: The current model assumes the learner sees the full cost and constraint functions after making a choice. Extending this to the bandit setting (where you only see the value at the specific point you chose) would open up many more applications in robotics and ad-tech.

Summary updated

BibTeX
@inproceedings{sinha2024optimal,
  author = {Abhishek Sinha and Rahul Vaze},
  title = {{Optimal Algorithms for Online Convex Optimization with Adversarial Constraints}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=TxffvJMnBy},
}
Figure