Paper commentary
CLASP: Online learning algorithms for Convex Losses And Squared Penalties
CLASP controls squared constraint violations in online learning with convex losses
- Problem Common online constraint measures add signed violations, so negative deviations cancel positive ones and hide how severe breaches are.
- Method CLASP, a pair of cutter-based update rules, works on squared positive constraint violations directly instead of signed totals.
- Results For strongly convex losses, CLASP proves that both regret and cumulative squared penalty are O(log T).
Why soft violation totals hide severity
Online constrained learning is a repeated game in which the learner picks a decision and then sees a loss and a convex constraint function. In the setting the paper calls Constrained Online Convex Optimization, the constraint can change every round, so the feasible region is not fixed in advance. The learner is judged on regret and on constraint breaches, and the comparator must satisfy every round's constraint.
A common earlier measure adds up the signed value of the constraint at the played decisions. A negative value offsets a positive one, so a run with many mild breaches can score like a run with a few severe ones. The paper therefore turns to hard metrics built from the positive part of the constraint, which never decrease over time.
The squared version squares that positive part, so one large breach weighs more than the same total spread over many small breaches. The examples in the paper, from actuator limits to robot trajectories and vehicle tracking, all describe risks that grow faster than linearly with the size of the breach.
Under boundedness, the squared metric can be bounded by the linear one, with a constant that depends on the diameter D and the gradient bound L. The authors argue that this route is too loose and that analysing the squared metric directly gives tighter rates. The squared metric still controls the linear one through Cauchy-Schwarz, since \\(\\mathrm{CCV}_{T,1} \\le \\sqrt{T\\,\\mathrm{CCV}_{T,2}}\\).
Two cutter-based update rules
Both variants keep one decision at a time and update it after the newest loss and constraint are revealed. CLASP-I takes a gradient step on the latest loss from the current decision, then projects onto the intersection of the static set K with the latest constraint set Ct. Because the projection covers both static and dynamic constraints in one operation, the update respects both at once.
CLASP-F separates the two kinds of constraint, applying the subgradient projector of the latest constraint before any projection onto K. The auxiliary point is \\(\\bar{x}_t = P_K(T_{g_t}(x_t))\\), and the next iterate is \\(x_{t+1} = P_K(\\bar{x}_t - \\eta_t \\nabla f_t(\\bar{x}_t))\\). The authors note this is cheap when the projection onto K has a closed form or a finite-step solution, because the subgradient projector needs only the value and a subgradient at the current point.
The step-sizes depend only on the round index and on the convexity regime: 1/t^β for convex losses with β in (0, 1), and 1/(mt) for strongly convex losses. The analysis needs the step-sizes to be positive and non-increasing.
Cutter operators as the analytical core
A cutter operator T satisfies \\(\\langle x - Tx,\\; z - Tx\\rangle \\le 0\\) for every fixed point z, so a hyperplane through Tx separates x from the fixed-point set. The fixed-point set lies on one side of that hyperplane, which is the geometric picture behind the name.
The projector onto a nonempty closed convex set is one example, and the subgradient projector of a convex function is another. The subgradient projector leaves x unchanged where the function is nonpositive, and otherwise steps along a subgradient toward the zero level set.
Strong quasi-nonexpansiveness gives the squared-distance decrease \\(\\|Tx - z\\|^2 \\le \\|x - z\\|^2 - \\|Tx - x\\|^2\\) for every fixed point z. An operator with a nonempty fixed-point set is a cutter exactly when it has this property.
In CLASP-F the displacement of the subgradient step equals the positive constraint value divided by a gradient norm, so this decrease directly measures the violation.
How the squared-penalty and regret bounds follow
For CLASP-F the proof combines two inequalities, one from the subgradient cutter step and one from the gradient projection. Together they bound the squared positive constraint at round t by the drop in squared distance to a comparator plus a term proportional to the step-size. Summing over rounds makes the distance terms telescope, so the squared penalty is at most of order the sum of the step-sizes.
For CLASP-I the argument runs through the distance from each iterate to the set Kt, since the positive constraint value is at most L times that distance. A bound on that distance, again in terms of the sum of step-sizes, completes the squared-penalty argument for this variant.
For convex losses the regret proof uses convexity to turn each round's loss gap into a squared-distance decrease plus a squared gradient term. With the step-size 1/t^β the resulting regret is of order \\(T^{\\max\\{\\beta,1-\\beta\\}}\\), and the squared penalty is of order \\(T^{1-\\beta}\\). The regret for CLASP-F splits into a boundary term, \\(\\tfrac{1}{2\\eta_T}D^2\\), and a gradient sum, \\(\\tfrac32 L^2\\sum_t \\eta_t\\).
With strongly convex losses and step-size 1/(mt), the gradient sum behaves like a harmonic series, so the regret bound becomes \\(O(\\log T)\\). The same step-size makes the squared-penalty bound logarithmic as well. To the authors' knowledge, this is the first logarithmic guarantee on both regret and squared violation in this setting.
The direct analysis of the squared metric gives \\(\\mathrm{CCV}_{T,2} \\le O(\\sqrt{T})\\) for convex losses, which matches the exponent \\(1-\\beta\\) at \\(\\beta = 1/2\\).
Online linear regression results
The synthetic task uses a ten-dimensional box as the static set, with a squared-residual loss on random data. Each constraint is an affine inequality in four rows, and these are merged into one pointwise maximum. Results average 50 trials with 95% confidence intervals, and the squared violation is measured after each run.
AdaGrad gets the lowest cumulative loss, but its cumulative violations are much larger than those of the CLASP variants. CLASP-I keeps both the linear and the squared violation at levels comparable to RECOO, with simpler updates and lower memory use according to the authors. Switch gives the smallest overall violations, at a higher per-iteration cost.
Frank-Wolfe and CLASP-F get slightly lower cumulative loss than CLASP-I, RECOO and Switch, at the price of higher cumulative violation. The comparison in the figure covers only the shorter run shown there, so the ranking applies to that horizon.
Longer horizon in linear regression
This version drops Switch, because its projection set grows with each revealed constraint and becomes costly. The run extends to 5000 iterations, so the comparison covers a much longer horizon than the earlier figure. CLASP-F ends with lower cumulative violation on both CCV metrics, a difference the shorter run did not show. The authors also note that the CLASP curve for the squared metric shows less variability over more rounds.
Support vector machine and drone flight results
The online SVM uses the wine quality data, with 6497 samples and 11 features, labelled positive when quality is 7 or higher. The revealed loss is one half of the squared norm of w, and the constraint is a margin condition on each sample. The decision set is the ball of radius 70 times the square root of P, chosen from a bound on the feature vectors.
For some round T0 the intersection of the constraint sets is empty, so the feasibility assumption does not hold on this task. Because of that, Switch is left out, and CLASP-I and CLASP-F are compared with AdaGrad, RECOO and Frank-Wolfe. Both CLASP variants show lower CCV on both metrics with less variability, and the gap is larger on the squared metric.
The drone task uses a disk of radius 4 as the static set, and safety speed bounds on each axis change from round to round. AdaGrad gets the lowest cumulative loss with larger violations, while Switch gets the lowest violations with higher loss. CLASP-I and CLASP-F give a trade-off comparable to RECOO, and Frank-Wolfe gets slightly lower loss than those three at higher violation.
Limitations and scope of the evidence
The squared penalty weights large breaches heavily, so frequent small breaches are not strictly penalized. The authors say CLASP may not suit zero-tolerance settings unless a separate safety filter is used.
The theorems rest on a compact convex K with diameter D, a gradient bound L, and non-increasing step-sizes. They also require the intersection of K with every CT to be nonempty.
The SVM experiment breaks that nonempty-intersection requirement, so its results sit outside the feasibility condition the analysis assumes.
The main experiments are the authors' own runs with 50 trials, and only the SVM uses real data. The drone task draws its velocities and bounds from random distributions, so it is synthetic. The squared violation is evaluated a posteriori, which the authors say matches common practice in COCO work.
Paper info
- Authors
- Ricardo N. Ferreira, Joao Xavier, Claudia Soares
- Venue
- International Conference on Machine Learning · Published
- First published
- 2026-9-29
- Added
- 2026-11-25
- Original paper terms
- Check in the original ↗
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Ricardo N. Ferreira, Joao Xavier, Claudia Soares (2026). CLASP: Online learning algorithms for Convex Losses And Squared Penalties. International Conference on Machine Learning. https://proceedings.mlr.press/v306/ferreira26a.html
BibTeX
@article{ferreira2026clasp,
title = {{CLASP: Online learning algorithms for Convex Losses And Squared Penalties}},
author = {Ricardo N. Ferreira and Joao Xavier and Claudia Soares},
year = {2026},
journal = {International Conference on Machine Learning},
url = {https://proceedings.mlr.press/v306/ferreira26a.html}
}