Constrained Online Convex Optimization with Polyak Feasibility Steps

Spencer Hutchinson, Mahnoosh Alizadeh

Introduction

Online Convex Optimization (OCO) is a robust framework for modeling sequential decision-making under uncertainty. In a typical OCO setting, a player iteratively selects actions from a feasible set to minimize a sequence of adversarial cost functions. While standard algorithms like Online Gradient Descent (OGD) are effective, they often rely on orthogonal projections to ensure that actions remain within the feasible set. When the feasible set is defined by complex, non-linear inequalities, these projections become a significant computational bottleneck.

To circumvent this, previous research introduced "long-term constraints," where the player is only required to satisfy constraints on average over time. However, in safety-critical applications—such as robotics or autonomous vehicle control—average satisfaction is insufficient. A single violation can lead to catastrophic failure. This paper addresses the challenge of achieving anytime constraint satisfaction (feasibility in every single round) using only first-order feedback, without the computational burden of full projections or the safety risks of long-term averaging.

The Problem: Safety vs. Efficiency

The core tension in constrained OCO lies between computational efficiency and strict safety. Standard projection-based methods provide anytime safety but are computationally expensive. Conversely, cumulative constraint methods are efficient but allow for instantaneous violations. The authors seek an algorithm that satisfies $g(x_t) \leq 0$ for all $t \in [1, T]$ while maintaining the optimal regret bound of $O(\sqrt{T})$.

Methodology: Polyak Feasibility Steps

The authors propose a novel algorithm: OGD with Polyak Feasibility Steps (PFS). Unlike primal-dual methods that balance cost and constraint violations over time, PFS ensures feasibility at each step through a two-stage update process:

  1. The Cost Step: The algorithm performs a standard gradient descent update based on the current cost function $f_t$. This step prioritizes minimizing regret but may move the iterate outside the feasible region.
  2. The Polyak Feasibility Step: Instead of a full projection, the algorithm applies a subgradient step on the constraint function $g$. The step size is determined by the "Polyak" formula, which uses the current constraint value to calculate the precise distance needed to move back toward the feasible region.

Key Innovations

  • First-order Approximation: To maintain efficiency, the algorithm uses a first-order Taylor approximation of the constraint function based on the previous action, avoiding the need for complex global knowledge of the constraint set.
  • Constraint Tightening: To account for the movement caused by the adversarial cost step, the authors introduce a "buffer" parameter ($\rho$). By targeting a tightened constraint $g(x) + \rho \leq 0$, the algorithm ensures that the subsequent iterate remains within the true feasible region ($g(x) \leq 0$) even after the cost update.

Theoretical and Empirical Results

The PFS algorithm achieves a regret bound of $O(\sqrt{T})$, matching the theoretical lower bound for OCO with first-order feedback. This proves that anytime safety does not require a sacrifice in the optimal rate of learning.

Key Insights

  • Geometric Interpretation: The authors demonstrate that a Polyak feasibility step is mathematically equivalent to a projection onto a halfspace that contains the feasible set. This allows the use of standard OGD convergence analysis to prove regret bounds.
  • Recovery from Infeasibility: If the player begins at an infeasible point, the algorithm is proven to reach the feasible region within $O(\log T)$ rounds.
  • The Cost of Safety: While the regret rate is optimal, the algorithm is inherently more conservative. By maintaining a buffer from the constraint boundaries, it may incur slightly higher absolute regret than methods that allow occasional violations.

Empirical Performance

In numerical simulations involving a 2-dimensional toy problem with quadratic costs and linear constraints, the PFS algorithm was compared against the state-of-the-art "Drift-plus-Penalty" (DPP) method. The results showed that PFS maintained zero instantaneous violations throughout the entire time horizon. In contrast, the DPP baseline frequently violated constraints. Even when the baseline was modified with similar tightening techniques, it incurred higher regret than PFS to achieve a comparable level of safety.

Limitations and Future Work

The primary requirement for the PFS algorithm is the knowledge of at least one strictly feasible point ($g(x) < 0$) to initialize the safety buffer. Additionally, the regret bound exhibits a sensitivity to problem parameters, such as the subgradient bound of the constraint function, which reflects the inherent difficulty of maintaining safety in an adversarial environment.

Future research directions include extending this framework to time-varying constraints, where the safety boundaries change dynamically, and exploring scenarios where the constraint functions are stochastic or only partially observable.

Summary updated

BibTeX
@inproceedings{hutchinson2025constrained,
  author = {Spencer Hutchinson and Mahnoosh Alizadeh},
  title = {{Constrained Online Convex Optimization with Polyak Feasibility Steps}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=EAAjvpE7sp},
}
Figure