Bayesian Metric Learning for Uncertainty Quantification in Image Retrieval
Frederik Warburg, Marco Miani, Silas Brack, Søren Hauberg
Abstract
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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext bace24fe-198c-430d-ab43-28d1ab335d94Cited by top-tier papers5
- Improved Probabilistic Image-Text RepresentationsSanghyuk ChunICLR 2024 · 48 citations
- Reparameterization invariance in approximate Bayesian inferenceHrittik Roy, Marco Miani, Carl Henrik Ek, Philipp Hennig et al.NeurIPS 2024 · 20 citations
- Implicit Relative Labeling-Importance Aware Multi-Label Metric LearningJunxiang Mao, Yong Rui, Min-Ling ZhangAAAI 2025 · 3 citations
- VIKING: Deep variational inference with stochastic projectionsSamuel Matthiesen, Hrittik Roy, Nicholas Krämer, Yevgen Zainchkovskyy et al.NeurIPS 2025 · 3 citations
- Conformalized Hierarchical Calibration for Uncertainty-Aware Adaptive HashingJunyu Luo, Jinsheng Huang, Yang Xu, Lutong Zou et al.ICLR 2026
Builds on8
- Laplace Redux - Effortless Bayesian Deep LearningErik A. Daxberger, Agustinus Kristiadi, Alexander Immer, Runa Eschenhagen et al.NeurIPS 2021 · 508 citations
- Probabilistic Face EmbeddingsYichun Shi, Anil K. JainICCV 2019 · 362 citations
- BackPACK: Packing more into BackpropFelix Dangel, Frederik Kunstner, Philipp HennigICLR 2020 · 114 citations
- Bayesian Triplet Loss: Uncertainty Quantification in Image RetrievalFrederik Warburg, Martin Jørgensen, Javier Civera, Søren HaubergICCV 2021 · 47 citations
- Laplacian Autoencoders for Learning Stochastic RepresentationsMarco Miani, Frederik Warburg, Pablo Moreno-Muñoz, Nicki Skafte Detlefsen et al.NeurIPS 2022 · 17 citations
Related papers
- Riemannian Laplace approximations for Bayesian neural networksFederico Bergamin, Pablo Moreno-Muñoz, Søren Hauberg, Georgios ArvanitidisNeurIPS 2023 · 18 citations
- Being Bayesian, Even Just a Bit, Fixes Overconfidence in ReLU NetworksAgustinus Kristiadi, Matthias Hein, Philipp HennigICML 2020 · 344 citations
- Epistemic Uncertainty Quantification for Pretrained Neural NetworksHanjing Wang, Qiang JiCVPR 2024 · 5 citations
- Bayesian Deep Learning via Subnetwork InferenceErik A. Daxberger, Eric T. Nalisnick, James Urquhart Allingham, Javier Antorán et al.ICML 2021 · 108 citations
- Meta-Learning with Shared Amortized Variational InferenceEkaterina Iakovleva, Jakob Verbeek, Karteek AlahariICML 2020 · 25 citations
