Unsupervised Data Uncertainty Learning in Visual Retrieval Systems

Ahmed Taha, Yi-Ting Chen, Teruhisa Misu, Abhinav Shrivastava, Larry DavisarXiv 2019

TL;DR

This paper introduces a novel unsupervised method to quantify "heteroscedastic uncertainty" in visual retrieval systems. By extending the triplet loss, their approach learns to identify and down-weight noisy or ambiguous data points, leading to more robust and interpretable retrieval models without requiring additional labeled data.

What Problem Does This Paper Address?

Visual retrieval systems, like those used for searching images or videos, often struggle with noisy data. This noise can manifest as low-resolution images, incorrect labels, or ambiguous visual content that makes it difficult for the system to accurately understand and retrieve relevant information. Traditional methods often treat all data points equally, leading to performance degradation and a lack of interpretability. The paper aims to address this by developing a method to automatically identify and account for data uncertainty, specifically "heteroscedastic uncertainty," which varies depending on the input itself. This is crucial for applications where reliability and understanding of system behavior are paramount, such as autonomous navigation.

Methods

The core of the paper's contribution lies in extending the triplet loss function, a common technique in learning embeddings for retrieval tasks. Standard triplet loss aims to pull "anchor" and "positive" samples closer in an embedding space while pushing "anchor" and "negative" samples apart. The authors modify this by introducing a heteroscedastic uncertainty term for each input (anchor, positive, and negative). This term, denoted by $\sigma$, is learned non-parametrically and allows the model to assign a different uncertainty value to each data point.

The proposed loss function effectively becomes a weighted average of the standard triplet loss, where the weights are inversely proportional to the learned uncertainties. This means that data points with high uncertainty (likely noisy or ambiguous) contribute less to the overall loss, effectively down-weighting their influence during training. The model learns these uncertainties as an additional output from the encoder, alongside the main embedding. This approach is unsupervised, meaning it doesn't require explicit labels for uncertainty.

The paper also discusses two specific encoder architectures: one based on ResNet for image retrieval and another using a shallow CNN followed by an LSTM for video retrieval, demonstrating the flexibility of their uncertainty learning framework.

Datasets

The authors evaluate their method on three datasets:

  • DukeMTMC-ReID: A standard benchmark for person re-identification, used to demonstrate the method's ability to identify confusing query images.
  • Clothing1M: A large-scale dataset for fashion item retrieval that contains a significant amount of noisy labels. This dataset is crucial for showcasing the method's effectiveness in handling real-world noise and for data cleaning.
  • Honda Driving Dataset (HDD): Used for evaluating autonomous navigation scenarios, specifically ego-motion action retrieval. This dataset highlights the importance of uncertainty modeling in safety-critical applications.

Key Insights and Ideas

  • Unsupervised Uncertainty for Retrieval: The ability to learn data uncertainty in an unsupervised manner is a significant step towards more robust and interpretable retrieval systems, especially when dealing with large, noisy datasets.
  • Interpreting Ambiguity: The learned uncertainty scores provide a direct measure of how "confusing" a particular input is to the model. This is visualized effectively in the paper, showing how images with ambiguous outfits, multiple people, or challenging viewpoints lead to higher uncertainty.
  • Data Cleaning Potential: By identifying high-uncertainty samples, the method offers a practical way to clean training data or search galleries, leading to improved retrieval performance.
  • Bridging Image and Video Retrieval: The framework is shown to be effective across both image and video domains, demonstrating its general applicability.
  • Negative Correlation between Uncertainty and Precision: A key finding is the negative correlation between query uncertainty and retrieval average precision, suggesting that higher uncertainty in a query image directly leads to poorer retrieval results.

Key Results

  • Performance Improvement: The proposed method achieves competitive performance on standard benchmarks like DukeMTMC-REID, with improvements in stability (smaller standard deviation).
  • Clothing1M Gains: On the noisy Clothing1M dataset, their method shows significant improvements in Mean Average Precision (mAP), especially when used to clean the search gallery. Cleaning 20% of the search database using their uncertainty estimates leads to a substantial performance boost, outperforming random cleaning.
  • Autonomous Navigation: In the HDD dataset, the method shows improved performance on both goal-oriented and stimulus-driven actions, indicating its utility in safety-critical domains.
  • Qualitative Success: Visualizations clearly demonstrate the method's ability to identify confusing images and scenarios, such as those with inter-class similarity (e.g., Sweater vs. Knitwear) or challenging visual conditions in videos.

Limitations and Future Work

  • Bias Against Minority Classes: The paper acknowledges that the proposed formulation can be biased against minority classes in imbalanced datasets. By treating minority class samples as noisy, their contribution is attenuated, leading to performance decreases for these classes. This is reflected in the micro-mAP increasing while macro-mAP decreases.
  • Explaining Video Uncertainty: While the method works for video, explaining the cause of uncertainty in complex video events with multiple agents remains challenging. The authors suggest attention models as a potential extension for grounding uncertainty in video.
  • Data Cleaning Extension: While the paper demonstrates data cleaning on the search gallery, further exploration into using uncertainty for cleaning training labels is suggested.
  • Generalization to Other Losses: The paper mentions that the formulation can be generalized to other ranking losses (e.g., k-tuplets), which could be an area for future research.

Summary updated

BibTeX
@misc{taha2019unsupervised,
  author = {Ahmed Taha and Yi-Ting Chen and Teruhisa Misu and Abhinav Shrivastava and Larry Davis},
  title = {{Unsupervised Data Uncertainty Learning in Visual Retrieval Systems}},
  year = {2019},
  eprint = {1902.02586},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1902.02586},
}
Figure