Manuscript Offprint
arXiv:2610.07740High-dimensional online calibration from harmonic weights
Abstract
We study the online calibration of multidimensional forecasts over an arbitrary convex set relative to an arbitrary error norm . For forecasting binary outcomes simultaneously , we give the first algorithm that achieves -calibration in a number of rounds that is polynomial in for every fixed accuracy. It requires rounds, exponentially improving the dimension dependence of previous bounds [Per14, FKO 25, FGMS25]. For multiclass forecasting , we obtain the same rate, improving the bounds of Peng [Pen25] and Fishelson et al. [FGMS25].
Our algorithm is simple: on each round, it outputs a harmonically weighted distribution over harmonically smoothed past outcomes. The same algorithm works for every forecast set and norm. More generally, it achieves -calibration after rounds, where is a geometric parameter defined by a matrix discrepancy problem. The harmonic weights are motivated by the fact that the discrete Hilbert transform matrix achieves the optimal discrepancy up to a universal constant, simultaneously for every . This optimality result may be of independent interest.
1 Introduction
Consider a forecaster who reports a probability of rain each day. What should it mean for these probabilities to be reliable? A natural requirement is that, among the days on which the forecaster predicts a 40% chance of rain, it should rain on approximately 40% of them. The same requirement should hold for every probability the forecaster reports. This agreement between forecasts and observed frequencies is called calibration. It gives a way to assess probabilistic predictions over time, since a single day's outcome says little about the reliability of a 40% forecast.
We study calibration in an online setting: on each round, the forecaster makes a prediction, observes the outcome, and uses this feedback to form subsequent predictions. To measure its error, group together the rounds on which it made the same prediction, compare that prediction with the empirical frequency in the group, and average the discrepancies with weights proportional to the group sizes. A forecaster is approximately calibrated when this average error is small. The online question is whether one can guarantee such agreement without assuming a stochastic model for the outcomes. Classical work on randomized forecasting shows that calibration is possible even against adversarial sequences under suitable information timing [FV98, DDF 24]. Calibration also provides a guarantee for downstream decision makers: agents who respond to calibrated forecasts have vanishing regret [FV97, Per14, KPLST23, RS24, HW24, BHNU26].
Institute for Advanced Study.
Google Research and Courant Institute of Mathematical Sciences, New York.
Early calibration algorithms studied the forecasting of a single binary outcome [FV98]. Many forecasting problems, however, require higher-dimensional predictions. In multi-event forecasting, a forecaster predicts several binary events concurrently: for example, whether it will rain in each of cities. The forecast is a vector in , and the outcome records which cities receive rain. Calibration asks that, on rounds sharing the same entire forecast vector, the empirical frequency of each event agree with its predicted probability. We measure the discrepancy in the norm , which controls all events simultaneously.
In multi-class forecasting, the forecaster predicts a single event with possible outcomes: for example, assigning a probability to each possible next token in a vocabulary of size . Calibration compares the empirical outcome frequencies with the predicted probabilities, here in the norm .
The central difficulty in higher-dimensional forecasting is the dependence on dimension. Standard algorithms discretize the forecast set using an -net and predict over this finite set [FV98, Per14, FKO 25]. Such a grid requires points and yields algorithms with calibration rates that are exponential in even for fixed accuracy. This dependence is prohibitive for modern forecasting tasks with many events or classes.
Recent breakthroughs improve the dimension dependence in important settings, at the cost of a worse dependence on accuracy. Peng [Pen25] (FOCS 2025) gives a multi-class calibration algorithm that achieves -calibration in rounds. The TreeCal algorithm of Fishelson et al. [FGMS25] (NeurIPS 2025, oral) generalizes this approach to arbitrary convex forecast sets and error norms , obtaining a sufficient horizon of , where is a geometric parameter related to online linear optimization rates. This recovers the multi-class bound and gives a dimension-independent horizon of for Euclidean forecasting ( ). Notably, for multi-event forecasting, the resulting bound is , which remains exponential in dimension. Discretization-based methods give the stronger bound in this setting [Per14], but still incur exponential dimension dependence. We improve the dimension and accuracy dependence of these guarantees using a single elementary algorithm.
Our principal results concern the following distributional protocol. On round , the forecaster announces a finite distribution over points in , and the adversary chooses after seeing it. This interaction repeats for rounds. At its conclusion, we evaluate the calibration error by comparing each forecast with its associated average outcome. On round , the forecast receives weight and the outcome is , so its weighted average outcome over all rounds is
whenever its total weight is positive. For an error norm with unit ball , the -calibration error is
where the sum is over distinct forecast points with positive total weight [FGMS25]. Thus is the average calibration error. We say that an algorithm achieves -calibration in rounds if for every realized transcript . Our goal is to achieve -calibration in as few rounds as possible.
In some of the literature, this setting is called pseudo-calibration. We simply refer to it as calibration and call the setting in which the forecaster must sample a single forecast each round sampled calibration. The distributional notion is the more natural formulation, as it suffices for downstream regret guarantees. For sampled calibration, Appendix A obtains the same headline rates in expectation.
Our results. Our algorithm works for every convex forecast set and error norm . We first present its guarantees in three standard forecasting settings, then describe the algorithm and state its general geometric guarantee. For multi-event forecasting, we obtain -calibration in rounds. This is the first algorithm for multi-event calibration whose horizon is polynomial in for each fixed accuracy. For multi-class forecasting we obtain the same horizon, sharpening the accuracy dependence in the bounds of Peng [Pen25] and Fishelson et al. [FGMS25] from to . On the Euclidean unit ball, we improve the horizon of Fishelson et al. [FGMS25] from to , independently of , again improving the accuracy dependence in the exponent. Table 1 summarizes the improved rates.
Theorem 1.1 (Principal consequences). A single explicit anytime algorithm, stated formally as Algorithm 1, achieves average calibration error whenever
where is the unit ball of the norm in dimensions.
| Setting | -net approaches [Per14, FKO25] | High-dimensional regime | This work |
|---|---|---|---|
| Multi-event | — | ||
| Multi-class | [Pen25, FGMS25] | ||
| Euclidean | [FGMS25] |
Table 1: Rounds sufficient to achieve -calibration in the three forecasting settings of Theorem 1.1.
An elementary algorithm. The algorithm has two operations. As it observes outcomes , it stores harmonically weighted average outcomes . At each round, it outputs a harmonically weighted distribution over previously stored forecasts. Both operations use weights that decay inversely with age, as in , normalized to sum to .
On the first round, we choose and announce . For subsequent rounds , we first compute and store a harmonically weighted average of the past outcomes:
Here means that the sum is normalized by its total weight, . Thus . We then construct our output for the round as a distribution supported on the stored forecasts . Let denote the Dirac distribution that puts all its mass on . Using the same harmonically decaying weights, we set
Algorithm 1 gives the formal statement. The procedure is independent of the norm, the horizon, and the target accuracy.
Alternatively, one could use weights . The shift to odd denominators is convenient for the discrete Hilbert transform analysis; both choices give the same rates.
A general geometric guarantee. In fact, the same algorithm admits a general singly exponential horizon bound governed by a matrix discrepancy objective. For nonempty compact convex sets and a real matrix , define
This objective relates to our calibration rates as follows. Let be the center of mass of , and define
Let be the polar of the norm ball :
Let be the shifted discrete Hilbert transform matrix:
The quantity governs our calibration rates. As we will see in Section 3, for every forecast set and norm ball . Thus we define the geometric coefficient
Our main algorithm obtains the following guarantee.
Theorem 1.2 (General geometric guarantee). Let be any norm unit ball, let be a nonempty compact convex forecast set. For an absolute constant , Algorithm 1 achieves -calibration for every
Why harmonic weights? In Section 2, we consider a generalized version of our algorithm with arbitrary admissible weights encoded by a matrix . Its calibration bound is governed by , so we seek weights that minimize this objective.
Section 4 proves that, for sets with and , minimizes up to an absolute constant factor over our class of matrices :
The class consists of matrices with nonnegative entries below the diagonal, nonpositive entries on and above the diagonal, and the same total absolute mass as . We defer the precise definition to Section 4.
Section 3 explains why this choice gives sublinear calibration, with polynomial dimension dependence for many classes of interest. Our core tool is the following bound, proved in Lemma 3.2.
Lemma 1.3 (Finite Hilbert matrix moment bounds). There is an absolute constant such that, for every , every , and every ,
Human acknowledgements. The authors thank Jon Schneider and Yuval Dagan for many helpful discussions throughout this work.
AI acknowledgements. The authors utilized Gemini, ChatGPT, and Claude to assist with proving various lemmas and the creation of this manuscript. However, despite the simplicity of the main algorithm, finding such an algorithm was outside of the one-shot capabilities of the current best commercially available models. Here are two experiments demonstrating that GPT-6 Astra Ultra and Claude Fable 5.1 Max are unable to resolve even a simplified version of the problem (orthant calibration) given a massive in-depth prompt detailing all the relevant past work and algorithmic ideas known.
• Prompt: https://maxkfish.com/wp-content/uploads/2026/10/prompt.txt
• GPT: https://chatgpt.com/share/6ac4672a-5968-83e8-8b96-25e4ad40b3ab
• Fable: https://claude.ai/share/2ec24e46-ee20-4cbd-b682-1fee29989d2c
A more detailed account of AI usage will be provided in a future version of the manuscript. We will discuss the algorithmic insights we had that helped us steer our AI usage over the course of 2 years of work.
(4)
Our generalized algorithm is simply
We choose for an arbitrary . Each stored forecast is a convex combination of , so it belongs to . For , is a probability distribution supported on and therefore depends only on . Thus the algorithm is feasible and causal.
We now show that this algorithm has a calibration guarantee in terms of the matrix objective from the introduction. To state the guarantee, define
The constraints on P, Q in (4) can equivalently be written as constraints on H. Define
Indeed, given , we can recover and , defining a valid instance of (5). We have the following guarantee.
Theorem 2.1. For every , the algorithm (5) parameterized by satisfies
for every outcome sequence .
Proof. Keep a separate bucket for each stored forecast. On each round , Algorithm (5) announces a forecast distribution supported on the stored forecasts , assigning weight to . Thus, for each forecast value and round , the weight placed on is
Two stored forecasts and may happen to be the same vector. Mass placed on these forecasts would have one shared contribution to the total calibration error, which would only reduce the error by the triangle inequality. We upper bound by treating all stored forecasts and as distinct.
Note that and . Therefore, , and
Center at and write and . Both vectors belong to . Then
We bound the sum over s of each term by . Recall the definition of from (1):
The first term is therefore bounded directly
For the second term, take every to be the same vector maximizing . The same definition gives
Consequently,
Combining the two bounds with the initial-round contribution yields
For , we have and . Taking , , and for therefore gives . Thus . For , the bound holds with constant 2 by the triangle inequality.
In the next section, we show that setting , a row-column normalized shifted discrete Hilbert transform matrix, attains the desired sublinear rates for . In the section after that, we demonstrate that minimizes over up to an absolute constant factor, for every forecast set , norm ball , and horizon . Thus, fixing the harmonic weights in our main algorithm (Algorithm 1) gives, up to an absolute constant factor, as good a calibration bound as optimizing the weights in the general algorithm (5).
3 Harmonic growth and geometric calibration rates
We now state our main algorithm formally. Let , and define
Each positive lower row sums to 1, and each negative upper column sums to -1, so . Our main algorithm is exactly algorithm (5) with .
Algorithm 1 Harmonic averaging and replay
1: Choose ; announce ; observe . 2: Store and set . 3: for do 4: Announce . (Aggregate masses of equal point values if needed.) 5: Observe and append it to the outcome list. 6: . 7: Store . 8: end for
The algorithm requires neither nor as input.
We compare the algorithm matrix with the unnormalized shifted discrete Hilbert transform matrix introduced in (2). Recall that
In Appendix B.1, we prove the following lemma by a simple accounting for the normalization terms.
Lemma 3.1 (Comparison of harmonic normalizations). For nonempty compact convex sets with , and every ,
Combining this lemma with Theorem 2.1 gives our main theorem. Recall the definition of :
In Theorem 3.4, we show that for all . This shows that is finite and well-defined.
Theorem 1.2 (restated). Let be any norm unit ball, let be a nonempty compact convex forecast set. For an absolute constant , Algorithm 1 achieves -calibration for every
Proof of Theorem 1.2. Theorem 2.1, Lemma 3.1, and give, for every ,
Consequently, for every ,
as desired.
We now establish the following bounds, with additional examples proved in Appendix D:
These bounds give dimension-independent calibration horizons for the Euclidean ball and horizons polynomial in for multi-event and multi-class forecasting, at every fixed accuracy.
| Geometry | Bound on | ||
|---|---|---|---|
| Euclidean ball | |||
| Multi-event | |||
| Multi-class | |||
| balls | |||
| balls | |||
| Symmetric polytopes (m constraints) | |||
| Product of Euclidean balls | |||
| Arbitrary norm |
Table 2: Bounds on for different geometries.
3.1 Higher moments of the finite Hilbert matrix
The following lemma is our main tool for upper bounding . For and , define
Lemma 3.2 (Finite Hilbert matrix moment bounds). There is an absolute constant such that, for every , every with integer , and every ,²
Proof. Fix and write . We first prove using the Fourier maps :
Readers new to Fourier analysis may find Appendix C helpful: it explains how these maps give an analogue of a singular value decomposition of .
For every integer ,
Thus these maps are isometries: they preserve the 2-norm when we average over . Indeed,
Gemini points out that Riesz–Thorin interpolation between successive powers of two yields for every real . We keep the elementary dyadic result in the main proof and indicate later when the full extension is used.
The same calculation gives . These maps also give a decomposition of , since
Consequently, for ,
Cauchy–Schwarz and the norm identities above give
Taking the supremum over proves .
The higher moments follow from the finite cancellation identity
where products and squares are coordinatewise and
Indeed, for all , including repeated indices,
Multiplying by , summing over s, u, and interchanging s, u in one of the two terms proves (13). To bound the remainder, observe that
Thus gives
Every row and column sum of the matrix is at most . Hence, for every ,
Write over complex vectors. Reversing the order of the coordinates conjugates to , so their -operator norms agree. Taking the -norm in (13) and using Hölder therefore gives
Taking the supremum over yields , and hence
Starting from , the identity proves by induction that
This proves the lemma, and the same bounds hold for .
3.2 Geometric bounds
We are now ready to prove our bounds on . For a matrix , let denote column and denote row . We want to upper bound quantities of the form
Here is the set of matrices whose columns belong to .
Lemma 3.3 (The three principal examples). For every ,
Consequently, Algorithm 1 attains -calibration for every
for an absolute constant C.
Proof. Fix and write . Note the following norm inequality and power mean inequality. For and ,
These are standard consequences of Hölder's inequality.
Euclidean ball . Set . We want to bound uniformly over . First apply the power-mean inequality with exponents 1 and 2 to the column norms:
The bound in Lemma 3.2 also holds for and gives
Combining the two estimates gives . Taking the supremum over the inputs and the horizon gives .
Multi-event forecasting . Set . We want to bound uniformly over . Fix to be a power of 2. First apply the power-mean inequality with exponents 1 and q to the column norms, then the norm inequality with exponents q and within each column:
The bound in Lemma 3.2 also holds for and gives
where the final inequality follows from the power-mean inequality with exponents and , since . Combining these estimates gives
Choose the least power of two . Then and . Taking the supremum over the inputs and the horizon proves the cube bound.
Multi-class forecasting . Swapping the row and column tests in the matrix objective gives
The second equality holds because reversing both index orders turns into , and permuting indices does not change the supremum. Thus . Theorem 1.2 now gives the calibration bounds.
Theorem 3.4 (General test sets). Let be nonempty compact convex sets with and , and write . For every ,
In particular, for every nonempty compact convex forecast set and norm ball ,
Proof. Fix and write . If , the general bound is immediate. Otherwise, project onto span() and work in that subspace. This preserves all dot products and does not increase the dimension, so we may assume that has nonempty interior. The norm with unit ball is . John's ellipsoid theorem [Bal92, Theorem J and its symmetric consequence] gives an invertible linear map such that
Every satisfies , and hence . Fix and set , so . The first three inequalities below use the ellipsoid comparison, the power-mean inequality across columns, and the moment bound on coordinate rows, respectively:
Taking the supremum over proves the general bound. For and , we have , because . Dividing by and taking the supremum over the horizon proves (17).
The bound in Theorem 3.4 can be loose: for it gives , whereas the more refined argument above gives . One might therefore conjecture that for every norm ball . However, Theorem D.4 in Appendix D uses a construction of Bourgain [Bou83b] to give norm balls with . Thus the general guarantee in Theorem 1.2 cannot give a polynomial-in-d calibration horizon for every norm ball.
We defer the remaining cases, including balls, symmetric polytopes, and products of Euclidean balls, to Appendix D.
4 Universal Optimality of the Discrete Hilbert Transform Matrix
The idea of using harmonic weights for high-dimensional calibration stems from the TreeCal algorithm [FGMS25, Pen25]. The algorithm organizes historical outcomes into nested blocks of time and mixes forecasts associated with different levels of the tree. This corresponds to weighting historical data with harmonically decaying importance. A deeper reason for these weights is revealed by our proof that harmonic weights in algorithm (5) are optimal up to a constant factor for the matrix objective, a result that rests on a fundamental property of the Hilbert transform.
Recall the shifted discrete Hilbert transform matrix and its row-column normalized version from (2) and (9):
where . Also recall that algorithm (5) can be instantiated with any matrix in
This idea originates in the earlier TreeSwap algorithm for high-dimensional swap regret [DDFG24, PR24].
the class
Choosing gives our harmonic algorithm. The following corollary shows that this choice minimizes the matrix objective up to an absolute constant factor, simultaneously for every pair of test sets.
Corollary 4.1 (Optimality of harmonic weights). There is an absolute constant such that, for every pair of nonempty compact convex sets with and , every , and every ,
We prove a stronger property: is optimal over the more general class
Here is the entrywise absolute mass. The class has the same sign constraints as , but constrains only the total absolute mass, not the masses of individual lower rows and upper columns. We choose this total mass so that : for each , there are entries of with magnitude , and hence
Our main theorem in this section is the following.
Theorem 4.2 (Universal optimality of the discrete Hilbert transform). There is an absolute constant such that, for every pair of nonempty compact convex sets with and , every , and every ,
The constant is independent of the sets, their dimension, and the horizon.
Corollary 4.1 follows from Lemma 3.1 and the fact that every matrix in has total absolute mass , so
4.1 Scalar warm-up
As a warm-up to proving Theorem 4.2, we show that for every . This matches the dependence of proved in Theorem 3.4. In Section 4.2, we use a more involved construction to obtain a lower bound on that matches not only the growth of , but also its dependence on through the geometry of and (see Table 2).
We prove the lower bound in the scalar setting . We obtain the lower bound for general sets by embedding this scalar construction. Note that for all . Below we prove the general lower bound .
Lemma 4.3 (Dyadic scalar tests). Let and let satisfy for and for . With ,
Proof. Put and pad with zero rows and columns to size . View the row and column indices as the leaves, from left to right, of a complete binary tree of depth , with the root at depth 0 and the leaves at depth . Partition the entries of into parts: entry belongs to part if the lowest common ancestor of leaves and has depth . Thus the diagonal entries form part .

