Skip to content

Menu

WorksComputer Science

Constrained Gradient Equilibrium: Approachability under Locally Constrained Adversaries

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_sr33tdym. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Gradient equilibrium (GEQ) is a recent framework in online learning that requires the time-averaged gradients along the learner's trajectory to vanish. We study GEQ when the learner is constrained and ask when such an equilibrium remains achievable in an adversarial environment. We first show that constrained GEQ (CGEQ) can be impossible even under simple and slowly varying constraints, motivating imposing local temporal structure on the adversary. We then develop an approachability framework for CGEQ under locally constrained adversaries, and obtain necessary and sufficient characterizations in the spirit of classical Blackwell approachability. Beyond these theoretical characterizations, we provide an algorithmic principle that converts window-wise no-regret learners into CGEQ algorithms under a local feasibility condition with margin. Experiments on synthetic and real data demonstrate that the resulting algorithms perform strongly in both achieving GEQ and respecting the constraints.

Introduction

Gradient equilibrium (GEQ), introduced recently by Angelopoulos et al. [3], has emerged as a useful perspective on online learning, with connections to applications including calibration [10] and conformal prediction [12]. In contrast to regret minimization, which compares the learner against the best fixed decision in hindsight, GEQ asks whether the time-average of the loss (sub)gradients along the learner’s trajectory vanishes. Specifically, letting gt∈∂ℓtg_t \in\partial\ell_t denote a (sub)gradient of the loss at round tt, GEQ requires

∥1T∑t=1Tgt(xt)∥2⟶0as T→∞,(1)\left\lVert\frac{1}{T}\sum_{t=1}^{T}g_t(x_t)\right\rVert_2 \longrightarrow0 \quad\text{as } T \to\infty, \tag*{(1)}

where x1,…,xTx_1,\ldots,x_T denote the learner’s trajectory. For example, when ℓt\ell_t is the pinball loss, the corresponding GEQ problem is online quantile calibration that requires the fraction of overpredictions to reach a prescribed quantile level. As another example, consider the cross-entropy loss ℓt(xt)=−ztlog⁡σ(xt)−(1−zt)log⁡(1−σ(xt))\ell_t(x_t)=-z_t\log\sigma(x_t)-(1-z_t)\log(1-\sigma(x_t)) with probabilistic predictions σ(xt)=1/(1+e−xt)∈[0,1]\sigma(x_t)=1/(1+e^{-x_t})\in[0,1] (allowing xt=±∞x_t=\pm\infty) and binary outcomes zt∈{0,1}z_t\in\{0,1\}. In this case, GEQ requires T−1∑t=1T(σ(xt)−zt)→0T^{-1}\sum_{t=1}^{T}(\sigma(x_t)-z_t)\to0, an online prediction problem known as defensive forecasting [27, 25].

Practical scenarios often concern the case where the learner’s action xtx_t is constrained, i.e. xt∈Ct⊆Rdx_t\in C_t\subseteq\mathbb{R}^d. Existing guarantees for constrained GEQ (CGEQ) [3, 18] often take the form

∥1T∑t=1T(gt(xt)+nt)∥2⟶0,as T→∞,(2)\left\lVert\frac{1}{T}\sum_{t=1}^{T}\left(g_t(x_t)+n_t\right)\right\rVert_2 \longrightarrow0, \quad\text{as } T\to\infty, \tag*{(2)}

where xt∈Ctx_t\in C_t and ntn_t is a normal vector to CtC_t at xtx_t. The correction ntn_t is nonzero only if xtx_t lies on the boundary of CtC_t, and can be viewed as accounting for the projection of an unconstrained action back onto the feasible set. In many applications, however, the relevant objective remains the original GEQ condition (1), together with the feasibility requirement xt∈Ctx_t\in C_t, rather than the normal-cone formulation (2). For instance, in online quantile calibration, it is the original GEQ objective that guarantees that the average coverage error at the target quantile level converges to zero. This stronger constrained formulation is studied in recent work by Ding et al. [8], which gives sufficient conditions on the gradients gtg_t under which (1) remains achievable despite the constraints. It remains unclear, however, whether these conditions are also necessary and, more fundamentally, when constraints genuinely change the achievability of GEQ relative to the unconstrained setting.

