LOCORE: Image Re-Ranking with Long-Context Sequence Modeling

Abstract

We introduce LOCORE, Long-Context Re-ranker, a model that takes as input local descriptors corresponding to an image query and a list of gallery images and outputs similarity scores between the query and each gallery image. This model is used for image retrieval, where typically a first ranking is performed with an efficient similarity measure, and then a shortlist of top-ranked images is re-ranked based on a more fine-grained similarity measure. Compared to existing methods that perform pair-wise similarity estimation with local descriptors or list-wise re-ranking with global descriptors, LOCORE is the first method to perform list-wise re-ranking with local descriptors. To achieve this, we leverage efficient long-context sequence models to effectively capture the dependencies between query and gallery images at the local-descriptor level. During testing, we process long shortlists with a sliding window strategy that is tailored to overcome the context size limitations of sequence models. Our approach achieves superior performance compared with other re-rankers on established image retrieval benchmarks of landmarks (\mathcal R Oxf and \mathcal R Par), products (SOP), fashion items (In-Shop), and bird species (CUB-200) while having comparable latency to the pair-wise local descriptor re-rankers.

Cite

Text

Xiao et al. "LOCORE: Image Re-Ranking with Long-Context Sequence Modeling." Conference on Computer Vision and Pattern Recognition, 2025. doi:10.1109/CVPR52734.2025.00895

Markdown

[Xiao et al. "LOCORE: Image Re-Ranking with Long-Context Sequence Modeling." Conference on Computer Vision and Pattern Recognition, 2025.](https://mlanthology.org/cvpr/2025/xiao2025cvpr-locore/) doi:10.1109/CVPR52734.2025.00895

BibTeX

@inproceedings{xiao2025cvpr-locore,
  title     = {{LOCORE: Image Re-Ranking with Long-Context Sequence Modeling}},
  author    = {Xiao, Zilin and Suma, Pavel and Sachdeva, Ayush and Wang, Hao-Jen and Kordopatis-Zilos, Giorgos and Tolias, Giorgos and Ordonez, Vicente},
  booktitle = {Conference on Computer Vision and Pattern Recognition},
  year      = {2025},
  pages     = {9580-9590},
  doi       = {10.1109/CVPR52734.2025.00895},
  url       = {https://mlanthology.org/cvpr/2025/xiao2025cvpr-locore/}
}