Contextual Similarity Aggregation with Self-attention for Visual Re-ranking
Jianbo Ouyang, Hui Wu, Min Wang, Wengang Zhou, Houqiang Li
Abstract
In content-based image retrieval, the first-round retrieval result by simple visual feature comparison may be unsatisfactory, which can be refined by visual re-ranking techniques. In image retrieval, it is observed that the contextual similarity among the top-ranked images is an important clue to distinguish the semantic relevance. Inspired by this observation, in this paper, we propose a visual re-ranking method by contextual similarity aggregation with self-attention. In our approach, for each image in the top-K ranking list, we represent it into an affinity feature vector by comparing it with a set of anchor images. Then, the affinity features of the top-K images are refined by aggregating the contextual information with a transformer encoder. Finally, the affinity features are used to recalculate the similarity scores between the query and the top-K images for re-ranking of the latter. To further improve the robustness of our re-ranking model and enhance the performance of our method, a new data augmentation scheme is designed. Since our re-ranking model is not directly involved with the visual feature used in the initial retrieval, it is ready to be applied to retrieval result lists obtained from various retrieval algorithms. We conduct comprehensive experiments on four benchmark datasets to demonstrate the generality and effectiveness of our proposed visual re-ranking method.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Cluster-Aware Similarity Diffusion for Instance Retrieval cites Contextually Affinitive Neighborhood Refinery for Deep Clustering
- Learnable Pillar-based Re-ranking for Image-Text Retrieval cites Learning With Average Precision: Training Image Retrieval With a Listwise Loss
- Locality Preserving Markovian Transition for Instance Retrieval cites Contextually Affinitive Neighborhood Refinery for Deep Clustering
- Locality Preserving Markovian Transition for Instance Retrieval cites Cluster-Aware Similarity Diffusion for Instance Retrieval
Cited by top-tier papers5
- Learnable Pillar-based Re-ranking for Image-Text RetrievalLeigang Qu, Meng Liu, Wenjie Wang, Zhedong Zheng et al.SIGIR 2023 · 23 citations
- Contextually Affinitive Neighborhood Refinery for Deep ClusteringChunlin Yu, Ye Shi, Jingya WangNeurIPS 2023 · 15 citations
- Cluster-Aware Similarity Diffusion for Instance RetrievalJifei Luo, Hantao Yao, Changsheng XuICML 2024 · 1 citation
- LOCORE: Image Re-ranking with Long-Context Sequence ModelingZilin Xiao, Pavel Suma, Ayush Sachdeva, Hao-Jen Wang et al.CVPR 2025
- Locality Preserving Markovian Transition for Instance RetrievalJifei Luo, Wenzheng Wu, Hantao Yao, Lu Yu et al.ICML 2025
Builds on1
Related papers
- EntRAG: Entity-Centric Retrieval-Augmented Generation for Knowledge-based Visual Question AnsweringYiheng Hu, Xiaoyang Wang, Qing Liu, Sherry Xu et al.ICML 2026
- RAGAR: Retrieval Augmented Personalized Image Generation Guided by RecommendationRun Ling, Wenji Wang, Yuting Liu, Guibing Guo et al.AAAI 2026 · 5 citations
- Pix2Key: Controllable Open-Vocabulary Retrieval with Semantic Decomposition and Self-Supervised Visual Dictionary LearningGuoyizhe Wei, Yang Jiao, Nan Xi, Zhishen Huang et al.ICML 2026
- Re-Attention for Visual Question AnsweringWenya Guo, Ying Zhang, Xiaoping Wu, Jufeng Yang et al.AAAI 2020 · 90 citations
- Correlation Verification for Image RetrievalSeongwon Lee, Hongje Seong, Suhyeon Lee, Euntai KimCVPR 2022 · 79 citations