In this paper, we provide a systematic study of the CGEQ problem and make the following contributions:

  1. First, we identify a simple example showing that CGEQ can be impossible without suitable restrictions on the adversary. In particular, unlike standard global feasibility or stationarity conditions, achieving CGEQ may require the adversary to satisfy a local temporal constraint.

  1. Second, we study two formulations of locally constrained adversaries and derive necessary and sufficient conditions for CGEQ in the spirit of classical Blackwell approachability. Our characterizations subsume existing sufficient conditions such as restorativity and inward flow.

  1. Third, we translate these characterizations into efficient algorithms for achieving CGEQ. As an important special case, we show that under local feasibility with a margin condition, a generic reduction converts any suitable no-regret learner into a CGEQ algorithm.

  1. Finally, we evaluate our CGEQ algorithms on both synthetic and real data. The experiments show that our methods are effective at simultaneously achieving GEQ and respecting the constraints, whereas existing baselines generally fail to satisfy both objectives.

Related work

GEQ. Although GEQ and no-regret learning are known to be incomparable in general [3], existing algorithms for GEQ are inspired by no-regret learning. For instance, Angelopoulos et al. [3] consider online gradient descent with a constant learning rate, i.e. xt+1=xt−ηgt(xt)x_{t+1}=x_t-\eta g_t(x_t), and introduce a restorative condition on the adversary to control the divergence of the trajectory xtx_t in the unconstrained setting. In the constrained setting, Ding et al. [8] consider lazy online gradient descent, i.e. xt=Proj⁡Ct(x~t)x_t=\operatorname{Proj}_{C_t}(\widetilde{x}_t) and x~t+1=x~t−ηgt(xt)\widetilde{x}_{t+1}=\widetilde{x}_t-\eta g_t(x_t), and introduce an inward flow condition, together with restorativity, to control the magnitude of the unconstrained iterate x~t\widetilde{x}_t. As discussed in the introduction, however, these conditions are only sufficient and, more importantly, do not characterize when constraints fundamentally change the achievability of GEQ.

Blackwell approachability. Reduction techniques connecting different frameworks in online learning have underpinned recent algorithmic advances in a range of problems, including calibration [15, 9, 21], multi-objective learning [19, 13], and omniprediction/panprediction [22, 4]. A celebrated example is Blackwell approachability [5], together with its equivalences to no-regret learning [1] and calibration [24]. In particular, a recent work [18] establishes an equivalence between GEQ and Blackwell approachability by showing that GEQ can be formulated as approaching the singleton target set {0}\{0\} under the vector payoff gtg_t. In the constrained setting, however, this equivalence leads only to the normal-cone objective (2), rather than the stronger objective (1).

Our characterization of locally constrained adversaries in § 3 is also formulated through Blackwell approachability, with the additional complication that local adversarial constraints induce temporal dependence in the game state. As a result, we develop approachability results for stochastic Stackelberg games in which the state evolution is governed by a Markov decision process (MDP), in a spirit similar to [20, 17].

Regret minimization. Regret minimization is one of the most classical frameworks in online learning and online convex optimization (OCO), and has inspired a wide range of algorithmic ideas [6, 23]. In the unconstrained setting, a canonical no-regret algorithm for OCO is online gradient descent [28]. The constrained setting, referred to as constrained online convex optimization (COCO), is more challenging, but recent work [26] obtains near-optimal guarantees simultaneously for objective regret and soft constraint violation, even under time-varying constraints.

Lee et al. [18] also establish reductions between regret minimization and GEQ. We emphasize that their reductions differ from ours in § 4 in two important ways. First, the reduction in [18] relies on the restorativity condition, whereas ours is based on a distinct local feasibility condition. Second, and more importantly, our no-regret learner is applied separately within each local window, whereas the online learner in [18] operates over the entire time horizon.

Organization

