Introduction
Image copy detection is the critical task of identifying whether a query image is a modified version of an image within a massive reference dataset. Unlike standard image retrieval, which focuses on semantic similarity (e.g., finding any "golden retriever"), copy detection requires identifying specific derivatives of a single source image. This task is complicated by two primary factors: the "needle-in-a-haystack" scale of modern datasets containing billions of images, and the infinite variety of transformations—such as emoji overlays, blurring, perspective shifts, and color jittering—that can be applied to a copy.
Researchers from Baidu Research addressed these challenges in the Facebook AI Image Similarity Challenge (ISC2021), securing a third-place finish. Their approach rethinks the standard computer vision pipeline by prioritizing unsupervised pre-training and introducing a novel "descriptor stretching" strategy to stabilize matching scores across diverse queries.
Methodology
The proposed system is built upon a three-pillar framework designed to maximize retrieval accuracy while adhering to the constraints of the competition's descriptor track.
1. Unsupervised Pre-training
A key insight of this work is that standard supervised pre-training (e.g., on ImageNet labels) can be counter-productive for copy detection. In a supervised setting, different instances of the same class are grouped together. In copy detection, however, every image must be treated as its own unique entity. To align the model with this requirement, the authors utilized Barlow Twins, a self-supervised learning method. This approach forces the model to learn features that distinguish individual images rather than broad semantic categories, resulting in a 14% performance improvement over supervised baselines.
2. Training "Bag of Tricks"
The training phase incorporates several architectural and loss-based enhancements to refine the feature descriptors:
- Generalized Mean (GeM) Pooling: A learnable pooling layer that enables the network to focus on salient regions of an image.
- WaveBlock: A specialized module designed to handle noise and improve the model's ability to generalize across unseen augmentations.
- High-Dimension Projector: Features are first projected into a high-dimensional space (8192-dim) to capture intricate details before being compressed back to the required 256-dim descriptor.
- Hybrid Loss: The model is optimized using a combination of Triplet Loss (with hard sample mining) and multiple Cross-Entropy losses to ensure robust feature separation.
3. Descriptor Stretching
In the competition's descriptor track, participants were prohibited from using standard score normalization. To circumvent this, the authors developed Descriptor Stretching. This technique rescales query descriptors based on their similarity to a fixed set of training images. By "stretching" the feature space, the method stabilizes Euclidean distances, making them comparable across different queries and acting as a proxy for score normalization.
Key Results and Ablation Studies
The proposed baseline proved highly effective, ranking 3rd out of 526 participants in the ISC2021 Descriptor Track. Detailed ablation studies were conducted to quantify the impact of each component in the pipeline.
As shown in the results, Descriptor Stretching provided the single largest boost, improving Micro-Average Precision from 0.532 to 0.704—a 17.26% absolute increase. Additionally, incorporating Overlay Detection (using YOLOv5 to crop out memes or frames) and Multi-scale Testing (fusing features from four different resolutions) further pushed the final precision to 0.730.
Conclusion
By shifting from supervised to unsupervised pre-training and implementing a suite of targeted training and testing "tricks," the authors established a powerful baseline for image copy detection. While the "descriptor stretching" strategy was empirically vital, the authors note that its theoretical foundations warrant further investigation. Future work may focus on streamlining the multi-stage pipeline—which currently involves object detection and multi-scale fusion—into a more computationally efficient end-to-end architecture.
Summary updated