TL;DR
Existing multicalibration methods struggle to see industry adoption because they require manually defined demographic subgroups, scale poorly, and often degrade overall ranking or predictive metrics. The authors present MCGrad (MultiCalibration Gradient Boosting), a fast, post-processing algorithm that learns miscalibrated feature spaces automatically without predefined groups. Deployed at Meta across hundreds of production models serving over a million real-time predictions per second, MCGrad reliably reduces multicalibration error while simultaneously boosting log loss and PRAUC.
What Problem Does This Paper Address?
Calibration ensures that a predicted probability of 80% translates to an event occurring 80% of the time. Multicalibration goes a step further: predictions must remain calibrated across structured (and often overlapping) subgroups—such as demographic slices or user segments. While crucial for fairness and robust decision-making, multicalibration has seen minimal adoption in production systems due to three practical barriers:
- Manual group definition: Most methods require practitioners to explicitly enumerate binary group indicators (e.g., "is an adult in the US"), which is error-prone, hard to maintain under changing policies, and impractical when features are numerous.
- Poor scalability: Classic algorithms (e.g., HKRR) scale linearly or worse with the number of groups, introducing unacceptable inference latency (milliseconds rather than microseconds).
- Performance tradeoffs: Calibration post-processing often degrades critical predictive metrics like log loss or Area Under the Precision-Recall Curve (PRAUC), creating resistance among engineers.
Methods
MCGrad formulates multicalibration as a multi-round recursive gradient boosted decision tree (GBDT) procedure, building upon LightGBM:
- Feature Augmentation: Rather than hardcoding groups, MCGrad appends the base model's current predicted probabilities directly into the feature space. A tree trained on $(X, f_{t-1}(X))$ naturally identifies regions in the feature space where the current prediction deviates from true labels.
- Recursive Multi-Round Boosting: Adjusting predictions in one region can induce miscalibration in another. MCGrad iterates over $T$ rounds, feeding each round’s updated predictions back into the next model.
- Logit Rescaling: After each boosting round, MCGrad learns a scalar multiplier $\theta_t$ on the combined logits to counteract tree shrinkage regularization. This drastically cuts the total number of trees and rounds required.
- Production Guardrails:
- Early Stopping: Rounds terminate on a validation set before log loss worsens. If round 1 degrades performance, $T=0$ is selected, ensuring the base predictor is never harmed.
- Min Sum Hessian Leaf Regularization: Tree splitting on extreme probabilities can overfit to empty tails; enforcing a minimum Hessian sum per leaf ($\sum f(1-f)$) prevents splits in near-deterministic probability regions.
Base Model f₀(x) ──► Round 1: Fit GBDT on [x, f₀(x)] ──► Rescale Logits ──► f₁(x)
▲ │
└────── Round t: Fit GBDT on [x, f_{t-1}(x)] ◄─┘
(Stops early if validation loss rises)
Datasets
- 11 Public Benchmarks: Standard fairness and tabular benchmarks, including 7 American Community Survey (ACS) tasks via
folktable(e.g., ACSIncome, ACSEmploy, ACSHealth), UCI Bank Marketing, UCI Credit Card Default, HMDA (Home Mortgage Disclosure Act), and MEPS (Medical Expenditure Panel Survey). - Production Platforms at Meta: Evaluated on live production traffic across 27 models on Looper (an automated online ML deployment and A/B testing platform) and over 180 binary classification models across two evaluation periods on Meta's internal ML training platform.
Key Insights and Ideas
- Multicalibration does not require a tradeoff with accuracy: Contrary to earlier literature suggesting a tension between calibration and predictive performance, MCGrad improved both PRAUC and log loss alongside multicalibration.
- GBDTs can discover groups implicitly: Decision trees naturally partition feature spaces into hyperrectangles. Conditioning tree splits on both input covariates and current model predictions allows the algorithm to discover miscalibrated subpopulations automatically.
- Inference speed is invariant to group count: By avoiding explicitly defined groups, MCGrad's inference latency remains flat ($\sim 20\,\mu\text{s}$ per sample), whereas group-based baselines blow up to over $1{,}000\,\mu\text{s}$ when scaling to 1,000 groups.
Key Results
- Public Benchmarks:
- MCGrad reduced the Multicalibration Error (MCE) by an average of 56.1% (beating DFMC at 11.9% and HKRR at 1.4%), achieving the top MCE on 10 of 11 datasets.
- It improved log loss by 10.4% and PRAUC by 8.1% on average over the base model, never degrading performance on any dataset.
- Computational Efficiency: At 1,000 groups on the ACSEmploy dataset, MCGrad achieved inference latencies of $\approx 20\,\mu\text{s}$ per sample—less than 2% of the latency of baselines (DFMC at $1{,}292\,\mu\text{s}$, HKRR at $5{,}019\,\mu\text{s}$).
- Meta Production Deployments:
- Online A/B Tests (Looper): Outperformed Platt scaling with statistical significance on 24 out of 27 production models, leading to full production deployment. PRAUC improved by up to +33.4% on production models.
- Internal Platform Deployment: Across 120 production models in a first trial, MCGrad improved log loss for 88.7%, PRAUC for 76.7%, and Expected Calibration Error (ECE) for 86.0%. A second batch of 65 models showed similar improvements (80.3% log loss, 75.4% PRAUC, 86.0% ECE).
Limitations and Future Work
- Concept Drift: While early stopping prevents in-distribution degradation, multicalibration guarantees do not inherently protect against arbitrary distribution shift post-deployment.
- Binary Classification Only: The current formulation focuses on binary targets; extending to multiclass or regression settings without combinatorial complexity remains an open challenge.
- Unstructured Modalities: Experiments were limited to tabular data; verifying MCGrad's behavior when applied to deep text or image embeddings is left for future research.
Summary updated