Example: q = 3

Depth (root)
Depth
Depth
Depth (diagonal)
Let be the absolute mass of part . Since , some part has mass at least . It therefore suffices to construct, for each , random signs such that
This guarantees a realization whose objective is at least the mass of the largest part.
Fix and choose independent uniform signs for all nodes at depth . For each leaf below , set
If belongs to part , then and lie in opposite child subtrees of the same node . The product is +1 when and -1 when , so . All other products have expectation 0: leaves in the same child subtree use the independent signs , and leaves below different nodes use independent signs. Thus the expected objective is . For the diagonal part, take independent Rademacher signs and set , ; the expected objective is , completing the construction.
Note that the discrete Hilbert transform matrix spreads its mass such that for every , attaining the lower bound up to constants.
A lower bound for general test sets. Embedding the scalar construction gives a baseline lower bound that is independent of dimension. In Section 4.2, we use this bound to control an error term while proving the sharper comparison with , which also captures the dependence on the geometry of and . Let be nonempty compact convex sets with and , and put
The scalar construction also gives, for every sign-compatible matrix of mass and ,
Indeed, choose , with . Replace the scalar signs by and . These vectors are admissible, and in every distribution above, so each expected pairing is times its scalar value.
4.2 Full proof of Theorem 4.2
Throughout this subsection, write .
Proof idea. To prove Theorem 4.2, we want to show that, for every ,
The general proof relies on a stronger structural property of harmonic weights. Fix vectors and that attain the maximum for . We want to construct random vectors and such that
For each fixed H, some choice of these vectors attains at least this expectation, proving the desired comparison.
Since this bound must hold for every , we consider which choice of makes the expectation smallest for a given distribution over and . Recall that requires for and for , and fixes the total absolute mass. Subject to these constraints, the minimizing puts all its mass on a single entry minimizing , with + for and - for . To prevent any one pair of indices from limiting the bound, we aim to make the expected dot products approximately equal up to sign:
We will construct and as random weighted sums of and , respectively. How can their expected dot product depend only on the sign of , and not its magnitude? The key is harmonic weights, whose effect is easiest to see with functions of a continuous variable.
For example, let be an odd function. Suppose we are tasked with constructing a new function as a weighted integral of values of , such that depends only on the sign of . If the improper integral converges, then we can naturally construct using harmonic weights:
Here we use oddness to factor out , then substitute . The harmonic weight cancels the change of scale, leaving only the sign of .
To make use of this identity, we have to turn our discrete lists of vectors and into functions and of a continuous variable, respectively. A natural way to do this is to use pulse functions. The function will take the value on a short interval of width for each and be zero outside these intervals, and likewise takes the value on a short interval for each . An antisymmetrized convolution of and produces the odd function , which encodes the relevant dot products . The pulse locations align with the Hilbert denominators, so the harmonic weights roughly give
We then give a random construction of the vectors that mirrors the harmonic averaging used to define , in such a way that, for all ,
This gives the desired relationship between the expected dot products and , with signs matching those of the entries of .
The above is a rough picture motivating our construction of and the proof of Theorem 4.2. For the actual proof, we must also deal with error terms originating from truncation and approximation. The weights have infinite total mass, whereas the distribution over must have total mass 1. Our actual construction therefore aligns the expected dot products with a normalized, truncated integral. The resulting expectation is
introducing an error in recovering . Additionally, the finite pulse width and periodic copies introduce errors in recovering the Hilbert objective. The proof below demonstrates how we can control all of these errors.
Proof of Theorem 4.2. Let . Fix vectors and that attain the maximum for :
Related uses of periodic Hilbert-transform bounds and discrete Hilbert matrices appear in Bourgain [Bou83a, Section 3].
Define pulse functions using . For a visual aid, Appendix B.3 illustrates the construction of , and in a scalar example. Set , , and define -periodic pulse functions , as follows. For each , set
Set both functions to 0 elsewhere in , then repeat this pattern with period . That is, takes the value on a pulse centered at with width , and takes the value on a pulse centered at with width . Note that the second half of each period is empty, leaving a gap between repetitions of the pulse configuration.
Thus and for all , and for all . The signed distance between the centers of the pulse in and the pulse in is exactly , the denominator of . The small width keeps row and column supports separated.
Define
The convolution is a finite sum of pulse-overlap functions, so it is Lipschitz even though the pulses themselves are piecewise constant. Moreover, is odd and periodic, , and for . Its mean over a period is zero, so is periodic with . These facts give convergence of
To see why this integral recovers the original objective , consider the contribution of an pulse in and a pulse in to . Before adding its periodic copies, this is
where . This is a signed triangular bump centered at , the denominator of the shifted discrete Hilbert transform matrix entry . Its area is . Across this narrow bump, is close to . Taking the odd part, integrating, and summing over pulse pairs therefore gives
The next lemma controls the two approximations: the finite pulse width and the periodic copies.
Lemma 4.4 (The Hilbert objective survives the pulse embedding). The pulses just constructed satisfy
Appendix B.2 proves the estimate by periodizing the reciprocal kernel. The coefficient is . The two errors, from periodization and from replacing pulses by their centers, are at most and , respectively.
Constructing and . Our construction begins by sampling a scale variable with density proportional to over a finite interval specified below. We first describe how to construct and conditional on a fixed value of . Draw uniformly modulo and choose each of the following two families with probability :
Every realization remains in and : the central symmetry of allows us to negate the values in the second family. For ,
using the substitution .
using the substitution . Because each family is selected with probability 1/2, we have
The half-step shift makes for and for , with .
A finite logarithmic average nearly removes the distance. Independently draw u from with density . Averaging over u gives
(29)
using oddness and the substitution . The first subtracted integral is 0, since and on . To bound the upper tail, recall that satisfies . For any , integration by parts gives
where the boundary term at infinity vanishes because is bounded. Taking bounds the upper tail by . Thus every entry satisfies
Fix any . Multiplying the entrywise bounds by and summing gives
Since , rearranging yields
For , we have and , while (23) gives
Thus (30) yields
This proves the theorem with C = 512.
References
[Bal92] Keith Ball. Ellipsoids of maximal volume in convex bodies. Geometriae Dedicata, 41:241–250, 1992.
[BHNU26] Konstantina Bairaktari, Lunjia Hu, Huy L. Nguyen, and Jonathan Ullman. Testable and actionable calibration for full swap regret. arXiv:2605.17749, 2026.
[Bou83a] J. Bourgain. Some remarks on Banach spaces in which martingale difference sequences are unconditional. Arkiv för Matematik, 21:163–168, 1983.
[Bou83b] Jean Bourgain. Sur les sommes de sinus. In Analyse harmonique: groupe de travail sur les espaces de Banach invariants par translation, volume 83-01 of Publications mathématiques d'Orsay. Université Paris XI, 1983. Exposé 3.
[DDF 24] Yuval Dagan, Constantinos Daskalakis, Maxwell Fishelson, Noah Golowich, Robert Kleinberg, and Princewill Okoroafor. Breaking the barrier for sequential calibration. arXiv preprint arXiv:2406.13668, 2024.
[DDFG24] Yuval Dagan, Constantinos Daskalakis, Maxwell Fishelson, and Noah Golowich. From external to swap regret 2.0: An efficient reduction for large action spaces. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, pages 1216–1222. Association for Computing Machinery, 2024. Full version, arXiv:2310.19786v4, February 24, 2025, titled From External to Swap Regret 2.0: An Efficient Reduction and Oblivious Adversary for Large Action Spaces.
[FGMS25] Maxwell Fishelson, Noah Golowich, Mehryar Mohri, and Jon Schneider. High-dimensional calibration from swap regret. In Advances in Neural Information Processing Systems, volume 38, 2025. Revised version: arXiv:2505.21460v2, August 11, 2026.
[FKO 25] Maxwell Fishelson, Robert Kleinberg, Princewill Okoroafor, Renato Paes Leme, Jon Schneider, and Yifeng Teng. Full swap regret and discretized calibration. In Proceedings of The 36th International Conference on Algorithmic Learning Theory, volume 272 of Proceedings of Machine Learning Research, pages 444–480. PMLR, 2025.
[FV97] Dean P. Foster and Rakesh V. Vohra. Calibrated learning and correlated equilibrium. Games and Economic Behavior, 21(1–2):40–55, 1997.
[FV98] Dean P. Foster and Rakesh V. Vohra. Asymptotic calibration. Biometrika, 85(2):379–390, 1998.
[HW24] Lunjia Hu and Yifan Wu. Predict to minimize swap regret for all payoff-bounded tasks. In 2024 IEEE 65th Annual Symposium on Foundations of Computer Science (FOCS), pages 244–263. IEEE, 2024. Full version titled Calibration Error for Decision Making.
[KPLST23] Robert Kleinberg, Renato Paes Leme, Jon Schneider, and Yifeng Teng. U-calibration: Forecasting for an unknown agent. In Proceedings of Thirty Sixth Conference on Learning Theory, volume 195 of Proceedings of Machine Learning Research, pages 5143–5145. PMLR, 2023.
[Pen25] Binghui Peng. High dimensional online calibration in polynomial time. In 2025 IEEE 66th Annual Symposium on Foundations of Computer Science (FOCS). IEEE, 2025. Theorem references use arXiv:2504.09096v1, April 12, 2025.
[Per14] Vianney Perchet. Approachability, regret and calibration: Implications and equivalences. Journal of Dynamics and Games, 1(2):181–254, 2014.
[PR24] Binghui Peng and Aviad Rubinstein. Fast swap regret minimization and applications to approximate correlated equilibria. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, pages 1223–1234. Association for Computing Machinery, 2024.
[RS24] Aaron Roth and Mirah Shi. Forecasting for swap regret for all downstream agents. In Proceedings of the 25th ACM Conference on Economics and Computation, pages 466–488. Association for Computing Machinery, 2024.
A Sampled forecasts by repetition
The distributional guarantee has a sampled counterpart with an additional cost, provided each virtual forecast distribution is repeated sufficiently many times. The guarantee in this appendix is in expectation. Throughout, the adversary may observe the current announced distribution and all past sampled forecasts, but it must select the current outcome without observing the current sampled forecast. More precisely, the current forecast is a fresh draw from the announced distribution conditional on the history and the current outcome. This timing condition is stronger than the condition needed for the pathwise distributional theorem.
We retain the main text’s time convention: actual rounds are indexed by , with announced distribution and outcome . Write for the sampled forecast, to distinguish it from the stored points in Algorithm 1. Throughout, an abbreviated time sum such as means . The sampled objective is
(32) where the sum is over distinct realized point values. In particular, repeated occurrences of the same point always share one bucket.
Why an additional argument is necessary. There is no support-free transfer from distributional to sampled calibration. For example, fix distinct points within of in , and announce their uniform distribution on every round. Against independent fair binary outcomes, the expected distributional error is at most : its pathwise value is at most . Independent sampling from these distributions creates an expected singleton buckets. Each singleton contributes at least to sampled calibration, so the expected sampled error is linear in . Thus the total number of forecast labels, and not merely the support size on an individual round, matters in a sampling proof.
A.1 A vector martingale bound for predictable labels
As in the main text, denotes the standard Euclidean norm on . Fix a norm-comparison constant and define
The constant is finite by equivalence of norms, and is finite because the forecast set is compact. The constant controls only the sampling error.
Lemma A.1 (Predictably created forecast labels). Suppose at most m distinct forecast points are ever announced during T rounds, where m is a deterministic bound. Each point is chosen before any sample that can select it. Under the timing condition above,
where . The labels may be random and may depend on past sampled forecasts.
Proof. Assign each newly announced distinct point a permanent slot in order of first announcement, using a fixed measurable order within a round. The slots are . A point already seen retains its slot; thus equal point values are merged as they appear. Fix an anchor . Let be the value of slot at round if that slot has been born, and let before its birth. Let be its announced probability, with before birth. Once born, a slot's point value never changes.
For precision about conditioning, let contain the entire history before the current outcome is selected, including the announced distribution and all labels born by that announcement. Set , and take to contain and the current sampled forecast. Writing for the sampled slot, the timing condition is
The outcome may depend on all earlier samples. Define the -valued increments
Before birth these increments are zero, and otherwise their point value is already known. Consequently
For , the increment is -measurable, so . Euclidean martingale orthogonality and therefore give
(35)
In particular, no conditioning on the terminal collection of labels has been used. Cauchy–Schwarz over the fixed m slots, followed by Jensen’s inequality, yields
Pathwise, for each born slot the sampled residual equals its distributional residual plus . Slots not born contribute zero. The triangle inequality proves (34). Alternatively, an algorithm may maintain separate slots for repeated values. Apply the variance argument to these slots and then sum their discrepancies within each point bucket; this merging contracts the sum of discrepancy norms. Such a proof requires a deterministic bound on the total number of slots, including the ones never sampled.
A.2 The repeated harmonic algorithm
Run Algorithm 1 for virtual rounds, indexed by , and choose an integer repetition count . Write and for its distribution and outcome. Virtual round occupies actual rounds , so the actual horizon is . On every round in this block, announce and draw a fresh forecast from this distribution. After the block, return the average outcome
to the virtual algorithm. Convexity ensures that . In particular, uses only averages from blocks completed before virtual round . Within a block, the distribution remains fixed even if the adversary adapts to past sampled forecasts. The virtual initialization is ; the stored virtual points are , obtained by applying Algorithm 1 to the averages . The virtual run announces only , hence at most distinct forecast points.
Theorem A.2 (Expected sampled calibration). Suppose there is a constant such that the harmonic algorithm satisfies, for every virtual outcome sequence and every ,
Then the repeated algorithm satisfies, at the real horizon ,
In particular, for every , the choices
give
One may take : the proof of Theorem 1.2, before replacing by a logarithm, gives
using Lemma 3.1.
Proof. Write on block . For every point value , exactly
Thus the real distributional calibration error equals times the virtual distributional error. Although the block averages may be random and depend on within-block samples, the virtual guarantee is pathwise for every outcome sequence, so its use here is valid. The virtual run announces at most distinct points, including , each known before it can be sampled. Lemma A.1, applied once over all real rounds, adds at most . Since , division by proves (38).
The elementary inequality and (39) bound the virtual term by . The same choices bound the sampling term by . Finally, for , proving the stated integer horizon bound, including the degenerate case .
The global application of Lemma A.1 is essential for the stated cost. Applying a separate support bound within each block and adding the results would instead give the valid but larger normalized cost .
Corollary A.3 (The three principal sampled horizons). Let . Choose an absolute constant such that for the Euclidean unit ball and both for the cube with the infinity norm and for the simplex with the one norm, using the geometric bounds in Section 3.2. Set
increasing if necessary so that . Expected sampled calibration at most is attained at the following real horizons:
Here these symbols denote particular sufficient horizons of the repeated algorithm. In particular their asymptotic upper bounds are , , and , respectively, for an absolute constant C.
Proof. For the Euclidean unit ball, take , , and , and use . For the cube, take and , giving . For the simplex, the inequalities and give . The displayed bounds follow from Theorem A.2; the simplex at is a singleton and in fact has zero error. For , the polynomial factors in and are absorbed by increasing the absolute exponent constant, using and .
These are expectation statements at the specified product horizons. No high-probability or anytime sampled guarantee is implicit. The Euclidean bound is dimension independent; the displayed Euclidean embedding argument does not give dimension independence for every norm on .
B Harmonic normalization and pulse estimates
We give the normalization calculations and analytic estimates used in Sections 3 and 4. Throughout, are nonempty compact convex sets, , and . Subsection B.2 also assumes , as in Section 4.
B.1 Mass identities and normalization corrections
Set , the empty-sum convention, for the identities below. The positive lower row sums of are , and its negative upper column sums have magnitudes . Interchanging finite sums gives
For example, the first sum is ; the second differs by . Adding the identities proves , and hence . Normalizing each positive lower row and each negative upper column separately gives in (9). There are such rows and such columns, so its total absolute mass is . The same mass identity holds for every member of and proves the scaled inclusion in (21). We also use
For matrices of the same size, the bound and central symmetry of give
This turns a bound on correction mass into a bound on the objective.
Proposition B.1 (Normalization correction). For every ,
Proof. Write and
where the nonnegative matrices have entries
and zero entries elsewhere. Their supports in the displayed decomposition are disjoint. By (44),
The correction therefore has absolute mass . Apply (45) and multiply by h.
Proof of Lemma 3.1. For , both matrices equal and , so the claim is immediate. Assume . Write , , and . The normalization correction in Proposition B.1 gives
To absorb the additive term, choose and with . Use
These right tests lie in the segment joining u and -u. Summing their objectives using (44) gives
where we used . It follows that and . Hence
as claimed.
For completeness, the comparison need not be exact minimization. When and , the individually normalized matrices are
The minimum is 2 at , whereas has and value 5/2.
B.2 Recovering the Hilbert objective from pulses
Proof of Lemma 4.4. Use the maximizing vectors and pulses from the main text, with and . Set . The purpose of this calculation is to recover the original maximizing sum
from the integral I that determines the randomized witnesses' common signed correlation. We will justify the two approximations
with absolute errors at most and , respectively. The second approximation is easy to interpret: on a row/column pulse rectangle the dot product is the constant , the rectangle has area , and is close to the center difference . The first approximation accounts for the periodic copies of these rectangles. This is why a periodic reciprocal kernel enters.
Account for periodic copies. Taking the odd part gives
Substituting the definition of and setting turns the weight into . Because the functions are periodic, all translated copies contribute as well. Their summed kernel is
Here the factor 1/P comes from shift averaging, and the factor 1/2 from taking the odd part. To justify the identity, observe that on the two supports . With , change variables modulo P to obtain
There is no singularity on the supports. The cotangent partial-fraction expansion
converges uniformly on these differences: the paired terms equal . Passing to the limit proves (47).
For ,
Indeed, increases from zero to on . The support lengths of and are both , and every pairing has magnitude at most . Thus replacing by in (47) costs at most .
Recover the original Hilbert denominators. Next replace each pulse pair by its centers. Put and write with . In the identity
the linear term integrates to zero. Since and , the remainder has magnitude at most . The integral over a pulse pair therefore differs from by at most . Using
the total error, including the prefactor and the pairing bound , is at most . The center terms equal
The two errors sum to r/16, proving the lemma.
B.3 A visual example of the pulse construction
For illustration, consider a one-dimensional example with , , and . Then and : the pulses of are centered at , and those of at . The plots below show these functions together with their correlation and its odd part from (25). The correlation is the total overlap length of the shifted pulses and the pulses , divided by 8. Two pulse pairs have center difference , giving the middle triangle twice the height of the other two. Taking gives the odd function .

