Deep Feature Aggregation and Image Re-Ranking With Heat Diffusion for Image Retrieval

Shanmin Pang, Jin Ma, Jianru Xue, Jihua Zhu, Vicente Ordonez

TL;DR

This paper introduces a novel approach to image retrieval by modeling deep convolutional features as a heat diffusion system. This allows for more robust feature aggregation, reducing the impact of repetitive "bursty" features, and enables an effective image re-ranking strategy, leading to state-of-the-art performance on benchmark datasets.

What Problem Does This Paper Address?

Image retrieval, the task of finding visually similar images in a large database, has seen significant improvements with the advent of deep convolutional neural networks (CNNs). However, a key challenge remains: deep features extracted from images, especially those with repetitive patterns (like building facades), can be "bursty." This means many identical or very similar features dominate the representation, making it difficult to distinguish between images. Traditional aggregation methods, like simple pooling, can amplify this issue, leading to less discriminative image descriptors. Furthermore, even with good initial retrieval, re-ranking the top results to improve precision is crucial for a better user experience.

Methods

The core innovation of this paper lies in applying the principles of heat diffusion to both feature aggregation and image re-ranking.

  • Deep Feature Aggregation (HeW - Heat Equation Weighting):
    • Concept: Each local deep feature from a CNN is treated as a "heat source" in a system. The "temperature" of other features is then computed based on their similarity to this source, mimicking how heat spreads.
  • Burstiness Mitigation: Bursty features, being similar to many others, will cause a higher system temperature. Distinctive features, being dissimilar, will result in a lower temperature. By enforcing a constant system temperature across all features (through learned weights), the method effectively down-weights bursty features and up-weights distinctive ones. This leads to more discriminative image-level descriptors.
  • Practical Implementation: The authors derive a closed-form solution for computing these temperatures and weights, making the process computationally efficient.
  • Image Re-ranking (HeR - Heat Equation Re-ranking):
    • Concept: Building on the aggregation method, the query image itself is treated as the heat source. The top-ranked images from an initial retrieval are then "heated" by the query.
  • Re-ranking Logic: Images that achieve a higher "temperature" when influenced by the query are considered more relevant and are ranked higher. This method refines the initial search results by considering the global similarity relationships.
  • Efficiency: This re-ranking is applied to a small shortlist of top-ranked images, making it computationally inexpensive.

Datasets

The proposed methods were evaluated on several standard image retrieval benchmarks:

  • Oxford Buildings (Oxford5k): A dataset of 5,062 images with 11 landmarks.
  • Paris (Paris6k): A dataset of 6,392 images of Paris landmarks.
  • INRIA Holidays (Holidays): A dataset of 1,491 images.
  • Flickr100k: Used to create larger datasets (Oxford105k and Paris106k) for evaluating performance at scale.

The authors also mention using a held-out dataset for learning PCA parameters.

Key Insights and Ideas

  • Heat Diffusion as a Metaphor for Feature Importance: The paper ingeniously uses the physical concept of heat diffusion to model feature importance. The idea that "heat" (similarity) spreads more readily among similar features is a powerful intuition for understanding and mitigating burstiness.
  • Unsupervised Approach: Both the feature aggregation and re-ranking methods are unsupervised, meaning they don't require labeled data for training beyond the initial CNN pre-training. This makes them highly practical and adaptable.
  • Unified Framework: The paper presents a cohesive solution that addresses both the feature aggregation and re-ranking stages of image retrieval, demonstrating that these two problems can be tackled effectively within a single conceptual framework.
  • Efficiency of Closed-Form Solutions: The derivation of closed-form solutions for heat diffusion calculations is crucial for making the proposed methods computationally feasible, especially for large-scale retrieval.

Key Results

  • State-of-the-Art Performance: The proposed method (HeW+QE+HeR) consistently achieved state-of-the-art results on the evaluated benchmarks, outperforming previous unsupervised methods.
  • Significant Gains: The feature aggregation method (HeW) provided an improvement of nearly 2% in mAP over a baseline (SumA) at the same dimensionality. The re-ranking method (HeR), when combined with query expansion (QE), further boosted performance by around 3-4%, leading to an overall gain of up to 4% over the baseline.
  • Robustness to Dimensionality Reduction: The HeW method showed greater robustness to dimensionality reduction compared to the baseline, maintaining performance even with fewer dimensions.
  • Computational Efficiency: Despite the novel approach, the methods are computationally efficient. Feature aggregation with siaMAC† features takes about 173ms, and re-ranking a shortlist of 800 images takes less than 30ms.

Limitations and Future Work

  • Computational Cost for Very Large Datasets: While efficient, the O(|V|³) complexity for computing temperatures might still be intensive for extremely large feature sets. The authors suggest parallel processing as a solution.
  • Fine-tuning Impact: The paper notes that fine-tuning CNNs can sometimes lead to slight performance decreases on datasets like Holidays, possibly due to overfitting.
  • Comparison with Costly Methods: While the proposed method achieves competitive results, some state-of-the-art methods use significantly higher dimensional vectors or more complex spatial verification, making direct comparison challenging and potentially less scalable.
  • Future Work: The paper implicitly suggests exploring more sophisticated heat diffusion models or applying the framework to other computer vision tasks. The authors also highlight the compatibility of their method with various CNN architectures, hinting at future work involving different network backbones.

Summary updated

BibTeX
@article{pang2019deep,
  author = {Shanmin Pang and Jin Ma and Jianru Xue and Jihua Zhu and Vicente Ordonez},
  title = {{Deep Feature Aggregation and Image Re-Ranking With Heat Diffusion for Image Retrieval}},
  journal = {IEEE Trans. Multimedia},
  year = {2019},
  url = {https://openreview.net/forum?id=Z2nBCUwjvtc},
}
Figure