Do Lessons from Metric Learning Generalize to Image-Caption Retrieval?

Authors
Publication date 2022
Host editors
  • M. Hagen
  • S. Verberne
  • C. Macdonald
  • C. Seifert
  • K. Balog
  • K. Nørvåg
  • V. Setty
Book title Advances in Information Retrieval
Book subtitle 44th European Conference on IR Research, ECIR 2022, Stavanger, Norway, April 10–14, 2022 : proceedings
ISBN
  • 9783030997359
ISBN (electronic)
  • 9783030997366
Series Lecture Notes in Computer Science
Event 44th European Conference on IR Research
Volume | Issue number I
Pages (from-to) 535-551
Publisher Cham: Springer
Organisations
  • Faculty of Science (FNWI) - Informatics Institute (IVI)
Abstract
The triplet loss with semi-hard negatives has become the de facto choice for image-caption retrieval (ICR) methods that are optimized from scratch. Recent progress in metric learning has given rise to new loss functions that outperform the triplet loss on tasks such as image retrieval and representation learning. We ask whether these findings generalize to the setting of ICR by comparing three loss functions on two ICR methods. We answer this question negatively: the triplet loss with semi-hard negative mining still outperforms newly introduced loss functions from metric learning on the ICR task. To gain a better understanding of these outcomes, we introduce an analysis method to compare loss functions by counting how many samples contribute to the gradient w.r.t. the query representation during optimization. We find that loss functions that result in lower evaluation scores on the ICR task, in general, take too many (non-informative) samples into account when computing a gradient w.r.t. the query representation, which results in sub-optimal performance. The triplet loss with semi-hard negatives is shown to outperform the other loss functions, as it only takes one (hard) negative into account when computing the gradient.
Document type Conference contribution
Language English
Published at https://doi.org/10.1007/978-3-030-99736-6_36
Permalink to this page
Back