[Paper Review] A Unified View of Label Shift Estimation
This paper unifies two dominant label shift estimation methods—Black Box Shift Estimation (BBSE) and Maximum Likelihood Label Shift (MLLS)—by showing they differ primarily in calibration granularity, not objective function. It establishes theoretical consistency conditions for MLLS and demonstrates that MLLS's superior empirical performance stems from finer calibration, not its optimization objective, with up to 10× lower MSE in experiments.
Under label shift, the label distribution p(y) might change but the class-conditional distributions p(x|y) do not. There are two dominant approaches for estimating the label marginal. BBSE, a moment-matching approach based on confusion matrices, is provably consistent and provides interpretable error bounds. However, a maximum likelihood estimation approach, which we call MLLS, dominates empirically. In this paper, we present a unified view of the two methods and the first theoretical characterization of MLLS. Our contributions include (i) consistency conditions for MLLS, which include calibration of the classifier and a confusion matrix invertibility condition that BBSE also requires; (ii) a unified framework, casting BBSE as roughly equivalent to MLLS for a particular choice of calibration method; and (iii) a decomposition of MLLS's finite-sample error into terms reflecting miscalibration and estimation error. Our analysis attributes BBSE's statistical inefficiency to a loss of information due to coarse calibration. Experiments on synthetic data, MNIST, and CIFAR10 support our findings.
Motivation & Objective
- To theoretically characterize the Maximum Likelihood Label Shift (MLLS) estimator, which dominates empirically but lacks formal consistency analysis.
- To unify BBSE and MLLS under a common framework, revealing they differ only in calibration method and objective function.
- To decompose MLLS’s finite-sample error into miscalibration and estimation error components, identifying sources of statistical inefficiency.
- To explain why MLLS with Bias-Corrected Temperature Scaling (BCTS) outperforms BBSE, despite BBSE having stronger theoretical guarantees.
- To provide practical guidance on calibration granularity for improving label shift estimation.
Proposed method
- Propose a unified framework where both BBSE and MLLS are viewed as calibration-based estimators, with BBSE corresponding to confusion matrix-based calibration.
- Establish sufficient conditions for MLLS consistency: canonical calibration of the classifier and invertibility of the confusion matrix.
- Show that MLLS is equivalent to BBSE when using confusion matrix calibration, but differs when using finer-grained calibration like BCTS.
- Derive a finite-sample error decomposition for MLLS, separating miscalibration error (from validation set re-calibration and minimum achievable error) and estimation error.
- Use synthetic and real-world datasets (MNIST, CIFAR-10) to validate theoretical claims, varying calibration granularity and shift magnitude.
- Apply BCTS for post-hoc calibration and compare MLLS with BCTS to BBSE, RLLS, and MLLS using confusion matrix calibration (MLLS-CM).
Experimental results
Research questions
- RQ1Under what conditions is the MLLS estimator consistent for label shift estimation?
- RQ2Why does MLLS with BCTS outperform BBSE empirically, despite BBSE having stronger theoretical guarantees?
- RQ3How does the choice of calibration method affect the performance of label shift estimators?
- RQ4Can MLLS and BBSE be unified under a single theoretical framework?
- RQ5What is the finite-sample error structure of MLLS, and how does it depend on calibration granularity?
Key findings
- MLLS is consistent if the classifier is canonically calibrated and the confusion matrix is invertible, conditions that are also required for BBSE.
- BBSE’s statistical inefficiency arises from coarse calibration via confusion matrices, which discards information compared to finer-grained calibration.
- MLLS with BCTS calibration achieves up to 10× lower Mean Squared Error (MSE) than BBSE and RLLS under severe shifts, especially as target data size increases.
- MLLS-CM (using confusion matrix calibration) performs nearly identically to BBSE across all settings, confirming that performance differences stem from calibration granularity, not objective function.
- On synthetic data, increasing the number of calibration bins reduces MSE and increases the minimum eigenvalue of the Hessian, validating the theoretical error decomposition.
- The minimum eigenvalue of the Hessian for MLLS-CM is 0.195, significantly lower than for binned predictors with ≥4 bins, explaining its poor performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.