Parity Calibration

Youngseog Chung, Aaron Rumack, Chirag Gupta

TL;DR

Standard regression models often fail at predicting simple trends—like whether a value will go up or down tomorrow—even when they are otherwise well-calibrated. This paper introduces parity calibration to bridge this gap, demonstrating that treating trend prediction as a binary calibration problem and applying Online Platt Scaling (OPS) significantly improves the reliability of forecasts in fields ranging from epidemiology to nuclear fusion.

What Problem Does This Paper Address?

In many real-world scenarios, decision-makers care less about the exact value of a future observation and more about its direction relative to the present. For instance, a hospital administrator during a pandemic needs to know if COVID-19 admissions will increase or decrease next week to manage staffing, regardless of the specific number of patients.

While domain experts often provide sophisticated regression forecasts (predictive distributions), the "implied" probability of an increase or decrease derived from these models is frequently unreliable. The authors prove a counterintuitive point: a model can be perfectly "quantile calibrated" (meaning its predicted intervals contain the true values at the expected rates) yet be "terribly" miscalibrated regarding parity (the increase/decrease event).

Figure 1 illustrates this pitfall: a model that appears well-calibrated for general regression (top) can assign high probabilities to a decrease that rarely happens in reality (bottom).

Methods

The authors propose a shift in perspective: instead of trying to fix the complex regression model, treat the parity event—$\mathbb{1}\{y_t \leq y_{t-1}\}$—as a binary classification task.

Their core approach involves post-hoc binary calibration. They take the "prehoc" (raw) parity probabilities from an expert model and pass them through a calibration mapping. Specifically, they advocate for Online Platt Scaling (OPS).

Unlike standard Platt Scaling, which fits a static logistic curve to a validation set, OPS updates its parameters at every timestep. This allows the model to adapt to "non-stationary" data—streams where the underlying patterns change over time, such as weather or disease outbreaks. OPS is computationally efficient ($O(1)$ update per step) and comes with theoretical "regret" guarantees, meaning it performs nearly as well as the best possible scaling model chosen in hindsight.

Datasets

The researchers evaluated their approach across three diverse, high-stakes domains:

  1. COVID-19 Forecast Hub: Weekly incident case data across 51 US jurisdictions, using the Hub's ensemble as the "expert" forecaster.
  2. Jena Climate Dataset: A benchmark weather dataset from Germany containing 14 measurements (like pressure and temperature) recorded at 10-minute intervals over eight years.
  3. Nuclear Fusion (DIII-D Tokamak): Data from over 10,000 fusion experiments ("shots"), focusing on the $\beta_N$ signal, which indicates reaction efficiency.

Key Insights and Ideas

  • Calibration is not Monolithic: The most significant "aha moment" is the formal proof that traditional regression calibration does not imply parity calibration. You can have a "perfect" regression model that is useless for trend-based decision-making.
  • The Sequential Advantage: By using an online method (OPS), the authors account for the fact that time-series data is rarely stable. Methods that use a fixed "moving window" or "increasing window" of past data often lag behind shifting trends or become overly influenced by distant, irrelevant history.
  • Sharpness Matters: A calibrated model that always predicts a 50/50 chance is technically "calibrated" but useless. The authors show that OPS not only improves calibration (reliability) but often improves sharpness (confidence), making the forecasts more actionable.

Key Results

Across all case studies, OPS consistently outperformed the raw expert forecasts and other common calibration variants (Moving Window and Increasing Window).

  • Weather Forecasting: In predicting air pressure, the base model was nearly perfectly quantile calibrated but had a high Parity Calibration Error (PCE). OPS reduced this error dramatically while simultaneously improving binary accuracy and AUROC.
Figure 4 shows the transformation of the Pressure model from being parity-miscalibrated (Prehoc) to well-aligned with reality (OPS).
  • Decision-Making Utility: The authors simulated a policy-making scenario for COVID-19 where different restriction levels (Tight, Mild, None) were chosen based on parity forecasts. OPS resulted in the lowest cumulative loss compared to all other methods.
Figure 3: (Decision making on the COVID-19 dataset) (left) The Bayes optimal action for each predicted probability of increase in number of cases. (right) Frequency of each action taken by each method.

Limitations and Future Work

The authors note that OPS is only as good as the underlying Platt scaling model class. If the relationship between the raw forecast and the true probability cannot be captured by a logistic curve, OPS might struggle. They suggest that a technique called "calibeating" could potentially address this by combining multiple calibration models, though they did not implement it here as OPS already performed strongly on their test data.

Future research could explore applying these online parity calibration techniques to other sequential tasks, such as financial market trends or real-time anomaly detection in industrial systems.

Summary updated

BibTeX
@inproceedings{chung2023parity,
  author = {Youngseog Chung and Aaron Rumack and Chirag Gupta},
  title = {{Parity Calibration}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2023},
}
Figure