The remainder of the paper is organized as follows. In § 2, we construct a simple example showing that CGEQ can be impossible without local constraints on the adversary, and introduce two notions of locally constrained adversaries. In § 3, we develop necessary and sufficient characterizations of admissible local constraint sets using Blackwell approachability for vector-payoff stochastic Stackelberg games. In § 4, we specialize these general results to local feasibility constraints and develop efficient algorithms for CGEQ. We evaluate our algorithms on both synthetic and real data in § 5, and defer proof details and extensions to the appendices.

Negative Results for CGEQ

We begin with a negative example showing that CGEQ could be impossible even if there is a fixed action in hindsight that achieves CGEQ. Consider the defensive forecasting problem in the introduction, with learner’s action reformulated as pt=σ(xt)∈[0,1]p_t = \sigma(x_t) \in[0,1]. In other words, at the beginning of round tt, the learner makes a probabilistic prediction pt∈[0,1]p_t \in[0,1], and nature (adversary) reveals a binary outcome zt∈{0,1}z_t \in\{0,1\}. The GEQ objective (1) in this case is

1T∑t=1T(pt−zt)→0,as T→∞.(3)\frac{1}{T}\sum_{t=1}^{T}(p_t-z_t)\to0,\quad\text{as }T\to\infty. \tag*{(3)}

In the unconstrained case, achieving (3) is easy, e.g. by setting p1=0p_1 = 0 and pt+1=ztp_{t+1} = z_t. To make it a constrained GEQ problem, we impose a simple constraint:

pt∈[0,12],for all t≥1.(4)p_t\in\left[0,\frac{1}{2}\right],\quad\text{for all }t\ge1. \tag*{(4)}

We show that CGEQ is now impossible even if the adversary is randomizing over two deterministic choices.

Theorem 2.1. Let T∈NT \in\mathbb{N} be an even integer, and assume the following strategy of the adversary: with probability 12\frac{1}{2}, set zT=(0,0,…,0)z^T = (0,0,\ldots,0); with probability 12\frac{1}{2}, set zT=(0,…,0,1,…,1)z^T = (0,\ldots,0,1,\ldots,1), with an equal number of 0s and 1s. Then, every admissible learner subject to the constraint (4) must incur

E∣1T∑t=1T(pt−zt)∣≥c>0,\mathbb{E}\left|\frac{1}{T}\sum_{t=1}^{T}(p_t-z_t)\right|\ge c>0,

for some universal constant c>0c>0.

In short, Theorem 2.1 shows that (a uniform version of) the CGEQ objective (3) is non-achievable under the above adversary strategy.1 In particular, the adversarial construction in Theorem 2.1 shows that CGEQ can be impossible against a seemingly “nice” adversary:

  1. In hindsight, the best fixed action pt≡1T∑s=1Tzsp_t \equiv\frac{1}{T}\sum_{s=1}^{T}z_s achieves GEQ and is feasible, i.e. pt∈[0,1/2]p_t \in[0,1/2];

  1. More strongly, for every T0≤TT_0 \le T, the partial sequence zT0z^{T_0} admits the feasible fixed action pt≡1T0∑s=1T0zsp_t \equiv\frac{1}{T_0}\sum_{s=1}^{T_0}z_s which achieves GEQ on the first T0T_0 rounds;

  1. The adversarial sequence zTz^T also has very small total variation: ∑t=1T−1∣zt+1−zt∣≤1\sum_{t=1}^{T-1}|z_{t+1}-z_t| \le1.

Therefore, Theorem 2.1 shows that CGEQ cannot be guaranteed merely from global or cumulative feasibility in hindsight, nor from a globally stable environment with few switches. The obstruction is instead local: although every prefix is feasible in hindsight, CGEQ may become infeasible when attention is restricted to a local block. For example, the second half of zTz^T may consist entirely of ones, (1,…,1)(1,\ldots,1). On such a block, no fixed feasible prediction satisfying (4) can achieve the GEQ condition (3). This motivates imposing local, rather than merely global, restrictions on the adversary.

