[Paper Review] Modeling Uncertainty with Hedged Instance Embedding
This paper proposes Hedged Instance Embedding (HIB), a stochastic method that models image embeddings as probability distributions to capture input uncertainty—such as from occlusion or blur—by spreading probability mass across plausible latent space regions. Trained via the variational information bottleneck with a learnable-margin soft contrastive loss, HIB improves downstream recognition and verification performance on ambiguous inputs and provides a per-example uncertainty measure correlated with task accuracy.
Instance embeddings are an efficient and versatile image representation that facilitates applications like recognition, verification, retrieval, and clustering. Many metric learning methods represent the input as a single point in the embedding space. Often the distance between points is used as a proxy for match confidence. However, this can fail to represent uncertainty arising when the input is ambiguous, e.g., due to occlusion or blurriness. This work addresses this issue and explicitly models the uncertainty by hedging the location of each input in the embedding space. We introduce the hedged instance embedding (HIB) in which embeddings are modeled as random variables and the model is trained under the variational information bottleneck principle. Empirical results on our new N-digit MNIST dataset show that our method leads to the desired behavior of hedging its bets across the embedding space upon encountering ambiguous inputs. This results in improved performance for image matching and classification tasks, more structure in the learned embedding space, and an ability to compute a per-exemplar uncertainty measure that is correlated with downstream performance.
Motivation & Objective
- To address the limitation of deterministic instance embeddings in representing aleatoric uncertainty from ambiguous inputs like occluded or blurry images.
- To develop a method that explicitly models uncertainty in the embedding space by treating embeddings as random variables.
- To improve performance on image matching and classification tasks under uncertainty, particularly for corrupted or ambiguous inputs.
- To provide a reliable, per-example uncertainty measure that correlates with downstream task performance.
Proposed method
- Hedged Instance Embedding (HIB) models each image embedding as a random variable Z ~ p(z|x), with uncertainty represented as a probability distribution over the latent space.
- The method uses the variational information bottleneck (VIB) principle to train the model, enabling end-to-end learning of stochastic embeddings.
- A learnable-margin soft contrastive loss is employed, which uses a sigmoid-based similarity measure to calibrate Euclidean distances into probabilistic match scores.
- The embedding distribution is modeled as a mixture of Gaussians (e.g., two components for ambiguous digit pairs), allowing the model to 'hedge its bets' across multiple plausible clusters.
- Uncertainty is quantified via entropy of the embedding distribution, with higher entropy indicating greater ambiguity in the input.
- The model is trained on a novel N-digit MNIST dataset designed to simulate ambiguous inputs with multiple digits in a single image.
Experimental results
Research questions
- RQ1Can stochastic embeddings that spread probability mass across multiple latent space regions improve performance on ambiguous image inputs compared to deterministic embeddings?
- RQ2Does the proposed uncertainty measure derived from the embedding distribution correlate with downstream task performance on both clean and corrupted inputs?
- RQ3How does the HIB method perform on image matching and classification tasks when inputs are occluded or degraded?
- RQ4Can the uncertainty measure distinguish between ambiguous inputs and novel, out-of-distribution examples?
Key findings
- HIB improves mean average precision (mAP) and KNN classification accuracy on corrupted inputs, with mAP increasing by up to 0.15 in some settings compared to point embeddings.
- The uncertainty measure η(x) computed from the embedding distribution shows strong negative correlation with performance—higher uncertainty corresponds to lower accuracy, as expected.
- Kendall’s tau correlation between uncertainty and performance reaches up to 0.67 for mAP and 0.55 for KNN on corrupted inputs, indicating a robust monotonic relationship.
- The uncertainty measure outperforms distance-to-nearest-neighbor as a proxy for uncertainty in KNN classification, especially on clean images with no visible corruption.
- HIB’s uncertainty measure correlates with performance even on clean, uncorrupted images, suggesting it captures intrinsic ambiguity beyond just input degradation.
- Preliminary results indicate that η(x) correlates well with occlusion-induced uncertainty but less effectively with epistemic uncertainty from novel, unseen classes, suggesting a need for future modeling of open-world uncertainty.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.