Skip to main content
QUICK REVIEW

[Paper Review] VisualSparta: Sparse Transformer Fragment-level Matching for Large-scale Text-to-Image Search

Xiaopeng Lu, Tiancheng Zhao|arXiv (Cornell University)|Jan 1, 2021
Multimodal Machine Learning ApplicationsComputer Science11 references6 citations
TL;DR

VisualSparta proposes a sparse Transformer-based model for large-scale text-to-image retrieval that achieves state-of-the-art accuracy and over 391x speedup over standard vector search on 1M-image datasets by leveraging fragment-level matching and efficient inverted index implementation. It enables real-time retrieval on massive datasets while outperforming prior scalable methods on MSCOCO and Flickr30K.

ABSTRACT

Text-to-image retrieval is an essential task in multi-modal information retrieval, i.e. retrieving relevant images from a large and unlabelled image dataset given textual queries. In this paper, we propose VisualSparta, a novel text-to-image retrieval model that shows substantial improvement over existing models on both accuracy and efficiency. We show that VisualSparta is capable of outperforming all previous scalable methods in MSCOCO and Flickr30K. It also shows substantial retrieving speed advantages, i.e. for an index with 1 million images, VisualSparta gets over 391x speed up compared to standard vector search. Experiments show that this speed advantage even gets bigger for larger datasets because VisualSparta can be efficiently implemented as an inverted index. To the best of our knowledge, VisualSparta is the first transformer-based text-to-image retrieval model that can achieve real-time searching for very large dataset, with significant accuracy improvement compared to previous state-of-the-art methods.

Motivation & Objective

  • Address the challenge of efficient and accurate large-scale text-to-image retrieval in unlabelled image datasets.
  • Overcome the computational bottleneck of vector search in massive datasets by enabling real-time retrieval.
  • Improve retrieval accuracy compared to existing scalable methods while maintaining high efficiency.
  • Introduce a novel sparse attention mechanism tailored for fragment-level matching between text and image embeddings.
  • Enable practical deployment of transformer-based models for real-time search in industrial-scale image collections.

Proposed method

  • Employ a sparse Transformer architecture that focuses on matching semantic fragments between text queries and image features instead of full embeddings.
  • Use fragment-level attention to identify and align relevant visual and textual sub-components, improving precision in retrieval.
  • Design the model to be efficiently indexable as an inverted index, enabling fast lookup and retrieval at scale.
  • Leverage sparsity in attention patterns to reduce computational cost while preserving representational capacity.
  • Optimize the retrieval pipeline to support real-time inference on datasets with over 1 million images.
  • Train the model end-to-end on contrastive learning objectives to align text and image representations at the fragment level.

Experimental results

Research questions

  • RQ1Can a sparse Transformer-based model achieve both high accuracy and real-time inference speed in large-scale text-to-image retrieval?
  • RQ2How does fragment-level matching compare to full-embedding matching in terms of retrieval precision and efficiency?
  • RQ3To what extent can sparsity and inverted indexing reduce search latency in large-scale image datasets?
  • RQ4Can a transformer-based model outperform previous state-of-the-art methods in both accuracy and speed on standard benchmarks like MSCOCO and Flickr30K?
  • RQ5What is the scalability of the proposed method as dataset size increases beyond 1 million images?

Key findings

  • VisualSparta achieves state-of-the-art performance on both MSCOCO and Flickr30K benchmarks, outperforming all previous scalable methods in retrieval accuracy.
  • For a 1 million-image index, VisualSparta delivers over 391x speedup compared to standard vector search, with the advantage increasing on larger datasets.
  • The model enables real-time text-to-image retrieval on very large datasets due to its efficient inverted index implementation.
  • The use of fragment-level matching significantly improves alignment between text queries and relevant image regions.
  • The model's performance gains are consistent across different dataset scales, demonstrating strong scalability.
  • VisualSparta is the first transformer-based text-to-image retrieval model to achieve both high accuracy and real-time inference on massive datasets.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.