Introduction
The rapid advancement of generative AI has initiated a persistent "cat-and-mouse" game between creators and detectors. While contemporary detection tools are proficient at identifying images from known generators (e.g., Stable Diffusion v1.4), they frequently falter when encountering novel models like Sora or DALL-E 3. This failure stems from a fundamental technical challenge: overlapping feature embeddings. Most detectors overfit to specific artifacts or "fingerprints" present in their training data. When presented with a new generator possessing different artifacts, the feature distributions of real and fake images become entangled, leading to high error rates.
MiraGe (Multimodal Discriminative Representation Learning) addresses this by learning generator-invariant features—characteristics that define "fakeness" regardless of the specific AI architecture used.
Methodology
MiraGe enhances the standard CLIP (Contrastive Language-Image Pre-training) architecture through three primary innovations designed to stabilize and separate feature representations.
1. Multimodal Discriminative Learning
Rather than relying solely on a binary classifier, MiraGe employs a supervised contrastive loss ($L_{dis}$). It utilizes text embeddings for "a photo of a Real" and "a photo of a Fake" as semantic anchors. During training, the model is optimized to pull image features toward their corresponding text anchor while pushing different-class features and anchors apart. This grounding in language helps the model learn abstract concepts of synthetic artifacts rather than memorizing pixel-level noise.
2. Deep Multimodal Prompt Learning
To maintain efficiency and prevent "catastrophic forgetting" of the pre-trained CLIP knowledge, MiraGe uses prompt tuning instead of full fine-tuning. Learnable vectors (prompts) are injected into both the vision and text transformer layers. A mapping function couples these prompts, ensuring the vision and language branches remain synchronized throughout the learning process.
3. Memory Bank Mechanism
To enhance the robustness of contrastive learning, a First-In-First-Out (FIFO) memory bank stores embeddings from previous training batches. This provides a diverse pool of positive and negative samples for comparison without the computational overhead of additional encoder passes.
Experimental Results
The authors evaluated MiraGe against several benchmarks, including GenImage (a million-scale dataset), UniversalFakeDetect, and a custom set of emerging models (Sora, FLUX.1, etc.).
Generalization and Performance
MiraGe achieved state-of-the-art (SOTA) results across the board. On the GenImage benchmark, it reached an average accuracy of 92.6%, significantly outperforming baselines like UnivFD (79.4%) and DRCT (89.5%). Notably, when tested on the "unseen" Sora model, MiraGe maintained a 95.7% accuracy, while previous methods often dropped to near-random chance.
Robustness to Image Degradation
In real-world scenarios, images are often blurred, downsampled, or compressed. MiraGe remains highly effective under these conditions, maintaining a 91.9% average accuracy even when subjected to heavy JPEG compression or blurring, which typically erases the subtle artifacts relied upon by other detectors.
Discussion and Limitations
A key insight from the study is the "Realism Paradox": as AI-generated images become more realistic (measured by their CLIP score relative to their prompt), they become exponentially harder to detect. This is evident in the Chameleon dataset, where images are manually refined by AI artists. MiraGe's performance on this dataset dropped to approximately 70%, suggesting that manual human intervention can smooth over the generative artifacts the model relies on.
Conclusion
MiraGe represents a significant step forward in generalizable AI detection. By using text as a stabilizer and employing a push-pull geometric strategy for feature separation, it achieves superior performance on both established and emerging generative models. Future work will likely focus on fine-grained local inconsistencies to address the challenges posed by manually refined synthetic imagery.
Summary updated