Deep Randomized Ensembles for Metric Learning

Hong Xuan, Richard Souvenir, Robert Pless

Abstract

Deep Randomized Ensembles for Metric Learning (DREML) addresses the "dimensionality trap" and overfitting in deep metric learning by training an ensemble of models on randomly partitioned "meta-classes." By grouping original labels into diverse subsets, DREML generates a rich, high-dimensional embedding space that generalizes significantly better to unseen categories. On standard benchmarks like CUB-200 and Cars-196, DREML achieves state-of-the-art performance, demonstrating the power of randomized label bagging for robust image retrieval.

Introduction

In deep metric learning, the objective is to map images into a high-dimensional feature space where semantically similar items are clustered together and dissimilar ones are separated. While increasing the dimensionality of these embeddings should theoretically improve performance, it often leads to a "dimensionality trap" where models overfit to specific training classes, failing to generalize to novel categories at test time. Previous ensemble methods, such as boosting, attempted to mitigate this but were often computationally complex and sequential. DREML proposes a simpler, parallelizable approach to building diverse ensembles that scale effectively.

Methodology: Randomized Label Bagging

The core innovation of DREML is randomized label bagging. Instead of training a single model on the full set of fine-grained labels, the authors partition the labels into a smaller number of "meta-classes."

Comparison between standard Proxy Embedding and the proposed Random Ensemble Embedding (DREML) architecture.

The process involves:

  1. Meta-Class Construction: Randomly partitioning $C$ original classes into $D$ meta-classes.
  2. Ensemble Training: Repeating this partition $L$ times to create $L$ independent models. Each model $\phi_i$ is trained to classify images into its unique set of meta-classes.
  3. Embedding Concatenation: The final image representation is the concatenation of the outputs from all $L$ models.

This counter-intuitive grouping—where distinct classes like different car brands might be treated as the same meta-class—forces each network to identify features common across random subsets. Across the entire ensemble, individual "errors" from these groupings cancel out, resulting in a highly diverse and robust feature set.

Experimental Evaluation

The authors evaluated DREML on four standard computer vision benchmarks: CUB-200-2011 (birds), Cars-196 (cars), In-Shop Clothes Retrieval, and PKU VehicleID.

DREML demonstrated significant performance gains over previous state-of-the-art (SOTA) methods. For instance, on CUB-200, Recall@1 improved from 55.3% (the previous best, BIER) to 80.5%. Similarly, on Cars-196, Recall@1 rose from 78.0% to 89.8%. The method proved particularly effective for generalization, as it successfully pushed unseen test images further away from training data in the embedding space, reducing the "crowding" effect that often plagues single-network models.

Discussion and Conclusion

The diversity in DREML stems purely from random label partitioning, acting as a form of "label augmentation." While the method is highly effective, its primary limitation is the computational cost of training and running a large ensemble (typically 48 models). Future work may explore distilling the diversity of these ensembles into a single multi-headed network to maintain performance while reducing inference time.

Overall, DREML provides a robust and simple framework for deep metric learning that significantly advances the state of the art in image retrieval.

Summary updated

BibTeX
@inproceedings{xuan2018deep,
  author = {Hong Xuan and Richard Souvenir and Robert Pless},
  title = {{Deep Randomized Ensembles for Metric Learning}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  doi = {10.1007/978-3-030-01270-0\_44},
}
Figure