[Paper Review] Attention-Aware Generalized Mean Pooling for Image Retrieval
This paper proposes Attention-aware Generalized Mean (AGeM) pooling, which integrates a soft attention mechanism into ResNet-101 to enhance feature relevance before applying differentiable GeM pooling. The method achieves state-of-the-art performance on ROxford5k and RParis6k benchmarks, outperforming prior CNN-based methods under the 'Hard' evaluation protocol with mAP of 79.4% and 82.1% respectively.
It has been shown that image descriptors extracted by convolutional neural networks (CNNs) achieve remarkable results for retrieval problems. In this paper, we apply attention mechanism to CNN, which aims at enhancing more relevant features that correspond to important keypoints in the input image. The generated attention-aware features are then aggregated by the previous state-of-the-art generalized mean (GeM) pooling followed by normalization to produce a compact global descriptor, which can be efficiently compared to other image descriptors by the dot product. An extensive comparison of our proposed approach with state-of-the-art methods is performed on the new challenging ROxford5k and RParis6k retrieval benchmarks. Results indicate significant improvement over previous work. In particular, our attention-aware GeM (AGeM) descriptor outperforms state-of-the-art method on ROxford5k under the `Hard' evaluation protocal.
Motivation & Objective
- To improve image retrieval performance by enhancing discriminative features through attention mechanisms in CNNs.
- To address the limitation of off-the-shelf CNN features that lack retrieval-specific optimization.
- To integrate attention with GeM pooling in an end-to-end trainable manner for compact, accurate global descriptors.
- To achieve competitive performance without relying on complex local feature pipelines or spatial verification.
Proposed method
- Uses a two-branch network: a main branch with ResNet-101 and an attention branch with additional layers applied to feature maps from earlier blocks.
- Applies soft attention via residual learning to fuse attention maps with base features, emphasizing relevant regions and keypoints.
- Applies differentiable generalized mean (GeM) pooling with shared parameter p to aggregate attention-aware features into a 2048D descriptor.
- Normalizes the final descriptor using ℓ²-normalization for efficient dot-product comparison.
- Employs query expansion (QE) and database augmentation (DBA) with weighted schemes (α-QE, β-DBA) to further improve mAP.
- Trains the entire network end-to-end with backpropagation, adding only minimal computational cost.
Experimental results
Research questions
- RQ1Can attention mechanisms improve CNN-based image retrieval by focusing on semantically important regions and keypoints?
- RQ2Does integrating attention with GeM pooling yield better global descriptors than standard GeM or pooling baselines?
- RQ3How does the proposed AGeM method compare to state-of-the-art methods that rely on local features and geometric verification?
- RQ4What is the optimal configuration for query expansion and database augmentation when using AGeM descriptors?
Key findings
- The AGeM descriptor achieves an mAP of 79.4% on ROxford5k under the 'Hard' protocol, outperforming the previous state-of-the-art method.
- On RParis6k under the 'Hard' protocol, AGeM achieves 82.1% mAP, surpassing all prior CNN-based methods and matching complex local-feature pipelines.
- The combination of AGeM with β-DBA and α-QE yields 82.1% mAP on RParis6k, demonstrating the effectiveness of weighted post-processing.
- The method achieves superior performance with minimal computational overhead, as the attention branch is lightweight and trainable via backpropagation.
- Even without post-processing, AGeM outperforms the original GeM and DIR methods on ROxford5k, indicating strong intrinsic feature learning.
- The ablation study confirms that α = 0 (i.e., average QE) is optimal when using β-DBA, suggesting that simple averaging suffices for query-side refinement.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.