Papers
Topics
Authors
Recent
Search
2000 character limit reached

Averaged Two-Bin Calibration Error

Updated 8 July 2026
  • Averaged Two-Bin Calibration Error is defined as the expected sum of squared biases over two randomized bins, ensuring that reporting true probabilities minimizes the measure.
  • It computes unnormalized bias sums over a uniformly random threshold, achieving efficient calibration testing in O(T log T) time for binary probabilistic predictions.
  • ATB resolves finite-sample incentive issues by isolating predictor-dependent error from inherent Bernoulli variance, offering a truthful, continuous, and complete calibration metric.

Averaged Two-Bin Calibration Error (ATB) is a calibration measure for binary probabilistic prediction in the batch setting that averages, over a uniformly random threshold q[0,1]q \in [0,1], the squared biases of the two prediction bins {v<q}\{v<q\} and {vq}\{v\ge q\}. In the formulation introduced in 2025, ATB was designed to resolve a finite-sample incentive problem in calibration measurement: unlike previously known calibration measures, it is minimized in expectation by reporting the ground-truth probabilities themselves. The same work proves that ATB is truthful, sound, complete, continuous, quadratically related to smooth calibration error and distance to calibration, and computable in O(TlogT)O(T\log T) time on a sample of size TT (Hartline et al., 18 Aug 2025).

1. Formal definition

The underlying setting admits two equivalent views. In the distribution view, one considers a joint distribution JJ over (v,y)[0,1]×{0,1}(v,y)\in[0,1]\times\{0,1\}, where vv is a reported probability and yy is a binary outcome. In the finite-sequence view, one considers reports r=(r1,,rT)[0,1]Tr=(r_1,\dots,r_T)\in[0,1]^T, ground-truth probabilities {v<q}\{v<q\}0, and realized labels {v<q}\{v<q\}1 with {v<q}\{v<q\}2 independently (Hartline et al., 18 Aug 2025).

For a distribution {v<q}\{v<q\}3 and threshold {v<q}\{v<q\}4, the two bin biases are

{v<q}\{v<q\}5

ATB is then

{v<q}\{v<q\}6

On a finite sequence, the induced empirical form is

{v<q}\{v<q\}7

The same paper also introduces an {v<q}\{v<q\}8 two-bin variant obtained by replacing the squares with absolute values. Jensen’s inequality yields

{v<q}\{v<q\}9

so the squared and {vq}\{v\ge q\}0 forms are linked up to constant factors (Hartline et al., 18 Aug 2025).

Two aspects are structurally distinctive. First, the partition always has exactly two bins. Second, the threshold is not fixed but averaged uniformly over {vq}\{v\ge q\}1. ATB is therefore not a single-threshold diagnostic, but an average over all such binary partitions.

2. Truthfulness and finite-sample incentive alignment

The central notion is truthfulness on sequences. A calibration measure {vq}\{v\ge q\}2 is truthful on sequences if, for every report vector {vq}\{v\ge q\}3,

{vq}\{v\ge q\}4

Thus, expected empirical calibration error is minimized by reporting the true probabilities {vq}\{v\ge q\}5 themselves (Hartline et al., 18 Aug 2025).

ATB satisfies this property exactly. The key identity is the decomposition

{vq}\{v\ge q\}6

The second term is a predictor-independent variance term. Since {vq}\{v\ge q\}7 for every {vq}\{v\ge q\}8 and {vq}\{v\ge q\}9, one obtains

O(TlogT)O(T\log T)0

This is the sense in which ATB is perfectly truthful: no approximation, asymptotics, or large-sample caveat is required (Hartline et al., 18 Aug 2025).

The same decomposition yields a stronger rank-preserving property: O(TlogT)O(T\log T)1 Hence the ordering of predictors by expected empirical ATB coincides exactly with their ordering under the latent quantity O(TlogT)O(T\log T)2. The paper contrasts this with previously known calibration measures, which incentivize predictors to lie in order to appear more calibrated on a finite sample (Hartline et al., 18 Aug 2025).

This behavior is tied to the absence of per-bin normalization by bin size. ATB aggregates unnormalized squared bin biases, globally normalized by O(TlogT)O(T\log T)3, and this variance-additive structure is what makes the predictor-dependent term separate cleanly from the Bernoulli noise term.

3. Soundness, completeness, continuity, and zero-calibration characterization

ATB is shown to be sound, complete, and continuous, and these properties are established through constant-factor and quadratic relations to continuous calibration functionals already known in the literature. In particular, for smooth calibration error,

O(TlogT)O(T\log T)4

and for distance to calibration,

O(TlogT)O(T\log T)5

Because O(TlogT)O(T\log T)6 and O(TlogT)O(T\log T)7 are known to be complete and sound, ATB inherits those properties (Hartline et al., 18 Aug 2025).

These inequalities imply the zero-calibration characterization: O(TlogT)O(T\log T)8 Thus, although ATB is defined through random two-bin partitions, it does not merely detect a restricted notion of calibration. Zero ATB is equivalent to perfect calibration (Hartline et al., 18 Aug 2025).

The paper also proves Lipschitz continuity. If O(TlogT)O(T\log T)9 is a coupling of TT0 with induced marginals TT1 and TT2 on TT3 and TT4, then

TT5

In sequence form, for two report vectors TT6 with common labels,

TT7

The paper explicitly contrasts this with ECE and binned ECE, which can be discontinuous in the predictions (Hartline et al., 18 Aug 2025).

4. Relation to ECE, smCal, distCal, and earlier two-bin usage

