Calibrated Probabilistic Forecasts for Arbitrary Sequences

Charles Marx, Volodymyr Kuleshov, Stefano Ermon

Abstract

Probabilistic forecasting often relies on the assumption that data is independent and identically distributed (i.i.d.). However, real-world data frequently exhibits non-stationarity, feedback loops, or adversarial shifts. This paper presents a game-theoretic framework for online calibration that ensures reliable uncertainty estimates even for arbitrary sequences. We introduce ORCA (Online Regression Calibration against an Adversary), a gradient-based algorithm that optimizes for calibration as a payoff in a zero-sum game. Empirical results on wind energy and sunspot datasets demonstrate that ORCA significantly reduces calibration error while maintaining predictive accuracy.

Introduction

Most machine learning models are trained under the "i.i.d." assumption—the idea that future data will look like past data. In the real world, this assumption fails constantly. Data streams change due to seasonal shifts, feedback loops (like in financial markets or predictive policing), or even adversarial actors trying to trick the model.

When these shifts happen, a model's "uncertainty" often becomes meaningless. A model might say it is 90% confident while being wrong half the time. This paper tackles the challenge of online calibration: how can we ensure that if a model predicts an event has a 70% probability, that event actually happens 70% of the time in the long run—regardless of how the data evolves?

Methods

The authors bridge the gap between game theory and forecasting using a concept called Blackwell approachability.

The Forecasting Game

The core of the framework is modeling forecasting as a zero-sum game between a "Forecaster" and "Nature." The "payoff" of the game is defined such that the Forecaster "wins" if their predictions are calibrated.

Procedure 1: The Probabilistic Forecasting Game framework.

ORCA: Online Regression Calibration against an Adversary

Since finding the perfect forecast in this game is often computationally "hard" (specifically, PPAD-hard), the authors propose ORCA. This is a gradient-based algorithm that iteratively optimizes an upper bound on miscalibration.

The framework offers several key advantages:

  • No-Regret Recalibration: It can be used as a post-processing step. You can take an existing "expert" forecaster (like a neural network) and use ORCA to "recalibrate" its outputs, ensuring calibration without sacrificing the original model's predictive accuracy.
  • Multi-Objective Calibration: ORCA can simultaneously enforce multiple types of calibration, such as matching the mean (moment matching) and ensuring quantiles are accurate (quantile calibration).
  • Deterministic Forecasts: Unlike some previous work in online calibration that requires "randomizing" forecasts to beat an adversary, this framework allows for deterministic forecasts in continuous spaces.

Experimental Setup

The authors evaluated ORCA on both synthetic and real-world regression tasks:

  • Wind Dataset: Hourly wind energy generation data from ERCOT (Texas) for the year 2022.
  • Sunspot Dataset: A standard benchmark dataset tracking total monthly sunspots over centuries.
  • Adversarial Prediction Task: A synthetic setup where "Nature" specifically chooses outcomes to maximize the forecaster's calibration error.

Results

  • Superior Calibration: In experiments on the Wind and Sunspot datasets, ORCA reduced the Quantile Calibration Error (QCE) by between 13% and 92% compared to standard baselines like isotonic regression.
  • Preserving Accuracy: While improving calibration, ORCA maintained nearly identical predictive performance (measured by SMAPE) as the original uncalibrated models.
  • Robustness to Adversaries: In the adversarial task, ORCA consistently achieved lower calibration error than all baselines, demonstrating its ability to handle "worst-case" data shifts.
  • Decision-Making Utility: When applied to a simulated wind farm decision task, recalibrating with ORCA led to lower financial/operational losses for the grid operator.

Discussion and Key Insights

The core "aha moment" of this work is that many different definitions of calibration (binary, quantile, distribution, etc.) can all be expressed as different payoff functions in the same game-theoretic framework. Remarkably, the theoretical guarantees for calibration hold even if the data is chosen deterministically to invalidate the predictions. You don't need to assume the data follows any specific distribution.

Limitations

While the theory applies to many payoffs, the ORCA algorithm specifically requires the payoff function to be differentiable to use gradient-based optimization. Some common metrics (like ECE) are discontinuous and require "smoothing" to work with ORCA. Additionally, solving a minimax optimization problem at every time step is more computationally expensive than simple point-forecasting, though the authors note it only takes a few seconds on a standard laptop.

Future research could explore extending these techniques to "multicalibration," where the model must be calibrated across many different subgroups of the data simultaneously.

Summary updated

BibTeX
@article{marx2025calibrated,
  author = {Charles Marx and Volodymyr Kuleshov and Stefano Ermon},
  title = {{Calibrated Probabilistic Forecasts for Arbitrary Sequences}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2025},
}
Figure