One period is shown on ; all four functions repeat every 8 units.
C Fourier maps as an analogue of the SVD
This appendix explains the Fourier representation used to bound the 2-norm of in Lemma 3.2. For readers familiar with matrices but new to Fourier analysis, the singular value decomposition (SVD) provides a useful analogy. In the usual SVD , the matrices have orthonormal columns, so they preserve Euclidean norms. The diagonal matrix then determines how much a vector can be stretched.
The Fourier maps
play a similar role. Think of each map as a matrix with columns and an uncountable collection of rows indexed by . Multiplying by a vector gives a function of in place of a vector of coordinates. We take inner products of these functions by averaging over the interval:
The columns of each map are orthonormal under this inner product. For U,
The same calculation applies to V, since the difference between two odd frequencies is again an even integer. Expanding the squares and using this orthogonality gives
Thus U, V are isometries: just like matrices with orthonormal columns, they preserve the 2-norm. The adjoint takes inner products with the columns of U:
It records the coefficients of the orthogonal projection onto those columns, so . For every odd integer ,
Taking therefore gives the factorization
The factor appears because the inner product defining uses , whereas the preceding integral uses . We can now read off the norm bound:
This is the sense in which the Fourier maps give an analogue of an SVD: the factorization isolates the scalar , while the remaining maps have norm at most one. It gives an upper bound on every singular value of K.
D Further geometric bounds
We prove the additional geometric bounds listed in Section 3: general norms, symmetric polytopes, and products of Euclidean balls. We then give a polynomial lower bound for for some norms. Throughout, C denotes an absolute constant that may change between occurrences. We use the column-norm representation of the matrix objective from Section 3.2.
Each upper bound gives a calibration guarantee through Theorem 1.2. More generally, if , then implies , so .
D.1 General norms
Theorem D.1. For every and ,
where for , and at the endpoints. Consequently, for and , Algorithm 1 achieves -calibration whenever
Proof. Lemma 3.2 and the interpolation in Footnote 2 give the scalar moment estimate for every real . Duality extends it to , since reversing both coordinate orders turns into . Thus
For , put . Applying the scalar estimate in each coordinate gives
Hölder over and the column-norm representation give .
For every and ,
where and . Applying these comparisons to the inputs and output columns yields
Let . For , choose , taking at . Either , or . For , choose . Either , or . In both cases, . This proves the geometric bound, and Theorem 1.2 gives the calibration guarantee.
D.2 Symmetric polytopes
Theorem D.2. Suppose the norm unit ball is
Then . For , Algorithm 1 achieves -calibration whenever .
Proof. Write , so . For , put . For every , Hölder over time and (49) give
Choose . Then and . Taking the supremum over the inputs and the horizon proves the claim; Theorem 1.2 gives the calibration guarantee.
D.3 Products of Euclidean balls
Theorem D.3. Let , with associated norm . Then
independently of the dimensions . For , Algorithm 1 achieves -calibration whenever .
Proof. First extend (49) to a sequence in a finite-dimensional Euclidean space. For a standard Gaussian vector in that space and ,
for a positive scalar . Apply the scalar estimate to , take expectations, and cancel . This gives
Now take and let . Applying this estimate in each block yields
Choose and take the supremum over the inputs and the horizon. Theorem 1.2 gives the calibration guarantee. Its buckets are complete joint forecasts.
D.4 A polynomial lower bound for the geometric coefficient
Bourgain constructed sums of sines of size , although the corresponding cosine sum has value at zero. We use translates of these sine sums as witnesses for the matrix objective.
Theorem D.4. There is an absolute constant such that, for every , some norm ball satisfies
Proof. Bourgain’s sine-sum theorem [Bou83b] gives, for every , distinct positive integers such that
where is an absolute constant. Consider the real vector space
Identify with using the displayed basis, and let be its norm unit ball. Translation preserves this space and its norm, and every evaluation belongs to .
Choose and write . For , take
Then and , and . Counting the pairs with therefore gives
For every , the odd sine series gives
Both tails converge by Dirichlet's test; the last equality is the Fourier series of the square wave on . The weights in (50) take the arithmetic mean of the symmetric partial sums with , so the weighted sum has the same limit. Since is centrally symmetric, its center of mass is zero. Letting in (50) yields
This proves the claim in dimension 2n. For odd , take and replace this ball by . Extending the vectors and functionals above by a zero coordinate preserves their objective values. Since for , adjusting the absolute constant proves the claim in every dimension.
This rules out a uniform polylogarithmic bound on . It is a limitation of the guarantee in Theorem 1.2; it does not by itself give a lower bound on calibration error.