Abstract
Deep Compositional Metric Learning (DCML) addresses the fundamental trade-off between discriminativeness and generalization in deep metric learning. By introducing learnable "compositors" that adaptively combine sub-embeddings for diverse subtasks, DCML captures rich intraclass variations without compromising the primary objective of class separation. Evaluated on standard benchmarks like CUB-200-2011 and Cars196, DCML achieves state-of-the-art performance with zero additional inference overhead.
Introduction
Deep Metric Learning (DML) aims to map images into an embedding space where similar items are close together and dissimilar items are far apart. This is the backbone of tasks like face recognition and image retrieval. However, there is a fundamental tension between Discriminativeness (separating classes by suppressing intraclass variations) and Generalization (understanding these variations to handle unseen categories).
Existing ensemble methods often impose contradictory constraints on embeddings, weakening the primary metric. DCML asks: How can we improve generalization without sacrificing the ability to discriminate between classes?
Methodology
The authors introduce the Deep Compositional Metric Learning (DCML) framework. Instead of forcing sub-embeddings to solve subtasks directly, they introduce an intermediate layer of Compositors.
- The Ensemble: The network produces $K$ different sub-embeddings for a single image.
- The Compositors: A set of $M$ learnable modules that act as "relays." Each compositor looks at all sub-embeddings and assigns them weights and signs to create a "composite" embedding.
- The Subtasks: Subtasks (like identifying specific attributes or clustering) are performed on these composites, not the original sub-embeddings. This "shields" the sub-embeddings from direct, potentially harmful gradients.
- Self-Reinforced Loss ($J_{reinf}$): This objective encourages each compositor to specialize in different combinations of sub-embeddings, ensuring ensemble diversity.
- Discriminative Loss: The original sub-embeddings are concatenated and trained with a standard discriminative loss (e.g., Margin Loss) to ensure they remain excellent at separating classes.
Experimental Results
The framework was evaluated on three standard benchmarks: CUB-200-2011 (bird species), Cars196 (car models), and Stanford Online Products (SOP). Following a zero-shot protocol, DCML consistently outperformed state-of-the-art (SOTA) methods:
- CUB-200-2011: Achieved a Recall@1 of 68.4%, surpassing previous ensemble methods like D&C (65.9%) and specialized methods like PADS (67.3%).
- Cars196: Reached a Recall@1 of 85.2%, significantly higher than the baseline Triplet-R (76.1%).
- Efficiency: During testing, the model uses concatenated sub-embeddings, providing better accuracy with zero additional computational overhead at inference time compared to standard ensemble methods.
Conclusion
DCML demonstrates that sub-embeddings do not need to explicitly solve subtasks to be useful; they only need to contain the necessary information, which compositors then extract. This "relay" concept prevents contradictory constraints during training. Future directions include integrating self-supervised learning and adapting the scheme for deep hashing.
Summary updated