Manuscript Offprint
arXiv:2611.03305Calibrated Multiaccuracy: Deterministic and Randomized Sample Complexity
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Calibrated multiaccuracy asks that a predictor be globally calibrated and multiaccurate with respect to a bounded test family ; that is, its residuals should be uncorrelated with every test . It has emerged as a promising weakening of multicalibration that nonetheless is sufficient for many applications. However, the sample complexity of learning a predictor satisfying calibrated multiaccuracy has remained poorly understood — and in fact was not known to be less than the sample complexity needed for full multicalibration, which is when is at least a sufficiently large power of . We resolve the sample complexity of -calibrated multiaccuracy, showing that it scales as
separating it from the complexity of multicalibration. The upper bound is obtained by an algorithm that outputs a randomized predictor.
We also determine the sample complexity for calibrated multiaccuracy when the learning algorithm is restricted to outputting a deterministic predictor. The rate is
whenever . When for any fixed , this rate is polynomially larger than the rate for randomized predictors. Thus, unlike for multicalibration, calibrated multiaccuracy exhibits a genuine sample-complexity separation between deterministic and randomized predictors. The matching upper and lower bounds show that the unusual cube-root dependence on is intrinsic. At , the minimax rates for randomized and deterministic calibrated multiaccuracy both coincide with the minimax rate for multicalibration.
Contents
1 Introduction 1 1.1 Our results 2 1.2 Technical overview 3 1.2.1 Randomized upper bound 4 1.2.2 Deterministic upper bound 7 1.2.3 Lower bounds 9 1.3 Related work 11
2 Setting and calibration definitions 12 2.1 A score coarsening identity 12
3 Ingredients for the randomized upper bound 13 3.1 Learning against finitely many residual tests 13 3.2 Mean-preserving randomized rounding 13 3.3 Choosing a low-variation rounding partition 16 3.4 Prediction-value tests induced by rounding 17
4 Upper bound for randomized predictors 18
5 Upper bound for deterministic predictors 21 5.1 What category averaging accomplishes 22 5.2 The population assignment argument 23 5.3 Learning a score for the later assignments 27 5.4 Choosing assignments on the empirical distribution 29 5.5 Fixing the category assignments 30 5.6 Transferring the empirical guarantees to the true labels 30
6 Matching lower bound for randomized predictors 32 6.1 The sample cost of recovering hidden offsets 33
7 Lower bound for deterministic predictors 36
8 Discussion 40
A Deferred proofs for the deterministic upper bound 43 A.1 Confidence intervals and the context partition 44 A.2 Transferring empirical residuals to the true labels 46 A.3 Fixing the category assignments 48
B Deferred proofs from the randomized lower bound 50
C Deferred proofs from the deterministic lower bound 51
D Proof of the finite-test online lemma 52
E Polynomial-time implementation in the real-arithmetic model 53
This paper studies an intermediate guarantee, weaker than multicalibration, obtained by imposing global calibration together with multiaccuracy. We study both randomized and deterministic predictors. In both regimes, the training algorithm may use randomness. The important distinction is the type of predictor it outputs. A randomized predictor assigns to each feature value a distribution over predictions in . On a fresh example , let be the realized prediction, drawn independently of conditional on . A deterministic predictor is instead a fixed function , corresponding to the special case in which is a point mass at , so that . For a finite class of tests , define the multiaccuracy (MA) error and expected calibration error (ECE) in terms of the realized prediction:
The calibrated multiaccuracy error is
Why calibrated multiaccuracy is interesting. Over the past several years, multicalibration has been the subject of intense study in part because it has found so many different applications, from omniprediction [Gopalan et al., 2022] to conditional guarantees in conformal prediction [Bastani et al., 2022, Jung et al., 2023] to complexity-theoretic constructions [Casacuberta et al., 2024] to multiparty information aggregation [Collina et al., 2025, 2026a, Kearns et al., 2026]. A growing line of work, however, has shown that calibrated multiaccuracy is enough for tasks where multicalibration had previously been the standard tool. In omniprediction, the outcome-indistinguishability viewpoint decomposes loss minimization into calibration plus multiaccuracy for a loss-derived class of tests [Gopalan et al., 2023]. Casacuberta et al. [2025] show that adding global calibration to multiaccuracy recovers several implications previously known from multicalibration, including optimal-density hardcore measures. In computational complexity, the multicalibration-based characterization of product-distribution indistinguishability of Marcussen et al. [2025] can also be obtained from calibrated multiaccuracy [Dwork and Tankala, 2025].
These results suggest that calibrated multiaccuracy is a useful relaxation of multicalibration: strong enough for many applications, but structurally weaker. However, prior to this paper, it had not been established that calibrated multiaccuracy error could actually be driven to 0 any faster than multicalibration error, as a function of the number of samples needed for learning. The best known sample complexity upper bounds for calibrated multiaccuracy in the regime were [Gibbs and Tibshirani, 2026, Noarov and Roth, 2027], no better than the minimax optimal rates for multicalibration [Collina et al., 2027]. The only non-trivial lower bound for calibrated multiaccuracy was the bound of Gibbs and Tibshirani [2026], which applied only when the output after training was a deterministic predictor . In particular, no super- lower bound was known for algorithms outputting randomized predictors.
Randomized versus deterministic predictors. One might naturally expect allowing the output predictor to randomize not to matter for a batch learning problem. For many familiar distributional learning objectives, randomization is not needed. It is never needed for risk minimization of a single expected loss, for example. The closely related multicalibration problem reinforces this expectation: Collina et al. [2027] identified the minimax optimal sample complexity, initially with upper bounds that were realized by randomized predictors. However subsequently, Noarov and Roth [2027] showed that deterministic predictors suffice to achieve the minimax optimal sample complexity. Thus one might reasonably expect the same for calibrated multiaccuracy — that there should be no worst-case advantage to outputting a randomized predictor. Surprisingly (to us, at least), we show that the story is different for calibrated multiaccuracy: for polynomial-size test families, randomized predictors attain a strictly smaller minimax sample complexity!
1.1 Our results
Write for the group budget. We prove the following, where the lower bounds take the worst case over distributions and bounded test families of the specified cardinality.
- Tight randomized sample complexity. We give an efficient algorithm which, given samples and a test family , outputs a randomized predictor satisfying, with probability :
Equivalently, error is achievable with samples. We prove a matching lower bound for arbitrary randomized predictors that is tight for every value of . For polynomial-size test families, this rate is , compared with for full multicalibration. The formal upper bound is Theorem 4.1; the matching randomized lower bound is Theorem 6.1.
- Tight deterministic sample complexity and a separation. For algorithms that must output a deterministic predictor , we prove the information-theoretic sample-complexity upper bound
We also prove that, for , some bounded test family with requires samples from every algorithm whose output is a deterministic predictor. The randomized multiaccuracy lower bound applies a fortiori to deterministic predictors and supplies the matching term. Thus the upper bound is tight up to logarithmic factors for every . In particular, the matching bounds show that the unusual dependence is a genuine feature of deterministic prediction, not an artifact of the upper-bound analysis. Unlike the efficient algorithm for randomized predictors in item 1, this is an information-theoretic construction whose direct implementation can require exponential time. The formal upper and lower bounds are Theorems 5.1 and 7.1, respectively.
In the matching lower-bound range, this deterministic rate is polynomially larger than the randomized rate whenever for a fixed . For example, at , deterministic predictors require samples, while randomized predictors need only . At , both deterministic terms are of order , matching the deterministic multicalibration rate of Noarov and Roth [2027].
It is useful to visualize the group-budget dependence by writing . Figure 1 summarizes the resulting sample-complexity landscape.

Figure 1: The group-budget rate landscape, with and vertical axis the sample-complexity exponent of , suppressing logarithmic factors. Blue and red give the tight randomized and deterministic calibrated multiaccuracy rates; teal gives the tight multicalibration rate. The open endpoints represent subpolynomial budgets.
1.2 Technical overview
A shared upper-bound template. Both upper bounds first learn a real valued intermediate score and then transform it into the final discrete prediction . We call this second stage score coarsening: it replaces by a predictor with finitely many prediction values.
The final objective involves two kinds of tests. Each defines the multiaccuracy test . Calibration also has a test-based form: writing for the final predictor and for its realized prediction,
Thus each sign-valued function of the prediction defines a calibration test .
Now fix a coarsening rule. For any bounded test of the context and final prediction, define its to the intermediate score by
where the expectation is over any randomness in the coarsening rule. The rule uses no information about once is fixed, and so Lemma 2.1 will give:
For a multiaccuracy test , the lift is simply . For a calibration test , write
for its lift. The score learner controls residuals of against both the original tests and these additional lifted calibration tests. The analysis of the coarsening rule controls the second term in the decomposition, and we choose the coarsening rule as a function of to minimize it.
There is an apparent circularity: the chosen coarsening rule depends on the learned score, but its lifted tests must be known when the score is learned. Both algorithms resolve this by specifying a finite menu of candidate rules in advance and learning against every induced lifted test. The randomized algorithm then chooses one rule from the menu. The deterministic algorithm will use different rules on different parts of the context space.
The randomized algorithm coarsens using mean-preserving rounding to a grid. The deterministic algorithm coarsens using category averaging: it partitions contexts into categories and replaces the scores in each category by their average. We next explain the main idea in each construction, followed by the two lower bounds.
1.2.1 Randomized upper bound
We process the i.i.d. training examples sequentially, learning score rules . Rule depends only on the preceding labeled examples . On observing , it produces the score before observing . On a new input , the intermediate predictor draws an index uniformly from and outputs the score .
In addition to the original multiaccuracy tests , the learner controls a finite class of lifted calibration tests, corresponding to the linear interpolations of binary signs at points on a fixed candidate collection of grids. For every candidate grid and sign assignment to its points, contains the corresponding lift from (1). After training, we choose a grid with intervals using the recorded scores . The parameter trades off learning a larger auxiliary class against more accurate rounding. The final predictor rounds to this grid while preserving its conditional mean. Figure 2 summarizes the construction.

Figure 2: Rule is learned from the preceding examples and produces the recorded score before observing . These scores determine a grid from the fixed candidate menu. On a new input, the final predictor evaluates a uniformly chosen saved score rule and then rounds its score to the selected grid while preserving its mean.
Learning the pre-rounded scores. We now bound the size of the auxiliary class , which is separate from the original multiaccuracy test class . Each candidate grid consists of partition points selected from a fixed fine mesh with polynomially many points in , and each selected point receives a sign in in each calibration test defined on that grid. For every collection of grid points from the mesh and assignment of signs to the grid points, we include in the function that linearly interpolates the signs between the grid points. The choices of points and signs give at most lifted tests, so . Standard multiobjective learning methods (e.g. [Lee et al., 2022, Noarov et al., 2025, Farina and Perdomo, 2026]) let us learn score rules promising:
Rounding for calibration. The original tests ensure multiaccuracy of the scores, but the auxiliary tests do not directly ensure calibration (since they correspond to lifts of calibration tests for scores that are restricted to discrete grids, but our learned scores are not confined to a grid). Deterministically rounding scores to grid values can introduce error; balancing this with the learning error gives only the rate from prior work. We instead randomly round to one of its two neighboring grid points so that
This preserves every prediction-independent multiaccuracy constraint without loss.
For calibration, fix a grid and a sign test on its points. This rounding rule depends on but not on , so its lift is the function
This function is the linear interpolant of the signs and belongs to . It remains to control the error created by rounding. Write and let denote the coefficient measuring the expected rounding contribution from the th interval:
A direct calculation from the two-point rounding rule gives
The factor creates the potential for cancellation between adjacent prediction values. If all the coefficients were to equal a common value , then the sum would telescope to
whose magnitude is at most , independently of the number of intervals. This is the cancellation the construction will approximate. Set . Taking the supremum over and applying summation by parts shows that the worst rounding contribution is the endpoint-inclusive total variation of the coefficients:
Thus we want a partition for which the coefficients are nearly equal and small. We construct it directly from the recorded scores . Starting with a left endpoint , move the right endpoint to the right along a fixed fine grid, tracking
This is the coefficient for the candidate interval , with the expectation replaced by the empirical average of the recorded scores. It is nondecreasing as increases. End the interval at the first grid point where reaches a common threshold , then start the next interval there. If the threshold is never reached, end the final interval at 1. This rule produces intervals whose empirical coefficients have total variation . Figure 3 illustrates the cancellation.