ATB arose against a background in which calibration was often measured by binned expected calibration error (ECE). Standard ECE compares average confidence and empirical accuracy inside bins, and its behavior depends strongly on the binning scheme. Equal-width binning, equal-mass binning, and continuous alternatives all modify this dependence; fixed-bin ECE is sensitive to the number of bins, can ignore empty bins, and exhibits a bias–variance trade-off that scales with the granularity of discretization (Pavlovic, 31 Jan 2025, Futami et al., 2024).

Earlier expository discussions sometimes used “ATB” informally for an ECE-style two-bin construction or for an average over many two-bin threshold splits. In those formulations, ATB was presented either as ECE with TT8 or as an average of two-bin ECE-type quantities over thresholds (Pavlovic, 31 Jan 2025, Matsubara et al., 2023, Karandikar et al., 2021). The 2025 measure is different. Its bin-level objects are not per-bin accuracy–confidence gaps, but squared unnormalized biases of the form

TT9

followed by averaging over uniformly random JJ0 (Hartline et al., 18 Aug 2025).

This distinction is substantive rather than terminological. The ECE family was developed as a binned approximation to confidence calibration, and subsequent work emphasized its sensitivity to discretization, instability under rebinning, and lack of consistency unless bins are refined with sample size (Pavlovic, 31 Jan 2025, Futami et al., 2024). ATB, by contrast, was designed to satisfy a truthfulness criterion on finite samples and to admit exact error decompositions unavailable to the standard binned ECE construction (Hartline et al., 18 Aug 2025).

Relative to continuous measures, ATB sits between smooth calibration error and distance to calibration. The paper proves that the JJ1 two-bin error is a constant-factor approximation to both JJ2 and JJ3, and that ATB is quadratically related to them. This is the basis for both its theoretical guarantees and its algorithmic utility (Hartline et al., 18 Aug 2025).

5. Computation and calibration testing

ATB is efficient to compute on a sample of size JJ4. The algorithm sorts the reports JJ5, computes prefix and suffix sums of JJ6, and exploits the fact that the two bin biases are constant on intervals between consecutive sorted report values. If JJ7 and JJ8, then

JJ9

so after sorting, the integration over thresholds is a linear scan. The total running time is (v,y)[0,1]×{0,1}(v,y)\in[0,1]\times\{0,1\}0 (Hartline et al., 18 Aug 2025).

This complexity compares favorably with existing continuous measures. The paper states that computing (v,y)[0,1]×{0,1}(v,y)\in[0,1]\times\{0,1\}1 currently costs (v,y)[0,1]×{0,1}(v,y)\in[0,1]\times\{0,1\}2, while computing (v,y)[0,1]×{0,1}(v,y)\in[0,1]\times\{0,1\}3 costs (v,y)[0,1]×{0,1}(v,y)\in[0,1]\times\{0,1\}4. ATB therefore provides a simpler and faster route to quantities that are provably linked to both (Hartline et al., 18 Aug 2025).

The same paper analyzes calibration testing through validity with respect to distance to calibration. ATB is (v,y)[0,1]×{0,1}(v,y)\in[0,1]\times\{0,1\}5-valid with (v,y)[0,1]×{0,1}(v,y)\in[0,1]\times\{0,1\}6, and this rate is stated to be information-theoretically optimal. Concretely, for calibrated (v,y)[0,1]×{0,1}(v,y)\in[0,1]\times\{0,1\}7, with high probability,

(v,y)[0,1]×{0,1}(v,y)\in[0,1]\times\{0,1\}8

while for miscalibrated (v,y)[0,1]×{0,1}(v,y)\in[0,1]\times\{0,1\}9 with vv0, with high probability,

vv1

for a sufficiently large constant vv2 (Hartline et al., 18 Aug 2025).

The computational consequence is that ATB yields faster calibration tests for vv3 and distance to calibration than direct computation of those measures. The paper explicitly frames this as an improvement in running time and simplicity for the calibration testing problem studied by Hu et al. (2024) (Hartline et al., 18 Aug 2025).

6. UBSEs and the broader construction principle

ATB is the simplest instance of a broader family introduced in the same work: Unnormalized Binned Squared Errors (UBSEs). In a UBSE, the indices vv4 are partitioned into bins vv5; the partition may be randomized and may depend on the reports vv6, but not on the ground-truth probabilities vv7. For each bin,

vv8

and the calibration functional is

vv9

ATB corresponds to the special case yy0, with

yy1

and yy2 (Hartline et al., 18 Aug 2025).

The crucial structural constraint is that UBSEs use no per-bin normalization by bin size. The paper identifies this as the mechanism behind truthfulness: variance additivity for independent Bernoulli outcomes produces the decomposition

yy3

with a predictor-independent second term. ATB is the most elementary nontrivial member of this class (Hartline et al., 18 Aug 2025).

The UBSE framework also yields other truthful measures. The paper gives quantile-binned yy4-ECE as an example: if one partitions the sorted reports into equal-size bins and aggregates unnormalized squared bin biases rather than normalized per-bin gaps, the resulting measure is truthful. This suggests that ATB is not an isolated construction but the canonical minimal instance of a larger recipe for incentive-compatible calibration measurement (Hartline et al., 18 Aug 2025).

Historically, this marks a shift from viewing two-bin procedures as merely coarse discretizations of ECE toward viewing them as components of a truthful batch calibration theory. Earlier work on calibration diagnostics emphasized the limitations of coarse binning, bin-choice sensitivity, and the bias inherent in histogram estimators (Pavlovic, 31 Jan 2025, Futami et al., 2024). ATB retains the simplicity of two-bin partitions, but recasts them in a form that supports exact finite-sample incentive alignment, continuity, and efficient testing (Hartline et al., 18 Aug 2025).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Averaged Two-Bin Calibration Error (ATB).