Abstract
Universal adversarial perturbations (UAPs) are input-agnostic noise patterns that can fool deep learning models across various data samples. While extensively studied in image classification, their impact on image retrieval systems remains largely unexplored. This paper presents the first attempt to attack image retrieval systems by generating retrieval-against UAPs designed to corrupt feature-space neighborhood relationships. By degrading ranking metrics directly, the proposed method effectively scrambles search results. To handle real-world constraints like varying input sizes and black-box architectures, we introduce a multi-scale random resizing scheme and a ranking distillation strategy. Evaluations on standard benchmarks (Oxford5k, Paris6k) and real-world engines like Google Images demonstrate significant performance degradation, highlighting the practical vulnerability of modern visual search systems.
Introduction: The Shift from Classification to Retrieval
Adversarial attacks have traditionally targeted image classification, where the goal is to flip a single categorical label. However, image retrieval is a more complex task. Instead of discrete labels, retrieval systems map images into a continuous high-dimensional feature space. The system then ranks database images based on their distance to a query image in this space.
Attacking retrieval systems presents unique challenges:
- Ranking Sensitivity: Success is measured by the entire ranking list, not just the top-1 prediction.
- Input Variability: Retrieval systems often process images at multiple resolutions, unlike the fixed-size inputs common in classification.
- Black-box Constraints: Many commercial systems are proprietary, meaning attackers cannot access internal gradients or parameters.
Methodology: Corrupting the Neighborhood
The core objective of the proposed attack is to disrupt the "neighborhood relationships" in the feature space. If a query image's neighbors are changed, the retrieval results become irrelevant.
Pair-wise and List-wise Attacks
The authors utilize two levels of attack strategies. A pair-wise attack uses a triplet-like loss to push similar images apart and pull dissimilar ones closer in the feature space. To be more effective, a list-wise attack is introduced. This targets the ranking metric directly (e.g., NDCG) by approximating its gradient, allowing the perturbation to permute the entire ranking list rather than just individual pairs.
Robustness to Resizing
To ensure the UAP remains effective regardless of how the retrieval system resizes the input, the training process incorporates a multi-scale random resizing layer. This forces the generated noise pattern to be robust across different resolutions.
Ranking Distillation for Black-box Scenarios
When the target system's parameters are "untouchable," the authors employ ranking distillation. By observing the ranking output of a target system for various queries, they train a "distilled" proxy CNN. The UAP is then optimized against this proxy and transferred to the target system. This "coarse-to-fine" strategy allows for effective attacks even without internal model access.
Experimental Evaluation
The method was evaluated on several standard benchmarks, including Oxford5k, Paris6k, and their "Revisited" versions (ROxford5k, RParis6k). Training was conducted on the SfM-120k dataset.
Performance Impact
The results show a dramatic drop in retrieval quality. On the ROxford5k dataset, metrics such as mean Average Precision (mAP) and mean Precision at 10 (mP@10) were reduced by over 50%. For state-of-the-art retrieval models like V-MAC and R-GeM, the performance "dropping rate" reached as high as 68%, indicating that the most accurate models are often the most susceptible to these perturbations.
Real-world Application: Google Images
To test the practical implications, the authors applied their attack to Google Images. By adding the universal perturbation to query images, they successfully manipulated both the retrieved image list and the keywords predicted by the search engine.
As shown in the figure above, a query for a monochrome architectural detail was successfully manipulated to return images of trees. Similarly, a query for the Ashmolean Museum was redirected to return general "palace" images.
Conclusion
This research highlights a significant security vulnerability in modern image retrieval systems. By focusing on feature-space neighborhood relationships rather than simple labels, the proposed universal perturbation attack can effectively blind search engines. The success of the ranking distillation and multi-scale resizing strategies suggests that even sophisticated, black-box commercial systems are at risk. Future work must focus on developing adversarial defense mechanisms specifically tailored for the ranking-based nature of image retrieval.
Summary updated