Batch Decorrelation for Active Metric Learning

Ritesh Goru, Priyadarshini Kumari, Siddhartha Chaudhuri, Subhasis Chaudhuri

TL;DR

This paper tackles the challenge of efficiently training perceptual distance metrics using active learning, especially when annotators provide information in batches. They introduce a novel "batch decorrelation" method that balances selecting informative triplets with ensuring diversity within a batch, significantly outperforming existing approaches.

What Problem Does This Paper Address?

Training accurate perceptual distance metrics, which capture nuanced similarities between objects (e.g., "this car is more similar to that car than to this truck"), is crucial for many AI tasks. However, directly asking humans to quantify these distances is difficult and error-prone. A more practical approach is to ask for relative comparisons: "Is object A more similar to object B than to object C?" This is known as triplet-based learning.

The problem is that the number of possible triplets grows cubically with the number of objects, making it infeasible to annotate them all. Active learning aims to intelligently select the most informative triplets to annotate. However, standard active learning methods, which work well when selecting one triplet at a time, often perform poorly when selecting multiple triplets in a batch. This is because the most "informative" triplets in a batch can be highly correlated, leading to redundant information and diminishing returns. This paper specifically addresses this "batch effect" in the context of perceptual metric learning.

Methods

The core contribution is a novel batch decorrelation strategy for active metric learning. The approach involves two main steps:

  1. Informativeness Selection: First, they identify a large pool of "informative" triplets using an uncertainty-based heuristic. This heuristic measures how uncertain the current model is about the ordering within a triplet (i.e., when the model predicts the distances between the anchor and the other two objects are very close).
  2. Diversity-based Subsampling (Decorrelation): From this informative pool, they then select a diverse subset of triplets to form the final annotation batch. This is achieved using a farthest-point sampling (FPS) technique, adapted from computer vision. FPS greedily selects triplets that are maximally dissimilar from the already selected ones.

Crucially, the paper decouples the choice of informativeness heuristic from the choice of diversity heuristic. They propose and evaluate several novel measures for triplet diversity, including:

  • Gradient Distance: Based on how triplets affect the model's gradients.
  • Euclidean Distance: Using concatenated object embeddings.
  • Centroidal Distance: Using the average embedding of the triplet's objects.
  • Oriented Distance: Incorporating triplet orientation in the embedding space.

Datasets

The paper evaluates their method on three datasets:

  • Synthetic Data: Generated from a standard normal distribution with a predefined Mahalanobis metric, used to test robustness to noise.
  • Yummly Food Data: A real-world dataset with triplets based on taste similarity, derived from food item features.
  • Haptic Texture Data: A real-world dataset with triplets based on perceptual similarity of haptic textures, derived from surface material signals.

No new benchmarks were introduced; they used existing datasets and adapted existing methods for comparison.

Key Insights and Ideas

  • Batch Correlation is the Enemy: The paper convincingly demonstrates that standard active learning methods degrade significantly when selecting triplets in batches due to high correlation among informative samples.
  • Diversity is as Important as Informativeness: Simply picking the most "uncertain" triplets is insufficient for batch learning. Actively seeking diversity within the informative set is key to efficient learning.
  • Decoupling Heuristics is Powerful: Separating the choice of how to measure informativeness from how to measure diversity allows for greater flexibility and better performance, as different combinations can be explored.
  • Farthest-Point Sampling is Effective for Diversity: Adapting FPS, a well-established technique for geometric sampling, proves to be a robust and effective way to ensure diversity in triplet selection.
  • Perceptual Metrics Need Special Attention: Unlike classification, where metrics are often binary, perceptual metrics require capturing continuous degrees of similarity, making triplet-based learning and its active selection more nuanced.

Key Results

  • The proposed batch decorrelation method consistently outperforms baseline methods (Random sampling, Uncertainty sampling without decorrelation, and adapted BADGE) across all three datasets and various experimental settings (batch sizes, initial pool sizes, noise levels).
  • The performance gains are particularly pronounced with larger batch sizes, where standard methods struggle the most.
  • The method is robust to varying levels of noise in the training data, succumbing only to very high noise rates.
  • Different diversity measures (gradient, Euclidean, centroidal, oriented) show varying degrees of effectiveness, with gradient distance often performing best, but all decorrelated variants generally outperform baselines.

Limitations and Future Work

  • Hyperparameter Tuning: While the method is robust, optimal performance still relies on tuning hyperparameters, such as the oversampling size k and the uncertainty parameter μ.
  • Computational Cost: While FPS is a greedy approximation, it still adds computational overhead compared to simply picking the top-k most informative triplets. The paper notes that the overcomplete set S size being twice the batch size b was found to be sufficient, suggesting potential for optimization.
  • Generalization to Other Tasks: The paper focuses on perceptual metric learning. While they suggest the framework is adaptable, further work could explore its application to other active learning scenarios beyond classification.
  • Exploring More Informativeness Measures: The paper demonstrates decoupling allows for easy integration of other informativeness measures (MOC, EGL), but further research could explore novel informativeness heuristics specifically designed for perceptual metric learning.

Summary updated

BibTeX
@inproceedings{goru2025batch,
  author = {Ritesh Goru and Priyadarshini Kumari and Siddhartha Chaudhuri and Subhasis Chaudhuri},
  title = {{Batch Decorrelation for Active Metric Learning}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=AYSI7AsiQX},
}
Figure