Papers › Dissecting Deep Metric Learning Losses for Image-Text Retrieval

Dissecting Deep Metric Learning Losses for Image-Text Retrieval

21 Oct 2022arXiv:2210.13188archive 2025-07-28

Hong Xuan, Xi Chen

Visual-Semantic Embedding (VSE) is a prevalent approach in image-text retrieval by learning a joint embedding space between the image and language modalities where semantic similarities would be preserved. The triplet loss with hard-negative mining has become the de-facto objective for most VSE methods. Inspired by recent progress in deep metric learning (DML) in the image domain which gives rise to new loss functions that outperform triplet loss, in this paper, we revisit the problem of finding better objectives for VSE in image-text matching. Despite some attempts in designing losses based on gradient movement, most DML losses are defined empirically in the embedding space. Instead of directly applying these loss functions which may lead to sub-optimal gradient updates in model parameters, in this paper we present a novel Gradient-based Objective AnaLysis framework, or \textit{GOAL}, to systematically analyze the combinations and reweighting of the gradients in existing DML functions. With the help of this analysis framework, we further propose a new family of objectives in the gradient space exploring different gradient combinations. In the event that the gradients are not integrable to a valid loss function, we implement our proposed objectives such that they would directly operate in the gradient space instead of on the losses in the embedding space. Comprehensive experiments have demonstrated that our novel objectives have consistently improved performance over baselines across different visual/text features and model frameworks. We also showed the generalizability of the GOAL framework by extending it to other models using triplet family losses including vision-language model with heavy cross-modal interactions and have achieved state-of-the-art results on the image-text retrieval tasks on COCO and Flick30K.

PaperPDFCode

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

Code

littleredxh/vse-gradient officialmentioned in paper report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Cross-Modal RetrievalImage-text RetrievalImage-text matchingLanguage ModellingMetric LearningRetrievalText MatchingText Retrieval

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Cross-Modal Retrieval COCO 2014 VSE-Gradient Image-to-text R@1 81.4 #8 of 36 Archive leaderboard report
Cross-Modal Retrieval COCO 2014 VSE-Gradient Image-to-text R@10 97.9 #8 of 36 Archive leaderboard report
Cross-Modal Retrieval COCO 2014 VSE-Gradient Image-to-text R@5 95.6 #8 of 36 Archive leaderboard report
Cross-Modal Retrieval COCO 2014 VSE-Gradient Text-to-image R@1 63.6 #8 of 36 Archive leaderboard report
Cross-Modal Retrieval COCO 2014 VSE-Gradient Text-to-image R@10 91.5 #8 of 36 Archive leaderboard report
Cross-Modal Retrieval COCO 2014 VSE-Gradient Text-to-image R@5 86.0 #8 of 36 Archive leaderboard report
Cross-Modal Retrieval Flickr30k VSE-Gradient Image-to-text R@1 97.0 #8 of 27 Archive leaderboard report
Cross-Modal Retrieval Flickr30k VSE-Gradient Image-to-text R@10 100 #8 of 27 Archive leaderboard report
Cross-Modal Retrieval Flickr30k VSE-Gradient Image-to-text R@5 99.6 #8 of 27 Archive leaderboard report
Cross-Modal Retrieval Flickr30k VSE-Gradient Text-to-image R@1 86.3 #8 of 27 Archive leaderboard report
Cross-Modal Retrieval Flickr30k VSE-Gradient Text-to-image R@10 99.0 #8 of 27 Archive leaderboard report
Cross-Modal Retrieval Flickr30k VSE-Gradient Text-to-image R@5 97.4 #8 of 27 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Triplet Loss

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections