Supervised Metric Learning to Rank for Retrieval via Contextual Similarity Optimization
Christopher Liao, Theodoros Tsiligkaridis, Brian Kulis
Abstract
There is extensive interest in metric learning methods for image retrieval. Many metric learning loss functions focus on learning a correct ranking of training samples, but strongly overfit semantically inconsistent labels and require a large amount of data. To address these shortcomings, we propose a new metric learning method, called contextual loss, which optimizes contextual similarity in addition to cosine similarity. Our contextual loss implicitly enforces semantic consistency among neighbors while converging to the correct ranking. We empirically show that the proposed loss is more robust to label noise, and is less prone to overfitting even when a large portion of train data is withheld. Extensive experiments demonstrate that our method achieves a new state-of-the-art across four image retrieval benchmarks and multiple different evaluation settings. Code is available at: https://github.com/Chris210634/metric-learning-using-contextual-similarity
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 8a7b869b-7865-49e2-8822-842d66ef250fCited by top-tier papers4
- Potential Field Based Deep Metric LearningShubhang Bhatnagar, Narendra AhujaCVPR 2025
- Locality Preserving Markovian Transition for Instance RetrievalJifei Luo, Wenzheng Wu, Hantao Yao, Lu Yu et al.ICML 2025
- Robust Similarity Learning with Difference Alignment RegularizationShuo Chen, Gang Niu, Chen Gong, Okan Koc et al.ICLR 2024
- Volume-Aware Distance for Robust Similarity LearningShuo Chen, Chen Gong, Jun Li, Jian YangICML 2025
Builds on15
- Learning With Average Precision: Training Image Retrieval With a Listwise LossJérôme Revaud, Jon Almazán, Rafael S. Rezende, César Roberto de SouzaICCV 2019 · 424 citations
- Vehicle Re-Identification With Viewpoint-Aware Metric LearningRuihang Chu, Yifan Sun, Yadong Li, Zheng Liu et al.ICCV 2019 · 187 citations
- Hyperbolic Vision Transformers: Combining Improvements in Metric LearningAleksandr Ermolov, Leyla Mirvakhabova, Valentin Khrulkov, Nicu Sebe et al.CVPR 2022 · 97 citations
- Learning Intra-Batch Connections for Deep Metric LearningJenny Denise Seidenschwarz, Ismail Elezi, Laura Leal-TaixéICML 2021 · 65 citations
- Hypergraph-Induced Semantic Tuplet Loss for Deep Metric LearningJongin Lim, Sangdoo Yun, Seulki Park, Jin Young ChoiCVPR 2022 · 41 citations
Related papers
- Proxy Anchor Loss for Deep Metric LearningSungyeon Kim, Dongwon Kim, Minsu Cho, Suha KwakCVPR 2020
- Scene Graph Embeddings Using Relative Similarity SupervisionParidhi Maheshwari, Ritwick Chaudhry, Vishwa VinayAAAI 2021 · 17 citations
- HyP2 Loss: Beyond Hypersphere Metric Space for Multi-label Image RetrievalChengyin Xu, Zenghao Chai, Zhengzhuo Xu, Chun Yuan et al.ACM MM 2022 · 30 citations
- Mean Field Theory in Deep Metric LearningTakuya FurusawaICLR 2024 · 2 citations
- Integrating Language Guidance into Vision-based Deep Metric LearningKarsten Roth, Oriol Vinyals, Zeynep AkataCVPR 2022 · 1 citation
