Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Dual-Path Convolutional Image-Text Embeddings with Instance Loss

About

Matching images and sentences demands a fine understanding of both modalities. In this paper, we propose a new system to discriminatively embed the image and text to a shared visual-textual space. In this field, most existing works apply the ranking loss to pull the positive image / text pairs close and push the negative pairs apart from each other. However, directly deploying the ranking loss is hard for network learning, since it starts from the two heterogeneous features to build inter-modal relationship. To address this problem, we propose the instance loss which explicitly considers the intra-modal data distribution. It is based on an unsupervised assumption that each image / text group can be viewed as a class. So the network can learn the fine granularity from every image/text group. The experiment shows that the instance loss offers better weight initialization for the ranking loss, so that more discriminative embeddings can be learned. Besides, existing works usually apply the off-the-shelf features, i.e., word2vec and fixed visual feature. So in a minor contribution, this paper constructs an end-to-end dual-path convolutional network to learn the image and text representations. End-to-end learning allows the system to directly learn from the data and fully utilize the supervision. On two generic retrieval datasets (Flickr30k and MSCOCO), experiments demonstrate that our method yields competitive accuracy compared to state-of-the-art methods. Moreover, in language based person retrieval, we improve the state of the art by a large margin. The code has been made publicly available.

Zhedong Zheng, Liang Zheng, Michael Garrett, Yi Yang, Mingliang Xu, Yi-Dong Shen• 2017

Related benchmarks

TaskDatasetResultRank
Image-to-Text RetrievalFlickr30K 1K (test)
R@155.6
439
Text-to-Image RetrievalFlickr30k (test)
Recall@139.2
423
Text-to-Image RetrievalFlickr30K 1K (test)
R@139.1
375
Image-to-Text RetrievalFlickr30k (test)
R@155.6
370
Image-to-Text RetrievalMS-COCO 5K (test)
R@141.2
299
Text-to-Image RetrievalMSCOCO 5K (test)
R@141.2
286
Text-to-Image RetrievalMS-COCO 5K (test)
R@125.3
223
Image RetrievalFlickr30k (test)
R@139.1
195
Text-based Person SearchCUHK-PEDES (test)
Rank-144.4
142
Text-to-Image RetrievalMSCOCO (1K test)
R@147.1
104
Showing 10 of 40 rows

Other info

Code

Follow for update