Interestingly, an appropriate local feasibility condition is sufficient to restore CGEQ in this example. Suppose every consecutive subsequence zs+1s+Hz_{s+1}^{s+H} of length HH admits a feasible fixed action that achieves GEQ exactly; equivalently, 1H∑t=s+1s+Hzt∈[0,1/2]\frac{1}{H}\sum_{t=s+1}^{s+H}z_t \in[0,1/2] for every s≥0s \ge0. In this case, consider the feasible learner defined by p1=⋯=pH=0p_1=\cdots=p_H=0 and pt+H=1H∑s=tt+H−1zsp_{t+H}=\frac{1}{H}\sum_{s=t}^{t+H-1}z_s for every t≥1t \ge1. For this learner, a simple telescoping argument gives ∣1T∑t=1T(pt−zt)∣=O(HT)\left|\frac{1}{T}\sum_{t=1}^{T}(p_t-z_t)\right|=O\left(\frac{H}{T}\right), which is o(1)o(1) as long as H=o(T)H=o(T). Thus, in sharp contrast to the lower-bound construction above, CGEQ becomes achievable once feasibility is imposed uniformly over sufficiently local windows.

In this paper, we generalize the above observation and consider two types of locally constrained adversaries: blockwise and sliding window.

Definition 2.2. Let H≥1H \ge1 be a fixed window length, and WH⊆ZH\mathcal{W}_H \subseteq\mathcal{Z}^H be a fixed constraint set of length-HH sequences. We define two types of locally constrained adversaries:

  • Blockwise adversary: An adversarial sequence zTz^T satisfies an HH-blockwise condition if T=KHT=KH is an integer multiple of HH, and z(k−1)H+1kH∈WHz_{(k-1)H+1}^{kH} \in\mathcal{W}_H for every k∈[K]k \in[K].

  • Sliding window adversary: An adversarial sequence zTz^T satisfies an HH-sliding window condition if ztt+H−1∈WHz_t^{t+H-1} \in\mathcal{W}_H for every t∈[T−H+1]t \in[T-H+1].

