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

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

8 Aug 2023ICCV 2023 1arXiv:2308.04008archive 2025-07-28

Yunquan Zhu, Xinkai Gao, Bo Ke, Ruizhi Qiao, Xing Sun

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 intra-class 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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2308.04008")

Code

Syntology Ran 16 of 21 code samples harvested from 2 repositories linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · fixture could not drive it; 15 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 9 ran; found in paper text by Syntology: 11 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

bassyess/cfcd officialmentioned in paperpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

21 samples harvested; 16 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · fixture could not drive it
15ran
5unverified

Licence: 11 of the 21 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

cache_url bassyess/CFCD/core/io.py official repository ran fingerprinted MIT (permissive) · f623b3e3625d4e42 · report
complexity_batchnorm2d bassyess/CFCD/core/net.py official repository ran MIT (permissive) · 4136b6e9df422178 · report
complexity_conv2d bassyess/CFCD/core/net.py official repository ran MIT (permissive) · b299737079f619a1 · report
complexity_maxpool2d bassyess/CFCD/core/net.py official repository ran MIT (permissive) · ee4b7c6aef3ebb1f · report
dump_log_data bassyess/CFCD/core/logging.py official repository ran MIT (permissive) · 24756d5881b92c4f · report
float_to_decimal bassyess/CFCD/core/logging.py official repository ran MIT (permissive) · d163ebb8549c1402 · report
get_logger bassyess/CFCD/core/logging.py official repository ran MIT (permissive) · 8e4e129cb77e7f8b · report
time_string bassyess/CFCD/core/meters.py official repository ran fingerprinted MIT (permissive) · 803bcd86e3301891 · report
topk_errors bassyess/CFCD/core/meters.py official repository ran MIT (permissive) · b997b70e1ac2c2f1 · report
download_url bassyess/CFCD/core/io.py official repository unverified MIT (permissive) · e10bd0e3f25f2b57 · report
compute_ap feymanpriv/DOLG-paddle/revisitop/compute.py found in paper text by Syntology ran no licence file found · pointer only · a07ad22c46aa3105 · report
configdataset feymanpriv/DOLG-paddle/revisitop/dataset.py found in paper text by Syntology ran no licence file found · pointer only · ba576e373d900666 · report
global_search feymanpriv/DOLG-paddle/revisitop/example_evaluate.py found in paper text by Syntology ran no licence file found · pointer only · cac699a42dd367b4 · report
normalize feymanpriv/DOLG-paddle/infer.py found in paper text by Syntology ran no licence file found · pointer only · ebcc600b4c421051 · report
process feymanpriv/DOLG-paddle/revisitop/example_evaluate.py found in paper text by Syntology ran no licence file found · pointer only · 959d3177b743555a · report
resize feymanpriv/DOLG-paddle/infer.py found in paper text by Syntology ran no licence file found · pointer only · 192cb22df1633f0e · report
zero_pad feymanpriv/DOLG-paddle/infer.py found in paper text by Syntology ran · fixture could not drive it fingerprinted no licence file found · pointer only · 8e712c383c677282 · report
compute_map feymanpriv/DOLG-paddle/revisitop/compute.py found in paper text by Syntology unverified no licence file found · pointer only · 5ff2df48c3c7db02 · report
config_imname feymanpriv/DOLG-paddle/revisitop/dataset.py found in paper text by Syntology unverified no licence file found · pointer only · 49cf1f4ce52e9613 · report
config_qimname feymanpriv/DOLG-paddle/revisitop/dataset.py found in paper text by Syntology unverified no licence file found · pointer only · 91c5ae2396603107 · report
load_checkpoint feymanpriv/DOLG-paddle/convertor/convert.py found in paper text by Syntology unverified no licence file found · pointer only · 72a59e3adb80fc0b · report

Tasks

Image RetrievalRetrieval

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections