A Bayesian Approach to Reference Open-set Label Shift Estimation with Dynamic Adaptation
Hu, Jiawei, Mandic, Danilo P., Barria, Javier A.
–arXiv.org Artificial Intelligence
In real-world deployment, classifiers often encounter simultaneous label shift and previously unseen out-of-distribution (OOD) samples, which can severely bias test time in-distribution (ID) prior estimation and degrade classification performance. To address this challenge, we investigate reference open-set label shift estimation, where an ID classifier and an ID/OOD classifier are jointly employed to estimate the test time ID class priors and OOD proportion without retraining. We propose Reference-OOD-Full Maximum A Posteriori Label Shift (R-OOD-FMAPLS), an adaptive Bayesian framework that jointly models the ID class priors and OOD proportion using a high-dimensional Dirichlet distribution. A maximum a posteriori expectation-maximization (MAP-EM) procedure with adaptive Dirichlet regularization is then developed to iteratively estimate the target class priors, where the Dirichlet hyperparameters are dynamically adjusted to control the shape and concentration of the prior distribution. To address the gradient ascent high computational complexity and unboundedness of hyperparameter optimization, we further develop a linear surrogate function (LSF)-based update scheme that provides efficient closed-form updates by constraining the asymptotic maximizing ray. In addition, we theoretically investigate the sensitivity of the proposed estimator to reference-test OOD distribution mismatch and derive Wasserstein distance-based upper bounds for the estimated ID priors and OOD proportion. Experiments on CIFAR10 and CIFAR100 with near- and far-OOD samples demonstrate that R-OOD-FMAPLS consistently reduces ID prior estimation errors across different label shift conditions and ID/OOD scoring methods, while also improving ID proportion estimation under various experimental settings.
arXiv.org Artificial Intelligence
Dec-2-2026