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

Zilin Xiao, Pavel Šuma, Ayush Sachdeva, Hao-Jen Wang, Giorgos Kordopatis-Zilos +2 more
2/10/2026

No official code found. Best implementation: MrZilinXiao/LongContextReranker (17 stars, last commit 2026-04-23).

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 model. 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}{\text{Oxf}}$ and $\mathcal{R}{\text{Par}}$), products (SOP), fashion items (In-Shop), and bird species (CUB-200) while having comparable latency to the pair-wise local descriptor re-rankers.

View on arXivView PDF

Code Implementations(1)

[CVPR 2025] Official Implementation of LOCORE: Image Re-ranking with Long-Context

171Shell, PythonMar 5, 20256 months ago

Similar Papers

Cite this paper

@article{xiao2026locore,
  title  = {LoCoRe: Image Re-Ranking with Long-Context Sequence Modeling},
  author = {Zilin Xiao and Pavel Šuma and Ayush Sachdeva and Hao-Jen Wang and Giorgos Kordopatis-Zilos and Giorgos Tolias and Vicente Ordóñez},
  year   = {2026},
  eprint = {2503.21772},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2503.21772},
  journal = {CVPR 2025 2025}
}

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

Discussion