Efficient Object Embedding for Spliced Image Retrieval

Bor-Chun Chen, Zuxuan Wu, Larry S. Davis, Ser-Nam Lim

Abstract

Detecting spliced images is one of the emerging challenges in computer vision. Unlike prior methods that focus on detecting low-level artifacts generated during the manipulation process, we use an image retrieval approach to tackle this problem. When given a spliced query image, our goal is to retrieve the original image from a database of authentic images. To achieve this goal, we propose representing an image by its constituent objects based on the intuition that the finest granularity of manipulations is oftentimes at the object-level. We introduce a framework, object embeddings for spliced image retrieval (OE-SIR), that utilizes modern object detectors to localize object regions. Each region is then embedded and collectively used to represent the image. Further, we propose a student-teacher training paradigm for learning discriminative embeddings within object regions to avoid expensive multiple forward passes. Detailed analysis of the efficacy of different feature embedding models is also provided in this study. Extensive experimental results show that the OE-SIR achieves state-of-the-art performance in spliced image retrieval.

Introduction: Beyond Pixel-Level Forensics

Traditional image forensics has long been a cat-and-mouse game, primarily focusing on detecting low-level "fingerprints" such as inconsistent noise patterns or JPEG compression artifacts. However, these signals are fragile; they are easily erased by common operations like resizing, social media compression, or aggressive filtering.

Figure 1: A standard image of a landmark, representing a potential source object for splicing.

This paper proposes a paradigm shift: treating image forensics as a Spliced Image Retrieval (SIR) task. Since splicing typically involves moving an object from one image into another, the goal is to find the "parent" images in a large database. The core challenge lies in the fact that a spliced image contains a mix of authentic and manipulated regions, and the background of the source image might differ significantly from the final composition. This makes traditional global image retrieval—which considers the entire scene—largely ineffective.

The OE-SIR Framework

The proposed Object Embeddings for Spliced Image Retrieval (OE-SIR) framework addresses these challenges by representing images as collections of object-level embeddings. The architecture is built on three pillars:

  1. Object-Level Representation: Instead of a single global vector, the system employs an object detector (e.g., Faster R-CNN) to identify regions of interest. Each region is converted into a $d$-dimensional embedding. Retrieval is performed by calculating the minimum distance between any pair of object embeddings in the query and the database.
  2. The Feature Dilemma: A key finding of this research is the trade-off between localization and discrimination. Features optimized for object detection are excellent for finding boundaries but poor at distinguishing specific instances for retrieval. Conversely, standard classification models (like ResNet50) offer high discriminative power but lack spatial awareness of object boundaries.
  3. Knowledge Distillation: To bridge this gap efficiently, the authors introduce a student-teacher model. A pre-trained classification model acts as the Teacher, providing high-quality discriminative features. A lightweight Student branch is attached to the object detector's backbone and trained to mimic the teacher's feature maps using Mean Squared Error (MSE) loss. This allows the system to learn retrieval-grade features without the overhead of multiple heavy network passes.
Figure 4: The same object in a wider context and different scale, highlighting why global scene descriptors often fail where object-level embeddings succeed.

Experimental Evaluation

The OE-SIR framework was evaluated across several benchmarks, including synthetic datasets like COCO-Fake and "in-the-wild" collections like the Photoshop Image Retrieval (PIR) dataset.

Key Results

  • Retrieval Performance: On the COCO-Fake dataset, OE-SIR achieved a 70.7% Recall@1, nearly doubling the performance of global retrieval methods like R-MAC (37.9%). On the challenging PIR dataset, it reached 58.6% R@1, outperforming the best baseline by nearly 9%.
  • Localization Accuracy: Beyond retrieval, the system excels at localizing the spliced region once the source is found. On the COVERAGE dataset, it achieved a 0.721 Matthews Correlation Coefficient (MCC), significantly surpassing previous state-of-the-art methods like GSR-Net (0.439).
  • Efficiency: The distilled student model (S3) achieved approximately 93.5% of the teacher's performance while requiring only one-third of the FLOPs, demonstrating its suitability for large-scale applications.

Conclusion and Future Directions

The OE-SIR approach demonstrates that decoupling feature learning from localization is essential for effective spliced image retrieval. By focusing on objects rather than global scenes, the model becomes robust to background clutter and common image manipulations.

While highly effective, the system's performance is currently bounded by the object detector's ability to propose relevant regions. Future work may explore self-supervised learning to further refine object embeddings and address the scaling challenges of pairwise object comparisons in massive databases.

Summary updated

BibTeX
@inproceedings{chen2021efficient,
  author = {Bor-Chun Chen and Zuxuan Wu and Larry S. Davis and Ser-Nam Lim},
  title = {{Efficient Object Embedding for Spliced Image Retrieval}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  url = {https://openreview.net/forum?id=_-G8taLEFFD},
}
Figure