Tracing Copied Pixels and Regularizing Patch Affinity in Copy Detection
Organizations: Ant Group, China
Abstract
Image Copy Detection (ICD) aims to identify manipulated content between image pairs through robust feature representation learning. While self-supervised learning (SSL) has advanced ICD systems, existing view-level contrastive methods struggle with sophisticated edits due to insufficient fine-grained correspondence learning. We address this limitation by exploiting the inherent geometric traceability in edited content through two key innovations. First, we propose PixTrace - a pixel coordinate tracking module that maintains explicit spatial mappings across editing transformations. Second, we introduce CopyNCE, a geometrically-guided contrastive loss that regularizes patch affinity using overlap ratios derived from PixTrace's verified mappings. Our method bridges pixel-level traceability with patch-level similarity learning, suppressing supervision noise in SSL training. Extensive experiments demonstrate not only state-of-the-art performance (88.7% uAP / 83.9% RP90 for matcher, 72.6% uAP / 68.4% RP90 for descriptor on DISC21 dataset) but also better interpretability over existing methods.
Figures & tables
| Matcher | Settings | Metrics | |||
| Arch | Res. | Local | AP | RP90 | |
| Separate‡ [ 24 ] | ViT-S | ✗ | 75.4 | 68.7 | |
| ViT-B | ✗ | 78.4 | 72.9 | ||
| ViT-L | ✗ | 84.7 | 80.3 | ||
| CopyNCE | ViT-S | ✗ | 83.5 | 75.4 | |
| CopyNCE | ViT-S | ✗ | 85.8 | 79.9 | |
| Method | Parameter | AP | Parameter | AP |
| CopyNCE | default | 70.5 | 68.9 | |
| 70.5 | 69.9 | |||
| 67.9 | 69.7 | |||
| 70.0 | 70.4 | |||
| 70.5 | 70.1 | |||
| w/o NCE | 68.6 | layer=10 | 70.3 |
| Method | Parameter | AP | Parameter | AP |
| CopyNCE | default | 83.5 | 70.9 | |
| 81.7 | 83.5 | |||
| 82.5 | 82.6 | |||
| 83.5 | 82.9 | |||
| 83.0 | 82.6 | |||
| enc-6-fus-6 | 84.0 | enc-10-fus-2 | 79.4 |
| Descriptor Track | Matching Track | ||||
| Team | AP | RP90 | Team | AP | RP90 |
| CopyNCE† | 65.8 | 61.0 | CopyNCE† | 85.6 | 80.0 |
| lyakaap† | 63.5 | 55.4 | CopyNCE | 84.6 | 78.2 |
| CopyNCE | 60.9 | 56.7 | VisionForce | 83.3 | 73.1 |
| S-square | 59.1 | 50.9 | separate† | 82.9 | 79.2 |
| visionForce | 57.9 | 48.9 | imgFp† | 76.8 | 67.2 |
| Method | Model Arch. | AP | RP90 |
| CopyNCE | ViT-B+ViT-S | 72.5 | 36.8 |
| Strong ASL | Multi | 64.1 | - |
| D 2 LV ASL | Multi | 61.3 | - |
| Training Set | Reference Set | Dev Set Part I | Dev Set Part II | Test Set | |||||
| Data | Labels | Data | Labels | Data | Labels | ||||
| Scale | 1,000,000 | 1,000,000 | 25,000 | 25,000 | 50,000 | ||||
| Accessible | Phase 1 | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ | ✗ | ✗ |
| Phase 2 | ✓ | ✓ | ✓ | ✓ | ✓ | ✗ | ✓ | ✗ | |
| After | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | |
| Method | AP | R@1 | Method | AP | R@1 |
| SSCD [ 36 ] | 14.22 | 20.24 | ViT-S | 27.07 | 34.68 |
| S-square [ 33 ] | 14.51 | 21.05 | ViT-B | 31.66 | 37.78 |
| Lyakaap [ 59 ] | 13.80 | 18.02 | ViT-S † | 25.38 | 31.57 |
| AnyPat. Base. [ 48 ] | 16.18 | 20.54 | ViT-B † | 28.05 | 34.36 |
| SSCD SN [ 36 ] | ViT-S SN | ViT-B SN | |
| Descriptor AP | 64.99 | 70.59 | 71.57 |
| Matching AP | 46.92 | 51.32 | 50.05 |
| Test Set | Model | Resolution | Metrics | ||
| mAP | AP | RP90 | |||
| Dev II | ViT-S | 90.6 | 83.5 | 75.4 | |
| Dev II | ViT-B | 90.5 | 83.5 | 76.7 | |
| Dev II | ViT-S | 91.3 | 85.8 | 79.9 | |
| Dev II | ViT-B | 91.3 | 85.7 | 80.1 | |
| Test Set | Model | Resolution | Metrics | ||
| mAP | AP | RP90 | |||
| Dev II | ViT-S | 76.5 | 70.5 | 63.6 | |
| Dev II | ViT-B | 77.9 | 72.3 | 65.2 | |
| Dev II | ViT-S | 75.0 | 69.8 | 63.9 | |
| Dev II | ViT-B | 76.2 | 71.3 | 66.0 | |
| Settings | Parameters | ||
| Matching | Descriptor | ||
| Resolution | / | ||
| Input | Augmentation | color jitter, random grayscale, random blur, overlay text, overlay emoji, random flipping, affine, perspective, random resized-crop, overlay image, random erasing, etc. | |
| Positive Rate | 0.3 | - | |
| Hard Negative Mining | p=0.5, k -NN ( k =128) | p=1.0, k -NN ( k =8) | |
| Model | Arch | ViT-S/16 ViT-B/16 [ 9 ] 8 Encoder Layers + 4 Fusion Layers | ViT-S/16 ViT-B/16 [ 9 ] |
| Settings | Parameters | ||
| Matching | Descriptor | ||
| Resolution | / | ||
| Input | Augmentation | resize | |
| Positive Rate | 0.3 | - | |
| Hard Negative Mining | Off | Off | |
| Model | Linear Head | - | 256 dims |
| Encoder | Fusion | Extensive | Task | |
| Descriptor | Att. Block | Cosine | 1 v.s. N | Coarse Retrieval |
| Matcher | Att. Block | Att. Block | 1 v.s. 1 | Fine Matching |
| Method | Parameter | Metrics | ||
| mAP | AP | RP90 | ||
| Baseline | 76.4 | 68.9 | 60.6 | |
| Baseline | w/o GHNM | 77.1 | 57.7 | 30.0 |
| Step | Model | Tricks | # Candidates | Recall | |||
| Type | Method | Backbone | Resolution | ||||
| 0 | - | - | 1,000,000 | 100.0% | |||
| 1 | Descriptor | Baseline | ViT-B | LCE | 400 | 94.3% | |
| CopyNCE | |||||||
| 2 | Matcher | CopyNCE | ViT-S | LCE | 10 | 93.4% | |
| Step | Model | Tricks | # Candidates | Recall | ||||
| Type | Method | Pre-train | Backbone | Resolution | ||||
| 0 | - | - | 1,000,000 | 100.0% | ||||
| 1 | Descriptor | Finetune | Baseline | ViT-B | LCE | 400 | 91.3% | |
| CopyNCE | ||||||||
| 2 | Matcher | Finetune | CopyNCE | ViT-S | LCE | 10 | 90.1% | |
Image Forgery Detection
Image Forgery Detection studies how to identify manipulated or synthetic images and locate the visual evidence of tampering.
See all 126 papers