Figure 3: The adaptive partition makes the coefficients nearly equal. Top: the greedy rule places partition points from the marginal distribution of , more densely where has more mass, so that each full interval has coefficient close to . Bottom: the resulting sequence is nearly flat. The terms and are the boundary jumps from ; only the final interval may fall below the threshold. The endpoint-inclusive total variation, and hence the calibration error from rounding, is .
Each score rule was chosen using only preceding examples. For each fixed candidate grid and test, a martingale bound controls the average residual from rounding the recorded scores by the average population residual of the saved score rules after rounding. The bound holds simultaneously for all candidate grids and tests, so it remains valid for the grid chosen using the recorded scores. Its statistical error is of order .
Applying (1) to a sign test , the lifted residual is controlled because , while the rounding contribution is . The resulting error is
Choosing gives the theorem.
1.2.2 Deterministic upper bound
Our randomized construction uses randomness in two places: the score function it learns is already randomized, and the coarsening procedure adds additional randomness. To give a deterministic upper bound we need to remove both sources of randomness. Recall that denotes the group budget. To learn a deterministic score function, we use two components of the deterministic finite-test construction of Noarov and Roth [2027]: an algorithm that learns a randomized score satisfying a finite family of residual tests, followed by a procedure that fixes one random seed on each part of a finite context partition, making that score deterministic. Given a finite family of bounded tests the resulting deterministic score has small residual for every test . With labeled examples and test family , the statistical error is . We include both the original multiaccuracy tests and auxiliary tests that anticipate the later coarsening. Lemma 5.5 gives the precise guarantee.
The main difficulty is in removing the randomness of the coarsening rule. Why does deterministic prediction need a different coarsening rule, rather than there being a simple derandomization of our randomized rounding procedure? If the context distribution were discrete and every context were rare, we could fix one independent rounding coin per context: each test would average many low-influence choices, and the realized calibrated multiaccuracy error would be close to its expectation, resulting in a simple derandomization of our randomized construction. This fails if certain contexts have substantial mass, since now fixing the randomness on each context might be a high variance operation. On the other hand, very frequent contexts can be identified in the training sample and their conditional label means estimated. Thus very frequent contexts could be handled as a special case. At the target sample size, however, a context can have enough probability mass that fixing its coin causes substantial error, yet appear too few times to estimate its conditional label mean to the required accuracy. Our construction does give each very frequent context its own category and keeps its score unchanged. But rather than attempting to fix the randomness of other contexts it handles all remaining contexts collectively by assigning them to a small number of categories and replacing the scores in each category by their average. This is the deterministic score-coarsening step.
Category averaging. Assign each sufficiently frequent context its own singleton category, and assign all remaining contexts to shared categories. On every category , set the final prediction to ; on a singleton this simply retains the original score. This results in a predictor that is calibrated to the score (but without further argument, not yet to the labels ). To obtain calibration relative to , it suffices to make every signed combination of the category residuals small. Maximizing over signs gives , and category averaging preserves each residual. Indeed, applying Lemma 2.1 with and using gives
We establish this control using the auxiliary tests and the assignment analysis below.
Writing for the marginal distribution of , for any test the change in the multiaccuracy residual of relative to is a sum of within-category covariances (singleton categories contribute zero):
It remains to choose categories for which all these covariance sums are small.
Choosing the categories. Let , so controlling the largest residual over controls absolute error for every test in . Endow the tests in temporarily with a distribution . Leave the sufficiently frequent contexts in their singleton categories, where their scores remain unchanged. Partition all other contexts into low-mass parts. For each part , independently sample tests from and average them:
Here are the sampled tests, and we write for the part containing . We assign to a category by rounding the scalar , where controls the relative weight on the score, to an equally spaced grid of values; write for the resulting category index. The score learner includes the signed category tests for every rule that uses one tuple from throughout the context space. The expected residual under the cellwise choices is an average of these finite-menu residuals; we later use concentration to fix the choices.
Why the assignment rule preserves multiaccuracy. Fix the sampled tests and consider a shared category . By construction, is close to the grid point defining this category. Because is the average of within , the difference has mean zero conditional on . Since is constant on , we also have
Since is constant within , its contribution is exactly zero:
Subtracting and using the identity for therefore gives
The first term is nonpositive: it subtracts times the mean squared change in predictions within this category. The second term is the grid approximation error, which we bound below.
We now average over the sampled tests as well. Write for the expected squared change caused by category averaging, where the expectation includes both the context and the randomly sampled tests. Let be the corresponding expected change in the residual for test from category averaging.
For each context assigned to a shared category, averages independent tests in . It therefore has mean and mean-squared error at most . Replacing by in the residual multiplies this error by . Cauchy-Schwarz, averaging over both contexts and sampled tests, bounds the resulting contribution by . This does not require independence between and the sampling error.
For the grid error, let denote the grid spacing. For , the assignment score is within of . Averaging over contexts and sampled tests, the absolute contribution of the grid approximation error is therefore at most
Contexts whose scores remain unchanged contribute zero to both errors. Adding the bounds and using that is the -weighted average of the tests gives
Finally recall that the distribution is not intrinsic to the problem, and that we are free to choose it. A fixed-point argument chooses self-consistently so that it places weight only on tests maximizing . Hence
The negative quadratic term now bounds both the largest residual increase and . Lemma 5.3 makes this argument precise. This is the conceptual core of the deterministic upper bound. The argument applies to any context distribution, including an empirical one. The training algorithm therefore searches for a mixture with small expected empirical residuals and then fixes the random category assignments.
Fixing the category assignments. The preceding argument selects a distribution over category assignments. The training algorithm now draws and stores one test set for every low-mass part . This produces a fixed category map and hence a deterministic predictor. A variance-sensitive concentration bound shows that the multiaccuracy residuals remain small with high probability over the training randomness. We apply this argument to the empirical context distribution, using as the label. Calibration relative to is then exact for every assignment: each category predicts its empirical average score. It remains to transfer both guarantees to the population and the true labels .
Implementing the population argument from samples. A preprocessing sample is used to identify frequent contexts, build confidence intervals for their conditional means, and partition the remaining space into low-mass parts. A second labeled sample is used to learn . On a fresh context-only sample, the algorithm then chooses the assignment distribution and computes the final category averages. A transfer argument compares the final predictor's population residuals against with its empirical residuals against , for both group tests and signs on categories. The finite-menu score guarantees and sample concentration control the expected difference; the confidence radii and squared part masses control fluctuations across the independent assignments. This comparison is uniform over the category averages. Thus the same context sample can both be used to select the assignments and supply their predictions. Section 5 gives the details.
The error beyond the score-learning term is . Balancing it with the target error gives . Learning the resulting finite test class uses samples, and hence
The matching lower bound shows that this unusual cube-root dependence on is intrinsic. Section 5 gives the formal construction and proof.
1.2.3 Lower bounds
A shared hard family with different decoding mechanisms. Both lower bounds use the same basic construction. On an ordered finite domain, the conditional mean at point is a known increasing baseline value plus a small perturbation determined by a hidden randomly chosen sign vector . We show that a low-error predictor could be used to decode many coordinates of . The shared recovery bound in Lemma 6.2 then shows that too few samples cannot produce such a predictor.
What differs in the two bounds is how the predictor reveals the hidden vector. For an arbitrary randomized predictor, calibration and multiaccuracy with respect to the single test force the realized prediction close to the public baseline in squared error. This controls distance at the relatively coarse scale , enough to distinguish a grid of points and give the lower bound. For a deterministic predictor, we use the test-family budget to resolve more points. On a domain of ordered points, a family of sign tests forces the average distance between and the public baseline to be at most . The baseline values are spaced apart, so balancing these two scales gives . For this choice, most prediction values are distinct and hence form singleton level sets. Calibration on these singletons reveals coordinates of , and the resulting information bound gives the lower-bound term.
Randomized predictors. The randomized lower bound uses the finite-domain construction of Gibbs and Tibshirani [2026] for deterministic predictors, with the single bounded test . A sample draws a uniform grid index and sets , where . The label is Bernoulli with conditional mean
where the hidden bits are chosen independently and uniformly from .
Calibration controls and , and multiaccuracy controls . Since the baseline is linear in , combining these moments bounds by . The baselines are separated by , so at the target accuracy a prediction is closest to its input's baseline most of the time.
To recover the hidden bits, group prediction values by their nearest baseline value. Calibration controls the total label residual in each such bin. Subtracting the contribution of , the original input's baseline value, from the predictions in a bin therefore estimates its hidden offset. Predictions assigned to incorrect bins affect only a small fraction of the mass, so thresholding these estimates recovers most of the bits. Section 6 gives the quantitative argument.
Deterministic predictors. The deterministic lower bound uses ordered points with public baseline values separated by . The conditional mean at point is for an unknown sign .
We construct a family of sign tests with a detection property: unless the average distance between and is small, some test has noticeable correlation with . The strength of this property grows with the test budget. Multiaccuracy therefore places within a small fraction of the baseline spacing for most indices.
This is where determinism enters. A deterministic predictor partitions the domain into level sets . No two indices whose predictions are close to their respective baselines can share a value, because the baselines are separated. Moreover, any such index that does share its value must share it with one of the few poorly approximated indices. Hence most points form singleton prediction level sets.
On a singleton level set , calibration compares directly with . The sign of must therefore recover on most such points; otherwise their calibration errors add up. Thus low multiaccuracy error and low ECE decode a constant fraction of the hidden signs. Flipping one sign changes the label mean by at only one of the equally likely contexts, so the shared recovery lemma requires samples. With , this is the claimed bound.
This argument does not extend to randomized predictors because the sign tests force only the mean prediction close to , whereas calibration conditions on the realized . For a deterministic predictor, , so both constraints concern the same level sets.
1.3 Related work
Calibration goes back at least to Dawid [1982]. Hébert-Johnson et al. [2018] introduced multi-calibration and also studied, under the name multi-AE, the groupwise mean-accuracy condition now called multiaccuracy (cf. Kim et al., 2019). These conditions were initially motivated as fairness guarantees that prevent systematic bias on algorithmically identifiable subpopulations. Dwork et al. [2021] later placed them in a hierarchy of outcome-indistinguishability conditions: the lower levels recover multiaccuracy and multicalibration, while the stronger levels permit tests with greater access to the predictor. Omniprediction supplied a compelling downstream motivation by connecting these conditions to simultaneous loss minimization [Gopalan et al., 2022, 2023]. Subsequent work showed that full multicalibration is stronger than necessary for several of these applications, including omniprediction [Gopalan et al., 2023, Garg et al., 2024, Okoroafor et al., 2025]. Sharp lower bounds for multicalibration in both batch and online settings further motivate the study of weaker conditions [Collina et al., 2027, 2026b].
Gopalan et al. [2023] show that calibrated multiaccuracy suffices for omniprediction for important classes of losses. Casacuberta et al. [2025] study calibrated multiaccuracy more generally and show that it recovers strong agnostic learning and optimal-density hardcore measures, consequences that had previously been obtained using stronger multicalibration-based tools. Dwork and Tankala [2025] similarly show that the multicalibration-based characterization of product-distribution indistinguishability due to Marcussen et al. [2025] can be obtained from calibrated multiaccuracy.
These applications motivate understanding the statistical complexity of calibrated multiaccuracy, a study initiated by Gibbs and Tibshirani [2026]. They prove an sample lower bound for algorithms whose output is a deterministic predictor. They also prove a multiaccuracy lower bound that gives the term in our randomized lower bound after specializing to a finite bounded test family. Our lower bound uses their hard family, with a decoder that also applies to randomized predictors.
Several other papers compare randomized and deterministic prediction in batch learning. Noarov and Roth [2027] show that randomized predictors are not needed for minimax-optimal learning of multicalibrated predictors, in contrast to what we find for calibrated multiaccuracy. Agnostic multi-distribution learning is another problem where randomization is needed. In that problem, the learning algorithm seeks one predictor whose worst-case risk is small across several data distributions. Recent work gives near-optimal sample complexity for VC classes [Peng, 2024, Zhang et al., 2024]; in particular, Zhang et al. [2024] obtain the optimal order with randomized hypotheses and prove that deterministic hypotheses can require more samples. Larsen et al. [2024] show further that, in the fully general multi-distribution setting, derandomizing such predictors can be computationally hard even when ERM over the benchmark class is efficient. Our setting is different: calibrated multiaccuracy is evaluated under a single joint distribution, not by worst-case risk across several distributions. The connection is that both lines of work identify natural batch learning objectives for which randomized prediction can reduce sample complexity.
2 Setting and calibration definitions
Let , where and , and write for the marginal distribution of . A randomized predictor assigns to each input a distribution on . When evaluating the predictor, we draw using randomness independent of conditional on . All expectations below include this prediction randomness. We write the error as a function of the predictor , with the realized prediction appearing inside the defining expectations.
For a finite class of maps , define the multiaccuracy error of a predictor as:
The population expected calibration error is
Equivalently,
where ranges over sign-valued one-dimensional tests of the prediction value. This is equivalent to the absolute-value definition because the supremum is attained by choosing to be the sign of , with either sign chosen when this conditional expectation is zero.
The calibrated multiaccuracy error of a predictor is
2.1 A score coarsening identity
Both upper bounds learn an intermediate score and then coarsen it. The following simple identity separates the residual already controlled while learning the score from the error introduced by this coarsening.
Lemma 2.1 (Residual decomposition under postprocessing). Let be jointly distributed, with . For each input-score pair , let be a distribution on , and draw the postprocessed prediction using randomness independent of conditional on . For a bounded test , define its lift to the intermediate score by
Then
Proof. Split . Conditional independence gives
Taking expectations and applying the tower property to the right-hand side proves the identity.
The first term in (3) explains why the score learner will anticipate a finite menu of rules: it controls the corresponding lifted tests before the data are used to select a rule or a distribution over rules. The two upper bounds differ in how they control the second term.
3 Ingredients for the randomized upper bound
3.1 Learning against finitely many residual tests
The first ingredient is a standard online algorithm that controls finitely many residual tests. Such multiobjective learning arguments have been used for online multiaccuracy and multicalibration [Gupta et al., 2022, Lee et al., 2022, Noarov et al., 2025, Farina and Perdomo, 2026]. We use its predictions to choose the rounding partition, then convert the rounded predictions into a batch predictor. Appendix D gives the standard analysis for completeness.
Lemma 3.1 (Online residual control for finite tests). Let , and let be a finite nonempty class of tests that are continuous in their second argument. There is an online algorithm that, before round , determines a prediction rule from the preceding examples. It observes , predicts , and then observes . For every sequence of examples in ,
This lemma controls the empirical residuals of the sequential predictions. For i.i.d. examples, a martingale argument will transfer the final rounded residuals to the population in the proof of Theorem 4.1. The deterministic upper bound uses an analogous finite-test learner in Lemma 5.5, with additional structure to make the intermediate predictor deterministic.
3.2 Mean-preserving randomized rounding
The second ingredient is a one-dimensional randomized rounding scheme. It rounds an intermediate prediction to finitely many values while preserving its conditional mean.
Fix a grid increment such that is an integer, and write
A grid partition is a sequence
We call the partition points. Given , define the adjacent mean-preserving randomized rounding rule as follows. If , let and set
At a partition point either adjacent interval gives the same prediction . The rule preserves the conditional mean: if , then
Thus, for ,
We next observe that the lift of a test defined on the grid under this randomized rounding scheme is simply a linear interpolation of the original test values on the grid points:
Lemma 3.2 (Lifted rounded tests are linear interpolants). Fix a grid partition and a test . Let and define
Then, for ,
Thus is the continuous piecewise-linear interpolation of the values on the partition points.
Proof. The formula follows by averaging the two endpoint values of with the rounding probabilities. It is affine on each interval and equals at each partition point, so the pieces agree at their endpoints.
We next identify the rounding error that our choice of partition must control. Fix a bounded calibration test on the rounded prediction values and define . Applying Lemma 2.1 with gives
The score-learning step controls the first term. We now analyze the second, which is the error introduced by mean-preserving rounding.
For an interval , define
For a distribution on , write
Define the following quantity from the sequence :
The supremum ranges over the sign-valued calibration tests on the finite set of possible rounded predictions; is the value assigned to prediction . The next lemma shows that is exactly the largest calibration residual caused by rounding and rewrites it as the total variation of the sequence .
Lemma 3.3 (Rounding error as total variation). Let , let , and set . Then
where .
Proof. Fix a test and write . Condition on . Then
At partition points the same conditional expectation is zero. Taking expectations gives
Summation by parts makes the cancellation between adjacent intervals explicit:
where . The values can be chosen independently, so the supremum over is attained by choosing each to have the sign of , with either sign when the difference is zero. Its value is therefore
The maximizing choices are sign-valued, so this supremum is also the quantity defined above.
The scale of the coefficients explains why an bound is possible. Writing and for gives
Thus is the natural target when both the interval width and its probability mass are of order . For example, if is uniform and the partition consists of equal-width intervals, then every interval has
Summing the interval contributions separately would give only an bound. The useful cancellation occurs across adjacent intervals. If , then
Thus all interior values of cancel, regardless of how rapidly changes across the grid, and the rounding error is at most . In the uniform example this is . More generally, Lemma 3.3 shows that only the endpoint terms and the total variation of matter. The construction below chooses the grid to make this small.
3.3 Choosing a low-variation rounding partition
The next lemma introduces the two parameters used to choose the partition. The parameter is the target number of rounding intervals, up to a constant factor; later it will be optimized against the statistical error. The parameter is a fine-grid increment used to make the candidate partitions finite, and it will be chosen small enough that its effect is absorbed into the rounding term.
Lemma 3.4 (Population grid rounding rule). Let be any distribution on , let , and let with an integer and . There is a partition whose partition points belong to , with at most intervals, such that
Proof. Let ; all expectations in this proof are with respect to this score distribution. By Lemma 3.3, it suffices to make the interval contributions nearly equal while keeping their common scale small. We do this constructively by iteratively growing the next interval, and then ending it and beginning the next when its contribution first reaches a common threshold.
Equalizing the interval contributions. Let . Starting from , greedily choose to be the smallest gridpoint larger than such that
if such a gridpoint exists. Otherwise set . Stop as soon as the right endpoint reaches 1.
Call an interval full if the search finds a right endpoint whose contribution is at least . If the search never reaches the threshold, the algorithm adds one final leftover interval ending at 1.
The fine grid limits the total overshoot. Fix a left endpoint . Scores contribute zero. For , the contribution is nondecreasing in the right endpoint ; where its derivative is
It is zero for and continuous at . Increasing the right endpoint by one grid step therefore changes the contribution by at most , and only for scores inside the new interval. Write and let denote its score probability mass. At the first threshold crossing, a full interval consequently has
The intervals are disjoint, so . A final leftover interval has contribution less than .
Bounding the number of intervals. Every full interval has . Since
each full interval satisfies
If is the number of full intervals, Cauchy–Schwarz and disjointness give
Thus . There is at most one leftover interval, so .
Bounding the rounding error. Replace every full coefficient by and retain the final leftover coefficient, if there is one. This reference sequence is constant until a possible final drop to a value below , so its variation, including both endpoints at zero, is at most . Restoring the overshoots increases variation by at most , since each coefficient occurs in two adjacent differences. Lemma 3.3 gives
We will apply this construction to the empirical distribution of the sequential predictions. Its guarantee holds for any distribution, so this step requires no independence among those predictions.
3.4 Prediction-value tests induced by rounding
Lemma 3.2 says that every sign-valued test of a rounded predictor lifts to a piecewise-linear test of the pre-rounded score. The next finite class collects exactly these lifted tests for grid partitions with at most intervals. For an integer and grid , let be the class of functions obtained as follows: choose a grid partition with intervals, choose a sign-valued test on the partition points, and include the lifted function
where the expectation is only over the rounding randomness. Equivalently, if , then ; by Lemma 3.2, is the continuous piecewise-linear interpolation of the values .
We can bound the size of by counting. Write . For a fixed number of intervals, there are at most choices of partition points and choices of signs. Therefore
Taking logarithms gives
Here , so . The term is also absorbed: since and , we have . Hence, for a universal constant ,
Thus is the auxiliary finite class needed for the learning step: controlling the pre-rounded score against all functions in controls every sign-valued calibration test after rounding to any grid partition with at most intervals.
Algorithm 1 Learning a randomized calibrated-multiaccurate predictor
-
Input: labeled examples, a finite test class , and a failure probability .
-
Set
and let be the lifted test class from Subsection 3.4.
- Run Lemma 3.1 on all examples with
Save the prediction rules and the scores made before observing .
-
Apply the greedy construction from Lemma 3.4 to , with parameters , to obtain a grid partition .
-
Output: the randomized predictor that, on a new input , draws uniformly from and then draws
using fresh independent rounding randomness.
4 Upper bound for randomized predictors
We now combine the residual identity (3) with the ingredients from Section 3. We learn score rules sequentially and choose the rounding partition from the scores recorded during training. The output rounds a uniformly chosen score rule.
Theorem 4.1 (Randomized upper bound for calibrated multiaccuracy). There is a universal constant such that the following holds. Let be a finite class of functions . Given i.i.d. samples from a distribution on and , Algorithm 1 returns a randomized predictor such that, with probability at least over the training sample and the construction randomness,
The computational issue is that the auxiliary prediction-value test class is too large to enumerate directly. There is an efficient implementation which represents each piecewise-linear test by the fine-grid breakpoints where its sign is specified. With this representation, the exponential-potential update factors over paths in a directed acyclic graph on the fine grid, so the online algorithm can compute its next prediction by dynamic programming rather than by summing over all tests. The rounding partition can also be found from sorted predictions and prefix sums. Appendix E gives the details of this efficient implementation; in the body we focus on sample complexity.
The theorem immediately gives the following sample-complexity form.
Corollary 4.2 (Sample complexity for randomized predictors). There is a universal constant such that, for every , the following holds. Write
If the algorithm receives
samples, it outputs a randomized predictor satisfying with probability at least .
Proof of Theorem 4.1. Keep and symbolic until the final optimization, and write .
Controlling the rounded residuals on the sample. Lemma 3.1 and (5) give, for every realized sample,
Lemma 3.4, applied to the empirical distribution of these scores, gives .
For a candidate partition with at most intervals and a sign assignment on its points, define
Here the example and score are fixed; only the rounding draw is averaged. The lift belongs to . Applying Lemma 2.1 to the uniform empirical distribution on gives
This holds for every sign assignment on the selected partition. For , mean preservation gives
so the empirical multiaccuracy residuals are bounded by for every partition.
Transferring the final residuals to the population. Let be the history before example . For each fixed candidate pair , define
The rule is determined by this history, and example is independent of it. Thus is the population residual of the rule rounded using . Since , the differences are martingale differences bounded by 2. The number of candidate partition-sign pairs is at most
Azuma–Hoeffding and a union bound over these pairs and the multiaccuracy tests therefore give, with probability at least , simultaneous deviations of the averages and from their conditional population averages of at most
Fix a complete training transcript on this event. In what follows, all population expectations are over an independent test example and fresh prediction randomness, conditional on this transcript. The final predictor draws uniformly from and rounds with , so for every sign test on its support,
The functions were defined for fixed candidates; we substitute only after obtaining the uniform event. Consequently, the preceding empirical bounds imply
Here the calibration bound uses the finite-support dual form (2). In particular,
Choose and as in Algorithm 1. When , the ceiling changes by at most a constant factor, and
In the remaining case the theorem follows from after increasing . Substituting into (6) proves the claim.
Proof of Corollary 4.2. Let
Set
for a sufficiently large universal constant . Then . Also after increasing constants, because and already dominates , , and . Hence
Theorem 4.1, applied to any subset of examples if more are available, gives the claim.
5 Upper bound for deterministic predictors
This construction follows the same strategy of choosing a coarsening rule from a finite menu, as in the randomized upper bound. Before learning an intermediate score , we enumerate a finite family of rules that assign each context-score pair to a category. For each rule, we include auxiliary tests that assign an arbitrary sign to each category and measure the corresponding signed residual of . Combining the finite-test learning and cellwise rounding procedures of Noarov and Roth [2027], we learn a deterministic score function against the original multiaccuracy tests and these auxiliary tests. After is known, we choose the category assignments and replace the scores in each category by their average.
The residual identity (3) specializes here to the identities in Lemma 5.2. The auxiliary tests control the residuals inherited from , while the assignment rule controls the error caused by replacing with the category averages. First suppose we could replace the scores in each category by their true average under the context distribution. The resulting predictor satisfies for , so has mean zero within every category. Consequently, category averaging adds no error to any signed sum of category residuals. The same cancellation applies to every calibration test , since , and hence , is constant within each category. For a multiaccuracy test , which can vary within a category, the additional residual is instead
The algorithm estimates the category averages from samples; we later bound the resulting estimation error.
We first choose a distribution over assignments for which the additional multiaccuracy residuals are small in expectation. We then fix the random choices during training. Concentration, using the small probability mass of each part receiving an independent choice, keeps these residuals small. Calibration requires a different argument: category averaging is exactly calibrated relative to , but we need calibration relative to . The auxiliary tests control the signed sums of over the categories in expectation over the assignment choices. Concentration then controls these sums for the fixed assignment, allowing us to transfer calibration from to .
The training algorithm below may randomize, but after training it outputs a fixed function of the context. Unlike the randomized upper bound in Section 4, the construction is information-theoretic: its direct implementation can require exponential time.
Theorem 5.1 (Deterministic upper bound). Suppose is a Borel set, and let be a finite nonempty family of measurable tests . There is a learning algorithm that, given accuracy and confidence parameters , outputs a deterministic predictor satisfying
with probability at least using a set of i.i.d. samples of size
The probability is over the sample and the training algorithm's randomness; the output is the fixed function .
5.1 What category averaging accomplishes
Category averaging has a direct interpretation as an projection: it replaces the score by its conditional expectation given the category. We will use the following elementary identities which follow from this viewpoint.
For a finite measurable partition of , define its cellwise calibration error by
Lemma 5.2 (Category averaging as projection). Fix an intermediate score and a measurable assignment of contexts to a finite set of categories . Set
Then
Consequently, for every bounded test ,
Moreover, if , then
Proof. The first identity is the defining property of conditional expectation. Since is constant within each category and , we have . Therefore,
Conditioning on each category gives (8). Finally, for every , so
Summing absolute values over and applying duality proves (9).
By (8), the change in the multiaccuracy residual for is the probability-weighted sum of its within-category covariances with . Our goal is therefore to choose the categories so that this sum is small in absolute value for every .
If is constant on every cell of a partition , then
ECE groups together all contexts receiving the same prediction. Since is constant on each cell, each such group is a union of cells assigned the same prediction value. Combining these cells adds their residual expectations before taking an absolute value. By the triangle inequality, this is at most the sum of the absolute residual expectations of the individual cells.
We call the expectations , one for each choice of category signs , the category-sign residuals. The score-learning algorithm will need to control these residuals for the assignment rules used in the later stages.
Three different partitions appear later, with different roles. An assignment cell is a set of contexts that shares one random choice made during training. Using a finite partition lets the training algorithm store one seed per cell and thereby define a fixed measurable predictor. A category is a set on which we replace S by its average. A prediction level set contains all contexts receiving a particular prediction value; it may be a union of several categories.
The proof has two steps. The population argument chooses a distribution over category assignments for which the expected signed change in every multiaccuracy residual is small in absolute value, and the expected squared change in the score is small. Both expectations are over the assignments. The finite-sample argument applies the same construction to an empirical context distribution, fixes one assignment per cell, and transfers the resulting empirical coarsening guarantees to the population.
5.2 The population assignment argument
We first control a weighted average of the changes in the multiaccuracy residuals that come from category averaging. We will then choose the weights so that this average equals the largest change among the signed tests. Including both and lets us control changes in either direction. To see how this works, let , let be a distribution on , and write
Suppose that, for some , we could group contexts by the exact value of and replace by . Fix , so does not depend on which test is drawn. Since , averaging the residual over tests drawn from is the same as testing against . Thus
The term containing vanishes because , while . Thus grouping by and averaging creates a negative quadratic term in the -weighted change in the multiaccuracy residuals.
The construction below approximates by an average of a small number of sampled tests and the exact level sets of by categories. These approximations introduce an error proportional to the root-mean-square change in the score; Lemma 5.3 makes this tradeoff precise. We now define the finite construction. Fix an intermediate score , a finite measurable partition , and a finite set whose singletons are cells of . Each point in will form a private category and retain its score; every other cell will independently choose an assignment rule as described below. Also fix an integer , a tuple length , and a parameter .
For this finite construction, let again denote a distribution over the signed tests in . For a tuple , define its sparse average
For a possible score value , the assignment score lies in . Let be the uniform grid on this interval, with spacing
and let be the index of the nearest grid point, with fixed tie-breaking. We call the categories indexed by the nominal categories, to distinguish them from the private singleton categories. The full category map is
Scores assigned to the same nominal category, even under different tuples, are close: if , then
Thus every nominal category has score diameter at most
A private category has score diameter zero.
Independently for each nonprivate cell , draw . Write and, for , set
For , set ; the value of there is set to zero. For every category of positive mass, let . Set for a private category of probability mass zero, and assign zero to a nominal category of probability mass zero. Define the category-averaged predictor globally by
This is a version of and equals on a private singleton.
For a fixed assignment, define the additional residual for test h and the squared change in the score by
Let
Thus is the expected signed change in the multiaccuracy residual for test , and is the expected squared change caused by category averaging. We call the residual-change map.
The next lemma contains the complete population argument. Its first step bounds the -weighted average of the residual changes. Its second chooses supported on tests attaining the largest expected change , so this weighted average equals the maximum.
Lemma 5.3 (Population category assignment). There is a distribution on such that
The bounds hold for every context distribution and every fixed choice of , , and in the construction above.
Proof. Fix any distribution on and let . On a point in nominal category , write
Set on the private categories, where . The category-projection identities give (extend by zero on private indices) and . Since on every private category,
For each fixed nonprivate context, is the average of independent draws from , so it has mean and variance at most . Since on the private points, Cauchy–Schwarz over the context and assignment randomness gives
Thus replacing by in the averaged residual changes it by at most this amount. Averaging the preceding residual bound over and applying Jensen's inequality gives
Worst-test fixed point. For each fixed seed vector , is independent of . Because and are finite, is a finite sum of these fixed residuals weighted by assignment probabilities, each polynomial in . Hence is continuous. Also . Let be Euclidean projection onto the simplex . The map
is continuous and maps the simplex to itself, so Brouwer's theorem gives a fixed point . By the definition of projection, moving from toward any cannot decrease squared distance to . Differentiating along this segment at its starting point gives
Taking to be each point mass shows that every coordinate of is at most its -weighted average. Hence
Combining this identity with (13) gives
Antisymmetry makes the maximum nonnegative, so
Solving this quadratic inequality in proves the variance bound.
This completes the population argument. The remaining work is to construct , and from samples, apply this argument to an empirical context distribution, and fix the assignment tuples.
We next derive the parameters from the errors they must control. The next subsections construct the finite-sample partition and score and then choose the assignments; here we first record the scales those steps must achieve. Set
where is large and is small. We first consider , which implies ; the complementary range will follow by applying the finite-test learner directly. Write
The score learner must anticipate every sparse tuple and every sign assignment to the eventual categories. The resulting auxiliary class has log-cardinality . Taking
keeps this quantity and gives sparse-average error . Match the category-grid spacing to this error as follows. For a general choice of ,
Balancing these two terms leads to
Then , and Lemma 5.3 gives a population mixture with
The same bounds hold when the context distribution is empirical, which will let us choose the assignment distribution from samples.
Lemma A.1 bounds the deviation of each additional multiaccuracy residual from its expectation, when fixing the assignment seeds, by
where is the largest assignment-cell mass. Since and for the chosen distribution, both terms are when . We therefore give sufficiently frequent contexts private categories and partition the rest into cells of mass .
The finite-sample construction uses three independent samples. A labeled preprocessing sample constructs confidence intervals for the conditional label means and the context partition. A second labeled sample learns the intermediate deterministic score. A context-only sample then supplies both the assignment distribution and the final category means.
5.3 Learning a score for the later assignments
Write for the probability mass of a context , and call an atom of the context distribution when . Use a labeled preprocessing sample to construct confidence intervals , allowed grid values , and a finite set of frequently observed contexts. Each point in forms a private singleton category and keeps its score , so we call the fixed-score set. It is chosen to contain every atom of mass greater than and has size .
The same sample produces a finite measurable partition : each observed context is a singleton, and the remaining cells are the gaps between successive observed contexts in lexicographic order, together with the two outer gaps before the first and after the last observed context. A singleton from is excluded from the random assignment; every other cell is an assignment cell. All contexts in an assignment cell use the same sampled tuple of tests. The confidence intervals and partition also provide a squared-mass bound for controlling all category-sign tests at once.
Call a context observed if it appears in the preprocessing sample, and call a partition cell unobserved if it contains no observed context. The next lemma records all properties of this preprocessing that the proof uses. Its proof, including the construction of , , and , is in Appendix A. Let be the confidence radius used to construct before clipping to , and fix a measurable version with values in .
Lemma 5.4 (Finite preprocessing). Set
for sufficiently large universal constants . Using labeled preprocessing examples, with probability at least all of the following hold simultaneously.
(i) The confidence intervals contain the conditional mean pointwise: for every . Moreover, every is a nonempty subset of one common finite grid , every lies within distance of , and every lies within distance of .
(ii) The fixed-score set has size
and contains every atom of mass greater than .
(iii) The partition satisfies
and its squared-mass budget obeys
The two terms in control the effects of fixing assignments. For a score restricted to , its value and the conditional mean at an observed singleton are within of one another; on an unobserved cell their difference is at most one. The contribution of a cell to any signed residual has absolute value at most . Summing the squares of these bounds gives plus a small grid-tolerance term. The same budget also controls the earlier cellwise rounding that makes deterministic.
The next lemma states the consequence of the deterministic finite-test algorithm that we use. It packages two steps from Noarov and Roth [2027]: learning a randomized score from intervals known to contain the conditional mean and then fixing one sampler seed per partition cell.
Lemma 5.5 (Deterministic finite-test score learning). Fix a finite grid , nonempty closed intervals , nonempty allowed sets , and a finite partition produced by the preprocessing construction. Suppose for every , every point of lies within of , and every point of lies within of . Let be the quantity in (16). For every finite nonempty family of measurable tests and every , an algorithm using fresh labeled examples and training randomness outputs a deterministic score with for every and, with probability at least ,
Proof. Condition on the preprocessing transcript, so the grid, intervals, allowed sets, partition, and test family are fixed. Lemma 8.1 of Noarov and Roth [2027], applied to with failure probability , returns a randomized grid predictor supported on whose residuals are at most the first two terms in (17). Conditional also on this predictor, apply their Proposition 6.1 to the same intervals and partition, again with failure probability . Its one-seed-per-cell rounding produces a deterministic and adds at most the last square-root term and another . A union bound proves the stated probability, and reversing to does not change the absolute residual.
The cellwise category assignment will be chosen only after is learned. We first bound its category-sign residual in expectation over the assignment randomness, and later use concentration to fix the random choices. Order the fixed-score set lexicographically as , where , and instantiate the full single-tuple map above with . The private categories introduce no assignment randomness and retain the score . Every assignment cell draws its tuple from the same distribution. For a fixed context, its category therefore has the same distribution as if one tuple were drawn and used everywhere. Averaging over contexts shows that the expected category-sign residual is an average of the residuals for these global rules. It suffices to control each global rule while learning ; concentration will later control the realized cellwise assignments. For every , include the test
The logarithm of the number of these tests is
Let
be the full finite residual-test family, where each is viewed as the prediction-independent test . Since , its log-cardinality is . Conditional on the preprocessing sample, Lemma 5.5 applied to restricts each to and returns a deterministic score satisfying
5.4 Choosing assignments on the empirical distribution
Once preprocessing and score learning are complete, the score , partition , and fixed-score set are fixed. Draw a fresh context-only sample . Write and
We apply the population construction directly to this empirical distribution. For a seed vector , let be the empirical average of in nominal category , using zero if no sample point falls in that category. Let predict this average on each nominal category and retain on . Define
and average over independent cell tuples with law :
These are finite sums over all cellwise assignments. Observations in the same partition cell share one tuple, just as in the population construction.
Lemma 5.6 (Choosing the empirical assignment distribution). For every context sample, the training algorithm can select a distribution on such that
The selection is information-theoretic.
Proof. Lemma 5.3 applies with context distribution , so some mixture has maximum empirical residual at most . Enumerate the rational points of in a fixed order and accept the first satisfying
For each fixed assignment, its empirical residual is independent of , while the assignment probability is a polynomial in . Thus is continuous, and density of rational points and the strict slack ensure termination. Each evaluation is a finite sum; choosing the first accepted point also makes the selection measurable.
Antisymmetry gives . Write . Applying (13) under therefore yields
Young's inequality gives .
On the preprocessing event, the empirical assignment cells also have small mass: with probability at least over the context sample,
Appendix A.2 proves this bound together with the population transfer below. Conditional on this event, we can apply the same variance-sensitive concentration argument to the empirical distribution.
5.5 Fixing the category assignments
Draw one tuple from for each assignment cell and store the resulting seed vector. We first show that the empirical multiaccuracy residuals remain small. Empirical calibration relative to is exact for every assignment, since each category predicts its empirical average. The next subsection transfers both guarantees to the true labels.
The population argument applied to the sample and the assignment concentration bound have three rate-critical terms:
(expected empirical residual),
(fixing seeds: variance term),
(fixing seeds: scale term).
Here and . Consequently,
Together with the score-learning cost, this gives the error tradeoff , suppressing logarithmic factors. The transfer to the population will fit within the first term.
Lemma 5.7 (Fixing the cellwise assignments). Condition on successful preprocessing and score learning, and on a context sample satisfying (22). Choose as in Lemma 5.6. With probability at least over the independent tuples drawn for the assignment cells,
The proof is in Appendix A.3. We use Lemma A.1 on the empirical distribution. Deleting an assignment cell changes the total covariance by an amount whose square is bounded by a constant times the cell's mass times the integral of over that cell. A moment form of the Efron-Stein inequality gives the two seed-fixing terms above.
5.6 Transferring the empirical guarantees to the true labels
The empirical category means use the same sample that selected , and the categories depend on the assignment seeds. We need a transfer bound that allows both dependencies. The next lemma compares the final predictor's population residuals against directly with its empirical residuals against . The auxiliary category-sign tests learned with are what make this comparison possible for calibration.
Lemma 5.8 (Population transfer for the selected coarsening). Condition on successful preprocessing and score learning. Let be any measurable choice based on the fresh context sample. Conditional on this sample, independently draw one tuple from per assignment cell, and let use the empirical category means defined above. With probability at least over this sample and these tuples, both
hold.
The proof in Appendix A.2 uses the same finite-menu principle as score learning. For each global tuple, the score-learning guarantee controls the residual, and sample concentration controls the remaining empirical error. Averaging over global tuples bounds the expected error for any selected law. Independent cell assignments then concentrate around this expectation, using the confidence intervals and squared cell masses. For fixed assignments and a fixed test, the residual difference is affine in the category prediction values. Its absolute value is therefore maximized at a vertex of . Checking every assignment of prediction values in to the nominal categories thus covers all values in , including the empirical means. The context sample needs no labels: appears only in the population quantity being bounded.
We can now finish both error bounds. For multiaccuracy, the first transfer bound and Lemma 5.7 give
For calibration, every category has zero empirical coarsening residual:
This includes empty empirical categories and private singletons. The second transfer bound therefore gives , where is the partition into the nominal categories and private singletons. Merging categories with equal numerical predictions can only decrease this error, so (10) also gives .
Algorithm 2 The deterministic construction for
-
Given , , and with , use the parameter choices above and set , , and .
-
Use one labeled preprocessing sample to construct , , and the partition as in Lemma 5.4.
-
Form and apply Lemma 5.5, with failure probability , on a fresh labeled sample to learn the deterministic intermediate score .
-
On a fresh context-only selection sample, construct the empirical residual-change map and use Lemma 5.6 to choose a mixture satisfying the empirical residual bound (21).
-
Independently for each assignment cell , draw and store , and use to assign its contexts to nominal categories. Give each point in a private category and keep its score unchanged. Lemma 5.7 shows that coarsening introduces only small empirical multiaccuracy residuals.
-
Using the same context sample as in step 4, compute the empirical mean of in each nominal category; if no sample point falls in a category, use zero. Keep the private predictions equal to their scores. Output , which has at most distinct prediction values. Lemma 5.8 transfers its empirical guarantees relative to to the population guarantees relative to .
Each sample split has size . The cell seeds inside Lemma 5.5 make deterministic. After and are fixed, fresh training randomness draws the independent assignment tuples . Each stage succeeds with high probability, so the algorithm uses a single run.
Proof of Theorem 5.1. In the range , choose and as above. Then
The preceding construction uses a constant number of independent samples, each of size
The preprocessing, score-learning, empirical cell-mass, assignment-fixing, and population-transfer events have failure probabilities at most , respectively. Empirical assignment selection succeeds for every context sample. A union bound therefore gives success probability at least .
For , the finite-test learner suffices without postprocessing. Use the common uniform grid with and . For each , let on this grid, extended by zero elsewhere. Take
Here a feature test is regarded as the function . Construct the same confidence intervals and singleton-and-gap partition, using in the sample-size formula of Algorithm 2. The coverage and squared-mass proof in Appendix A does not use the fixed-score set: it gives with probability at least . Apply Lemma 5.5 to with failure probability and fresh labeled examples. It returns a deterministic score with every test residual . The original tests bound MA, while
bounds ECE by the same amount. Thus itself is the final predictor, and the sample requirement is
in this range. Taking sufficiently small proves the theorem.
6 Matching lower bound for randomized predictors
The matching randomized lower bound has two independent components. The term is already required by multiaccuracy for a finite family of tests. The term is required by calibration together with a single multiaccuracy constraint, and therefore persists even when the bounded test family has constant size.
Theorem 6.1 (Matching lower bound for randomized predictors). There are universal constants such that the following holds. Fix an integer and a sufficiently small . Suppose a learning algorithm has the following uniform guarantee: for every finite domain , every bounded test family with , and every distribution on , the algorithm receives i.i.d. examples and outputs an arbitrary randomized predictor satisfying
Then
Here the probability is over the sample and all randomness of the learning algorithm.
6.1 The sample cost of recovering hidden offsets
The two randomized lower-bound terms and the deterministic lower bound in Section 7 all use distributions in which independent hidden bits add small offsets to otherwise fixed label means. The following lemma isolates their common sample requirement: changing one bit changes the label distribution at only one of the equally likely contexts.
Lemma 6.2 (Sample cost of recovering hidden coordinates). There is a universal constant such that the following holds. Fix either or . Let , , and . For , let have uniform marginal on and Bernoulli label means
all lying in . Suppose i.i.d. samples and an independent random seed determine an estimate such that, for every ,
where denotes Hamming distance. Then
The proof compares two hidden vectors that differ in one coordinate. With fewer than order samples, these two sample distributions are too similar to distinguish their bits reliably. Averaging this comparison over coordinates proves the lemma; the calculation is in Appendix B.
We establish the two lower-bound terms separately. The finite-class multiaccuracy term is the finite-cardinality specialization of the lower bound of Gibbs and Tibshirani [2026].
Lemma 6.3 (Finite-class multiaccuracy lower bound [Gibbs and Tibshirani, 2026]). There are universal constants such that the following holds. For every integer and every sufficiently small , there are a finite domain , a bounded test family with , and a finite family of distributions on such that the following is true. Let a learning algorithm receive i.i.d. examples and output an arbitrary randomized predictor . If, for every ,
then
The proof uses sign tests on a domain of size , chosen so that multiaccuracy bounds the average absolute difference between and . Thresholding the prediction means recovers the hidden signs. Lemma 6.2 gives the sample bound; the details appear in Appendix B.
We now turn to the term, using the one-dimensional hard family from Proposition 2 of Gibbs and Tibshirani [2026]. The bounded test family is the singleton with . We extend their deterministic-predictor lower bound by recovering hidden bits from an arbitrary randomized predictor.
The construction uses ordered points with known baseline means, each shifted by a small offset determined by a hidden bit. Calibration and the single multiaccuracy constraint first force realized predictions close to their baselines. We assign each prediction to its nearest baseline value; most predictions are then assigned to the correct input index. Calibration on these bins, after subtracting the known baseline contributions, reveals most hidden bits.
Fix an integer and let
For and a parameter , define the distribution by drawing , setting , and drawing
We will choose for a sufficiently small universal constant a > 0, so all means lie in a fixed subinterval of .
For a randomized predictor and a fixed vector , consider the joint experiment in which and then is drawn independently of conditional on . All expectations and conditional expectations in the next equation are with respect to this joint law. Write
This is exactly the calibrated multiaccuracy error under for the singleton bounded test .
The next lemma gives a decoder that depends only on the full predictor Q and the public construction.
Lemma 6.4 (Recovering hidden bits from a randomized predictor). There are universal constants such that, for , there is a decoder depending only on , the public baselines, and whose estimate satisfies
for every and every randomized predictor .
Proof. Fix , and write . All expectations are over a fresh test point and a prediction drawn from this fixed predictor. Let be the index of the baseline nearest to , breaking ties by the smaller index. Define
The joint law of is determined by and the known uniform context distribution, so this decoder uses no labels or hidden bits. It subtracts the baseline contribution in each bin before estimating the small offset.
Most predictions identify the correct baseline. Calibration controls both and in absolute value by , while multiaccuracy controls . Since , it follows that
Put . Conditional independence of and given and the formula for give
Cauchy-Schwarz and imply
Distinct baselines are separated by , so requires . Hence
Calibration reveals the offsets in these bins. For the analysis, let
Each bin is an event determined by , so . The bins partition the prediction values, and the triangle inequality gives . The label-mean formula gives
If every prediction were assigned correctly, the first term would be . In general, moving a prediction to the wrong bin changes the vector of bin contributions in at most two coordinates. Formally,
Therefore
Every incorrectly decoded bit contributes at least 1/2 to this absolute error. Combining the bounds gives
For , , and , the last expression is at most . Choose sufficiently small, then sufficiently small, to make this at most .
Combining this decoder with Lemma 6.2 gives the calibration-driven term in the sample lower bound.
Lemma 6.5 (Calibration lower bound for randomized predictors). There are universal constants such that the following holds for every sufficiently small . There is a finite domain such that, for the singleton bounded test family with on , any learning algorithm with the following guarantee must use at least samples: for every distribution on , the algorithm outputs an arbitrary randomized predictor satisfying
Take and . Lemma 6.4 turns a successful predictor into a bit vector that is correct on at least 0.8k coordinates. Lemma 6.2 then requires samples. The parameter choices are recorded in Appendix B.
The lemma uses the single bounded test . It also yields a version using only indicator tests, at the cost of a polynomial-size test family. On the grid above,
Consequently, multiaccuracy for the threshold tests on the right controls multiaccuracy for . Since the lower-bound choice is , the same obstruction holds for a polynomial-size family of indicator tests, while the constant-size statement uses the bounded test formulation.
Proof of Theorem 6.1. Let be no larger than the accuracy constants in Lemmas 6.3 and 6.5. A learning algorithm satisfying the guarantee of Theorem 6.1 also satisfies the hypotheses of Lemma 6.5, because the singleton bounded test family has size at most . Therefore for a universal .
The same learning algorithm also satisfies the hypotheses of Lemma 6.3, so for a universal . Hence
which proves the theorem after renaming the constant.
7 Lower bound for deterministic predictors
At the level of the hard distributions, this construction resembles the randomized lower bound: the domain is ordered, and the conditional mean is a public baseline plus a small hidden perturbation. The decoding mechanism is different. The randomized proof uses the identity test , together with calibration, to place realized predictions close to the baseline at a relatively coarse scale. Here a larger family of sign tests forces a deterministic predictor p close to the public baseline at a finer scale. Because p is a fixed function, its prediction values create exact level sets that partition the domain.
The proof uses those level sets to recover one hidden sign per domain point. Multiaccuracy against the sign tests forces p to have small average distance from the known baseline. Since the baseline values are separated, most points then have distinct prediction values and hence singleton level sets. Calibration on a singleton directly reveals the corresponding hidden sign. An application of the shared recovery bound, Lemma 6.2, converts recovery of many signs into the sample lower bound.
Theorem 7.1 (Deterministic lower bound with a group budget). There are universal constants such that the following holds for every sufficiently small . Let be a target budget for satisfying
Then there exist a finite domain , a finite family of distributions on , and a finite bounded test family with
with the following property. If a learning algorithm receives i.i.d. examples, outputs a deterministic predictor , and, for every , guarantees
then
Proof structure. The hard family uses ordered points. The conditional mean at point is a known baseline plus a hidden offset , where . Figure 4 illustrates the counting step that turns closeness to the separated baseline into singleton prediction values.

