[Paper Review] Contrastive Learning with Large Memory Bank and Negative Embedding Subtraction for Accurate Copy Detection
This paper proposes a contrastive learning framework with a large memory bank and negative embedding subtraction for accurate image copy detection. By training EfficientNetV2 with progressive resolution and hard data augmentation, and applying a novel post-processing step that subtracts similar negative embeddings, the method achieves state-of-the-art performance, winning 1st place in the Facebook AI Image Similarity Challenge: Descriptor Track with a µAP of 0.7743 and Recall@P90 of 0.6892.
Copy detection, which is a task to determine whether an image is a modified copy of any image in a database, is an unsolved problem. Thus, we addressed copy detection by training convolutional neural networks (CNNs) with contrastive learning. Training with a large memory-bank and hard data augmentation enables the CNNs to obtain more discriminative representation. Our proposed negative embedding subtraction further boosts the copy detection accuracy. Using our methods, we achieved 1st place in the Facebook AI Image Similarity Challenge: Descriptor Track. Our code is publicly available here: \url{https://github.com/lyakaap/ISC21-Descriptor-Track-1st}
Motivation & Objective
- To address the challenge of detecting modified copies of images in large databases, a critical problem in content integrity and plagiarism detection.
- To improve representation learning for copy detection by leveraging contrastive learning with a large cross-batch memory bank.
- To enhance model generalization and robustness through progressive training with increasingly complex data augmentations.
- To develop a post-processing technique that isolates query embeddings from hard negative samples using vector subtraction.
- To achieve state-of-the-art performance on the challenging DISC21 dataset, as demonstrated in the Facebook AI Image Similarity Challenge.
Proposed method
- Trains an EfficientNetV2 backbone using contrastive learning with a cross-batch memory bank to improve negative sampling diversity and representation discriminability.
- Employs a multi-step progressive training strategy that increases input resolution from 256×256 to 512×512 and progressively incorporates more complex data augmentations.
- Applies a comprehensive data augmentation pipeline—including cropping, rotation, perspective transforms, overlaying text/emoji, and JPEG compression—carefully tuned to mimic real-world image manipulations.
- Uses ground-truth pairs from the public phase-1 set as positive pairs in the final training step, enhancing model learning on hard, manually edited examples.
- Introduces negative embedding subtraction: a post-process that iteratively subtracts the top-k nearest neighbor embeddings from the query descriptor to suppress interference from similar but incorrect negatives.
- Normalizes the final descriptor after subtraction to maintain unit vector magnitude, ensuring compatibility with similarity-based retrieval.
Experimental results
Research questions
- RQ1Can a large memory bank in contrastive learning significantly improve the discriminative power of image embeddings for copy detection?
- RQ2Does progressive training with increasingly complex data augmentations enhance model robustness to real-world image manipulations?
- RQ3Can a simple post-processing technique like negative embedding subtraction substantially improve retrieval performance by isolating query embeddings from hard negative samples?
- RQ4How effective is the use of training-set images as a proxy for hard negative samples when reference-set overlaps are prohibited?
- RQ5To what extent does the proposed method generalize beyond the reference set without overfitting?
Key findings
- The proposed method achieved a µAP of 0.7743 and Recall@P90 of 0.6892 on the private test set of phase-1, significantly outperforming baseline methods.
- The final training step using ground-truth pairs (Trained w/ GT) yielded the largest performance gain, increasing µAP from 0.6435 to 0.7557.
- The negative embedding subtraction post-process alone improved µAP by 0.0188 and Recall@P90 by 0.0488, demonstrating its strong impact.
- Replacing reference images with training-set images in the final training steps degraded performance by only 0.0057 in µAP, indicating robustness and generalization without overfitting.
- The method secured 1st place in the Facebook AI Image Similarity Challenge: Descriptor Track, with a final leaderboard µAP of 0.7743 and Recall@P90 of 0.6892.
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.