cs.LGOct 10, 2026

Contrastive Linearized Laplace: Loss Geometry, Valid Repairs, and Reliable Cores

Authors: Francisco J. Sáez-Maldonado, Luis A. Ortega, Andrés R. Masegosa, Thomas D. Nielsen

Organizations: University of Granada · Aalborg University

Abstract

While contrastive learning is widely used to learn deterministic representations, it does not inherently provide estimates of uncertainty. Post-hoc uncertainty estimation methods, such as the Linearized Laplace approximation (LLA), offer a way to quantify uncertainty without retraining the encoder. However, we show that directly using the LLA induced distribution over the contrastive embedding does not yield reliable pointwise uncertainty estimates for downstream tasks: embedding variance alone does not reflect whether decisions such as nearest-neighbor retrieval or cluster assignment are stable. To address this limitation, we develop a post-hoc framework based on LLA that propagates encoder uncertainty through the downstream task. We characterize the curvature of contrastive objectives and introduce positive-semidefinite repairs where needed to obtain valid local Gaussian approximations without retraining the encoder. We test the proposed approach in metagenomic binning and image classification tasks. For metagenomic binning, posterior coassignment probabilities support consensus partitions and the selection of reliable cores, leading to improvements over existing baselines. Additional image classification experiments show calibration improvements on standard benchmarks and real histopathology datasets.

Figures & tables

Appendix figures & tables13 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Between the Layers Lies the Truth: Uncertainty Estimation in LLMs Using Intra-Layer Local Information Scores

    Mar 17, 2026Zvi N. Badash, Yonatan Belinkov, Moti FreimanUncertainty QuantificationLLM Uncertainty Estimation

  2. From Entropy to Calibrated Uncertainty: Training Language Models to Reason About Uncertainty

    Mar 6, 2026Azza Jenane, Nassim Walha, Lukas Kuhn +1LLM Uncertainty EstimationLanguage Model Calibration

  3. The Loss Is Not Enough: Sampling Conditions and Inductive Bias in Contrastive Representation Learning

    Jun 2, 2026Justinas Zaliaduonis, Patrick Putzky, Till Richter +1Contrastive LearningSelf-Supervised Learning