CLASP: An online learning algorithm for Convex Losses And Squared Penalties
Ricardo N. Ferreira, João Xavier, Cláudia Soares
TL;DR
This work addresses Constrained Online Convex Optimization with dynamic constraints by introducing CLASP, a simple algorithm that performs a gradient step on the latest loss followed by a projection onto the current constraint set, exploiting the firm non-expansiveness of projections. For general convex losses, CLASP delivers a tunable trade-off between regret $Regret_T$ and squared constraint violations $CCV_{T,2}$, achieving $Regret_T = O\Big(T^{\max\{\beta,1-\beta\}}\Big)$ and $CCV_{T,2} = O\Big(T^{1-\beta}\Big)$ for any $\beta\in(0,1)$; for strongly convex losses, it attains logarithmic bounds: $Regret_T = O(\log T)$ and $CCV_{T,2} = O(\log T)$. The analysis hinges on the firmly non-expansive property of projection operators, enabling a modular treatment of regret and constraint violations and enabling straightforward extensions to multiple or persistent constraints. Empirically, CLASP competes effectively with state-of-the-art COCO algorithms on online linear regression and SVM-style tasks, offering strong theoretical guarantees alongside practical memory efficiency. The results underscore the practical relevance of sharp penalties on constraint violations and demonstrate that strong convexity yields fast, logarithmic convergence in both objective and constraint-violation measures.
Abstract
We study Constrained Online Convex Optimization (COCO), where a learner chooses actions iteratively, observes both unanticipated convex loss and convex constraint, and accumulates loss while incurring penalties for constraint violations. We introduce CLASP (Convex Losses And Squared Penalties), an algorithm that minimizes cumulative loss together with squared constraint violations. Our analysis departs from prior work by fully leveraging the firm non-expansiveness of convex projectors, a proof strategy not previously applied in this setting. For convex losses, CLASP achieves regret $O\left(T^{\max\{β,1-β\}}\right)$ and cumulative squared penalty $O\left(T^{1-β}\right)$ for any $β\in (0,1)$. Most importantly, for strongly convex problems, CLASP provides the first logarithmic guarantees on both regret and cumulative squared penalty. In the strongly convex case, the regret is upper bounded by $O( \log T )$ and the cumulative squared penalty is also upper bounded by $O( \log T )$.
