Learning Token-based Representation for Image Retrieval

Hui Wu, Min Wang, Wengang Zhou, Yang Hu, Houqiang Li
12/12/2021
eess.IV
transformer-attention

Official code: MCC-WH/Token (70 stars, Python, MIT, last commit 2023-02-11).

Abstract

In image retrieval, deep local features learned in a data-driven manner have been demonstrated effective to improve retrieval performance. To realize efficient retrieval on large image database, some approaches quantize deep local features with a large codebook and match images with aggregated match kernel.

Show full abstract

However, the complexity of these approaches is non-trivial with large memory footprint, which limits their capability to jointly perform feature learning and aggregation. To generate compact global representations while maintaining regional matching capability, we propose a unified framework to jointly learn local feature representation and aggregation. In our framework, we first extract deep local features using CNNs. Then, we design a tokenizer module to aggregate them into a few visual tokens, each corresponding to a specific visual pattern. This helps to remove background noise, and capture more discriminative regions in the image. Next, a refinement block is introduced to enhance the visual tokens with self-attention and cross-attention. Finally, different visual tokens are concatenated to generate a compact global representation. The whole framework is trained end-to-end with image-level labels. Extensive experiments are conducted to evaluate our approach, which outperforms the state-of-the-art methods on the Revisited Oxford and Paris datasets.

View on arXivView PDF

Code Implementations(1)

MCC-WH/TokenOfficial100%
MIT

Official implementation of the AAAI 2022 paper "Learning Token-based Representation for Image Retrieval"

707Python, ShellDec 12, 20213 years agoMIT
aggregatorimage-retrieval

Similar Papers

Cite this paper

@article{wu2021learning,
  title  = {Learning Token-based Representation for Image Retrieval},
  author = {Hui Wu and Min Wang and Wengang Zhou and Yang Hu and Houqiang Li},
  year   = {2021},
  eprint = {2112.06159},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.06159}
}

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/2112.06159.svg)](https://codeofpaper.com/paper/2112.06159)

Discussion