References

  1. [1]Jacob Abernethy, Peter L Bartlett, and Elad Hazan. Blackwell approachability and no-regret learning are equivalent. In Proceedings of the 24th Annual Conference on Learning Theory, pages 27–46. JMLR Workshop and Conference Proceedings, 2011.
  2. [2]Marianne Akian, Stéphane Gaubert, and Alexander Guterman. Tropical polyhedra are equivalent to mean payoff games. International Journal of Algebra and Computation, 22(01):1250001, 2012.
  3. [3]Anastasios N Angelopoulos, Michael I Jordan, and Ryan J Tibshirani. Gradient equilibrium in online learning: Theory and applications. Journal of Machine Learning Research, 26(305):1–68, 2025.arxiv.org/abs/2501.08330
  4. [4]Sivaram an Balakrishnan, Nika Haghtalab, Daniel Hsu, Brian Lee, and Eric Zhao. Pan-prediction: Optimal predictions for any downstream task and loss. arXiv preprint arXiv:2510.27638, 2025.arxiv.org/abs/2510.27638
  5. [5]David Blackwell. An analog of the minimax theorem for vector payoffs. Pacific Journal of Mathematics, 6(1):1–8, 1956.DOI
  6. [6]Nicolo Cesa-Bianchi and Gábor Lugosi. Prediction, learning, and games. Cambridge university press Cambridge, 2006.
  7. [7]Catherine Chen, Jingyan Shen, Zhun Deng, and Lihua Lei. Adversarially robust control of conditional value-at-risk via rockafellar-uryasev conformal inference. arXiv preprint arXiv:2606.00320, 2026.arxiv.org/abs/2606.00320
  8. [8]Tiffany Ding, Isaac Gibbs, and Ryan J Tibshirani. Calibrated multi-level quantile forecasting. arXiv preprint arXiv:2512.23671, 2025.arxiv.org/abs/2512.23671
  9. [9]Dean P. Foster and Sergiu Hart. Forecast hedging and calibration. Journal of Political Economy, 129(12):3447–3490, 2021.
  10. [10]Dean P Foster and Rakesh V Vohra. Asymptotic calibration. Biometrika, 85(2):379–390, 1998.DOI
  11. [11]Stéphane Gaubert and Jeremy Gunawardena. The perron-frobenius theorem for homogeneous, monotone functions. Transactions of the American Mathematical Society, pages 4931–4950, 2004.DOI
  12. [12]Isaac Gibbs and Emmanuel Candes. Adaptive conformal inference under distribution shift. Advances in Neural Information Processing Systems, 34:1660–1672, 2021.arxiv.org/abs/2106.00170
  13. [13]Nika Haghtalab, Michael Jordan, and Eric Zhao. A unifying perspective on multi-calibration: Game dynamics for multi-objective learning. Advances in Neural Information Processing Systems, 36:72464–72506, 2023.arxiv.org/abs/2302.10863
  14. [14]Elad Hazan, Amit Agarwal, and Satyen Kale. Logarithmic regret algorithms for online convex optimization. Machine Learning, 69(2):169–192, 2007.
  15. [15]Ursula Hébert-Johnson, Michael Kim, Omer Reingold, and Guy Rothblum. Multicalibration: Calibration for the (computationally-identifiable) masses. In International conference on machine learning, pages 1939–1948. PMLR, 2018.
  16. [16]Ruitong Huang, Tor Lattimore, András György, and Csaba Szepesvári. Following the leader and fast rates in online linear prediction: Curved constraint sets and other regularities. Journal of Machine Learning Research, 18(145):1–31, 2017.
  17. [17]Dileep Kalathil, Vivek S Borkar, and Rahul Jain. Approachability in stackelberg stochastic games with vector costs. Dynamic games and applications, 7(3):422–442, 2017.arxiv.org/abs/1411.0728
  18. [18]Brian W Lee, Nika Haghtalab, Michael I Jordan, and Ryan J Tibshirani. Blackwell approachability and gradient equilibrium are equivalent. arXiv preprint arXiv:2606.27315, 2026.arxiv.org/abs/2606.27315
  19. [19]Daniel Lee, Georgy Noarov, Mallesh Pai, and Aaron Roth. Online minimax multiobjective optimization: Multicalibeating and other applications. In Advances in Neural Information Processing Systems, volume 35, pages 29051–29063, 2022.arxiv.org/abs/2108.03837
  20. [20]Emanuel Milman. Approachable sets of vector payoffs in stochastic games. Games and Economic Behavior, 56(1):135–147, 2006.DOI
  21. [21]Princewill Okoroafor, Bobby Kleinberg, and Wen Sun. Faster recalibration of an online predictor via approachability. In International Conference on Artificial Intelligence and Statistics, pages 4690–4698. PMLR, 2024.arxiv.org/abs/2310.17002
  22. [22]Princewill Okoroafor, Robert Kleinberg, and Michael P Kim. Near-optimal algorithms for omniprediction. In 2025 IEEE 66th Annual Symposium on Foundations of Computer Science (FOCS), pages 1595–1609. IEEE, 2025.arxiv.org/abs/2501.17205
  23. [23]Francesco Orabona. A modern introduction to online learning. arXiv preprint arXiv:1912.13213, 2019.
  24. [24]Vianney Perchet. Approachability, regret and calibration; implications and equivalences. arXiv preprint arXiv:1301.2663, 2013.arxiv.org/abs/1301.2663
  25. [25]Juan Carlos Perdomo and Benjamin Recht. In defense of defensive forecasting. arXiv preprint arXiv:2506.11848, 2025.arxiv.org/abs/2506.11848
  26. [26]Abhishek Sinha and Rahul Vaze. Optimal algorithms for online convex optimization with adversarial constraints. Advances in Neural Information Processing Systems, 37:41274–41302, 2024.arxiv.org/abs/2310.18955
  27. [27]Vladimir Vovk, Akimichi Takemura, and Glenn Shafer. Defensive forecasting. In International Workshop on Artificial Intelligence and Statistics, pages 365–372. PMLR, 2005.
  28. [28]Martin Zinkevich. Online convex programming and generalized infinitesimal gradient ascent. In Proceedings of the 20th international conference on machine learning (icml-03), pages 928–936, 2003.

AI tools statement

No AI-use declaration is available for this version in Valency.

The available record does not establish whether AI systems or models contributed to this work.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Table 1

1 / 2

Pick where to look, or just type