Cancellation-Free Constrained SquareCB for Safe Controller Selection
Summary
该论文提出一种基于 rectified cost 权重的 cancellation-free 约束 SquareCB 算法,在 Slater 条件下同时保证 regret 与无抵消的约束违反界,并在 quadrotor 与 building 控制任务上将违反量相比 primal-dual 基线降低 6 至 9 倍。
View Cached Full Text
Cached at: 11/19/26, 03:35 AM
# Cancellation-Free Constrained SquareCB for Safe Controller Selection
Source: [https://arxiv.org/html/2611.21880](https://arxiv.org/html/2611.21880)
###### Abstract
We study constrained contextual bandits, in which a learner chooses one ofKKactions in each round to minimize loss while keeping the expected cost of its play below a budget\. Existing reductions to online regression weight the cost by a Lagrange multiplier learned from past constraint residuals, so slack in some rounds can offset violations in others\. We instead run SquareCB proposed in\([Foster and Rakhlin, 2020](https://arxiv.org/html/2611.21880#bib.bib11)\)with a rectified weight on the cost: it is zero when the estimated cost is within the budget, and otherwise just large enough to bring it back to the budget\. Under realizability and Slater’s condition with marginδ\\delta, the algorithm attains regretO\(KTReg𝖲𝗊\(T\)/δ\)O\(\\sqrt\{KT\\,\\mathrm\{Reg\}\_\{\\mathsf\{Sq\}\}\(T\)\}/\\delta\)and cancellation\-free violation∑t\(Vcpt−b\)\+=O\(KTReg𝖲𝗊\(T\)\)\\sum\_\{t\}\(V\_\{c\}^\{p\_\{t\}\}\-b\)^\{\+\}=O\(\\sqrt\{KT\\,\\mathrm\{Reg\}\_\{\\mathsf\{Sq\}\}\(T\)\}\), whereReg𝖲𝗊\\mathrm\{Reg\}\_\{\\mathsf\{Sq\}\}is the error of the regression oracle\. The same bounds hold when the budget must be met in every context, potentially adversarially chosen contexts\. In controller selection for a safe\-control\-gym quadrotor and a BOPTEST building, the violation is 6 to 9 times lower than that of primal\-dual and virtual\-queue baselines, with a lower or comparable regret\.
###### keywords
contextual bandits, constrained optimization, online regression oracles, safe learning
## 1Introduction
Contextual bandits \(CBs\) model sequential decisions under uncertainty: in each round the learner observes a context, chooses an action, and observes feedback for that action only\([Langford and Zhang, 2007](https://arxiv.org/html/2611.21880#bib.bib16);[Lattimore and Szepesvári, 2020](https://arxiv.org/html/2611.21880#bib.bib17)\)\. They are used in recommendation\([Li et al\., 2010](https://arxiv.org/html/2611.21880#bib.bib18)\), crowdsourcing\([Müller et al\., 2018](https://arxiv.org/html/2611.21880#bib.bib20)\)and medicine\([Tewari and Murphy, 2017](https://arxiv.org/html/2611.21880#bib.bib27)\)\. Many such problems also carry an operational requirement that the objective alone does not capture: an advertising budget, a fairness rule, or a safety limit\. Constrained contextual bandits \(CCBs\) add a cost to each action and ask the learner to minimize loss while keeping the expected cost below a budgetbb\([Slivkins et al\., 2023](https://arxiv.org/html/2611.21880#bib.bib25);[Guo and Liu, 2024](https://arxiv.org/html/2611.21880#bib.bib14);[Sarkar and Sinha, 2026b](https://arxiv.org/html/2611.21880#bib.bib24)\)\.
#### Controller selection\.
CCBs arise naturally in control when a supervisor selects among a library of pre\-designed controllers\([Ayala\-Romero et al\., 2024](https://arxiv.org/html/2611.21880#bib.bib6);[Pacchiano et al\., 2020](https://arxiv.org/html/2611.21880#bib.bib21)\)\. Before each episode, the supervisor observes the operating conditions \(a payload, a start state, a weather forecast\), selects a controller, runs it for the episode, and observes a performance loss and a safety or comfort cost\. The supervisor has to learn which controller to use in which conditions while keeping the cost within a budget, and it should not repeatedly exceed the budget early in the run and compensate later\.
#### Regression oracles and signed guarantees\.
[Foster and Rakhlin \(2020\)](https://arxiv.org/html/2611.21880#bib.bib11)reduced contextual bandits to online square\-loss regression: SquareCB plays inverse\-gap weighting on the predictions of any online regression oracle, and its regret depends on the class only through the oracle’s error\. For constraints,[Slivkins et al\. \(2023\)](https://arxiv.org/html/2611.21880#bib.bib25)combine SquareCB with a Lagrange multiplier updated by online learning, and[Sarkar and Sinha \(2026b\)](https://arxiv.org/html/2611.21880#bib.bib24)replace the multiplier with a virtual queue and a Lyapunov function, which also handles adversarial contexts\. In both, the weight on the cost is driven by the signed residualVcpt−bV\_\{c\}^\{p\_\{t\}\}\-b, and the long\-term guarantee bounds the signed sum∑t\(Vcpt−b\)\\sum\_\{t\}\(V\_\{c\}^\{p\_\{t\}\}\-b\)\. This sum allows cancellation: slack banked in rounds below the budget offsets violations in later rounds\. IfVcpt−bV\_\{c\}^\{p\_\{t\}\}\-balternates between\+ϵ\+\\epsilonand−ϵ\-\\epsilon, the sum is at mostϵ\\epsilon, while the budget is exceeded in half of the rounds\. On the other hand, cancellation\-free bound is∑t\(Vcpt−b\)\+=ϵT/2\\sum\_\{t\}\(V\_\{c\}^\{p\_\{t\}\}\-b\)^\{\+\}=\\epsilon T/2, and thus, it is a stronger metric\. Further, they did not consider the cancellation free regret bound∑t\(Vrpt−Vrπ∗\)\+\\sum\_\{t\}\(V\_\{r\}^\{p\_\{t\}\}\-V\_\{r\}^\{\\pi^\{\*\}\}\)^\{\+\}, hence, the regret can be made small by playing infeasible but high reward policies\.
#### Our approach\.
We keep SquareCB and change only how the cost weight is chosen\. In each round, the weightμt∈\[0,Λ\]\\mu\_\{t\}\\in\[0,\\Lambda\]is the smallest value for which the estimated cost of the inverse\-gap\-weighted distribution on the scoresf^rt\+μtf^ct\\hat\{f\}\_\{r\}^\{t\}\+\\mu\_\{t\}\\hat\{f\}\_\{c\}^\{t\}is at mostbb, found by bisection; if the estimated cost jumps overbb, the learner mixes the two neighbouring distributions so that it equalsbb\. The weight is therefore a function of the current estimates alone\. In every round, either the weight is00and the estimated cost is below the budget, or the estimated cost equals the budget, or the weight is at its capΛ\\Lambda\. This per\-round complementary slackness, combined with an exact\-penalty saddle inequality, turns the SquareCB analysis into a bound on the one\-sided violation\. Using the one\-sided violation, we also bound the cancellation\-free regret\. To our knowledge, the cancellation\-free regret has not been bounded before for constrained contextual bandits with regression oracles, and the cancellation\-free violation appears only in concurrent work111Concurrently with and independently of our work, the October 2026 version of\([Sarkar and Sinha, 2026a](https://arxiv.org/html/2611.21880#bib.bib23)\)also the cancellation\-free violation\. However, the inherent technique is very different from ours\. Further, unlike our work, their work does not achieve a cancellation\-free regret bounds\.\.
Contributions: Our major contributions are listed below
- •We develop a novel algorithm for constrained contextual bandits with general online regression oracles, which adds a bisection on a single scalar per round to SquareCB and has no dual\-ascent loop \(Section[2](https://arxiv.org/html/2611.21880#S2)–Proposition[7](https://arxiv.org/html/2611.21880#Thmtheorem7)\)\. Under realizability and Slater’s condition with marginδ\\delta, and withρT=KTReg𝖲𝗊\(T\)\\rho\_\{T\}=\\sqrt\{KT\\,\\mathrm\{Reg\}\_\{\\mathsf\{Sq\}\}\(T\)\}: regretO\(ρT/δ\)O\(\\rho\_\{T\}/\\delta\)and cancellation\-free violationO\(ρT\)O\(\\rho\_\{T\}\), which does not depend onδ\\delta\(Theorems[13](https://arxiv.org/html/2611.21880#Thmtheorem13)and[14](https://arxiv.org/html/2611.21880#Thmtheorem14)\)\. The cancellation\-free regret∑t\(Vrpt−Vrπ∗\)\+\\sum\_\{t\}\(V\_\{r\}^\{p\_\{t\}\}\-V\_\{r\}^\{\\pi^\{\*\}\}\)^\{\+\}is alsoO\(ρT/δ\)O\(\\rho\_\{T\}/\\delta\)\(Corollary[15](https://arxiv.org/html/2611.21880#Thmtheorem15)\)\.
- •The same rates apply when the budget must hold in every context, for arbitrary, possibly adversarial, context sequences \(Theorem[17](https://arxiv.org/html/2611.21880#Thmtheorem17)\)\.
- •Experiments on controller selection for a safe\-control\-gym quadrotor and a BOPTEST building, in which the violation is 6 to 9 times lower than that of primal\-dual and virtual\-queue baselines, with lower regret \(Section[8](https://arxiv.org/html/2611.21880#S8)\)\.
### 1\.1Related Work
Contextual bandits have been studied with linear\([Chu et al\., 2011](https://arxiv.org/html/2611.21880#bib.bib8);[Abbasi\-Yadkori et al\., 2011](https://arxiv.org/html/2611.21880#bib.bib1);[Agrawal and Goyal, 2013](https://arxiv.org/html/2611.21880#bib.bib4)\)and neural\([Zahavy and Mannor, 2019](https://arxiv.org/html/2611.21880#bib.bib29);[Zhou et al\., 2020](https://arxiv.org/html/2611.21880#bib.bib31);[Zhang et al\., 2020](https://arxiv.org/html/2611.21880#bib.bib30)\)function classes using optimism on the face of uncertainty principle\. An alternative to optimism is to design algorithms for specific function classes by reducing contextual bandit learning to online regression\. In particular, the Inverse Gap Weighting \(IGW\) principle\([Abe and Long, 1999](https://arxiv.org/html/2611.21880#bib.bib2);[Abe et al\., 2003](https://arxiv.org/html/2611.21880#bib.bib3)\)underlies general regression\-oracle\-based reductions developed by\([Foster and Rakhlin, 2020](https://arxiv.org/html/2611.21880#bib.bib11);[Foster et al\., 2018](https://arxiv.org/html/2611.21880#bib.bib12)\)\(e\.g\.,Square\-CB\) which decouple exploration from the choice of function approximator\.[Deb et al\. \(2025\)](https://arxiv.org/html/2611.21880#bib.bib9)apply this to conservative bandits, which require performance relative to a baseline policy rather than a cost budget\.
Unlike conservative contextual bandits, which ensure performance relative to a baseline policy, constrained contextual bandits explicitly optimize a reward objective subject to a cost budget\. For constrained contextual bandits with regression oracles,[Slivkins et al\. \(2023\)](https://arxiv.org/html/2611.21880#bib.bib25)use Lagrange multipliers and[Sarkar and Sinha \(2026b\)](https://arxiv.org/html/2611.21880#bib.bib24)use virtual queues, which also handle adversarial contexts\. Both drive the cost weight by the signed residual and bound the signed violation, in which rounds below the budget offset rounds above it\. Applying them to the clipped cost\(c−b\)\+\(c\-b\)^\{\+\}removes the cancellation but bounds but bounds∑t𝔼a∼pt\(c\(a\)−b\)\+≥∑t\(Vcpt−b\)\+\\sum\_\{t\}\\mathbb\{E\}\_\{a\\sim p\_\{t\}\}\(c\(a\)\-b\)^\{\+\}\\geq\\sum\_\{t\}\(V\_\{c\}^\{p\_\{t\}\}\-b\)^\{\+\}, a different pessimistic constraint\. Positive\-part guarantees have been studied in constrained MDPs\([Efroni et al\., 2020](https://arxiv.org/html/2611.21880#bib.bib10);[Guo et al\., 2022](https://arxiv.org/html/2611.21880#bib.bib15);[Müller et al\., 2024](https://arxiv.org/html/2611.21880#bib.bib19);[Stradi et al\., 2024](https://arxiv.org/html/2611.21880#bib.bib26)\)only for finite state\-space; we obtain them for contextual bandits with general regression oracles\. Safe bandits enforce the constraint in every round with high probability and achieve zero violation\([Amani et al\., 2019](https://arxiv.org/html/2611.21880#bib.bib5);[Pacchiano et al\., 2025](https://arxiv.org/html/2611.21880#bib.bib22)\), but they rely on a known safe action and confidence sets for a linear cost model, which a general regression oracle does not provide\.
## 2Problem Setup
#### Protocol\.
Let𝒳\\mathcal\{X\}be a context space and𝒜=\[K\]=\{1,…,K\}\\mathcal\{A\}=\[K\]=\\\{1,\\dots,K\\\}a finite set of actions\. In each roundt=1,…,Tt=1,\\dots,T:
1. 1\.nature draws a contextxt∈𝒳x\_\{t\}\\in\\mathcal\{X\}independently from a fixed distribution𝒟\\mathcal\{D\}and reveals it;
2. 2\.the learner chooses a distributionpt\(⋅∣xt\)∈Δ\(𝒜\)p\_\{t\}\(\\cdot\\mid x\_\{t\}\)\\in\\Delta\(\\mathcal\{A\}\)and samples an actionat∼pt\(⋅∣xt\)a\_\{t\}\\sim p\_\{t\}\(\\cdot\\mid x\_\{t\}\);
3. 3\.the learner observes a lossℓt\(at\)∈\[0,1\]\\ell\_\{t\}\(a\_\{t\}\)\\in\[0,1\]and a costct\(at\)∈\[0,1\]c\_\{t\}\(a\_\{t\}\)\\in\[0,1\]for the chosen action only\.
We writeℱt−1\\mathcal\{F\}\_\{t\-1\}for the history up to the end of roundt−1t\-1, that is, the contexts, actions, losses and costs of rounds1,…,t−11,\\dots,t\-1\. The learner can evaluate expectations under𝒟\\mathcal\{D\}; in our benchmarks,𝒟\\mathcal\{D\}is the uniform distribution over a known finite set of start states or days\. Remark[16](https://arxiv.org/html/2611.21880#Thmtheorem16)discusses unknown𝒟\\mathcal\{D\}, and Section[6](https://arxiv.org/html/2611.21880#S6)gives a version of the algorithm and its guarantees that does not use𝒟\\mathcal\{D\}at all and allows adversarial contexts\.
#### Mean loss and cost\.
The loss and cost are noisy, with conditional means
fr∗\(x,a\)=𝔼\[ℓt\(a\)∣xt=x\],fc∗\(x,a\)=𝔼\[ct\(a\)∣xt=x\]\.f^\{\*\}\_\{r\}\(x,a\)=\\mathbb\{E\}\[\\ell\_\{t\}\(a\)\\mid x\_\{t\}=x\],\\qquad f^\{\*\}\_\{c\}\(x,a\)=\\mathbb\{E\}\[c\_\{t\}\(a\)\\mid x\_\{t\}=x\]\.The learner does not knowfr∗f^\{\*\}\_\{r\}orfc∗f^\{\*\}\_\{c\}\.
#### Policies and values\.
A \(randomized\) policyπ\\pimaps each contextxxto a distributionπ\(⋅∣x\)∈Δ\(𝒜\)\\pi\(\\cdot\\mid x\)\\in\\Delta\(\\mathcal\{A\}\);ptp\_\{t\}denotes the policy played in roundtt\. The expected loss and the expected cost of a policyπ\\piare
Vrπ=𝔼x∼𝒟𝔼a∼π\(⋅∣x\)\[fr∗\(x,a\)\],Vcπ=𝔼x∼𝒟𝔼a∼π\(⋅∣x\)\[fc∗\(x,a\)\],V\_\{r\}^\{\\pi\}=\\mathbb\{E\}\_\{x\\sim\\mathcal\{D\}\}\\,\\mathbb\{E\}\_\{a\\sim\\pi\(\\cdot\\mid x\)\}\\big\[f^\{\*\}\_\{r\}\(x,a\)\\big\],\\qquad V\_\{c\}^\{\\pi\}=\\mathbb\{E\}\_\{x\\sim\\mathcal\{D\}\}\\,\\mathbb\{E\}\_\{a\\sim\\pi\(\\cdot\\mid x\)\}\\big\[f^\{\*\}\_\{c\}\(x,a\)\\big\],both linear inπ\\pi\. Given a budgetb∈\(0,1\)b\\in\(0,1\), the benchmark is the best policy that meets the budget on average over contexts,
π∗∈argminπ\{Vrπ:Vcπ≤b\}\.\\pi^\{\*\}\\in\\arg\\min\_\{\\pi\}\\big\\\{V\_\{r\}^\{\\pi\}:V\_\{c\}^\{\\pi\}\\leq b\\big\\\}\.We assume the minimum is attained, which holds for instance when𝒳\\mathcal\{X\}is finite, as in our benchmarks \(the problem is then a finite linear program\)\. The budget is on the average cost, not on every context:π∗\\pi^\{\*\}may exceedbbat some contexts if it stays belowbbat others\. We consider the constraint on every context in Section[6](https://arxiv.org/html/2611.21880#S6)\.
#### Performance measures\.
We measure the regret and the constraint violation
Regr\(T\)=∑t=1T\(Vrpt−Vrπ∗\),Viol\(T\)=∑t=1T\(Vcpt−b\)\+,\\mathrm\{Reg\}\_\{r\}\(T\)=\\sum\_\{t=1\}^\{T\}\\big\(V\_\{r\}^\{p\_\{t\}\}\-V\_\{r\}^\{\\pi^\{\*\}\}\\big\),\\qquad\\mathrm\{Viol\}\(T\)=\\sum\_\{t=1\}^\{T\}\\big\(V\_\{c\}^\{p\_\{t\}\}\-b\\big\)^\{\+\},where\(z\)\+=max\{z,0\}\(z\)^\{\+\}=\\max\\\{z,0\\\}\. The violation adds up only the rounds in which the played policy exceeds the budget, so rounds below the budget cannot offset rounds above it\. We call it*cancellation\-free*, in contrast to the signed sum∑t\(Vcpt−b\)\\sum\_\{t\}\(V\_\{c\}^\{p\_\{t\}\}\-b\)that Lagrangian methods control\. Within a round,VcptV\_\{c\}^\{p\_\{t\}\}is an average over contexts, so a policy may still exceedbbat some contexts and stay below it at others; Section[6](https://arxiv.org/html/2611.21880#S6)removes this as well\.
#### Regression oracles\.
The learner has access to two online regression oracles,𝖲𝗊𝖠𝗅𝗀r\\mathsf\{SqAlg\}\_\{r\}for the loss and𝖲𝗊𝖠𝗅𝗀c\\mathsf\{SqAlg\}\_\{c\}for the cost\. At the start of roundttthey output estimatesf^rt,f^ct:𝒳×𝒜→\[0,1\]\\hat\{f\}^\{t\}\_\{r\},\\hat\{f\}^\{t\}\_\{c\}:\\mathcal\{X\}\\times\\mathcal\{A\}\\to\[0,1\], computed fromℱt−1\\mathcal\{F\}\_\{t\-1\}, and after the round they are updated with\(xt,at,ℓt\(at\)\)\(x\_\{t\},a\_\{t\},\\ell\_\{t\}\(a\_\{t\}\)\)and\(xt,at,ct\(at\)\)\(x\_\{t\},a\_\{t\},c\_\{t\}\(a\_\{t\}\)\)\. For a policypp, we writeV^cp=𝔼x∼𝒟𝔼a∼p\(⋅∣x\)\[f^ct\(x,a\)\]\\hat\{V\}\_\{c\}^\{p\}=\\mathbb\{E\}\_\{x\\sim\\mathcal\{D\}\}\\,\\mathbb\{E\}\_\{a\\sim p\(\\cdot\\mid x\)\}\[\\hat\{f\}^\{t\}\_\{c\}\(x,a\)\]for its estimated cost\.
We assume the followings:
###### Assumption 1\(Realizability\)\.
fr∗∈ℱrf^\{\*\}\_\{r\}\\in\\mathcal\{F\}\_\{r\}andfc∗∈ℱcf^\{\*\}\_\{c\}\\in\\mathcal\{F\}\_\{c\}for known classesℱr,ℱc⊂\(𝒳×𝒜→\[0,1\]\)\\mathcal\{F\}\_\{r\},\\mathcal\{F\}\_\{c\}\\subset\(\\mathcal\{X\}\\times\\mathcal\{A\}\\to\[0,1\]\)\.
###### Assumption 2\(Online regression oracles\)\.
With probability at least1−ζ1\-\\zeta,
∑t=1T\(f^rt−fr∗\)2\(xt,at\)≤Reg𝖲𝗊r\(T\),∑t=1T\(f^ct−fc∗\)2\(xt,at\)≤Reg𝖲𝗊c\(T\)\.\\sum\_\{t=1\}^\{T\}\\big\(\\hat\{f\}^\{t\}\_\{r\}\-f^\{\*\}\_\{r\}\\big\)^\{2\}\(x\_\{t\},a\_\{t\}\)\\leq\\mathrm\{Reg\}^\{r\}\_\{\\mathsf\{Sq\}\}\(T\),\\qquad\\sum\_\{t=1\}^\{T\}\\big\(\\hat\{f\}^\{t\}\_\{c\}\-f^\{\*\}\_\{c\}\\big\)^\{2\}\(x\_\{t\},a\_\{t\}\)\\leq\\mathrm\{Reg\}^\{c\}\_\{\\mathsf\{Sq\}\}\(T\)\.For finite classes both bounds areO\(log\(\|ℱ\|/ζ\)\)O\(\\log\(\|\\mathcal\{F\}\|/\\zeta\)\)\([Foster and Rakhlin, 2020](https://arxiv.org/html/2611.21880#bib.bib11)\)\.
We write
Reg𝖲𝗊\(T\)=max\{Reg𝖲𝗊r\(T\),Reg𝖲𝗊c\(T\)\}\+log\(1/ζ\)\\mathrm\{Reg\}\_\{\\mathsf\{Sq\}\}\(T\)=\\max\\\{\\mathrm\{Reg\}^\{r\}\_\{\\mathsf\{Sq\}\}\(T\),\\mathrm\{Reg\}^\{c\}\_\{\\mathsf\{Sq\}\}\(T\)\\\}\+\\log\(1/\\zeta\)for the combined oracle error; it appears only in theO\(⋅\)O\(\\cdot\)forms of the bounds\.
###### Assumption 3\(Slater\)\.
There exist a policyπs\\pi^\{s\}andδ∈\(0,1\]\\delta\\in\(0,1\]withVcπs≤b−δV\_\{c\}^\{\\pi^\{s\}\}\\leq b\-\\delta\.
The Slater marginδ\\deltameasures how far below the budget some policy can stay\. The above assumptions are reasonable and have been used in many constrained optimization work such as\([Ghosh et al\., 2022](https://arxiv.org/html/2611.21880#bib.bib13);[Efroni et al\., 2020](https://arxiv.org/html/2611.21880#bib.bib10);[Sarkar and Sinha, 2026b](https://arxiv.org/html/2611.21880#bib.bib24)\)\. We can relax this assumption to some upper bound ofΛ\\Lambdawhich ensures the admittance of a feasible solution\.
###### Lemma 4\(Consequences of the oracle bounds\)\.
With probability at least1−4ζ1\-4\\zeta, forg∈\{r,c\}g\\in\\\{r,c\\\},
∑t=1T𝔼a∼pt\(⋅∣xt\)\(f^gt−fg∗\)2\(xt,a\)\\displaystyle\\sum\_\{t=1\}^\{T\}\\mathbb\{E\}\_\{a\\sim p\_\{t\}\(\\cdot\\mid x\_\{t\}\)\}\\big\(\\hat\{f\}^\{t\}\_\{g\}\-f^\{\*\}\_\{g\}\\big\)^\{2\}\(x\_\{t\},a\)≤Ug:=2Reg𝖲𝗊g\(T\)\+2log\(1/ζ\),\\displaystyle\\leq U\_\{g\}:=2\\,\\mathrm\{Reg\}^\{g\}\_\{\\mathsf\{Sq\}\}\(T\)\+2\\log\(1/\\zeta\),∑t=1T\(Vcpt−V^cpt\)2\\displaystyle\\sum\_\{t=1\}^\{T\}\\big\(V\_\{c\}^\{p\_\{t\}\}\-\\hat\{V\}\_\{c\}^\{p\_\{t\}\}\\big\)^\{2\}≤Uc𝒟:=2Uc\+2log\(1/ζ\)\.\\displaystyle\\leq U^\{\\mathcal\{D\}\}\_\{c\}:=2U\_\{c\}\+2\\log\(1/\\zeta\)\.
The detailed proof of Lemma[4](https://arxiv.org/html/2611.21880#Thmtheorem4)is given in Section[D](https://arxiv.org/html/2611.21880#A4)\(Supplementary material\)
#### Parameters\.
We clip the rectified weight atΛ=2/δ\\Lambda=2/\\deltaand use the SquareCB learning rateγ=2KT/\(Ur\+Λ2Uc\)\\gamma=2\\sqrt\{KT/\(U\_\{r\}\+\\Lambda^\{2\}U\_\{c\}\)\}\([Foster and Rakhlin, 2020](https://arxiv.org/html/2611.21880#bib.bib11)\)\.
## 3The Algorithm
The algorithm is SquareCB run on the composite scorey^t,a=f^rt\(xt,a\)\+μtf^ct\(xt,a\)\\hat\{y\}\_\{t,a\}=\\hat\{f\}\_\{r\}^\{t\}\(x\_\{t\},a\)\+\\mu\_\{t\}\\hat\{f\}\_\{c\}^\{t\}\(x\_\{t\},a\)\. The only new element is the rectified weightμt\\mu\_\{t\}, chosen so that the estimated cost of the played policy meets the budget\. It depends only on the current oracle estimates, so it is available before the learner acts\.
### 3\.1The score\-to\-distribution map
For a weightμ≥0\\mu\\geq 0and a contextxx, SquareCB maps the score vector to a distribution exactly as in Algorithm 1 of\([Foster and Rakhlin, 2020](https://arxiv.org/html/2611.21880#bib.bib11)\):
y^t,a\(μ\)=f^rt\(x,a\)\+μf^ct\(x,a\),pt,a\(μ\)=\{1K\+γ\(y^t,a\(μ\)−y^t,a^\(μ\)\),a≠a^,1−∑a′≠a^pt,a′\(μ\),a=a^,\\hat\{y\}\_\{t,a\}\(\\mu\)=\\hat\{f\}\_\{r\}^\{t\}\(x,a\)\+\\mu\\,\\hat\{f\}\_\{c\}^\{t\}\(x,a\),\\quad p^\{\(\\mu\)\}\_\{t,a\}=\\begin\{cases\}\\dfrac\{1\}\{K\+\\gamma\(\\hat\{y\}\_\{t,a\}\(\\mu\)\-\\hat\{y\}\_\{t,\\hat\{a\}\}\(\\mu\)\)\},&a\\neq\\hat\{a\},\\\\\[5\.69054pt\] 1\-\\sum\_\{a^\{\\prime\}\\neq\\hat\{a\}\}p^\{\(\\mu\)\}\_\{t,a^\{\\prime\}\},&a=\\hat\{a\},\\end\{cases\}\(1\)where the leadera^=a^t\(x,μ\)\\hat\{a\}=\\hat\{a\}\_\{t\}\(x,\\mu\)is a minimizer ofy^t,⋅\(μ\)\\hat\{y\}\_\{t,\\cdot\}\(\\mu\); among tied minimizers it is the one with the smallestf^ct\(x,⋅\)\\hat\{f\}\_\{c\}^\{t\}\(x,\\cdot\)\. Writegt\(μ\)=V^cpt\(μ\)=𝔼x∼𝒟𝔼a∼p\(μ\)t\(⋅∣x\)\[f^ct\(x,a\)\]g\_\{t\}\(\\mu\)=\\hat\{V\}\_\{c\}^\{p^\{\(\\mu\)\}\_\{t\}\}=\\mathbb\{E\}\_\{x\\sim\\mathcal\{D\}\}\\,\\mathbb\{E\}\_\{a\\sim p^\{\(\\mu\)\}\_\{t\}\(\\cdot\\mid x\)\}\[\\hat\{f\}\_\{c\}^\{t\}\(x,a\)\]for the estimated cost of the resulting policy\.
###### Lemma 5\(Shape ofgtg\_\{t\}\)\.
gtg\_\{t\}is nonincreasing and right\-continuous on\[0,∞\)\[0,\\infty\), and all its discontinuities are downward jumps\.
The complete proof has been given in Section[E](https://arxiv.org/html/2611.21880#A5)\(Supplementary material\)\. This will ensure that we can apply a binary search to find a suitableμ\\mu\(Proposition[7](https://arxiv.org/html/2611.21880#Thmtheorem7)\)\.
### 3\.2The rectified weight
In the definition ofpt\(μ\)p^\{\(\\mu\)\}\_\{t\}\(just after \([1](https://arxiv.org/html/2611.21880#S3.E1)\)\), we take the tied action with the smallest estimated costf^ct\(x,⋅\)\\hat\{f\}\_\{c\}^\{t\}\(x,\\cdot\)\. We also need the distribution that takes the tied action with the largest estimated cost: we writep¯t\(μ\)\\bar\{p\}^\{\(\\mu\)\}\_\{t\}for it\. Without a tie,p¯t\(μ\)=pt\(μ\)\\bar\{p\}^\{\(\\mu\)\}\_\{t\}=p^\{\(\\mu\)\}\_\{t\}\. With a tie, asμ\\muincreases,p¯t\(μ\)\\bar\{p\}^\{\(\\mu\)\}\_\{t\}is the distribution played just before the leader switches, andpt\(μ\)p^\{\(\\mu\)\}\_\{t\}the one played just after\.
###### Definition 6\(Rectified weight and played policy\)\.
At roundtt:
1. 1\.ifgt\(0\)≤bg\_\{t\}\(0\)\\leq b, setμt=0\\mu\_\{t\}=0andpt=pt\(0\)p\_\{t\}=p^\{\(0\)\}\_\{t\};
2. 2\.ifgt\(Λ\)\>bg\_\{t\}\(\\Lambda\)\>b, setμt=Λ\\mu\_\{t\}=\\Lambdaandpt=pt\(Λ\)p\_\{t\}=p^\{\(\\Lambda\)\}\_\{t\};
3. 3\.otherwise, letμt=inf\{μ∈\[0,Λ\]:gt\(μ\)≤b\}\\mu\_\{t\}=\\inf\\\{\\mu\\in\[0,\\Lambda\]:g\_\{t\}\(\\mu\)\\leq b\\\}and playpt=wtp¯t\(μt\)\+\(1−wt\)pt\(μt\)p\_\{t\}=w\_\{t\}\\,\\bar\{p\}^\{\(\\mu\_\{t\}\)\}\_\{t\}\+\(1\-w\_\{t\}\)\\,p^\{\(\\mu\_\{t\}\)\}\_\{t\}, withwt∈\[0,1\]w\_\{t\}\\in\[0,1\]chosen so thatV^cpt=b\\hat\{V\}\_\{c\}^\{p\_\{t\}\}=b\.
In the third case, the mixture is needed becausegtg\_\{t\}can jump overbbatμt\\mu\_\{t\}\(Lemma[5](https://arxiv.org/html/2611.21880#Thmtheorem5)\): thenpt\(μt\)p^\{\(\\mu\_\{t\}\)\}\_\{t\}has estimated cost strictly belowbb,p¯t\(μt\)\\bar\{p\}^\{\(\\mu\_\{t\}\)\}\_\{t\}has estimated cost abovebb, and no single weight gives exactlybb\. Mixing the two gives exactlybb, which the analysis uses \(Lemma[10](https://arxiv.org/html/2611.21880#Thmtheorem10)\)\. Ifgtg\_\{t\}is continuous atμt\\mu\_\{t\}, the two distributions have the same estimated costbband the mixture plays no role\.
###### Proposition 7\(Existence, computability\)\.
The policyptp\_\{t\}of Definition[6](https://arxiv.org/html/2611.21880#Thmtheorem6)is well defined, and in the third caseV^cpt=b\\hat\{V\}\_\{c\}^\{p\_\{t\}\}=b\. It can be computed by bisection on\[0,Λ\]\[0,\\Lambda\]\. In every caseptp\_\{t\}is, for eachxx, a convex combination of inverse\-gap\-weighted distributions for the score vectory^t\(μt\)\\hat\{y\}\_\{t\}\(\\mu\_\{t\}\), each with a minimizer ofy^t\(μt\)\\hat\{y\}\_\{t\}\(\\mu\_\{t\}\)as the leader\. Finally,μt\\mu\_\{t\}andptp\_\{t\}depend only onf^rt,f^ct\\hat\{f\}\_\{r\}^\{t\},\\hat\{f\}\_\{c\}^\{t\}, hence areℱt−1\\mathcal\{F\}\_\{t\-1\}\-measurable; in particular they do not depend on the realized actionata\_\{t\}\.
Proof for Proposition[7](https://arxiv.org/html/2611.21880#Thmtheorem7)is given in Section[E\.2](https://arxiv.org/html/2611.21880#A5.SS2)\(Supplementary material\)
Algorithm: Cancellation\-Free Constrained SquareCB\. ParametersΛ=2/δ\\Lambda=2/\\delta,γ=2KT/\(Ur\+Λ2Uc\)\\gamma=2\\sqrt\{KT/\(U\_\{r\}\+\\Lambda^\{2\}U\_\{c\}\)\}, budgetbb; oracles𝖲𝗊𝖠𝗅𝗀r,𝖲𝗊𝖠𝗅𝗀c\\mathsf\{SqAlg\}\_\{r\},\\mathsf\{SqAlg\}\_\{c\}\.Fort=1,…,Tt=1,\\dots,T:1\.Receivextx\_\{t\}\.2\.Computeμt\\mu\_\{t\}andptp\_\{t\}\(Definition[6](https://arxiv.org/html/2611.21880#Thmtheorem6)\) by bisection ongt\(⋅\)g\_\{t\}\(\\cdot\), mixing the two policies at the end of the bisection\.3\.Sampleat∼pt\(⋅∣xt\)a\_\{t\}\\sim p\_\{t\}\(\\cdot\\mid x\_\{t\}\); observeℓt\(at\),ct\(at\)\\ell\_\{t\}\(a\_\{t\}\),c\_\{t\}\(a\_\{t\}\); update both oracles\.
## 4The SquareCB Guarantee
###### Lemma 8\(IGW inequality\([Foster and Rakhlin, 2020](https://arxiv.org/html/2611.21880#bib.bib11)\)\)\.
Letppbe inverse\-gap weighting for a score vectory^∈ℝK\\hat\{y\}\\in\\mathbb\{R\}^\{K\}, with any minimizer ofy^\\hat\{y\}as the leader\. Then for everyf∈ℝKf\\in\\mathbb\{R\}^\{K\},
∑apafa−minafa≤2Kγ\+γ4∑apa\(y^a−fa\)2\.\\sum\_\{a\}p\_\{a\}f\_\{a\}\-\\min\_\{a\}f\_\{a\}\\leq\\frac\{2K\}\{\\gamma\}\+\\frac\{\\gamma\}\{4\}\\sum\_\{a\}p\_\{a\}\(\\hat\{y\}\_\{a\}\-f\_\{a\}\)^\{2\}\.\(2\)
[Foster and Rakhlin \(2020, Lemma 3\)](https://arxiv.org/html/2611.21880#bib.bib11)state it for vectors in\[0,1\]K\[0,1\]^\{K\}; the proof uses no range assumption \(Appendix[F](https://arxiv.org/html/2611.21880#A6)\), so it applies to our composite scores in\[0,1\+Λ\]K\[0,1\+\\Lambda\]^\{K\}\. Both sides are linear inppfor fixed\(y^,f\)\(\\hat\{y\},f\), so it also holds for the mixtures of Definition[6](https://arxiv.org/html/2611.21880#Thmtheorem6)\.
###### Lemma 9\(Composite regret\)\.
For any fixed comparator policyπ\\pi, with probability at least1−5ζ1\-5\\zeta,
∑t=1T\[\(Vrpt\+μtVcpt\)−\(Vrπ\+μtVcπ\)\]≤RT:=2KT\(Ur\+Λ2Uc\)\+\(1\+Λ\)2Tlog\(1/ζ\)\.\\sum\_\{t=1\}^\{T\}\\Bigl\[\(V\_\{r\}^\{p\_\{t\}\}\+\\mu\_\{t\}V\_\{c\}^\{p\_\{t\}\}\)\-\(V\_\{r\}^\{\\pi\}\+\\mu\_\{t\}V\_\{c\}^\{\\pi\}\)\\Bigr\]\\leq R\_\{T\}:=2\\sqrt\{KT\\,\(U\_\{r\}\+\\Lambda^\{2\}U\_\{c\}\)\}\+\(1\+\\Lambda\)\\sqrt\{2T\\log\(1/\\zeta\)\}\.\(3\)WithΛ=2/δ\\Lambda=2/\\delta,RT=O\(KTReg𝖲𝗊\(T\)/δ\)R\_\{T\}=O\\bigl\(\\sqrt\{KT\\,\\mathrm\{Reg\}\_\{\\mathsf\{Sq\}\}\(T\)\}/\\delta\\bigr\)\.
The proof is given in Section[F](https://arxiv.org/html/2611.21880#A6)in Supplimentary file\.
## 5Master Inequality and the Two Bounds
Before stating and proving the main results, we state two important results\. Throughout writeEc:=TUc𝒟E\_\{c\}:=\\sqrt\{T\\,U^\{\\mathcal\{D\}\}\_\{c\}\}; by Cauchy–Schwarz and Lemma[4](https://arxiv.org/html/2611.21880#Thmtheorem4),∑t\|Vcpt−V^cpt\|≤Ec\\sum\_\{t\}\|V\_\{c\}^\{p\_\{t\}\}\-\\hat\{V\}\_\{c\}^\{p\_\{t\}\}\|\\leq E\_\{c\}\.
###### Lemma 10\(Rectified extraction\)\.
Withμt\\mu\_\{t\}andptp\_\{t\}from Definition[6](https://arxiv.org/html/2611.21880#Thmtheorem6),
∑t=1Tμt\(Vcpt−b\)≥ΛViol\(T\)−2ΛEc\.\\sum\_\{t=1\}^\{T\}\\mu\_\{t\}\\bigl\(V\_\{c\}^\{p\_\{t\}\}\-b\\bigr\)\\;\\geq\\;\\Lambda\\,\\mathrm\{Viol\}\(T\)\-2\\Lambda E\_\{c\}\.\(4\)
The proof is given in Section[G](https://arxiv.org/html/2611.21880#A7)\(in Supplementary material\)
###### Lemma 12\(Master inequality\)\.
On the event of Lemma[9](https://arxiv.org/html/2611.21880#Thmtheorem9)withπ=π∗\\pi=\\pi^\{\*\},
∑t=1T\(Vrpt−Vrπ∗\)\+ΛViol\(T\)≤RT\+2ΛEc\.\\sum\_\{t=1\}^\{T\}\\bigl\(V\_\{r\}^\{p\_\{t\}\}\-V\_\{r\}^\{\\pi^\{\*\}\}\\bigr\)\+\\Lambda\\,\\mathrm\{Viol\}\(T\)\\;\\leq\\;R\_\{T\}\+2\\Lambda E\_\{c\}\.\(5\)
###### Proof\.
Apply \([3](https://arxiv.org/html/2611.21880#S4.E3)\) with comparatorπ=π∗\\pi=\\pi^\{\*\}\. SinceVcπ∗≤bV\_\{c\}^\{\\pi^\{\*\}\}\\leq bandμt≥0\\mu\_\{t\}\\geq 0,μt\(Vcpt−Vcπ∗\)≥μt\(Vcpt−b\)\\mu\_\{t\}\(V\_\{c\}^\{p\_\{t\}\}\-V\_\{c\}^\{\\pi^\{\*\}\}\)\\geq\\mu\_\{t\}\(V\_\{c\}^\{p\_\{t\}\}\-b\), so
∑t\(Vrpt−Vrπ∗\)\+∑tμt\(Vcpt−b\)≤RT\.\\sum\_\{t\}\(V\_\{r\}^\{p\_\{t\}\}\-V\_\{r\}^\{\\pi^\{\*\}\}\)\+\\sum\_\{t\}\\mu\_\{t\}\(V\_\{c\}^\{p\_\{t\}\}\-b\)\\leq R\_\{T\}\.\(6\)Substituting the extraction \([4](https://arxiv.org/html/2611.21880#S5.E4)\) in Lemma[10](https://arxiv.org/html/2611.21880#Thmtheorem10)gives \([5](https://arxiv.org/html/2611.21880#S5.E5)\)\. ∎
Now, we are ready to state and prove the main results:
###### Theorem 13\(Cancellation\-free violation\)\.
Under Assumptions[1](https://arxiv.org/html/2611.21880#Thmtheorem1)–[3](https://arxiv.org/html/2611.21880#Thmtheorem3), withΛ=2/δ\\Lambda=2/\\delta, with probability at least1−5ζ1\-5\\zeta,
Viol\(T\)≤δRT\+4Ec=O\(KTReg𝖲𝗊\(T\)\)\.\\mathrm\{Viol\}\(T\)\\leq\\delta R\_\{T\}\+4E\_\{c\}=O\\\!\\left\(\\sqrt\{KT\\,\\mathrm\{Reg\}\_\{\\mathsf\{Sq\}\}\(T\)\}\\right\)\.
###### Proof\.
By Lemma[24](https://arxiv.org/html/2611.21880#Thmtheorem24),∑t\(Vrpt−Vrπ∗\)≥−λ∗Viol\(T\)\\sum\_\{t\}\(V\_\{r\}^\{p\_\{t\}\}\-V\_\{r\}^\{\\pi^\{\*\}\}\)\\geq\-\\lambda^\{\*\}\\mathrm\{Viol\}\(T\)\. Substituting into \([5](https://arxiv.org/html/2611.21880#S5.E5)\) in Lemma[12](https://arxiv.org/html/2611.21880#Thmtheorem12),\(Λ−λ∗\)Viol\(T\)≤RT\+2ΛEc\(\\Lambda\-\\lambda^\{\*\}\)\\,\\mathrm\{Viol\}\(T\)\\leq R\_\{T\}\+2\\Lambda E\_\{c\}\. Sinceλ∗≤1/δ\\lambda^\{\*\}\\leq 1/\\deltaandΛ=2/δ\\Lambda=2/\\delta,Λ−λ∗≥1/δ\\Lambda\-\\lambda^\{\*\}\\geq 1/\\delta, soViol\(T\)≤δRT\+2ΛδEc=δRT\+4Ec\\mathrm\{Viol\}\(T\)\\leq\\delta R\_\{T\}\+2\\Lambda\\delta E\_\{c\}=\\delta R\_\{T\}\+4E\_\{c\}\. FinallyδRT≤2KT\(δ2Ur\+4Uc\)\+\(2\+δ\)2Tlog\(1/ζ\)\\delta R\_\{T\}\\leq 2\\sqrt\{KT\(\\delta^\{2\}U\_\{r\}\+4U\_\{c\}\)\}\+\(2\+\\delta\)\\sqrt\{2T\\log\(1/\\zeta\)\}andEc=O\(TReg𝖲𝗊\)E\_\{c\}=O\(\\sqrt\{T\\,\\mathrm\{Reg\}\_\{\\mathsf\{Sq\}\}\}\)\. ∎
###### Theorem 14\(Reward regret\)\.
Under the same assumptions, with probability at least1−5ζ1\-5\\zeta,
Regr\(T\)≤RT\+2ΛEc=O\(KTReg𝖲𝗊\(T\)δ\)\.\\mathrm\{Reg\}\_\{r\}\(T\)\\leq R\_\{T\}\+2\\Lambda E\_\{c\}=O\\\!\\left\(\\frac\{\\sqrt\{KT\\,\\mathrm\{Reg\}\_\{\\mathsf\{Sq\}\}\(T\)\}\}\{\\delta\}\\right\)\.
###### Proof\.
From \([6](https://arxiv.org/html/2611.21880#S5.E6)\),Regr\(T\)≤RT−∑tμt\(Vcpt−b\)\\mathrm\{Reg\}\_\{r\}\(T\)\\leq R\_\{T\}\-\\sum\_\{t\}\\mu\_\{t\}\(V\_\{c\}^\{p\_\{t\}\}\-b\), and by \([4](https://arxiv.org/html/2611.21880#S5.E4)\),∑tμt\(Vcpt−b\)≥ΛViol\(T\)−2ΛEc≥−2ΛEc\\sum\_\{t\}\\mu\_\{t\}\(V\_\{c\}^\{p\_\{t\}\}\-b\)\\geq\\Lambda\\mathrm\{Viol\}\(T\)\-2\\Lambda E\_\{c\}\\geq\-2\\Lambda E\_\{c\}\. ∎
###### Corollary 15\(Cancellation\-free regret\)\.
On the event of Theorems[13](https://arxiv.org/html/2611.21880#Thmtheorem13)and[14](https://arxiv.org/html/2611.21880#Thmtheorem14),
∑t=1T\(Vrpt−Vrπ∗\)\+≤Regr\(T\)\+Viol\(T\)δ=O\(KTReg𝖲𝗊\(T\)δ\)\.\\sum\_\{t=1\}^\{T\}\\bigl\(V\_\{r\}^\{p\_\{t\}\}\-V\_\{r\}^\{\\pi^\{\*\}\}\\bigr\)^\{\+\}\\leq\\mathrm\{Reg\}\_\{r\}\(T\)\+\\frac\{\\mathrm\{Viol\}\(T\)\}\{\\delta\}=O\\\!\\left\(\\frac\{\\sqrt\{KT\\,\\mathrm\{Reg\}\_\{\\mathsf\{Sq\}\}\(T\)\}\}\{\\delta\}\\right\)\.
###### Proof\.
Writeut=Vrpt−Vrπ∗u\_\{t\}=V\_\{r\}^\{p\_\{t\}\}\-V\_\{r\}^\{\\pi^\{\*\}\}, sout\+=ut\+\(−ut\)\+u\_\{t\}^\{\+\}=u\_\{t\}\+\(\-u\_\{t\}\)^\{\+\}\. By Lemma[24](https://arxiv.org/html/2611.21880#Thmtheorem24),−ut≤λ∗\(Vcpt−b\)\+\-u\_\{t\}\\leq\\lambda^\{\*\}\(V\_\{c\}^\{p\_\{t\}\}\-b\)^\{\+\}, and the right side is nonnegative, so\(−ut\)\+≤λ∗\(Vcpt−b\)\+\(\-u\_\{t\}\)^\{\+\}\\leq\\lambda^\{\*\}\(V\_\{c\}^\{p\_\{t\}\}\-b\)^\{\+\}\. Summing and usingλ∗≤1/δ\\lambda^\{\*\}\\leq 1/\\deltagives∑tut\+≤Regr\(T\)\+Viol\(T\)/δ\\sum\_\{t\}u\_\{t\}^\{\+\}\\leq\\mathrm\{Reg\}\_\{r\}\(T\)\+\\mathrm\{Viol\}\(T\)/\\delta; Theorems[13](https://arxiv.org/html/2611.21880#Thmtheorem13)and[14](https://arxiv.org/html/2611.21880#Thmtheorem14)give the rate\. ∎
In words, the played policy can beatπ∗\\pi^\{\*\}only in rounds where it exceeds the budget, and by at mostλ∗\\lambda^\{\*\}times the excess, so negative\-regret rounds cannot hide more thanViol\(T\)/δ\\mathrm\{Viol\}\(T\)/\\delta; the same argument withλ∗\(xt\)\\lambda^\{\*\}\(x\_\{t\}\)applies per context \(Section[6](https://arxiv.org/html/2611.21880#S6)\)\. The1/δ1/\\deltafactor in the regret is common in constrained learning, where Slater’s condition bounds the optimal multiplier\([Slivkins et al\., 2023](https://arxiv.org/html/2611.21880#bib.bib25);[Ghosh et al\., 2022](https://arxiv.org/html/2611.21880#bib.bib13)\); the violation bound does not depend onδ\\delta\. For comparison,\([Sarkar and Sinha, 2026b](https://arxiv.org/html/2611.21880#bib.bib24)\)obtain regret and signed violationO\(KT3/4UT1/4\)O\(\\sqrt\{K\}T^\{3/4\}U\_\{T\}^\{1/4\}\)against the same feasible\-in\-expectation benchmark with adversarial contexts, andT\\sqrt\{T\}regret only for the deterministic action space \(no randomization over the actions are permitted\)\([Sarkar and Sinha, 2026b](https://arxiv.org/html/2611.21880#bib.bib24), Theorem 9\)\.
## 6Per\-Context Constraints
We extend our proofs to per context guarantees\. Let the contextsx1,x2,…x\_\{1\},x\_\{2\},\\dotsbe arbitrary, possibly chosen by an adaptive adversary, and replace the benchmark and measures by
OPT\(x\)=minp∈Δ\(𝒜\)\{⟨p,fr∗\(x,⋅\)⟩:⟨p,fc∗\(x,⋅\)⟩≤b\},\\mathrm\{OPT\}\(x\)=\\min\_\{p\\in\\Delta\(\\mathcal\{A\}\)\}\\bigl\\\{\\langle p,f^\{\*\}\_\{r\}\(x,\\cdot\)\\rangle:\\langle p,f^\{\*\}\_\{c\}\(x,\\cdot\)\\rangle\\leq b\\bigr\\\},Regctx\(T\)=∑t=1T\(⟨pt,fr∗\(xt,⋅\)⟩−OPT\(xt\)\),Violctx\(T\)=∑t=1T\(⟨pt,fc∗\(xt,⋅\)⟩−b\)\+,\\mathrm\{Reg\}^\{\\mathrm\{ctx\}\}\(T\)=\\sum\_\{t=1\}^\{T\}\\bigl\(\\langle p\_\{t\},f^\{\*\}\_\{r\}\(x\_\{t\},\\cdot\)\\rangle\-\\mathrm\{OPT\}\(x\_\{t\}\)\\bigr\),\\qquad\\mathrm\{Viol\}^\{\\mathrm\{ctx\}\}\(T\)=\\sum\_\{t=1\}^\{T\}\\bigl\(\\langle p\_\{t\},f^\{\*\}\_\{c\}\(x\_\{t\},\\cdot\)\\rangle\-b\\bigr\)^\{\+\},wherept=pt\(⋅∣xt\)p\_\{t\}=p\_\{t\}\(\\cdot\\mid x\_\{t\}\)\. Assume per\-context Slater: for everyxxsomeps\(x\)p^\{s\}\(x\)has⟨ps\(x\),fc∗\(x,⋅\)⟩≤b−δ\\langle p^\{s\}\(x\),f^\{\*\}\_\{c\}\(x,\\cdot\)\\rangle\\leq b\-\\delta\. The algorithm is unchanged except thatgt\(μ\)=⟨pt\(μ\)\(⋅∣xt\),f^ct\(xt,⋅\)⟩g\_\{t\}\(\\mu\)=\\langle p^\{\(\\mu\)\}\_\{t\}\(\\cdot\\mid x\_\{t\}\),\\hat\{f\}^\{t\}\_\{c\}\(x\_\{t\},\\cdot\)\\ranglespecific to one context
###### Theorem 17\(Per\-context guarantees\)\.
Under Assumptions[1](https://arxiv.org/html/2611.21880#Thmtheorem1)–[2](https://arxiv.org/html/2611.21880#Thmtheorem2)and per\-context Slater, withΛ=2/δ\\Lambda=2/\\delta, with probability at least1−3ζ1\-3\\zeta,
Regctx\(T\)≤RT′\+2ΛEc′,Violctx\(T\)≤δRT′\+4Ec′,\\mathrm\{Reg\}^\{\\mathrm\{ctx\}\}\(T\)\\leq R^\{\\prime\}\_\{T\}\+2\\Lambda E^\{\\prime\}\_\{c\},\\qquad\\mathrm\{Viol\}^\{\\mathrm\{ctx\}\}\(T\)\\leq\\delta R^\{\\prime\}\_\{T\}\+4E^\{\\prime\}\_\{c\},withRT′=2KT\(Ur\+Λ2Uc\)R^\{\\prime\}\_\{T\}=2\\sqrt\{KT\(U\_\{r\}\+\\Lambda^\{2\}U\_\{c\}\)\}andEc′=TUcE^\{\\prime\}\_\{c\}=\\sqrt\{TU\_\{c\}\}; that is,Regctx\(T\)=O\(KTReg𝖲𝗊/δ\)\\mathrm\{Reg\}^\{\\mathrm\{ctx\}\}\(T\)=O\(\\sqrt\{KT\\,\\mathrm\{Reg\}\_\{\\mathsf\{Sq\}\}\}/\\delta\)andViolctx\(T\)=O\(KTReg𝖲𝗊\)\\mathrm\{Viol\}^\{\\mathrm\{ctx\}\}\(T\)=O\(\\sqrt\{KT\\,\\mathrm\{Reg\}\_\{\\mathsf\{Sq\}\}\}\)\.
###### Proof\.
Repeat the proofs above withVgpV^\{p\}\_\{g\}replaced by⟨p\(⋅∣xt\),fg∗\(xt,⋅\)⟩\\langle p\(\\cdot\\mid x\_\{t\}\),f^\{\*\}\_\{g\}\(x\_\{t\},\\cdot\)\\rangle,π∗\\pi^\{\*\}by the per\-context optimum andλ∗\\lambda^\{\*\}by the per\-context multiplierλ∗\(xt\)≤1/δ\\lambda^\{\*\}\(x\_\{t\}\)\\leq 1/\\delta\. Lemma[9](https://arxiv.org/html/2611.21880#Thmtheorem9)is applied atxtx\_\{t\}and needs no conversion to an expectation over𝒟\\mathcal\{D\}, so the Azuma term disappears\. The estimation error is\|⟨pt,f^ct−fc∗⟩\(xt\)\|≤\(𝔼a∼pt\(f^ct−fc∗\)2\(xt,a\)\)1/2\|\\langle p\_\{t\},\\hat\{f\}^\{t\}\_\{c\}\-f^\{\*\}\_\{c\}\\rangle\(x\_\{t\}\)\|\\leq\(\\mathbb\{E\}\_\{a\\sim p\_\{t\}\}\(\\hat\{f\}^\{t\}\_\{c\}\-f^\{\*\}\_\{c\}\)^\{2\}\(x\_\{t\},a\)\)^\{1/2\}by Jensen, so∑tϵt≤TUc\\sum\_\{t\}\\epsilon\_\{t\}\\leq\\sqrt\{TU\_\{c\}\}by Cauchy–Schwarz and the first bound of Lemma[4](https://arxiv.org/html/2611.21880#Thmtheorem4)\. The comparator step of Lemma[12](https://arxiv.org/html/2611.21880#Thmtheorem12)uses⟨π∗\(xt\),fc∗\(xt,⋅\)⟩≤b\\langle\\pi^\{\*\}\(x\_\{t\}\),f^\{\*\}\_\{c\}\(x\_\{t\},\\cdot\)\\rangle\\leq b, which holds because the benchmark is per\-context\. ∎
The average version needs only average Slater and compares with a stronger benchmark, but needs i\.i\.d\. contexts and access to𝒟\\mathcal\{D\}, and lets the policy exceedbbin some contexts\. The per\-context version needs a policy that is safe in every context, which in control is usually a known safe fallback controller, and in return holds for arbitrary context sequences and bounds the violation in every episode\.
## 7Experiments
We evaluate our method on two control benchmarks, the 2D quadrotor of safe\-control\-gym and the BOPTEST building, and compare it with primal\-dual and with the CCB reduction scheme of\([Sarkar and Sinha, 2026b](https://arxiv.org/html/2611.21880#bib.bib24)\)\.*Note although\([Deb et al\., 2025](https://arxiv.org/html/2611.21880#bib.bib9)\)has some notion of safety and uses IGW over an online regression oracle, the formulation is not explicitly modelled to work for constrained bandit setup\. Further theoretical guarantees also differs from our objective in this work\. Hence, we do not compare with that setup\. We rather compare with\([Sarkar and Sinha, 2026b](https://arxiv.org/html/2611.21880#bib.bib24)\)which is more aligned to our objective\.*In both benchmarks, each round is one episode: the learner chooses a controller at the start of the episode, the controller runs for the whole episode, and the loss and the constraint cost are observed at its end\.
#### Quadrotor\.
We use the 2D quadrotor of safe\-control\-gym\([Yuan et al\., 2022](https://arxiv.org/html/2611.21880#bib.bib28)\)\. In each episode, the learner observes the drone’s start state and payload mass, drawn from 600 start states, and chooses one of six LQR controllers to bring it to a height of 1 m, while random disturbance forces act on it\. Fast controllers track well but overshoot the target, and slow ones overshoot little but track worse\. The loss is the tracking error, the cost is the overshoot \(how far the drone rises above the target\), and the budget is an average overshoot of 1\.75 cm\.
#### Building\.
We use thebestest\_airtest case of BOPTEST\([Blum et al\., 2021](https://arxiv.org/html/2611.21880#bib.bib7)\), a single zone with a fan\-coil unit\. Each day, drawn from 180 days of the year, the learner observes the weather forecast and chooses one of eight thermostat schedules\. The building’s thermal state at the start of the day is random and not observed\. Energy\-saving schedules use less heating and cooling but let the temperature leave the comfort band, while comfortable schedules use more energy\. The loss is the energy use, the cost is the thermal discomfort \(Kelvin\-hours outside 21–25\.5∘C\), and the budget is 10 K⋅\\cdoth per day\.
## 8Results
Figures[1](https://arxiv.org/html/2611.21880#S8.F1)and[2](https://arxiv.org/html/2611.21880#S8.F2)show that for each benchmark, the cumulative regret \(left\) and the cumulative constraint violation \(right\) as functions of the number of episodes\. Each curve is the average over ten runs, and the shaded band shows±2\\pm 2standard errors\. For regret we plot∑t\(Vrpt−Vrπ∗\)\+\\sum\_\{t\}\(V\_\{r\}^\{p\_\{t\}\}\-V\_\{r\}^\{\\pi^\{\*\}\}\)^\{\+\}\(the cancellation\-free bound\) and the violation is also cancellation\-freeViol\(T\)\\mathrm\{Viol\}\(T\)\.
#### Quadrotor\.
On the quadrotor \(Figure[1](https://arxiv.org/html/2611.21880#S8.F1)\), the left plot shows the regret\. The baselines have lower regret at the start, while they exceed the budget, but their regret keeps growing, and at the final episode our method has the lowest regret \(57, against 94 for primal\-dual and 88 for the CCB scheme\)\. The right plot of Figure[1](https://arxiv.org/html/2611.21880#S8.F1)shows the violation\. Both baselines have significantly larger violations compared to our method\. Our method achieves sub\-linear regret and violation bound confirming the theoretical insights, and achieve a better regret without sacrificing feasibility\.


Figure 1:Quadrotor:cumulative regret and violation \(both cancellation\-free\) averaged over 10 runs\.
#### Building\.
On the building, the three methods have similar regret at the start \(left of Figure[2](https://arxiv.org/html/2611.21880#S8.F2)\), and from about 7,000 episodes on our method has the lowest regret showing that our approach can track the optimal policy better compared to the baselines similar to the Quadrotor\. For the violation \(right of Figure[1](https://arxiv.org/html/2611.21880#S8.F1)\), the difference is more pronounced and ours achieve significantly lower violation indicating that we achieve a better regret without sacrificing feasibility\.


Figure 2:Building:cumulative regret and violation \(left and right, respectively\) averaged over 10 runs\.
#### Why our method does better\.
The baselines set their cost weight from accumulated signed residuals,μt\+1=max\(μt\+η\(V^cpt−b\),0\)\\mu\_\{t\+1\}=\\max\(\\mu\_\{t\}\+\\eta\(\\hat\{V\}\_\{c\}^\{p\_\{t\}\}\-b\),0\)andwt=2Qt−1/Vw\_\{t\}=2Q\_\{t\-1\}/VwithQt−1=∑s<t\(cs−b\)Q\_\{t\-1\}=\\sum\_\{s<t\}\(c\_\{s\}\-b\), whereas our weight depends only on the current estimates\. Their weight starts at zero, so they first exceed the budget, which keeps their early regret low \(a policy can beatπ∗\\pi^\{\*\}only by exceeding the budget, Lemma[24](https://arxiv.org/html/2611.21880#Thmtheorem24)\)\. On the quadrotor, it takes about 10,000 episodes to settle, a phase that accounts for more than half of their violation; ours settles within 1,000\. Afterwards their weight swings with about three times the spread of ours, and their policy crosses the budget about 4 times \(quadrotor\) and 9 times \(building\) as often: swings up make the policy too conservative and add to the regret, swings down add to the violation\. Our mechanism tries to find the policy with the right balance from the first episode onwards, therefore gives both a lower violation and a lower regret\.
## 9Conclusion
We studied constrained contextual bandits with general online regression oracles and proposed a constrained version of SquareCB whose cost weight is rectified: it is zero when the estimated cost is within the budget, and otherwise just large enough to bring it back to the budget\. Because the weight depends only on the current estimates, slack from past rounds is never carried over, and the algorithm attains regretO\(KTReg𝖲𝗊/δ\)O\(\\sqrt\{KT\\,\\mathrm\{Reg\}\_\{\\mathsf\{Sq\}\}\}/\\delta\)and cancellation\-free violationO\(KTReg𝖲𝗊\)O\(\\sqrt\{KT\\,\\mathrm\{Reg\}\_\{\\mathsf\{Sq\}\}\}\), both for budgets on average over contexts and, with adversarial contexts, for budgets in every context\. On controller selection for a quadrotor and a building, it exceeds the budget far less than primal\-dual and virtual\-queue methods, with lower regret\. The algorithm requires a known bound on the optimal multiplier, which a safe fallback controller provides through its marginδ\\delta; removing this requirement without delaying enforcement of the budget, and extending the method to multiple constraints, are directions for future work\. Extending the approach to the Reinforcement Learning setting and more long\-horizon control tasks is also left for the future\.
### Generative AI Use
LLMs were used for spel\-check and improving the quality of writing\. The authors reviewed and verified all AI\-assisted content and take responsibility for the final content of the paper\.
## References
- Abbasi\-Yadkori et al\. \(2011\)Yasin Abbasi\-Yadkori, Dávid Pál, and Csaba Szepesvári\.Improved algorithms for linear stochastic bandits\.*Advances in neural information processing systems*, 24, 2011\.
- Abe and Long \(1999\)Naoki Abe and Philip M Long\.Associative reinforcement learning using linear probabilistic concepts\.In*ICML*, pages 3–11, 1999\.
- Abe et al\. \(2003\)Naoki Abe, Alan W Biermann, and Philip M Long\.Reinforcement learning with immediate rewards and linear hypotheses\.*Algorithmica*, 37\(4\):263–293, 2003\.
- Agrawal and Goyal \(2013\)Shipra Agrawal and Navin Goyal\.Thompson sampling for contextual bandits with linear payoffs\.In*International conference on machine learning*, pages 127–135\. PMLR, 2013\.
- Amani et al\. \(2019\)Sanae Amani, Mahnoosh Alizadeh, and Christos Thrampoulidis\.Linear stochastic bandits under safety constraints\.In*Advances in Neural Information Processing Systems*, 2019\.
- Ayala\-Romero et al\. \(2024\)Jose A Ayala\-Romero, Andres Garcia\-Saavedra, and Xavier Costa\-Perez\.Risk\-aware continuous control with neural contextual bandits\.In*Proceedings of the AAAI Conference on Artificial Intelligence*, volume 38, pages 20930–20938, 2024\.
- Blum et al\. \(2021\)David Blum, Javier Arroyo, Sen Huang, Ján Drgoňa, Filip Jorissen, Harald Taxt Walnum, Yan Chen, Kyle Benne, Draguna Vrabie, Michael Wetter, et al\.Building optimization testing framework \(boptest\) for simulation\-based benchmarking of control strategies in buildings\.*Journal of Building Performance Simulation*, 14\(5\):586–610, 2021\.
- Chu et al\. \(2011\)Wei Chu, Lihong Li, Lev Reyzin, and Robert Schapire\.Contextual bandits with linear payoff functions\.In*Proceedings of the fourteenth international conference on artificial intelligence and statistics*, pages 208–214\. JMLR Workshop and Conference Proceedings, 2011\.
- Deb et al\. \(2025\)Rohan Deb, Mohammad Ghavamzadeh, and Arindam Banerjee\.Conservative contextual bandits: Beyond linear representations\.In*International Conference on Learning Representations*, 2025\.
- Efroni et al\. \(2020\)Yonathan Efroni, Shie Mannor, and Matteo Pirotta\.Exploration\-exploitation in constrained MDPs\.*arXiv preprint arXiv:2003\.02189*, 2020\.
- Foster and Rakhlin \(2020\)Dylan Foster and Alexander Rakhlin\.Beyond ucb: Optimal and efficient contextual bandits with regression oracles\.In*International conference on machine learning*, pages 3199–3210\. PMLR, 2020\.
- Foster et al\. \(2018\)Dylan Foster, Alekh Agarwal, Miroslav Dudík, Haipeng Luo, and Robert Schapire\.Practical contextual bandits with regression oracles\.In*International Conference on Machine Learning*, pages 1539–1548\. PMLR, 2018\.
- Ghosh et al\. \(2022\)Arnob Ghosh, Xingyu Zhou, and Ness Shroff\.Provably efficient model\-free constrained rl with linear function approximation\.*Advances in Neural Information Processing Systems*, 35:13303–13315, 2022\.
- Guo and Liu \(2024\)Hengquan Guo and Xin Liu\.Stochastic constrained contextual bandits via lyapunov optimization based estimation to decision framework\.In*Proceedings of the Thirty Seventh Conference on Learning Theory*, volume 247 of*Proceedings of Machine Learning Research*, pages 2204–2231\. PMLR, 2024\.
- Guo et al\. \(2022\)Hengquan Guo, Xin Liu, Honghao Wei, and Lei Ying\.Online convex optimization with hard constraints: Towards the best of two worlds and beyond\.In*Advances in Neural Information Processing Systems \(NeurIPS\)*, volume 35, 2022\.
- Langford and Zhang \(2007\)John Langford and Tong Zhang\.The epoch\-greedy algorithm for multi\-armed bandits with side information\.In*Advances in Neural Information Processing Systems*, pages 817–824, 2007\.
- Lattimore and Szepesvári \(2020\)Tor Lattimore and Csaba Szepesvári\.*Bandit Algorithms*\.Cambridge University Press, 2020\.
- Li et al\. \(2010\)Lihong Li, Wei Chu, John Langford, and Robert E\. Schapire\.A contextual\-bandit approach to personalized news article recommendation\.In*Proceedings of the 19th International Conference on World Wide Web*, pages 661–670\. ACM, 2010\.[10\.1145/1772690\.1772758](https://doi.org/10.1145/1772690.1772758)\.
- Müller et al\. \(2024\)Adrian Müller, Pragnya Alatur, Volkan Cevher, Giorgia Ramponi, and Niao He\.Truly no\-regret learning in constrained MDPs\.In*International Conference on Machine Learning \(ICML\)*, 2024\.
- Müller et al\. \(2018\)Sabrina Klos Müller, Cem Tekin, Mihaela van der Schaar, and Anja Klein\.Context\-aware hierarchical online learning for performance maximization in mobile crowdsourcing\.*IEEE/ACM Transactions on Networking*, 26\(3\):1334–1347, 2018\.[10\.1109/TNET\.2018\.2828415](https://doi.org/10.1109/TNET.2018.2828415)\.
- Pacchiano et al\. \(2020\)Aldo Pacchiano, My Phan, Yasin Abbasi Yadkori, Anup Rao, Julian Zimmert, Tor Lattimore, and Csaba Szepesvari\.Model selection in contextual stochastic bandit problems\.*Advances in Neural Information Processing Systems*, 33:10328–10337, 2020\.
- Pacchiano et al\. \(2025\)Aldo Pacchiano, Mohammad Ghavamzadeh, and Peter Bartlett\.Contextual bandits with stage\-wise constraints\.*Journal of machine learning research*, 26\(170\):1–57, 2025\.
- Sarkar and Sinha \(2026a\)Dhruv Sarkar and Abhishek Sinha\.Constrained contextual bandits with adversarial contexts\.*arXiv preprint arXiv:2605\.06190*, 2026a\.
- Sarkar and Sinha \(2026b\)Dhruv Sarkar and Abhishek Sinha\.A simple reduction scheme for constrained contextual bandits with adversarial contexts via regression\.*arXiv preprint arXiv:2602\.05019*, 2026b\.
- Slivkins et al\. \(2023\)Aleksandrs Slivkins, Karthik Abinav Sankararaman, and Dylan J Foster\.Contextual bandits with packing and covering constraints: A modular lagrangian approach via regression\.In*The Thirty Sixth Annual Conference on Learning Theory*, pages 4633–4656\. PMLR, 2023\.
- Stradi et al\. \(2024\)Francesco Emanuele Stradi, Matteo Castiglioni, Alberto Marchesi, and Nicola Gatti\.Optimal strong regret and violation in constrained MDPs via policy optimization\.*arXiv preprint arXiv:2410\.02275*, 2024\.
- Tewari and Murphy \(2017\)Ambuj Tewari and Susan A\. Murphy\.From ads to interventions: Contextual bandits in mobile health\.In James M\. Rehg, Susan A\. Murphy, and Santosh Kumar, editors,*Mobile Health: Sensors, Analytic Methods, and Applications*, pages 495–517\. Springer, 2017\.[10\.1007/978\-3\-319\-51394\-2\_25](https://doi.org/10.1007/978-3-319-51394-2_25)\.
- Yuan et al\. \(2022\)Zhaocong Yuan, Adam W Hall, Siqi Zhou, Lukas Brunke, Melissa Greeff, Jacopo Panerati, and Angela P Schoellig\.Safe\-control\-gym: A unified benchmark suite for safe learning\-based control and reinforcement learning in robotics\.*IEEE Robotics and Automation Letters*, 7\(4\):11142–11149, 2022\.
- Zahavy and Mannor \(2019\)Tom Zahavy and Shie Mannor\.Deep neural linear bandits: Overcoming catastrophic forgetting through likelihood matching\.*arXiv preprint arXiv:1901\.08612*, 2019\.
- Zhang et al\. \(2020\)Weitong Zhang, Dongruo Zhou, Lihong Li, and Quanquan Gu\.Neural thompson sampling\.*arXiv preprint arXiv:2010\.00827*, 2020\.
- Zhou et al\. \(2020\)Dongruo Zhou, Lihong Li, and Quanquan Gu\.Neural contextual bandits with ucb\-based exploration\.In*International conference on machine learning*, pages 11492–11502\. PMLR, 2020\.
Appendix
###### Contents
1. [1Introduction](https://arxiv.org/html/2611.21880#S1)1. [1\.1Related Work](https://arxiv.org/html/2611.21880#S1.SS1)
2. [2Problem Setup](https://arxiv.org/html/2611.21880#S2)
3. [3The Algorithm](https://arxiv.org/html/2611.21880#S3)1. [3\.1The score\-to\-distribution map](https://arxiv.org/html/2611.21880#S3.SS1) 2. [3\.2The rectified weight](https://arxiv.org/html/2611.21880#S3.SS2)
4. [4The SquareCB Guarantee](https://arxiv.org/html/2611.21880#S4)
5. [5Master Inequality and the Two Bounds](https://arxiv.org/html/2611.21880#S5)
6. [6Per\-Context Constraints](https://arxiv.org/html/2611.21880#S6)
7. [7Experiments](https://arxiv.org/html/2611.21880#S7)
8. [8Results](https://arxiv.org/html/2611.21880#S8)
9. [9Conclusion](https://arxiv.org/html/2611.21880#S9)
10. [References](https://arxiv.org/html/2611.21880#bib)
11. [ASummary of Results](https://arxiv.org/html/2611.21880#A1)
12. [BEffect of the Budgetbb](https://arxiv.org/html/2611.21880#A2)
13. [CAblation study onΛ\\Lambda](https://arxiv.org/html/2611.21880#A3)
14. [DMissing proofs for Lemma in Section](https://arxiv.org/html/2611.21880#A4)1. [D\.1Restatement and proof of Lemma](https://arxiv.org/html/2611.21880#A4.SS1)
15. [EProofs for Lemmas in Section](https://arxiv.org/html/2611.21880#A5)1. [E\.1Restatement and Proof for Lemma](https://arxiv.org/html/2611.21880#A5.SS1) 2. [E\.2Proof for Proposition](https://arxiv.org/html/2611.21880#A5.SS2)
16. [FMissing proofs for Lemmas in Section](https://arxiv.org/html/2611.21880#A6)
17. [GMissing proofs in Section](https://arxiv.org/html/2611.21880#A7)
18. [HThe Exact\-Penalty Saddle Inequality](https://arxiv.org/html/2611.21880#A8)
19. [IHyperparameters and Primal\-Dual Square CB](https://arxiv.org/html/2611.21880#A9)
## Appendix ASummary of Results
Summary of Results is in Table
## Appendix BEffect of the Budgetbb
To study how our method responds to the budget, we run it with its hyperparameters fixed at the tuned values and vary only the budgetbb\(fig:budget\-quad,fig:budget\-bld\)\.
#### In Quadrotor:
the range of meaningful budgets is set by the design of the task, namely the set of controllers and the distribution of initial states and payloads\. Choosing, in every context, the controller with the smallest expected overshoot givesVcmin≈0\.44V\_\{c\}^\{\\min\}\\approx 0\.44cm, so Assumption[3](https://arxiv.org/html/2611.21880#Thmtheorem3)holds for everyb\>0\.44b\>0\.44cm; the loss\-minimising policy, which ignores the constraint, overshoots by about2\.02\.0cm on average, so the constraint is active for everyb<2\.0b<2\.0cm\. The main budgetb=1\.75b=1\.75cm lies inside this range\. To check that our conclusions do not hinge on this choice, we run our method atb∈\{0\.5,1,1\.5,2\}b\\in\\\{0\.5,1,1\.5,2\\\}cm, from nearly infeasible to nearly inactive\. The exploration constantγ0\\gamma\_\{0\}keeps the value tuned forb=1\.75b=1\.75cm, and only the clip levelΛ=2/δ\\Lambda=2/\\deltachanges withbb, as the method prescribes \(T=2⋅104T=2\\cdot 10^\{4\}, five runs\)\.
\\subfigure\[Rectified SquareCB \(ours\)\]
Figureshows that forb∈\{1,1\.5,2\}b\\in\\\{1,1\.5,2\\\}cm the average overshoot settles at the budget within a few thousand rounds and the loss converges to that ofπ⋆\(b\)\\pi^\{\\star\}\(b\), without any retuning, in line with Theorems[13](https://arxiv.org/html/2611.21880#Thmtheorem13)and[14](https://arxiv.org/html/2611.21880#Thmtheorem14)\. Tightening the budget raises the optimal loss, from0\.1160\.116atb=2b=2cm to0\.2920\.292atb=0\.5b=0\.5cm, and the multiplierλ⋆\\lambda^\{\\star\}with it, from0\.110\.11to6\.046\.04; at every budgetλ⋆\\lambda^\{\\star\}stays well below1/δ1/\\delta, as Lemma[23](https://arxiv.org/html/2611.21880#Thmtheorem23)predicts, so the defaultΛ=2/δ\\Lambda=2/\\deltais always large enough without knowledge ofλ⋆\\lambda^\{\\star\}\. The regret atT=2⋅104T=2\\cdot 10^\{4\}grows as the budget tightens, from22atb=2b=2cm to104104atb=0\.5b=0\.5cm, together withΛ\\Lambda, consistent with the reward bound of Theorem[14](https://arxiv.org/html/2611.21880#Thmtheorem14), which grows linearly inΛ\\Lambda\. At the tightest budget,b=0\.5b=0\.5cm, whereδ\\deltais smallest \(Λ=2/δ≈700\\Lambda=2/\\delta\\approx 700\), convergence is slower: atT=2⋅104T=2\\cdot 10^\{4\}the average overshoot is within0\.050\.05cm ofbb\.
#### In Building:
the range of meaningful budgets is set by the design of the task\. Choosing, in every context, the controller with the smallest expected discomfort givesVcmin≈0\.01V\_\{c\}^\{\\min\}\\approx 0\.01K⋅\\cdoth/day, so Assumption[3](https://arxiv.org/html/2611.21880#Thmtheorem3)holds for essentially everyb\>0b\>0; the loss\-minimising policy, which ignores the constraint, incurs about34\.934\.9K⋅\\cdoth/day, so the constraint is active for everyb<34\.9b<34\.9K⋅\\cdoth/day\. Around the main budgetb=10b=10K⋅\\cdoth/day we run our method atb∈\{2,20,30\}b\\in\\\{2,20,30\\\}K⋅\\cdoth/day, from tight to loose, withγ0\\gamma\_\{0\}kept at its tuned value and onlyΛ=2/δ\\Lambda=2/\\deltachanging withbb\(T=2⋅104T=2\\cdot 10^\{4\}, five runs\)\.
\\subfigure\[Rectified SquareCB \(ours\)\]
Figureshows that the average discomfort first exceeds the budget while the costs of the controllers are being learned and then settles atbb, without any retuning: within about600600and15001500rounds forb=30b=30and2020K⋅\\cdoth/day, and more slowly for the tight budgetb=2b=2K⋅\\cdoth/day, where the early excess is large relative tobb\. AtT=2⋅104T=2\\cdot 10^\{4\}all three runs are within2%2\\%of their budget, in line with Theorem[13](https://arxiv.org/html/2611.21880#Thmtheorem13)\. The loss stays within3%3\\%of that ofπ⋆\(b\)\\pi^\{\\star\}\(b\)and the gap is still shrinking, in line with Theorem[14](https://arxiv.org/html/2611.21880#Thmtheorem14)\. Tightening the budget raises the optimal loss, from0\.0550\.055atb=30b=30to0\.1270\.127atb=2b=2K⋅\\cdoth/day, andλ⋆\\lambda^\{\\star\}with it, from0\.100\.10to0\.340\.34; at every budgetλ⋆\\lambda^\{\\star\}stays well below1/δ1/\\delta, as Lemma[23](https://arxiv.org/html/2611.21880#Thmtheorem23)predicts, so the defaultΛ=2/δ\\Lambda=2/\\deltais large enough without knowledge ofλ⋆\\lambda^\{\\star\}\.
## Appendix CAblation study onΛ\\Lambda
The clip levelΛ\\Lambdais the upper end of the interval\[0,Λ\]\[0,\\Lambda\]in which the rectified weightμt\\mu\_\{t\}is chosen \(Definition[6](https://arxiv.org/html/2611.21880#Thmtheorem6)\)\. Our method does not tune it: it is fixed toΛ=2/δ\\Lambda=2/\\delta, which is larger thanλ⋆\\lambda^\{\\star\}becauseλ⋆≤1/δ\\lambda^\{\\star\}\\leq 1/\\delta\(Lemma[23](https://arxiv.org/html/2611.21880#Thmtheorem23)\)\. The analysis usesΛ\\Lambdain two places\. The violation bound of Theorem[13](https://arxiv.org/html/2611.21880#Thmtheorem13)needsΛ\>λ⋆\\Lambda\>\\lambda^\{\\star\}: its proof divides byΛ−λ⋆≥1/δ\\Lambda\-\\lambda^\{\\star\}\\geq 1/\\delta\. The regret bound of Theorem[14](https://arxiv.org/html/2611.21880#Thmtheorem14),RT\+2ΛEcR\_\{T\}\+2\\Lambda E\_\{c\}, grows withΛ\\Lambda\. To see both effects, we repeat the main runs \(same budgets, tunedγ0\\gamma\_\{0\},T=2⋅104T=2\\cdot 10^\{4\}, five runs\) and change only the clip level,Λ∈\{0\.1,5,10,100\}\\Lambda\\in\\\{0\.1,5,10,100\\\}, withγ\\gammascaled withΛ\\Lambdaas in Algorithm 1 so thatΛ=2/δ\\Lambda=2/\\deltarecovers the tuned run\. Figure[3](https://arxiv.org/html/2611.21880#A3.F3)shows the running averages of the loss and of the cost\.
#### Building \(b=10b=10K⋅\\cdoth/day,λ⋆=0\.31\\lambda^\{\\star\}=0\.31\)\.
WithΛ=0\.1<λ⋆\\Lambda=0\.1<\\lambda^\{\\star\}the weight stays at the clip and the discomfort stays near2929K⋅\\cdoth/day, almost three times the budget, for the whole run; the loss \(0\.0570\.057\) is below that ofπ⋆\\pi^\{\\star\}\(0\.0990\.099\) only because the comfort constraint is ignored\. WithΛ=5\\Lambda=5and1010the two runs coincide: the discomfort settles very close to budget within about25002500rounds and the loss \(0\.1010\.101\) is close to that ofπ⋆\\pi^\{\\star\}\. WithΛ=100\\Lambda=100the discomfort also stays close to budget, but the loss is slightly higher \(0\.1040\.104\), because the largerΛ\\Lambdagives a smallerγ\\gammaand hence more exploration\.
#### Quadrotor \(b=1\.75b=1\.75cm,λ⋆=1\.16\\lambda^\{\\star\}=1\.16\)\.
WithΛ=0\.1<λ⋆\\Lambda=0\.1<\\lambda^\{\\star\}the weight stays at the clip and the average overshoot stays near2\.02\.0cm, above the budget; the loss \(0\.1160\.116\) is again below that ofπ⋆\\pi^\{\\star\}\(0\.12450\.1245\) only because the constraint is ignored\. The runs withΛ=5\\Lambda=5,1010and100100coincide: the overshoot approaches the budget \(1\.7551\.755cm at the end\) and the loss approaches that ofπ⋆\\pi^\{\\star\}\(0\.1250\.125\)\.
#### Relation to the theory\.
The runs withΛ=0\.1\\Lambda=0\.1show what happens when the conditionΛ\>λ⋆\\Lambda\>\\lambda^\{\\star\}used in the proof of Theorem[13](https://arxiv.org/html/2611.21880#Thmtheorem13)fails: the cost stays above the budget on both benchmarks\. Their low loss also illustrates the point of Section[1](https://arxiv.org/html/2611.21880#S1)that a small regret alone is not a meaningful guarantee, since it can be obtained by violating the constraint\. For everyΛ≥5\\Lambda\\geq 5, which exceedsλ⋆\\lambda^\{\\star\}on both benchmarks, the cost settles at the budget and the results hardly depend onΛ\\Lambda, soΛ\\Lambdaneed not be tuned\. A very largeΛ\\Lambdaremains safe for the constraint but may cost some loss, as on the building atΛ=100\\Lambda=100, in line with Theorem[14](https://arxiv.org/html/2611.21880#Thmtheorem14), whose regret bound grows withΛ\\Lambda\. The defaultΛ=2/δ\\Lambda=2/\\delta\(18\.018\.0for the building,30\.030\.0for the quadrotor\) lies in the region where the method works well, and by Lemma[23](https://arxiv.org/html/2611.21880#Thmtheorem23)choosing it requires no knowledge ofλ⋆\\lambda^\{\\star\}\.
Figure 3:Running average of the expected loss \(left\) and cost \(right\) of our method forΛ∈\{0\.1,5,10,100\}\\Lambda\\in\\\{0\.1,5,10,100\\\}, on the building withb=10b=10K⋅\\cdoth/day \(top\) and the quadrotor withb=1\.75b=1\.75cm \(bottom\)\. Dashed lines: loss ofπ∗\\pi^\{\*\}and budgetbb\. Overlapping curves are drawn thinner on top\. Mean±2\\pm 2s\.e\. over 5 runs\.
## Appendix DMissing proofs for Lemma in Section[2](https://arxiv.org/html/2611.21880#S2)
### D\.1Restatement and proof of Lemma[4](https://arxiv.org/html/2611.21880#Thmtheorem4)
###### Lemma 18\(\(Restatement of Lemma[4](https://arxiv.org/html/2611.21880#Thmtheorem4)\)Consequences of the oracle bounds\)\.
With probability at least1−4ζ1\-4\\zeta, forg∈\{r,c\}g\\in\\\{r,c\\\},
∑t=1T𝔼a∼pt\(⋅∣xt\)\(f^gt−fg∗\)2\(xt,a\)\\displaystyle\\sum\_\{t=1\}^\{T\}\\mathbb\{E\}\_\{a\\sim p\_\{t\}\(\\cdot\\mid x\_\{t\}\)\}\\big\(\\hat\{f\}^\{t\}\_\{g\}\-f^\{\*\}\_\{g\}\\big\)^\{2\}\(x\_\{t\},a\)≤Ug:=2Reg𝖲𝗊g\(T\)\+2log\(1/ζ\),\\displaystyle\\leq U\_\{g\}:=2\\,\\mathrm\{Reg\}^\{g\}\_\{\\mathsf\{Sq\}\}\(T\)\+2\\log\(1/\\zeta\),∑t=1T\(Vcpt−V^cpt\)2\\displaystyle\\sum\_\{t=1\}^\{T\}\\big\(V\_\{c\}^\{p\_\{t\}\}\-\\hat\{V\}\_\{c\}^\{p\_\{t\}\}\\big\)^\{2\}≤Uc𝒟:=2Uc\+2log\(1/ζ\)\.\\displaystyle\\leq U^\{\\mathcal\{D\}\}\_\{c\}:=2U\_\{c\}\+2\\log\(1/\\zeta\)\.
###### Proof\.
We use the following fact\.
Let𝒢0⊆𝒢1⊆⋯\\mathcal\{G\}\_\{0\}\\subseteq\\mathcal\{G\}\_\{1\}\\subseteq\\cdotsbe a filtration andYt∈\[0,1\]Y\_\{t\}\\in\[0,1\]be𝒢t\\mathcal\{G\}\_\{t\}\-measurable\.
Sincee−y≤1−\(1−e−1\)yon\[0,1\],\\displaystyle\\text\{Since \}e^\{\-y\}\\leq 1\-\(1\-e^\{\-1\}\)y~\\text\{on\}~\[0,1\],𝔼\[e−Yt∣𝒢t−1\]≤exp\(−\(1−e−1\)𝔼\[Yt∣𝒢t−1\]\)\.\\displaystyle\\mathbb\{E\}\[e^\{\-Y\_\{t\}\}\\mid\\mathcal\{G\}\_\{t\-1\}\]\\leq\\exp\(\-\(1\-e^\{\-1\}\)\\mathbb\{E\}\[Y\_\{t\}\\mid\\mathcal\{G\}\_\{t\-1\}\]\)\.soexp\(∑s≤t\(1−e−1\)𝔼\[Ys∣𝒢s−1\]−Ys\)\\exp\\bigl\(\\sum\_\{s\\leq t\}\(1\-e^\{\-1\}\)\\mathbb\{E\}\[Y\_\{s\}\\mid\\mathcal\{G\}\_\{s\-1\}\]\-Y\_\{s\}\\bigr\)is a supermartingale with mean at most11, and Markov’s inequality gives, with probability at least1−ζ1\-\\zeta,
∑t𝔼\[Yt∣𝒢t−1\]≤11−e−1\(∑tYt\+log\(1/ζ\)\)≤2∑tYt\+2log\(1/ζ\)\.\\textstyle\\sum\_\{t\}\\mathbb\{E\}\[Y\_\{t\}\\mid\\mathcal\{G\}\_\{t\-1\}\]\\leq\\frac\{1\}\{1\-e^\{\-1\}\}\\bigl\(\\sum\_\{t\}Y\_\{t\}\+\\log\(1/\\zeta\)\\bigr\)\\leq 2\\sum\_\{t\}Y\_\{t\}\+2\\log\(1/\\zeta\)\.\(7\)For the first bound, let𝒢t−1=σ\(ℱt−1,xt\)\\mathcal\{G\}\_\{t\-1\}=\\sigma\(\\mathcal\{F\}\_\{t\-1\},x\_\{t\}\)andYt=\(f^gt−fg∗\)2\(xt,at\)Y\_\{t\}=\(\\hat\{f\}^\{t\}\_\{g\}\-f^\{\*\}\_\{g\}\)^\{2\}\(x\_\{t\},a\_\{t\}\), which isℱt⊆𝒢t\\mathcal\{F\}\_\{t\}\\subseteq\\mathcal\{G\}\_\{t\}\-measurable with𝔼\[Yt∣𝒢t−1\]=𝔼a∼pt\(f^gt−fg∗\)2\(xt,a\)\\mathbb\{E\}\[Y\_\{t\}\\mid\\mathcal\{G\}\_\{t\-1\}\]=\\mathbb\{E\}\_\{a\\sim p\_\{t\}\}\(\\hat\{f\}^\{t\}\_\{g\}\-f^\{\*\}\_\{g\}\)^\{2\}\(x\_\{t\},a\); combine \([7](https://arxiv.org/html/2611.21880#A4.E7)\) with Assumption[2](https://arxiv.org/html/2611.21880#Thmtheorem2)\. For the second bound, Jensen’s inequality gives\(Vcpt−V^cpt\)2≤𝔼x∼𝒟𝔼a∼pt\(f^ct−fc∗\)2\(x,a\)\(V\_\{c\}^\{p\_\{t\}\}\-\\hat\{V\}\_\{c\}^\{p\_\{t\}\}\)^\{2\}\\leq\\mathbb\{E\}\_\{x\\sim\\mathcal\{D\}\}\\mathbb\{E\}\_\{a\\sim p\_\{t\}\}\(\\hat\{f\}^\{t\}\_\{c\}\-f^\{\*\}\_\{c\}\)^\{2\}\(x,a\)\. This is𝔼\[Yt′∣ℱt−1\]\\mathbb\{E\}\[Y^\{\\prime\}\_\{t\}\\mid\\mathcal\{F\}\_\{t\-1\}\]forYt′=𝔼a∼pt\(f^ct−fc∗\)2\(xt,a\)Y^\{\\prime\}\_\{t\}=\\mathbb\{E\}\_\{a\\sim p\_\{t\}\}\(\\hat\{f\}^\{t\}\_\{c\}\-f^\{\*\}\_\{c\}\)^\{2\}\(x\_\{t\},a\), becausext∼𝒟x\_\{t\}\\sim\\mathcal\{D\}is independent ofℱt−1\\mathcal\{F\}\_\{t\-1\}andptp\_\{t\},f^ct\\hat\{f\}^\{t\}\_\{c\}areℱt−1\\mathcal\{F\}\_\{t\-1\}\-measurable; apply \([7](https://arxiv.org/html/2611.21880#A4.E7)\) with𝒢t=ℱt\\mathcal\{G\}\_\{t\}=\\mathcal\{F\}\_\{t\}and then the first bound\. The four events \(oracle, and \([7](https://arxiv.org/html/2611.21880#A4.E7)\) three times\) fail with total probability at most4ζ4\\zeta\. ∎
## Appendix EProofs for Lemmas in Section[3](https://arxiv.org/html/2611.21880#S3)
### E\.1Restatement and Proof for Lemma[5](https://arxiv.org/html/2611.21880#Thmtheorem5)
###### Lemma 19\(\(Restatement of Lemma[5](https://arxiv.org/html/2611.21880#Thmtheorem5)\) Shape ofgtg\_\{t\}\)\.
gtg\_\{t\}is nonincreasing and right\-continuous on\[0,∞\)\[0,\\infty\), and all its discontinuities are downward jumps\.
###### Proof\.
Fix a contextxxand writera=f^rt\(x,a\)r\_\{a\}=\\hat\{f\}\_\{r\}^\{t\}\(x,a\),ca=f^ct\(x,a\)c\_\{a\}=\\hat\{f\}\_\{c\}^\{t\}\(x,a\),za\(μ\)=ra\+μcaz\_\{a\}\(\\mu\)=r\_\{a\}\+\\mu c\_\{a\}andh\(μ\)=∑apt,a\(μ\)cah\(\\mu\)=\\sum\_\{a\}p^\{\(\\mu\)\}\_\{t,a\}c\_\{a\}for the predicted cost atxx\.
Each scorezaz\_\{a\}is a line inμ\\muwith slopecac\_\{a\}, and the leader is the lowest line\. Since there are finitely many lines,\[0,∞\)\[0,\\infty\)splits into finitely many intervals on which the leaderℓ\\ellis fixed, separated by points where two or more lines cross at the bottom\.
*Step 1:hhis non\-increasing while the leader is fixed\.*The leader’s probability is1−∑a≠ℓpt,a\(μ\)1\-\\sum\_\{a\\neq\\ell\}p^\{\(\\mu\)\}\_\{t,a\}, soh\(μ\)=cℓ\+∑a≠ℓpt,a\(μ\)\(ca−cℓ\)h\(\\mu\)=c\_\{\\ell\}\+\\sum\_\{a\\neq\\ell\}p^\{\(\\mu\)\}\_\{t,a\}\(c\_\{a\}\-c\_\{\\ell\}\)\. The gapza−zℓz\_\{a\}\-z\_\{\\ell\}has derivativeca−cℓc\_\{a\}\-c\_\{\\ell\}, sopt,a\(μ\)=1/\(K\+γ\(za−zℓ\)\)p^\{\(\\mu\)\}\_\{t,a\}=1/\(K\+\\gamma\(z\_\{a\}\-z\_\{\\ell\}\)\)has derivative−γ\(pt,a\(μ\)\)2\(ca−cℓ\)\-\\gamma\(p^\{\(\\mu\)\}\_\{t,a\}\)^\{2\}\(c\_\{a\}\-c\_\{\\ell\}\), and
h′\(μ\)=−γ∑a≠ℓ\(pt,a\(μ\)\)2\(ca−cℓ\)2≤0\.h^\{\\prime\}\(\\mu\)=\-\\gamma\\sum\_\{a\\neq\\ell\}\(p^\{\(\\mu\)\}\_\{t,a\}\)^\{2\}\(c\_\{a\}\-c\_\{\\ell\}\)^\{2\}\\leq 0\.In words, increasingμ\\mumoves probability from actions that cost more than the leader to the leader, and from the leader to actions that cost less; both lower the cost\.
*Step 2: what happens where the leader changes\.*Letμ∘\\mu^\{\\circ\}be a point where the leader changes, fromℓ\\elljust belowμ∘\\mu^\{\\circ\}toℓ′\\ell^\{\\prime\}just above\. Both lines are lowest atμ∘\\mu^\{\\circ\}, andℓ\\ellwas belowℓ′\\ell^\{\\prime\}before, soℓ\\ell’s line is steeper:cℓ\>cℓ′c\_\{\\ell\}\>c\_\{\\ell^\{\\prime\}\}\. Atμ∘\\mu^\{\\circ\}itself the two scores are equal, so either could be called the leader; the tie\-break picks the one with the smaller cost,ℓ′\\ell^\{\\prime\}, which is also the leader just aboveμ∘\\mu^\{\\circ\}\. Henceh\(μ∘\)=h\(μ∘\+\)h\(\\mu^\{\\circ\}\)=h\(\\mu^\{\\circ\}\{\+\}\):hhis right\-continuous\.
*Step 3: the jump is downward\.*Compare the distributions just below and atμ∘\\mu^\{\\circ\}\. They are inverse\-gap weighting for the same scoresz\(μ∘\)z\(\\mu^\{\\circ\}\)\(in the limit\), differing only in which of the tied actions is called the leader\. Every action other thanℓ,ℓ′\\ell,\\ell^\{\\prime\}has the same gap, hence the same probability, in both\. The tied action that is not the leader has gap00, hence probability1/K1/K\. The leader gets the remaining massPP, which is the same in both\. So just belowμ∘\\mu^\{\\circ\},ℓ\\ellhas probabilityPPandℓ′\\ell^\{\\prime\}has1/K1/K; atμ∘\\mu^\{\\circ\}these are swapped, and
h\(μ∘\)−h\(μ∘−\)=\(Pcℓ′\+1Kcℓ\)−\(Pcℓ\+1Kcℓ′\)=\(cℓ′−cℓ\)\(P−1K\)≤0,h\(\\mu^\{\\circ\}\)\-h\(\\mu^\{\\circ\}\{\-\}\)=\\bigl\(Pc\_\{\\ell^\{\\prime\}\}\+\\tfrac\{1\}\{K\}c\_\{\\ell\}\\bigr\)\-\\bigl\(Pc\_\{\\ell\}\+\\tfrac\{1\}\{K\}c\_\{\\ell^\{\\prime\}\}\\bigr\)=\(c\_\{\\ell^\{\\prime\}\}\-c\_\{\\ell\}\)\\bigl\(P\-\\tfrac\{1\}\{K\}\\bigr\)\\leq 0,becausecℓ′<cℓc\_\{\\ell^\{\\prime\}\}<c\_\{\\ell\}, andP≥1/KP\\geq 1/Ksince each of theK−1K\-1non\-leaders has probability at most1/K1/K\. If more than two actions tie, the same computation applies with the extra tied actions at probability1/K1/Kon both sides\.
*Averaging over contexts\.*Steps 1–3 show thathhis nonincreasing and right\-continuous for eachxx\. Both properties are preserved by averaging overx∼𝒟x\\sim\\mathcal\{D\}\(for right\-continuity, by bounded convergence\), and a nonincreasing function can only jump downward\. ∎
### E\.2Proof for Proposition[7](https://arxiv.org/html/2611.21880#Thmtheorem7)
###### Proposition 20\(\(Restatement of Proposition[7](https://arxiv.org/html/2611.21880#Thmtheorem7)\) Existence, computability\)\.
The policyptp\_\{t\}of Definition[6](https://arxiv.org/html/2611.21880#Thmtheorem6)is well defined, and in the third caseV^cpt=b\\hat\{V\}\_\{c\}^\{p\_\{t\}\}=b\. It can be computed by bisection on\[0,Λ\]\[0,\\Lambda\]\. In every caseptp\_\{t\}is, for eachxx, a convex combination of inverse\-gap\-weighted distributions for the score vectory^t\(μt\)\\hat\{y\}\_\{t\}\(\\mu\_\{t\}\), each with a minimizer ofy^t\(μt\)\\hat\{y\}\_\{t\}\(\\mu\_\{t\}\)as the leader\. Finally,μt\\mu\_\{t\}andptp\_\{t\}depend only onf^rt,f^ct\\hat\{f\}\_\{r\}^\{t\},\\hat\{f\}\_\{c\}^\{t\}, hence areℱt−1\\mathcal\{F\}\_\{t\-1\}\-measurable; in particular they do not depend on the realized actionata\_\{t\}\.
###### Proof\.
In the third casegt\(0\)\>b≥gt\(Λ\)g\_\{t\}\(0\)\>b\\geq g\_\{t\}\(\\Lambda\), soμt∈\(0,Λ\]\\mu\_\{t\}\\in\(0,\\Lambda\]exists\. By Lemma[5](https://arxiv.org/html/2611.21880#Thmtheorem5),gt\(μt\)≤bg\_\{t\}\(\\mu\_\{t\}\)\\leq b\(right\-continuity\) andV^cp¯t\(μt\)=gt\(μt−\)≥b\\hat\{V\}\_\{c\}^\{\\bar\{p\}^\{\(\\mu\_\{t\}\)\}\_\{t\}\}=g\_\{t\}\(\\mu\_\{t\}\{\-\}\)\\geq b\(Step 3 of Lemma[5](https://arxiv.org/html/2611.21880#Thmtheorem5)and the definition of the infimum\), so awtw\_\{t\}withV^cpt=b\\hat\{V\}\_\{c\}^\{p\_\{t\}\}=bexists\. Bisection keeps a pointμlo\\mu^\{\\mathrm\{lo\}\}withgt\>bg\_\{t\}\>band a pointμhi\\mu^\{\\mathrm\{hi\}\}withgt≤bg\_\{t\}\\leq band mixes the two policies; afternnstepsμhi−μlo≤Λ2−n\\mu^\{\\mathrm\{hi\}\}\-\\mu^\{\\mathrm\{lo\}\}\\leq\\Lambda 2^\{\-n\}, and every bound below holds up to an additiveTΛ2−nT\\Lambda 2^\{\-n\}\. Bothp¯t\(μt\)\\bar\{p\}^\{\(\\mu\_\{t\}\)\}\_\{t\}andpt\(μt\)p^\{\(\\mu\_\{t\}\)\}\_\{t\}are inverse\-gap weighting fory^t\(μt\)\\hat\{y\}\_\{t\}\(\\mu\_\{t\}\)with a minimizer as the leader\. Everything ingtg\_\{t\}is a function off^rt,f^ct\\hat\{f\}\_\{r\}^\{t\},\\hat\{f\}\_\{c\}^\{t\}, which are determined by data from rounds<t<t\. ∎
## Appendix FMissing proofs for Lemmas in Section[4](https://arxiv.org/html/2611.21880#S4)
Proof of Lemma[8](https://arxiv.org/html/2611.21880#Thmtheorem8):
###### Proof\.
Letℓ\\ellbe the leader,a⋆∈argminafaa^\{\\star\}\\in\\arg\\min\_\{a\}f\_\{a\}andΔa=y^a−y^ℓ≥0\\Delta\_\{a\}=\\hat\{y\}\_\{a\}\-\\hat\{y\}\_\{\\ell\}\\geq 0\. Then
∑apafa−fa⋆=∑a≠a⋆pa\(fa−y^a\)\+\(1−pa⋆\)\(y^a⋆−fa⋆\)\+∑apaΔa−Δa⋆\.\\textstyle\\sum\_\{a\}p\_\{a\}f\_\{a\}\-f\_\{a^\{\\star\}\}=\\sum\_\{a\\neq a^\{\\star\}\}p\_\{a\}\(f\_\{a\}\-\\hat\{y\}\_\{a\}\)\+\(1\-p\_\{a^\{\\star\}\}\)\(\\hat\{y\}\_\{a^\{\\star\}\}\-f\_\{a^\{\\star\}\}\)\+\\sum\_\{a\}p\_\{a\}\\Delta\_\{a\}\-\\Delta\_\{a^\{\\star\}\}\.Maximizingpau−γ4pau2p\_\{a\}u\-\\tfrac\{\\gamma\}\{4\}p\_\{a\}u^\{2\}and\(1−pa⋆\)u−γ4pa⋆u2\(1\-p\_\{a^\{\\star\}\}\)u\-\\tfrac\{\\gamma\}\{4\}p\_\{a^\{\\star\}\}u^\{2\}overu∈ℝu\\in\\mathbb\{R\}bounds the first two terms, minusγ4∑apa\(y^a−fa\)2\\tfrac\{\\gamma\}\{4\}\\sum\_\{a\}p\_\{a\}\(\\hat\{y\}\_\{a\}\-f\_\{a\}\)^\{2\}, by∑a≠a⋆paγ\+\(1−pa⋆\)2γpa⋆=1−pa⋆γpa⋆≤1γpa⋆\\sum\_\{a\\neq a^\{\\star\}\}\\tfrac\{p\_\{a\}\}\{\\gamma\}\+\\tfrac\{\(1\-p\_\{a^\{\\star\}\}\)^\{2\}\}\{\\gamma p\_\{a^\{\\star\}\}\}=\\tfrac\{1\-p\_\{a^\{\\star\}\}\}\{\\gamma p\_\{a^\{\\star\}\}\}\\leq\\tfrac\{1\}\{\\gamma p\_\{a^\{\\star\}\}\}\. Next,∑apaΔa=∑a≠ℓΔaK\+γΔa≤K−1γ\\sum\_\{a\}p\_\{a\}\\Delta\_\{a\}=\\sum\_\{a\\neq\\ell\}\\tfrac\{\\Delta\_\{a\}\}\{K\+\\gamma\\Delta\_\{a\}\}\\leq\\tfrac\{K\-1\}\{\\gamma\}\. Ifa⋆≠ℓa^\{\\star\}\\neq\\ell, then1γpa⋆=Kγ\+Δa⋆\\tfrac\{1\}\{\\gamma p\_\{a^\{\\star\}\}\}=\\tfrac\{K\}\{\\gamma\}\+\\Delta\_\{a^\{\\star\}\}; ifa⋆=ℓa^\{\\star\}=\\ell, thenpa⋆≥1/Kp\_\{a^\{\\star\}\}\\geq 1/KandΔa⋆=0\\Delta\_\{a^\{\\star\}\}=0\. In both cases the total is at most2K/γ2K/\\gamma\. ∎
###### Lemma 21\(\(Restatement of Lemma[9](https://arxiv.org/html/2611.21880#Thmtheorem9)\) Composite regret\)\.
For any fixed comparator policyπ\\pi, with probability at least1−5ζ1\-5\\zeta,
∑t=1T\[\(Vrpt\+μtVcpt\)−\(Vrπ\+μtVcπ\)\]≤RT:=2KT\(Ur\+Λ2Uc\)\+\(1\+Λ\)2Tlog\(1/ζ\)\.\\sum\_\{t=1\}^\{T\}\\Bigl\[\(V\_\{r\}^\{p\_\{t\}\}\+\\mu\_\{t\}V\_\{c\}^\{p\_\{t\}\}\)\-\(V\_\{r\}^\{\\pi\}\+\\mu\_\{t\}V\_\{c\}^\{\\pi\}\)\\Bigr\]\\leq R\_\{T\}:=2\\sqrt\{KT\\,\(U\_\{r\}\+\\Lambda^\{2\}U\_\{c\}\)\}\+\(1\+\\Lambda\)\\sqrt\{2T\\log\(1/\\zeta\)\}\.\(8\)WithΛ=2/δ\\Lambda=2/\\delta,RT=O\(KTReg𝖲𝗊\(T\)/δ\)R\_\{T\}=O\\bigl\(\\sqrt\{KT\\,\\mathrm\{Reg\}\_\{\\mathsf\{Sq\}\}\(T\)\}/\\delta\\bigr\)\.
###### Proof\.
At roundttletft=fr∗\(xt,⋅\)\+μtfc∗\(xt,⋅\)f\_\{t\}=f\_\{r\}^\{\*\}\(x\_\{t\},\\cdot\)\+\\mu\_\{t\}f\_\{c\}^\{\*\}\(x\_\{t\},\\cdot\), the conditional mean of the composite lossℓt\+μtct\\ell\_\{t\}\+\\mu\_\{t\}c\_\{t\}; it is linear in the observable means, so there is no Jensen gap, andy^t\(μt\)\\hat\{y\}\_\{t\}\(\\mu\_\{t\}\)is its estimate\. Apply \([2](https://arxiv.org/html/2611.21880#S4.E2)\) at the realized contextxtx\_\{t\}, withminaft,a≤𝔼a∼π\(⋅∣xt\)ft,a\\min\_\{a\}f\_\{t,a\}\\leq\\mathbb\{E\}\_\{a\\sim\\pi\(\\cdot\\mid x\_\{t\}\)\}f\_\{t,a\}; this is valid even thoughftf\_\{t\}changes withtt\. Since\(y^t,a−ft,a\)2≤2\(f^rt−fr∗\)2\+2Λ2\(f^ct−fc∗\)2\(\\hat\{y\}\_\{t,a\}\-f\_\{t,a\}\)^\{2\}\\leq 2\(\\hat\{f\}^\{t\}\_\{r\}\-f^\{\*\}\_\{r\}\)^\{2\}\+2\\Lambda^\{2\}\(\\hat\{f\}^\{t\}\_\{c\}\-f^\{\*\}\_\{c\}\)^\{2\}, summing and using Lemma[4](https://arxiv.org/html/2611.21880#Thmtheorem4)gives
∑t\[𝔼a∼pt\(⋅∣xt\)ft,a−𝔼a∼π\(⋅∣xt\)ft,a\]≤2KTγ\+γ2\(Ur\+Λ2Uc\)=2KT\(Ur\+Λ2Uc\)\\sum\_\{t\}\\Bigl\[\\mathbb\{E\}\_\{a\\sim p\_\{t\}\(\\cdot\\mid x\_\{t\}\)\}f\_\{t,a\}\-\\mathbb\{E\}\_\{a\\sim\\pi\(\\cdot\\mid x\_\{t\}\)\}f\_\{t,a\}\\Bigr\]\\leq\\frac\{2KT\}\{\\gamma\}\+\\frac\{\\gamma\}\{2\}\(U\_\{r\}\+\\Lambda^\{2\}U\_\{c\}\)=2\\sqrt\{KT\(U\_\{r\}\+\\Lambda^\{2\}U\_\{c\}\)\}for ourγ\\gamma\. Sinceptp\_\{t\}andμt\\mu\_\{t\}areℱt−1\\mathcal\{F\}\_\{t\-1\}\-measurable andxt∼𝒟x\_\{t\}\\sim\\mathcal\{D\}is independent ofℱt−1\\mathcal\{F\}\_\{t\-1\}, the conditional mean of thett\-th summand is\(Vrpt\+μtVcpt\)−\(Vrπ\+μtVcπ\)\(V\_\{r\}^\{p\_\{t\}\}\+\\mu\_\{t\}V\_\{c\}^\{p\_\{t\}\}\)\-\(V\_\{r\}^\{\\pi\}\+\\mu\_\{t\}V\_\{c\}^\{\\pi\}\)\. The differences lie in\[−\(1\+Λ\),1\+Λ\]\[\-\(1\+\\Lambda\),1\+\\Lambda\], and the Azuma–Hoeffding inequality gives the last term\. ∎
## Appendix GMissing proofs in Section[5](https://arxiv.org/html/2611.21880#S5)
###### Lemma 22\(\(Restatement of Lemma[10](https://arxiv.org/html/2611.21880#Thmtheorem10)\) Rectified extraction\)\.
Withμt\\mu\_\{t\}andptp\_\{t\}from Definition[6](https://arxiv.org/html/2611.21880#Thmtheorem6),
∑t=1Tμt\(Vcpt−b\)≥ΛViol\(T\)−2ΛEc\.\\sum\_\{t=1\}^\{T\}\\mu\_\{t\}\\bigl\(V\_\{c\}^\{p\_\{t\}\}\-b\\bigr\)\\;\\geq\\;\\Lambda\\,\\mathrm\{Viol\}\(T\)\-2\\Lambda E\_\{c\}\.\(9\)
###### Proof\.
Fixttand letϵt=\|Vcpt−V^cpt\|\\epsilon\_\{t\}=\|V\_\{c\}^\{p\_\{t\}\}\-\\hat\{V\}\_\{c\}^\{p\_\{t\}\}\|\. We showμt\(Vcpt−b\)≥Λ\(Vcpt−b\)\+−2Λϵt\\mu\_\{t\}\(V\_\{c\}^\{p\_\{t\}\}\-b\)\\geq\\Lambda\(V\_\{c\}^\{p\_\{t\}\}\-b\)^\{\+\}\-2\\Lambda\\epsilon\_\{t\}in each case of Definition[6](https://arxiv.org/html/2611.21880#Thmtheorem6)\.
*Caseμt=0\\mu\_\{t\}=0\(V^cpt=gt\(0\)≤b\\hat\{V\}\_\{c\}^\{p\_\{t\}\}=g\_\{t\}\(0\)\\leq b\)\.*The left side is00\. SinceV^cpt≤b\\hat\{V\}\_\{c\}^\{p\_\{t\}\}\\leq b,\(Vcpt−b\)\+≤ϵt\(V\_\{c\}^\{p\_\{t\}\}\-b\)^\{\+\}\\leq\\epsilon\_\{t\}, soΛ\(Vcpt−b\)\+−2Λϵt≤0\\Lambda\(V\_\{c\}^\{p\_\{t\}\}\-b\)^\{\+\}\-2\\Lambda\\epsilon\_\{t\}\\leq 0\.
*Caseμt=Λ\\mu\_\{t\}=\\LambdawithV^cpt=gt\(Λ\)\>b\\hat\{V\}\_\{c\}^\{p\_\{t\}\}=g\_\{t\}\(\\Lambda\)\>b\.*The left side isΛ\(Vcpt−b\)\\Lambda\(V\_\{c\}^\{p\_\{t\}\}\-b\), which differs fromΛ\(Vcpt−b\)\+\\Lambda\(V\_\{c\}^\{p\_\{t\}\}\-b\)^\{\+\}byΛmin\(Vcpt−b,0\)≥−Λϵt\\Lambda\\min\(V\_\{c\}^\{p\_\{t\}\}\-b,0\)\\geq\-\\Lambda\\epsilon\_\{t\}, sinceVcpt\>b−ϵtV\_\{c\}^\{p\_\{t\}\}\>b\-\\epsilon\_\{t\}\.
*Third case \(V^cpt=b\\hat\{V\}\_\{c\}^\{p\_\{t\}\}=b,μt∈\(0,Λ\]\\mu\_\{t\}\\in\(0,\\Lambda\]\)\.*Then\|Vcpt−b\|=ϵt\|V\_\{c\}^\{p\_\{t\}\}\-b\|=\\epsilon\_\{t\}, so the left side is at least−μtϵt≥−Λϵt\-\\mu\_\{t\}\\epsilon\_\{t\}\\geq\-\\Lambda\\epsilon\_\{t\}, whileΛ\(Vcpt−b\)\+−2Λϵt≤−Λϵt\\Lambda\(V\_\{c\}^\{p\_\{t\}\}\-b\)^\{\+\}\-2\\Lambda\\epsilon\_\{t\}\\leq\-\\Lambda\\epsilon\_\{t\}\.
Summing overttand using∑tϵt≤Ec\\sum\_\{t\}\\epsilon\_\{t\}\\leq E\_\{c\}gives \([9](https://arxiv.org/html/2611.21880#A7.E9)\)\. ∎
## Appendix HThe Exact\-Penalty Saddle Inequality
###### Lemma 23\(Bounded optimal multiplier\)\.
Under Assumption[3](https://arxiv.org/html/2611.21880#Thmtheorem3)there is an optimal Lagrange multiplierλ∗≥0\\lambda^\{\*\}\\geq 0formin\{Vrπ:Vcπ≤b\}\\min\\\{V\_\{r\}^\{\\pi\}:V\_\{c\}^\{\\pi\}\\leq b\\\}withλ∗≤1/δ\\lambda^\{\*\}\\leq 1/\\delta, satisfyingVrπ\+λ∗\(Vcπ−b\)≥Vrπ∗V\_\{r\}^\{\\pi\}\+\\lambda^\{\*\}\(V\_\{c\}^\{\\pi\}\-b\)\\geq V\_\{r\}^\{\\pi^\{\*\}\}for all randomizedπ\\piandλ∗\(Vcπ∗−b\)=0\\lambda^\{\*\}\(V\_\{c\}^\{\\pi^\{\*\}\}\-b\)=0\.
###### Proof\.
Vr,VcV\_\{r\},V\_\{c\}are linear over the convex set of randomized policies andπs\\pi^\{s\}is strictly feasible, so strong duality holds and an optimalλ∗\\lambda^\{\*\}exists with the stated optimality and complementary slackness\. Evaluating Lagrangian optimality atπs\\pi^\{s\}:Vrπ∗≤Vrπs\+λ∗\(Vcπs−b\)≤Vrπs−λ∗δV\_\{r\}^\{\\pi^\{\*\}\}\\leq V\_\{r\}^\{\\pi^\{s\}\}\+\\lambda^\{\*\}\(V\_\{c\}^\{\\pi^\{s\}\}\-b\)\\leq V\_\{r\}^\{\\pi^\{s\}\}\-\\lambda^\{\*\}\\delta, soλ∗≤\(Vrπs−Vrπ∗\)/δ≤1/δ\\lambda^\{\*\}\\leq\(V\_\{r\}^\{\\pi^\{s\}\}\-V\_\{r\}^\{\\pi^\{\*\}\}\)/\\delta\\leq 1/\\delta\(values in\[0,1\]\[0,1\]\)\. ∎
###### Lemma 24\(Quantitative saddle\)\.
For every randomizedπ\\pi,Vrπ−Vrπ∗≥−λ∗\(Vcπ−b\)\+\.V\_\{r\}^\{\\pi\}\-V\_\{r\}^\{\\pi^\{\*\}\}\\geq\-\\lambda^\{\*\}\(V\_\{c\}^\{\\pi\}\-b\)^\{\+\}\.
###### Proof\.
By Lemma[23](https://arxiv.org/html/2611.21880#Thmtheorem23),Vrπ−Vrπ∗≥−λ∗\(Vcπ−b\)V\_\{r\}^\{\\pi\}\-V\_\{r\}^\{\\pi^\{\*\}\}\\geq\-\\lambda^\{\*\}\(V\_\{c\}^\{\\pi\}\-b\)\. Sinceλ∗≥0\\lambda^\{\*\}\\geq 0andx≤\(x\)\+x\\leq\(x\)^\{\+\},−λ∗\(Vcπ−b\)≥−λ∗\(Vcπ−b\)\+\-\\lambda^\{\*\}\(V\_\{c\}^\{\\pi\}\-b\)\\geq\-\\lambda^\{\*\}\(V\_\{c\}^\{\\pi\}\-b\)^\{\+\}\. ∎
## Appendix IHyperparameters and Primal\-Dual Square CB
Algorithm: Primal\-dual SquareCB \(baseline\)\. Parametersγ\\gamma, step sizeη\\eta, budgetbb; oracles𝖲𝗊𝖠𝗅𝗀r,𝖲𝗊𝖠𝗅𝗀c\\mathsf\{SqAlg\}\_\{r\},\\mathsf\{SqAlg\}\_\{c\};μ1=0\\mu\_\{1\}=0\.Fort=1,…,Tt=1,\\dots,T:1\.Receivextx\_\{t\}; obtainf^rt\(xt,⋅\),f^ct\(xt,⋅\)\\hat\{f\}\_\{r\}^\{t\}\(x\_\{t\},\\cdot\),\\hat\{f\}\_\{c\}^\{t\}\(x\_\{t\},\\cdot\)\.2\.Form scoresy^t,a=f^rt\(xt,a\)\+μtf^ct\(xt,a\)\\hat\{y\}\_\{t,a\}=\\hat\{f\}\_\{r\}^\{t\}\(x\_\{t\},a\)\+\\mu\_\{t\}\\hat\{f\}\_\{c\}^\{t\}\(x\_\{t\},a\)and the SquareCB distributionpt=pt\(μt\)p\_\{t\}=p^\{\(\\mu\_\{t\}\)\}\_\{t\}via \([1](https://arxiv.org/html/2611.21880#S3.E1)\)\.3\.Compute the estimated costc^t=∑apt\(a∣xt\)f^ct\(xt,a\)\\hat\{c\}\_\{t\}=\\sum\_\{a\}p\_\{t\}\(a\\mid x\_\{t\}\)\\,\\hat\{f\}\_\{c\}^\{t\}\(x\_\{t\},a\)\.4\.Updateμt\+1=max\{μt\+η\(c^t−b\),0\}\\mu\_\{t\+1\}=\\max\\\{\\mu\_\{t\}\+\\eta\(\\hat\{c\}\_\{t\}\-b\),0\\\}\.5\.Sampleat∼pta\_\{t\}\\sim p\_\{t\}; observeℓt\(at\),ct\(at\)\\ell\_\{t\}\(a\_\{t\}\),c\_\{t\}\(a\_\{t\}\); update both oracles\.Similar Articles
Learning Regions of Attraction for Transverse Feedback Linearization under Controller Singularities
This paper learns the constrained region of attraction for transverse feedback linearization under controller singularities by decomposing the Zubov value function into an analytic quadratic cost-to-go and a learned safety value function via fitted value iteration, achieving substantially better coverage than quadratic and PINN baselines on unicycle and quadrotor path-following tasks.
Convex-Concave Reinforcement Learning
该论文提出Convex-Concave RL (CCRL),在对数密度比坐标下将策略迭代的精确目标建模为DC约束的DC程序,从而超越凸代理近似,恢复CPI、NPG、TRPO、AWR为特例,并在诊断性MDP和医疗模拟领域相较调优的PPO取得更优表现。
From Cumulative Constraints to Adaptive Runtime Safety Control for Nonstationary Reinforcement Learning
Proposes CPSS, a runtime safety mechanism that converts cumulative cost constraints into adaptive state-level thresholds for safe reinforcement learning in nonstationary environments, demonstrating reduced violations in highway merging scenarios.
Control-Diverse Reinforcement Fine-Tuning: Decoupling the Shared Control Bottleneck of RL Post-Training
The paper introduces CD-RFT, a method to decouple the shared control bottleneck in RL post-training by regularizing a novel control coefficient, improving multi-task capability on models like Qwen2.5-7B and Llama-3.2-3B.
Controlled-Minimax: Stabilizing Adversarial Optimization via Control Theory
清华团队提出 Controlled-Minimax 框架,将对抗训练动力学建模为二阶 ODE,并通过设计反馈控制器为 minimax 优化提供局部指数稳定性保证,有效抑制 GAN 训练中的振荡与极限环问题。