arXiv Analytics

Sign in

arXiv:2302.01332 [cs.LG]AbstractReferencesReviewsResources

Bayesian Metric Learning for Uncertainty Quantification in Image Retrieval

Frederik Warburg, Marco Miani, Silas Brack, Soren Hauberg

Published 2023-02-02Version 1

We propose the first Bayesian encoder for metric learning. Rather than relying on neural amortization as done in prior works, we learn a distribution over the network weights with the Laplace Approximation. We actualize this by first proving that the contrastive loss is a valid log-posterior. We then propose three methods that ensure a positive definite Hessian. Lastly, we present a novel decomposition of the Generalized Gauss-Newton approximation. Empirically, we show that our Laplacian Metric Learner (LAM) estimates well-calibrated uncertainties, reliably detects out-of-distribution examples, and yields state-of-the-art predictive performance.

Comments: Code: https://github.com/FrederikWarburg/bayesian-metric-learning
Categories: cs.LG, cs.CV
Related articles: Most relevant | Search more
arXiv:2108.12857 [cs.LG] (Published 2021-08-29)
Uncertainty quantification for multiclass data description
arXiv:2406.10775 [cs.LG] (Published 2024-06-16)
A Rate-Distortion View of Uncertainty Quantification
arXiv:2403.10642 [cs.LG] (Published 2024-03-15)
Using Uncertainty Quantification to Characterize and Improve Out-of-Domain Learning for PDEs