ALADIN: Distilling Fine-grained Alignment Scores for Efficient Image-Text Matching and Retrieval

Nicola Messina, Matteo Stefanini, Marcella Cornia, Lorenzo Baraldi, Fabrizio Falchi +2 more
7/29/2022
cs.CVcs.AIcs.CL

Official code: mesnico/ALADIN (28 stars, MIT, PyTorch, last commit 2023-12-06).

Abstract

Image-text matching is gaining a leading role among tasks involving the joint understanding of vision and language. In literature, this task is often used as a pre-training objective to forge architectures able to jointly deal with images and texts. Nonetheless, it has a direct downstream application: cross-modal retrieval, which consists in finding images related to a given query text or vice-versa. Solving this task is of critical importance in cross-modal search engines. Many recent methods proposed effective solutions to the image-text matching problem, mostly using recent large vision-language (VL) Transformer networks. However, these models are often computationally expensive, especially at inference time. This prevents their adoption in large-scale cross-modal retrieval scenarios, where results should be provided to the user almost instantaneously. In this paper, we propose to fill in the gap between effectiveness and efficiency by proposing an ALign And DIstill Network (ALADIN). ALADIN first produces high-effective scores by aligning at fine-grained level images and texts. Then, it learns a shared embedding space - where an efficient kNN search can be performed - by distilling the relevance scores obtained from the fine-grained alignments. We obtained remarkable results on MS-COCO, showing that our method can compete with state-of-the-art VL Transformers while being almost 90 times faster. The code for reproducing our results is available at https://github.com/mesnico/ALADIN.

View on arXivView PDF

Code Implementations(1)

mesnico/ALADINOfficial100%
PyTorchMIT

Official implementation of the paper "ALADIN: Distilling Fine-grained Alignment Scores for Efficient Image-Text Matching and Retrieval"

287Shell, PythonDec 6, 20212 years agoMIT
computer-visioncross-modalcross-modal-retrievaldeep-learninglanguage-and-vision+2 more

Similar Papers

Cite this paper

@article{messina2022aladin,
  title  = {ALADIN: Distilling Fine-grained Alignment Scores for Efficient Image-Text Matching and Retrieval},
  author = {Nicola Messina and Matteo Stefanini and Marcella Cornia and Lorenzo Baraldi and Fabrizio Falchi and Giuseppe Amato and Rita Cucchiara},
  year   = {2022},
  eprint = {2207.14757},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.14757v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2207.14757.svg)](https://codeofpaper.com/paper/2207.14757)

Discussion