Skip to main content
QUICK REVIEW

[Paper Review] Understanding Image Retrieval Re-Ranking: A Graph Neural Network Perspective

Xuanmeng Zhang, Minyue Jiang|arXiv (Cornell University)|Dec 14, 2020
Advanced Image and Video Retrieval TechniquesComputer Science45 references25 citations
TL;DR

This paper proposes a graph neural network (GNN)-based re-ranking method that reformulates image retrieval re-ranking as a high-parallelism GNN process, significantly accelerating computation while maintaining or improving retrieval accuracy. By modeling the k-nearest neighbor graph and leveraging GNN message passing, the method reduces re-ranking time from 89.2 seconds to 9.4ms on a single GPU, enabling real-time post-processing across five benchmarks including Market-1501, VeRi-776, and University-1652.

ABSTRACT

The re-ranking approach leverages high-confidence retrieved samples to refine retrieval results, which have been widely adopted as a post-processing tool for image retrieval tasks. However, we notice one main flaw of re-ranking, i.e., high computational complexity, which leads to an unaffordable time cost for real-world applications. In this paper, we revisit re-ranking and demonstrate that re-ranking can be reformulated as a high-parallelism Graph Neural Network (GNN) function. In particular, we divide the conventional re-ranking process into two phases, i.e., retrieving high-quality gallery samples and updating features. We argue that the first phase equals building the k-nearest neighbor graph, while the second phase can be viewed as spreading the message within the graph. In practice, GNN only needs to concern vertices with the connected edges. Since the graph is sparse, we can efficiently update the vertex features. On the Market-1501 dataset, we accelerate the re-ranking processing from 89.2s to 9.4ms with one K40m GPU, facilitating the real-time post-processing. Similarly, we observe that our method achieves comparable or even better retrieval results on the other four image retrieval benchmarks, i.e., VeRi-776, Oxford-5k, Paris-6k and University-1652, with limited time cost. Our code is publicly available.

Motivation & Objective

  • Address the high computational complexity of neighbor-based re-ranking methods that limits real-world deployment.
  • Reframe re-ranking as a graph neural network (GNN) function to exploit inherent parallelism for efficient inference.
  • Enable real-time post-processing in image retrieval by leveraging GNN’s sparse graph computation and GPU acceleration.
  • Maintain or improve retrieval performance across diverse benchmarks while drastically reducing time cost.

Proposed method

  • Construct a k-nearest neighbor (k-NN) graph from feature embeddings to model topological relationships among images.
  • Formulate the re-ranking process as a two-phase GNN operation: (1) graph construction via k-NN, and (2) feature propagation via message passing.
  • Apply a two-layer GNN to aggregate neighbor information, where each node updates its feature based on connected neighbors.
  • Leverage the sparsity of the k-NN graph to enable efficient GPU-accelerated inference, updating only connected vertices.
  • Use a GNN-based query expansion mechanism that propagates confidence scores and features across the graph structure.
  • Implement a hardware-friendly, parallel GNN pipeline that avoids sequential operations, enabling sub-10ms inference on GPU.

Experimental results

Research questions

  • RQ1Can re-ranking be reformulated as a graph neural network (GNN) function to improve computational efficiency?
  • RQ2How does GNN-based re-ranking compare to conventional neighbor-based methods in terms of retrieval accuracy and speed?
  • RQ3Can the inherent parallelism of GNNs enable real-time re-ranking on large-scale image retrieval datasets?
  • RQ4Does the GNN-based approach maintain or improve performance while reducing time cost compared to k-reciprocal and SCA methods?

Key findings

  • On Market-1501, the GNN-based method reduces re-ranking time from 89.2 seconds to 9.4ms on a single K40m GPU, achieving a 9,500x speedup.
  • The method improves mAP by 6.39% and Recall@1 by 0.83% on Market-1501, outperforming all baselines including k-reciprocal and SCA.
  • On VeRi-776, the method achieves 88.61% mAP and 96.42% Recall@1, the highest mAP and second-highest Recall@1 among all compared methods.
  • On Oxford-5k and Paris-6k, the method achieves 92.95% mAP and 96.21% mAP respectively, with inference time of only 5.2ms on GPU.
  • On University-1652, the method increases mAP by 10.98%, Recall@1 by 11.81%, and Recall@10 by 5.98%, achieving state-of-the-art performance.
  • The GPU-optimized GNN re-ranking runs in 5.2ms on VeRi-776 and 10.2ms on University-1652, outperforming CPU-based methods like k-reciprocal and SCA by orders of magnitude in speed.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.