Coarse-to-Fine: Learning Compact Discriminative Representation for Single-Stage Image Retrieval

Yunquan Zhu, Xinkai Gao, Bo Ke, Ruizhi Qiao, Xing Sun
2/14/2026

No official code found. Best implementation: bassyess/CFCD (31 stars, MIT, last commit 2023-11-03).

Abstract

Image retrieval targets to find images from a database that are visually similar to the query image. Two-stage methods following retrieve-and-rerank paradigm have achieved excellent performance, but their separate local and global modules are inefficient to real-world applications. To better trade-off retrieval efficiency and accuracy, some approaches fuse global and local feature into a joint representation to perform single-stage image retrieval. However, they are still challenging due to various situations to tackle, e.g., background, occlusion and viewpoint. In this work, we design a Coarse-to-Fine framework to learn Compact Discriminative representation (CFCD) for end-to-end single-stage image retrieval-requiring only image-level labels. Specifically, we first design a novel adaptive softmax-based loss which dynamically tunes its scale and margin within each mini-batch and increases them progressively to strengthen supervision during training and intraclass compactness. Furthermore, we propose a mechanism which attentively selects prominent local descriptors and infuse fine-grained semantic relations into the global representation by a hard negative sampling strategy to optimize inter-class distinctiveness at a global scale. Extensive experimental results have demonstrated the effectiveness of our method, which achieves state-of-the-art single-stage image retrieval performance on benchmarks such as Revisited Oxford and Revisited Paris. Code is available at https://github.com/bassyess/CFCD.

View on arXivView PDF

Code Implementations(1)

bassyess/CFCDCommunity100%
MIT

The Official Implementation of CFCD. Coarse-to-Fine: Learning Compact Discriminative Representation for Single-Stage Image Retrieval

313Shell, PythonJul 28, 20232 years agoMIT

Similar Papers

Cite this paper

@article{zhu2026coarsetofine,
  title  = {Coarse-to-Fine: Learning Compact Discriminative Representation for Single-Stage Image Retrieval},
  author = {Yunquan Zhu and Xinkai Gao and Bo Ke and Ruizhi Qiao and Xing Sun},
  year   = {2026},
  eprint = {2308.04008},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2308.04008},
  journal = {ICCV 2023 2023}
}

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

Discussion