Figure 4: Most prediction values (orange) lie close to distinct baseline values (blue), so they form singleton level sets. The displayed collision is possible only because point 6 is far from its baseline. Each collision involving a baseline-accurate point can therefore be charged to a baseline-inaccurate point. Calibration on the remaining singletons makes the sign of reveal .
The first lemma isolates the deterministic part of the argument. It converts average closeness to the separated baseline into many singleton prediction values, on which calibration reveals the hidden signs directly.
Lemma 7.2 (Decoding signs from a predictor close to separated baselines). Let , let be uniform on , and let . Suppose satisfy whenever . Fix and , and suppose
defines valid Bernoulli means. Let be the distribution with this uniform marginal and these label means. Let be deterministic, and set
For every , the decoder , with ties broken arbitrarily, satisfies
where denotes Hamming distance.
Proof. Write and call good if . Markov's inequality shows that at most indices are bad. No two good indices have the same prediction value: if , then
Every good index that shares its prediction value with another index must therefore share it with a bad index. Different good indices have different prediction values, so they must share with different bad indices. Thus there are at most such good indices. All but at most indices are therefore good and have a prediction value shared by no other index.
If a good index whose prediction value is unique is decoded incorrectly, then : for example, when , an incorrect sign means while , and the other case is symmetric. Because no other point receives prediction , this point contributes to ECE. Hence the number of incorrectly decoded singleton good indices is at most
Adding this count to the bound on the remaining indices proves (25).
Lemma 6.2 now converts this decoding guarantee into a sample lower bound of order .
It remains to choose a prescribed number of sign tests that force the predictor close to the baseline. The next lemma uses a parameter to construct about sign tests such that every vector has correlation at least a constant times with one of them. Therefore, if the residual vector had large average absolute value, some test in the family would detect it. Multiaccuracy therefore bounds the distance from the conditional means, which are themselves close to the public baselines.
Lemma 7.3 (A small family of sign tests detects error). There are universal constants such that the following holds. Let and let satisfy
Then there is a family with
such that, for every ,
The construction splits the coordinates into about blocks. A distribution over a small set of sign patterns gives, in each block, an expected absolute inner product at least a constant times the Euclidean norm of that block's residual vector. We include every choice of sign flips on the blocks. For each pattern, suitable flips make all block contributions nonnegative, so averaging over patterns shows that some test attains the sum of these lower bounds. Each block has coordinates, so its Euclidean norm is at least a constant times times its norm. The proof is deferred to Appendix C.
Proof of Theorem 7.1. Let be the constants from Lemma 7.3, increasing if necessary so that . Set .
Choosing the domain size. With domain points, the sign-test lemma and multiaccuracy will bound the average distance from the conditional means by . The means themselves are within of the public baselines. The decoding lemma requires average distance from the baselines to be a small fraction of their spacing, . Balancing the first error with this spacing gives
The second error, , is small relative to because .
For sufficiently small , and the floor loses at most a factor two. Also and
Thus taking sufficiently large and sufficiently small ensures , as required by the sign-test lemma.
Constructing the hard family. Apply Lemma 7.3 with to obtain satisfying (26) and
Set and . Let be uniform on , and define
For each , let have conditional labels , and put . All means lie in for sufficiently small .
Multiaccuracy forces closeness to the baseline. Fix and a deterministic predictor with , and write . Apply the sign-test lemma directly to the residual vector :
Since , the triangle inequality gives
Calibration reveals the signs. On the event , we also have . Apply Lemma 7.2 with and . The baselines have spacing , and
Choose sufficiently small that the second term is at most 1/10 and sufficiently small that the first is at most 1/10. The decoder therefore recovers at least 0.8R hidden signs on the success event. It uses only and the public baselines, not the conditional means used in the preceding analysis.
The learning guarantee makes this event occur with probability at least 2/3 for every . Lemma 6.2, with , gives
using and the floor estimate above. For constant confidence, the upper bound constructs categories, essentially the same number of singleton prediction values forced by this lower bound. Taking and proves the theorem.
8 Discussion
We have resolved the sample complexity of calibrated multiaccuracy for both randomized predictors and deterministic predictors and have shown that requiring the output to be deterministic comes with a polynomial statistical cost.
Two questions remain. First, the learning algorithm that we give achieving the tight deterministic upper bound runs in exponential time; finding a polynomial-time algorithm with the same rate is open. Second, our lower bound for deterministic learners requires . Thus the deterministic rate remains open when , including in particular for constant-size families of real-valued bounded tests. For these constant-size families, the known bounds are and . Note that easy improvements are possible in the special case of a constant number of binary valued indicator tests (i.e. “groups”): if we have groups for some constant , partitioning contexts by their group-membership patterns yields only a constant number of cells despite the exponential blow-up. Predicting the empirical label mean on each cell gives a deterministic predictor that satisfies calibrated multi-accuracy with sample complexity . This construction fails for real-valued test functions.
AI methodology
We used GPT models ranging from GPT-5.5 to GPT-6 in the development of this paper to explore proof strategies, simplify arguments, and draft and revise mathematical proofs. In particular, after we had the randomized upper bound and both lower bounds, the construction of the matching deterministic upper bound from Section 5 was found by GPT-5.6 Sol during an approximately 24-hour goal-directed run in the Codex environment using Ultra mode. The authors have verified all proofs and are responsible for the contents of the paper.
Acknowledgments
This work was partially supported by the Simons Collaboration on Algorithmic Fairness, NSF grants RI-2551608 and CCF-2217062, and a gift from Apple.
References
Osbert Bastani, Varun Gupta, Christopher Jung, Georgy Noarov, Ramya Ramalingam, and Aaron Roth. Practical adversarial multivalid conformal prediction. In Advances in Neural Information Processing Systems, volume 35, pages 29362–29373. Curran Associates, Inc., 2022. doi: 10.52202/068431-2129. URL https://proceedings.neurips.cc/paper_files/paper/2022/hash/bcdaaa1aec3ae2aa39542acefdec4e4b-Abstract-Conference.html.
Stéphane Boucheron, Gábor Lugosi, and Pascal Massart. Concentration Inequalities: A Nonasymptotic Theory of Independence. Oxford University Press, 2013. ISBN 9780199535255. doi: 10.1093/acprof:oso/9780199535255.001.0001. URL https://academic.oup.com/book/26549.
Sílvia Casacuberta, Cynthia Dwork, and Salil Vadhan. Complexity-theoretic implications of multicalibration. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, pages 1071–1082. Association for Computing Machinery, 2024. doi: 10.1145/3618260.3649748.
Sílvia Casacuberta, Parikshit Gopalan, Varun Kanade, and Omer Reingold. How global calibration strengthens multiaccuracy. In 66th IEEE Annual Symposium on Foundations of Computer Science (FOCS 2025), pages 1198–1227. IEEE, 2025. doi: 10.1109/FOCS63196.2025.00063.
Alain Celisse and Tristan Mary-Huard. Theoretical analysis of cross-validation for estimating the risk of the k-nearest neighbor classifier. Journal of Machine Learning Research, 19(58):1–54, 2018. URL https://www.jmlr.org/papers/v19/15-498.html.
Natalie Collina, Surbhi Goel, Varun Gupta, and Aaron Roth. Tractable agreement protocols. In Proceedings of the 57th Annual ACM Symposium on Theory of Computing, pages 1532–1543. Association for Computing Machinery, 2025. doi: 10.1145/3717823.3718222.
Natalie Collina, Ira Globus-Harris, Surbhi Goel, Varun Gupta, Aaron Roth, and Mirah Shi. Collaborative prediction: Tractable information aggregation via agreement. In Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 4712–4798. Society for Industrial and Applied Mathematics, 2026a. doi: 10.1137/1.9781611978971.172.
Natalie Collina, Jiuyao Lu, Georgy Noarov, and Aaron Roth. Optimal lower bounds for online multicalibration. In 67th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2026), 2026b. URL https://arxiv.org/abs/2601.05245.
Natalie Collina, Jiuyao Lu, Georgy Noarov, and Aaron Roth. The sample complexity of multicalibration. In Proceedings of the 2027 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA). Society for Industrial and Applied Mathematics, 2027. URL https://arxiv.org/abs/2604.21923.
A. Philip Dawid. The well-calibrated Bayesian. Journal of the American Statistical Association, 77(379):605–610, 1982. doi: 10.1080/01621459.1982.10477856.
Cynthia Dwork and Pranay Tankala. Supersimulators, 2025. URL https://arxiv.org/abs/2509.17994.
Cynthia Dwork, Michael P. Kim, Omer Reingold, Guy N. Rothblum, and Gal Yona. Outcome indistinguishability. In Proceedings of the 53rd Annual ACM SIGACT Symposium on Theory of Computing, pages 1095–1108. Association for Computing Machinery, 2021. doi: 10.1145/3406325.3451064.
Gabriele Farina and Juan Carlos Perdomo. An efficient black-box reduction from online learning to multicalibration, and a new route to Φ-regret minimization, 2026. URL https://arxiv.org/abs/2604.19592.
Sumegha Garg, Christopher Jung, Omer Reingold, and Aaron Roth. Oracle efficient online multicalibration and omniprediction. In Proceedings of the 2024 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 2725–2792. Society for Industrial and Applied Mathematics, 2024. doi: 10.1137/1.9781611977912.98.
Isaac Gibbs and Ryan J. Tibshirani. Sample-efficient omniprediction for proper losses. In Steve Hanneke and Tor Lattimore, editors, Proceedings of Thirty Ninth Conference on Learning Theory, volume 336 of Proceedings of Machine Learning Research, pages 2679–2719. PMLR, 2026. URL https://proceedings.mlr.press/v336/gibbs26a.html.
Parikshit Gopalan, Adam Tauman Kalai, Omer Reingold, Vatsal Sharan, and Udi Wieder. Omnipredictors. In 13th Innovations in Theoretical Computer Science Conference (ITCS 2022), volume 215 of Leibniz International Proceedings in Informatics (LIPIcs), pages 79:1–79:21. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi: 10.4230/LIPIcs.ITCS.2022.79.
Parikshit Gopalan, Lunjia Hu, Michael P. Kim, Omer Reingold, and Udi Wieder. Loss minimization through the lens of outcome indistinguishability. In 14th Innovations in Theoretical Computer Science Conference (ITCS 2023), volume 251 of Leibniz International Proceedings in Informatics (LIPIcs), pages 60:1–60:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi: 10.4230/LIPIcs.ITCS.2023.60.
Varun Gupta, Christopher Jung, Georgy Noarov, Mallesh M. Pai, and Aaron Roth. Online multivalid learning: Means, moments, and prediction intervals. In 13th Innovations in Theoretical Computer Science Conference (ITCS 2022), volume 215 of Leibniz International Proceedings in Informatics (LIPIcs), pages 82:1–82:24. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi: 10.4230/LIPIcs.ITCS.2022.82.
Ürsula Hébert-Johnson, Michael Kim, Omer Reingold, and Guy Rothblum. Multicalibration: Calibration for the (Computationally-identifiable) masses. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 1939–1948. PMLR, 2018. URL https://proceedings.mlr.press/v80/hebert-johnson18a.html.
Christopher Jung, Georgy Noarov, Ramya Ramalingam, and Aaron Roth. Batch multivalid conformal prediction. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=Dk7QQp8jHEo.
Michael Kearns, Aaron Roth, and Emily Ryu. Networked information aggregation via machine learning. In Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 4799–4845. Society for Industrial and Applied Mathematics, 2026. doi: 10.1137/1.9781611978971.173.
Michael P. Kim, Amirata Ghorbani, and James Zou. Multiaccuracy: Black-box post-processing for fairness in classification. In Proceedings of the 2019 AAAI/ACM Conference on AI, Ethics, and Society, pages 247–254. ACM, 2019. doi: 10.1145/3306618.3314287.
Kasper Green Larsen, Omar Montasser, and Nikita Zhivotovskiy. Derandomizing multi-distribution learning. In Advances in Neural Information Processing Systems, volume 37, pages 94246–94264. Curran Associates, Inc., 2024. doi: 10.52202/079017-2989.
Daniel Lee, Georgy Noarov, Mallesh Pai, and Aaron Roth. Online minimax multiobjective optimization: Multicalbeating and other applications. In Advances in Neural Information Processing Systems, volume 35, pages 29051–29063. Curran Associates, Inc., 2022. doi: 10.52202/068431-2106.
Cassandra Marcussen, Aaron Putterman, and Salil Vadhan. Characterizing the distinguishability of product distributions through multicalibration. In Srikanth Srinivasan, editor, 40th Computational Complexity Conference (CCC 2025), volume 339 of Leibniz International Proceedings in Informatics (LIPIcs), pages 19:1–19:19, Dagstuhl, Germany, 2025. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi: 10.4230/LIPIcs.CCC.2025.19. URL https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.CCC.2025.19.
Georgy Noarov and Aaron Roth. Optimal deterministic multicalibration and omniprediction. In Proceedings of the 2027 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA). Society for Industrial and Applied Mathematics, 2027. URL https://arxiv.org/abs/2606.20557.
Georgy Noarov, Ramya Ramalingam, Aaron Roth, and Stephan Xie. High-dimensional prediction for sequential decision making. In Proceedings of the 42nd International Conference on Machine Learning, volume 267 of Proceedings of Machine Learning Research, pages 46762–46783. PMLR, 2025. URL https://proceedings.mlr.press/v267/noarov25b.html.
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. doi: 10.1109/FOCS63196.2025.00084.
Binghui Peng. The sample complexity of multi-distribution learning. In Proceedings of Thirty Seventh Conference on Learning Theory, volume 247 of Proceedings of Machine Learning Research, pages 4185–4204. PMLR, 2024. URL https://proceedings.mlr.press/v247/peng24b.html.
Zihan Zhang, Wenhao Zhan, Yuxin Chen, Simon S. Du, and Jason D. Lee. Optimal multi-distribution learning. In Proceedings of Thirty Seventh Conference on Learning Theory, volume 247 of Proceedings of Machine Learning Research, pages 5220–5223. PMLR, 2024. URL https://proceedings.mlr.press/v247/zhang24b.html.
A Deferred proofs for the deterministic upper bound
This appendix supplies the preprocessing and concentration arguments used in Section 5. Each stage succeeds with high probability, so one run suffices for the theorem's guarantee.
Throughout this appendix, assume and use the parameters from the proof of Theorem 5.1. Thus
with and . Let
Here the universal constants are chosen so that the inequalities below hold. Each sample split has size .
A.1 Confidence intervals and the context partition
Let be the contexts observed in the preprocessing sample, and let be the number of appearances of . For , let be the average label and set
For , set . With and , define
Fix a constant and define
Each point in this fixed-score set keeps its score and forms a private singleton category.
The preprocessing sample also induces the context partition. Sort its distinct observed contexts in lexicographic order as . Partition into the gap cells
where every set is understood to lie in , and add the singleton for every . Empty gap cells may be retained by the implementation and are ignored when calling the resulting family a partition. Denote this finite measurable partition by . A singleton with is excluded from the random assignment; all other cells are assignment cells. If no assignment cells remain, their maximum mass is taken to be zero and all coarsening errors vanish.
Proof of Lemma 5.4. The counts sum to , so . At the parameters above, , so the inclusion threshold exceeds two. For every atom of mass , its expected count is a sufficiently large constant factor above this threshold. A lower-tail Chernoff bound gives miss probability at most . There are at most such atoms, so a union bound detects all of them with failure probability at most . For coverage, condition on the full feature sample . Almost surely in this sample, the labels are conditionally independent and the labels at an observed context have mean . Whenever , Hoeffding's inequality gives
There are at most observed contexts. A union bound, followed by averaging over the feature sample, proves simultaneous coverage of them; contexts with and unobserved contexts receive . Thus, on the coverage event, for every . Taking sufficiently large makes the failure probability at most . For any , the -net property of gives a grid value with . Then , so . This also proves that every is nonempty. By definition, every satisfies , and all allowed sets are subsets of the common finite grid .
For the radius term, consider atoms with . There are at most of them. Chernoff's inequality and a union bound give simultaneously for these atoms, except with probability at most . On this event,
For the gaps, write and introduce fresh independent contexts only for the analysis. Conditional on the preprocessing sample, is the probability that all lie in the same gap. Attach independent uniform tie-breakers to all contexts, sorting first by context and using these numbers only between equal contexts. If the fresh contexts lie in one unobserved gap, they occupy consecutive positions. This also covers equal fresh contexts, since none of the preprocessing contexts can lie in that gap. Exchangeability makes their positions a uniform -subset, and there are possible consecutive blocks. Thus
Consequently, Markov's inequality applied to gives
Take . The parameters in (27) ensure , so, with failure probability at most ,
The tie-breakers are not part of the algorithm.
Combining these events proves with failure probability at most . The gap bound also gives
An observed atom outside the fixed-score set has mass by the detection guarantee, and an observed non-atom has mass zero. This proves the assignment-cell mass bound.
The coverage and squared-mass arguments do not use the fixed-score threshold. For any and , the same intervals, allowed grid values, and singleton-and-gap partition therefore give pointwise coverage and with probability at least , without forming . We use this observation in the large-budget case.
Conditional on the event in Lemma 5.4, the auxiliary class in (18) is fixed before the labeled score sample is drawn. Its log-cardinality is . Applying Lemma 5.5, with failure probability , gives a deterministic S supported on for which (19)–(20) hold. Indeed, their conditional bound is
A.2 Transferring empirical residuals to the true labels
Proof of Lemma 5.8. We also establish the empirical mass bound (22). Condition throughout on successful preprocessing and score learning. The partition, fixed-score set, and score are therefore fixed before the fresh context sample is drawn. Write and .
The proof first bounds, for each cell, the difference between population and sample averages of bounded functions supported on that cell. We then combine these bounds with the score residuals to control the effect of fixing the independent assignment choices. The expected residual difference is an average over rules that use one tuple everywhere; score learning and a finite-class sample bound control each of those rules.
Squared cell discrepancies. Let , , and define
For every function with on , . For a singleton , the difference is ; for a gap, the population and empirical integrals have absolute values at most and . Since , we have
where are the vectors of cell masses. Conditional on the partition, and taking expectation over the fresh context sample, the empirical mass vector satisfies
Changing one observation moves the empirical mass vector by at most in Euclidean norm, and hence changes by at most the same amount. Jensen's inequality and bounded differences therefore give, with failure probability at most ,
The preprocessing bound on squared gap masses now implies
On the same event,
The last step uses , which follows from the parameter choices after taking sufficiently large: and . This proves (22).
Residual differences for global tuples. For any nominal prediction vector , let predict on nominal category and retain on private categories. Write when the same tuple is used in every assignment cell. Initially restrict to . For each global tuple, consider either a group test or a full category-sign test,
where records the chosen test and prediction vector . Put . The residual difference we must control is, by Lemma 2.1,
The score residual is at most in absolute value by (19)–(20). The functions vanish on private categories and are bounded by one. Their number is at most
whose logarithm is . This class is fixed before the context sample. Hoeffding's inequality and a union bound give, with failure probability at most ,
Consequently, on this event,
Independent cell assignments. Now fix a context sample satisfying this event and (29), and let be its selected distribution. Define and by replacing the global tuple with the realized cell tuples:
For an assignment cell , put . Coverage and imply at observed singletons, while on unobserved gaps. Let be the largest population assignment-cell mass. Then
The contribution of U to has absolute value at most . Therefore
Here , , and . Conditional on the sample, the assignment-cell contributions are independent. The private contribution is deterministic and disappears after centering. Hoeffding's inequality and a union bound over thus give, with conditional failure probability at most ,
Every assignment cell has the same marginal tuple law; private categories are unchanged under every tuple. Hence
Equation (30) bounds this expectation even when depends on the sample. Combining the bounds gives .
For a fixed assignment and test, is affine in . Its absolute value on is maximized at a vertex, so the same event covers every nominal prediction vector, including the empirical means computed from this sample and assignment, with zero for categories containing no sample points. For these means, is exactly the difference of population and empirical residuals in (24). The three failure probabilities sum to , completing the proof of Lemma 5.8.
A.3 Fixing the category assignments
We first isolate the concentration estimate used for the multiaccuracy residuals.
Lemma A.1 (Concentration after category averaging). Suppose every assignment cell has mass at most b, and every category has score diameter at most . Then, for every and ,
The change caused by deleting an assignment cell is controlled by the integral of over that cell. Summing over cells gives the two bounds needed for a moment form of the Efron–Stein inequality.
We use the following leave-one-coordinate-out form of the generalized Efron–Stein inequality [Celisse and Mary-Huard, 2018, Corollary D.1, equation (D.4)]; see also Boucheron et al. [2013, Theorem 15.5] for the coordinate-resampling form. If is a measurable function of independent coordinates and is any measurable function of all coordinates except the th, then, for every real , writing ,
For a measurable set A of positive mass, write
and define the mass-weighted variance and covariance
These are times the conditional variance of and the conditional covariance of and on , respectively. Both are defined to be zero when . The following identity controls the effect of deleting part of a positive-mass category :
Indeed, integrating the product on the right over gives , because has mean zero there. Integrating it over gives , because has mean zero there. Subtracting proves the identity. If , choose any .
Lemma A.2 (Squared changes from deleting assignment cells). Fix a realized assignment and a test . Let and be the sums of and over its nominal categories. Delete assignment cell from every category, leaving the other assignments fixed and recomputing each category average on the remaining contexts. Denote the resulting totals by and . If every assignment cell has mass at most b and every category has score diameter at most , then
Proof. Write for the category-averaged score and set
The assignment cells partition the nonprivate region, so . Apply (32) to , , and sum over positive-mass categories; zero-mass categories contribute zero. Since , Cauchy-Schwarz gives
The same identity with controls variance, because . Both and lie in the interval spanned by the scores in ; when , choose anywhere in that interval. This auxiliary choice does not affect the zero-mass covariance. Thus
Summing these inequalities and using proves the claim.
Proof of Lemma A.1. All objects in the lemma other than the assignment seeds are fixed. In the application, this means conditioning on the preprocessing transcript, the learned score , the selection sample, and the selected distribution . Under this conditioning, the cell seeds are independent. All expectations and moment norms below are over these seeds. Write , , and .
First control , the root-mean-square change in the score. Taking the square root gives a deletion bound that no longer depends on the realized . Write . When , (33) gives
When , the same deletion bound forces every . Applying (31) to , then using , shows that for ,
Now apply (31) to . The first bound in (33) gives
For , take and apply Markov's inequality at a sufficiently large constant multiple of the right side to obtain failure probability at most . When , the asserted probability bound is trivial; for , the bound implies it after enlarging the same universal constant. This proves Lemma A.1.
Proof of Lemma 5.7. Condition on the preprocessing, score, and context sample satisfying (22). Apply Lemma A.1 to the empirical distribution , with its category averages . Its assignment-cell mass bound is , and Lemma 5.6 gives and . Taking and union bounding over the signed class gives (23) with failure probability at most , since
B Deferred proofs from the randomized lower bound
This appendix proves the shared recovery bound, followed by the two applications from Section 6.
Proof of Lemma 6.2. Pair a hidden vector with , obtained by flipping only coordinate . Write and for the two label means at that coordinate. They lie in and satisfy . For one sample, the likelihood ratio is 1 unless the sampled context is . Here denotes expectation over samples from , with the hidden vector fixed. Consequently,
For independent samples the likelihood ratio is a product, so . Including the estimator's independent seed does not change this ratio. If denotes the law of this full transcript, Cauchy-Schwarz gives
Here total variation is the supremum of the absolute difference in probabilities assigned to the same event. Thus, when for a sufficiently small universal constant , it is at most .
The two values of coordinate are different. Applying the total-variation bound to the event therefore gives
Average over all pairs in and sum over . For uniform , this implies . On the other hand, the Hamming distance is at most on success and at most on failure, so the assumed recovery guarantee gives
This contradiction proves the sample lower bound.
Proof of Lemma 6.3. Fix and let . Take with the uniform distribution and . Then , and for every ,
For each , let have this uniform marginal and label means , and let consist of all these distributions. The means lie in for . Fix an output predictor , and write . The sign-test identity gives
Decode , breaking ties arbitrarily. Each mistake contributes at least to the sum, so
Choose the accuracy constant . Whenever the learning algorithm succeeds, this decoder recovers at least 0.8d signs. Lemma 6.2, with , now gives .
Proof of Lemma 6.5. Let be the constants in Lemma 6.4. For sufficiently small , set
Use the hard family , defined in Section 6. Since , all label means lie in . Choose . On every successful training run,
so Lemma 6.4 returns a bit vector correct on at least 0.8k coordinates. This estimate is a function of the sample and the learning algorithm's independent seed. Applying Lemma 6.2 with and yields
where the last step uses .
C Deferred proofs from the deterministic lower bound
Proof of Lemma 7.3. Partition into nonempty blocks , each of size at most . The assumed parameter range, with suitable universal constants, ensures . We construct a small family of sign patterns and then allow each block to flip its sign independently.
First, there is a distribution on sign vectors , supported on at most
vectors, whose moments of degree at most four agree with independent uniform signs. To see this, associate to each sign vector its vector of products with and , including the empty product 1. Start with the uniform distribution on all sign vectors. If its support has more than points, the corresponding moment vectors are linearly dependent. Adjust the probabilities along a nonzero dependence until one becomes zero. The constant coordinate preserves total mass; all probabilities remain nonnegative, and all moments are unchanged. Repeating gives the claimed support bound.
For any , put . Since , these moments imply
Hölder’s inequality in the form therefore gives
with the zero vector handled trivially.
Let be the support of this distribution. For and , include the test
in . For a fixed pattern , the block signs can make all block contributions nonnegative. Hence, for every ,
The last inequality uses . The family was fixed independently of , so the guarantee holds simultaneously for every vector.
For any one pattern, the block flips are distinct. Thus
where the upper bound uses . This proves both the cardinality and detection guarantees.
D Proof of the finite-test online lemma
Proof of Lemma 3.1. We first describe the online prediction rule. Let
For , define . Let .
On round , before observing , maintain the residual sums
Set
After observing , put and consider
This is continuous in . If has a zero in , choose its smallest zero as . If for all , choose . If for all , choose . In all cases, for every label ,
This is immediate at a zero. If is everywhere positive then , and if is everywhere negative then .
Let
Then . For the exponential potential
the inequality for gives
because
by (34). Therefore . If , every coordinate satisfies
If , the trivial bound gives the same conclusion. Since both signs of every test are included,
For each history, let be the prediction selected by the same rule after seeing a context . Then , and (35) is the claimed bound.
E Polynomial-time implementation in the real-arithmetic model
The preceding appendix defines and analyzes the online score rules . This section shows that these rules, and hence the full construction from Theorem 4.1, can be implemented in polynomial time in an idealized real-arithmetic model. Throughout this section we assume that is given explicitly and that, on input , each value can be evaluated in unit time. Arithmetic on real numbers, including exponentials, is also counted at unit cost.
There is one small bookkeeping point. For implementation it is cleaner to work with representations of piecewise-linear tests rather than distinct functions. Let be the set of tuples
interpreted as the linear interpolation through the selected grid points with values . Different tuples may represent the same function, but this causes no problem: the exponential-potential proof is valid for a finite multiset of represented tests, and every test in has at least one representation. Moreover
The running time in the next proposition depends polynomially on the fine grid size ; with the parameter choice in Theorem 4.1, this is .
Proposition E.1 (Unit-cost arithmetic implementation). Fix and with an integer. If is explicit, then the online intermediate-prediction algorithm from Lemma 3.1, run with the represented test family , can be implemented using poly arithmetic operations. Consequently, with the parameter choice used in Theorem 4.1, the full calibrated multiaccuracy algorithm can be implemented in time polynomial in and in this arithmetic model.
Proof. We describe how to implement one online prediction step from the stored history of earlier rounds. This suffices, because the batch predictor evaluates by applying the same rule to one of the stored online states. The grid-selection step uses the scores already recorded during training.
Let the previous predictions be and write . For grid indices , let and define the half-open interval
I_{ij}=\begin{cases}[z_{i},z_{j}),&j<N_{\mathrm{grid}},\\[z_{i},1],&j=N_{\mathrm{grid}}.\end{cases}Define two edge residuals
These quantities can be computed for all by direct summation in arithmetic operations, or faster using sorted prefix sums. The direct bound is already polynomial.
Consider a represented one-dimensional test
With the half-open convention above, each previous prediction belongs to a unique selected edge. The cumulative residual of the test is therefore the sum of its edge contributions:
Thus the exponential weight of a represented test factors along a path in the directed acyclic graph whose vertices are pairs and whose edges go from to for .
Fix and set
For a candidate prediction and an edge , define
Every represented path contains exactly one edge whose interval contains , so its test value is the sum of these edge contributions.
A forward recurrence can accumulate both path weights and test values. Let be the total weight of prefixes with edges ending at vertex , and let be their weighted sum of accumulated edge contributions at . Initialize
and set both quantities to zero at every other vertex. Writing , extend the prefixes by
The first recurrence multiplies each prefix weight by its new edge weight; the second also adds the new edge contribution. Summing over complete paths gives
There are vertices and edges. Computing the tables for therefore takes operations for each candidate .
It remains to choose the online prediction. The group contribution is explicit:
where is maintained directly. The function used to choose the next prediction for the represented test family is therefore
Every represented one-dimensional test is linear on each fine grid interval , and hence so is . We evaluate for all using (37). Zero-valued gridpoints and zeros interpolated between adjacent values of opposite signs are the candidates; choose the smallest candidate, if any. If all grid values are strictly positive, then is positive on all of and we choose ; if all are strictly negative, we choose . This exactly implements the prediction rule in Lemma 3.1.
After is observed, the algorithm appends to the history and updates the multiaccuracy residuals. Thus every online step, every later evaluation of a stored online state, and hence the full intermediate-prediction subroutine use only polynomially many arithmetic operations in , , , and .
Finally, choose the grid from the recorded scores . After sorting, prefix sums of 1, , and evaluate the empirical interval contribution in Lemma 3.4 for every pair of fine-grid endpoints. Indeed, its numerator is for . There are candidate intervals, so grid selection is also polynomial.