Instance-Adaptive Online Multicalibration

Zhiming Huang, Jamie Morgenstern, Aaron Roth, Claire Jie Zhang

TL;DR

This paper introduces the first instance-adaptive algorithm for online multicalibration that automatically speeds up on "easy" data sequences without sacrificing worst-case robustness. By dynamically refining a tree of prediction bins based on accumulated bias, the algorithm seamlessly interpolates between the minimax-optimal worst-case error rate of $\widetilde{O}(T^{2/3})$ and the much faster $\widetilde{O}(\sqrt{T})$ rate typical of benign, stochastic environments.

What Problem Does This Paper Address?

In machine learning, calibration ensures that a model's probabilistic predictions match real-world frequencies—for example, if a weather model predicts a 20% chance of rain across many days, it should actually rain on exactly 20% of those days. Multicalibration takes this a step further by demanding that this calibration property holds simultaneously across many overlapping subgroups or subsequences of data (e.g., ensuring a medical risk predictor is equally calibrated across different demographic groups).

Achieving multicalibration in online adversarial settings—where data arrives sequentially and can be chosen maliciously by nature—is notoriously difficult. Prior work established a fundamental worst-case error rate of $\widetilde{O}(T^{2/3})$ over $T$ rounds. However, real-world data is rarely purely adversarial; it often exhibits benign structures, such as being stationary or changing only occasionally.

The core challenge addressed here is the lack of algorithms that can automatically exploit these "easy" instances to achieve faster error rates (like $\widetilde{O}(\sqrt{T})$) while still guaranteeing optimal protection if the environment turns out to be worst-case adversarial.

Methods

The authors propose a single, efficient algorithm driven by a novel dynamic-bin data structure. Instead of using a fixed, pre-determined grid of prediction values, the algorithm adaptively grows a dyadic tree of prediction intervals over time.

A typical state of the dynamic-bin data structure, showing how the active partition corresponds to the leaves of a dyadic tree.

Key components of the methodology include:

  • The Splitting Rule: The algorithm starts with a single bin $[0,1]$. It splits an active interval $I$ of width $w_I$ into two child intervals only when the total probability mass assigned to it crosses a specific threshold: $N(I) \ge L/w_I^2$. This threshold perfectly balances deterministic discretization error against online learning regret.
  • Sleeping Experts Wrapper: The algorithm maps the multicalibration constraints to a sleeping-experts framework instantiated with a confidence-rated version of the AdaNormalHedge algorithm. Experts track the positive or negative bias of active intervals over contiguous blocks of time.
  • Minimax Optimization: In each round, after observing the data context, the learner solves a simple linear program over the active bins to find a mixed forecast. This ensures that no combination of active bias terms can yield a positive one-step bias, regardless of the outcome nature reveals.

Datasets

No datasets were used for training or evaluation. This is a purely theoretical paper focused on proving mathematical guarantees, algorithmic feasibility, and statistical lower bounds.

Key Insights and Ideas

  • Data-Driven Tree Growth: The algorithm does not need to know the complexity of the environment in advance. If the data sequence is simple (e.g., stochastic), the algorithm naturally refines very few bins, keeping the active interval count low and drastically reducing the calibration error.
  • A Continuum of Complexity: The paper moves past the binary view of "stochastic vs. adversarial" settings. By introducing a new threshold-complexity measure, the authors show that the error rate forms a smooth continuum depending on how well the predictable means can be approximated by simple contextual scores.
  • The Discretization Crossover: The core intuition behind the splitting rule is identifying the exact "crossover point" where the error from a bin being too wide (discretization error) begins to dominate the statistical variance of online learning.

Key Results

The algorithm automatically adapts to the complexity of the data trajectory, yielding several notable rates:

  • Worst-Case Optimal: It recovers the known minimax-optimal rate of $\widetilde{O}(T^{2/3})$ under worst-case adversarial sequences.
  • Stochastic Adaptation: In a marginal stochastic setting, the error rate automatically drops to $\widetilde{O}(\sqrt{T})$.
  • Piecewise Stationarity: If the true mean of the sequence changes at most $J-1$ times across $T$ rounds, the algorithm achieves an error rate of $\widetilde{O}(\sqrt{JT})$.
  • Proved Tightness: The authors provide a matching lower bound using a parameterized Walsh-family construction, proving that their algorithm's dependence on threshold complexity is tight up to logarithmic factors.

Limitations and Future Work

  • Group Family Constraints: The algorithm is computationally efficient only for explicitly represented, finite group families. Extending this instance-adaptive behavior to large or continuous group classes—where one must rely on optimization oracles—remains an open algorithmic challenge.
  • Metric Scope: The current analysis is restricted specifically to the Expected Calibration Error (ECE) metric. A promising direction for future work is adapting this dynamic binning approach to a broader collection of calibration metrics or other elicitable properties like quantiles and moments.

Summary updated

BibTeX
@inproceedings{huang2026instance,
  author = {Zhiming Huang and Jamie Morgenstern and Aaron Roth and Claire Jie Zhang},
  title = {{Instance-Adaptive Online Multicalibration}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=xjc4HHAmIS},
}
Figure