E3: Ensemble of Expert Embedders for Adapting Synthetic Image Detectors to New Generators Using Limited Data

Aref Azizpour, Tai D. Nguyen, Manil Shrestha, Kaidi Xu, Edward Kim, Matthew C. Stamm

Abstract

The Ensemble of Expert Embedders (E3) is a novel continual learning framework designed to detect synthetic images from ever-evolving AI generators. By creating specialized "expert" modules for each new generator and fusing their insights through a Transformer-based network, E3 maintains high detection accuracy without forgetting how to spot older fakes—even when trained on as few as 50 sample images.

Introduction

Synthetic image generation is a fast-moving target. As new architectures like Diffusion models (Stable Diffusion, Midjourney) and advanced GANs emerge, they leave behind unique "forensic traces" or digital fingerprints. Traditional detectors face a "catch-22": they often fail to recognize traces from new models (Generalization Gap), lose the ability to detect old ones when updated (Catastrophic Forgetting), and require massive datasets that aren't available when a new generator is first released (Data Scarcity).

The E3 Framework

The E3 framework moves away from the idea of a single "monolithic" detector. Instead, it uses a modular, three-step approach to adapt to new generators quickly using minimal data.

Overview of the E3 framework showing the ensemble of expert embedders and the fusion network.

1. Expert Embedders ($\phi$)

When a new generator emerges, the system creates a new "Expert." This is achieved by taking a baseline detector and fine-tuning it on a small set of images from the new generator. This expert becomes highly specialized at spotting that specific generator's traces.

2. The Ensemble

Rather than replacing the old model, the new expert is added to a growing library of experts. Crucially, the old experts are frozen, meaning their knowledge is never overwritten, effectively solving the problem of catastrophic forgetting.

3. Expert Knowledge Fusion Network (EKFN)

The EKFN is the "brain" of the operation. When an image is tested, it passes through all experts. Their combined embeddings are fed into a Transformer with a self-attention mechanism.

The Transformer analyzes the sequence of embeddings to determine which expert "recognizes" the image's traces most strongly. Finally, an MLP (Multi-Layer Perceptron) makes the final real-vs-fake decision. This approach allows the system to weigh the opinion of the most relevant expert for any given image.

Experimental Evaluation

The researchers evaluated E3 against a massive range of 19 different generators, including Stable Diffusion (v1.1, 1.4, 2.1), Midjourney, DALL-E 2, and various specialized GANs. To test robustness, training data for new generators was limited to 600 images, and as few as 50 in ablation studies.

Key Results

  • Top-Tier Accuracy: When adapting to a single new generator, E3 achieved an average AUC of 0.99, significantly outperforming standard fine-tuning and other continual learning methods.
  • Sequential Resilience: After adapting to 19 generators in a row, E3 maintained an average AUC of 0.97, whereas competing methods saw significant performance degradation.
  • Low-Data Performance: Even with only 50 training images, E3 maintained an AUC of 0.94, outperforming methods that required 10 times more data.
  • Architecture Agnostic: The framework worked effectively across various underlying "backbones" like ResNet, DenseNet, or MISLnet.

Discussion and Future Work

E3 demonstrates that specialization can be more effective than generalization in the face of evolving synthetic media. By allowing experts to focus on unique nuances, the system achieves high efficiency in growth. While the model size grows linearly with each new generator, the update process remains computationally efficient as most parameters are frozen. Future work may explore consolidating experts with similar forensic traces to manage ensemble size over the long term.

Summary updated

BibTeX
@inproceedings{azizpour2024e,
  author = {Aref Azizpour and Tai D. Nguyen and Manil Shrestha and Kaidi Xu and Edward Kim and Matthew C. Stamm},
  title = {{E3: Ensemble of Expert Embedders for Adapting Synthetic Image Detectors to New Generators Using Limited Data}},
  booktitle = {Workshops @ CVPR},
  year = {2024},
}
Figure