Search arXiv⌕ Search

arXiv subjects

Javier A. Barria

Publications and source records attributed to Javier A. Barria.

2 recordsLinked to original sources

A Bayesian Approach to Reference Open-set Label Shift Estimation with Dynamic Adaptation

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.

cs.LG↗

Bayesian-based Online Label Shift Estimation with Dynamic Dirichlet Priors

Label shift, a prevalent challenge in supervised learning, arises when the class prior distribution of test data differs from that of training data, leading to significant degradation in classifier performance. To accurately estimate the test priors and enhance classification accuracy, we propose a Bayesian framework for label shift estimation, termed Full Maximum A Posterior Label Shift (FMAPLS), along with its online version, online-FMAPLS. Leveraging batch and online Expectation-Maximization (EM) algorithms, these methods jointly and dynamically optimize Dirichlet hyperparameters $\boldsymbolα$ and class priors $\boldsymbolπ$, thereby overcoming the rigid constraints of the existing Maximum A Posterior Label Shift (MAPLS) approach. Moreover, we introduce a linear surrogate function (LSF) to replace gradient-based hyperparameter updates, yielding closed-form solutions that reduce computational complexity while retaining asymptotic equivalence. The online variant substitutes the batch E-step with a stochastic approximation, enabling real-time adaptation to streaming data. Furthermore, our theoretical analysis reveals a fundamental trade-off between online convergence rate and estimation accuracy. Extensive experiments on CIFAR100 and ImageNet datasets under shuffled long-tail and Dirichlet test priors demonstrate that FMAPLS and online-FMAPLS respectively achieve up to 40% and 12% lower KL divergence and substantial improvements in post-shift accuracy over state-of-the-art baselines, particularly under severe class imbalance and distributional uncertainty. These results confirm the robustness, scalability, and suitability of the proposed methods for large-scale and dynamic learning scenarios.

cs.LG↗