FARE: Forensic Acceptance Region Estimation for Catching Bait-and-Switch Image Generators

Kai Yao, Marc JuarezNeurIPS 2026

TL;DR

When AI providers put their image generators behind closed APIs, nothing stops them from passing safety certification with a top-tier model and silently swapping in a cheaper knock-off once deployed. The authors introduce FARE, an auditing tool that learns the invisible forensic "signature" of a certified generator using only its output images. At deployment, FARE can inspect a single image and reliably catch subtle model swaps, version downgrades, or corner-cutting shortcuts.

What Problem Does This Paper Address?

As generative AI moves into high-stakes arenas like healthcare and defense, regulations like the EU AI Act are stepping in to require formal certification. There is just one problem: commercial image generators are almost always black-box APIs. Customers and auditors send a text prompt and get pixels back, with zero visibility into the model weights or server pipeline.

This creates a classic "bait-and-switch" temptation. A provider could pass a rigorous audit with an expensive, high-fidelity model, and then quietly swap it out in production for a quantized, pruned, or older variant to slash compute bills. Watermarking doesn’t solve this—if the provider is the one being audited, they hold the cryptographic keys and can simply stamp their "certified" watermark onto images from a cheap substitute model.

The challenge is output-only integrity auditing: how can an auditor verify that a single image genuinely came from the exact certified generator and pipeline, having trained only on images from that certified model—with no access to weights, natural images, or examples of what the "cheaper" substitute models look like?

Methods

Because you only have examples of the "good" class (the certified generator), this is fundamentally a one-class classification problem. Standard anomaly detectors struggle here because images vary wildly in semantic content (a cat vs. a spaceship), drowning out the microscopic, generator-specific artifacts left behind by upsampling layers or denoising schedules.

FARE (Forensic Acceptance Region Estimation) solves this in two phases—Enrollment and Verification—by combining classic image forensics with clever boundary-tightening tricks:

Figure 1: FARE. Enrollment: using only images from the certified generator, we train a patch verifier in a forensic feature space. Training uses certified patches as negatives and two certified-derived positive sources: (i) near-boundary adversarial positives and (ii) contradiction positives from contract- violating perturbations (then re-tiled into patches). We then calibrate an image-level threshold at target FPR using the same patch tiling and top-k aggregation. Verification: tile the queried image into patches, score anomalies, aggregate via top-k mean, and accept/reject via Eq. (1).
  • Suppressing Content (Standard Forensics): FARE starts with a Bayar–Stamm constrained convolutional layer. By forcing the center weight of a filter to $-1$ and the surrounding weights to sum to $+1$, this layer acts as a learned high-pass filter. It strips away the semantic scene (the cat in the spacesuit) and leaves behind high-frequency residual noise—the generator's intrinsic fingerprint.
  • Patch Tiling & Top-$k$ Scoring: Forensic clues aren't spread evenly across an image (think smooth sky vs. textured fur). FARE chops images into non-overlapping square patches, scores each patch for anomalies, and averages the top-$k$ most suspicious patches. This avoids diluting sparse signals across the whole image while preventing a single noisy patch from triggering a false alarm.
  • Self-Generated "Hard Positives" (Novel Boundary Tightening): If you train a neural network with only one class ("certified" = 0), its decision boundary will be loose and lazy. To shrink-wrap the acceptance region tightly around the certified generator without using outside data, FARE manufactures two types of fake "non-certified" examples (labeled 1) from the certified patches themselves:
  • Near-boundary adversarial positives: Using Projected Gradient Descent (PGD) within a thin mathematical shell around each patch, FARE nudges certified patches in the direction that looks most certified to the current network, then flips their label to "suspicious," forcing a razor-sharp local boundary.
  • Contradiction positives: FARE applies contract-violating image tweaks (slight blur, noise, JPEG compression, resizing) to certified images, teaching the network that pipeline tampering pushes outputs outside the safe zone.

Finally, FARE calibrates its acceptance threshold on a held-out set of certified images to guarantee a strict False Positive Rate (FPR), such as 1%.

Datasets

FARE isn't trained on natural image datasets directly, but rather on 100,000 synthetic outputs sampled from each certified generator (plus 10,000 for calibration and 10,000 for verification). The authors construct swap benchmarks using pre-trained models across several pools:

  • FFHQ-256 Pool: 12 diverse generators (6 GANs, 3 VAEs, 3 diffusion models) trained on human faces (FFHQ), plus StyleGAN2/3 training-configuration variants.
  • CommunityForensics Pool: A diffusion-heavy pool of generators used to test cross-family swaps against Stable Diffusion.
  • Stable Diffusion & DiffusionDB: Checkpoints across Stable Diffusion versions (v1.4, v1.5, v2.0, v2.1, v3.5) prompted using disjoint text splits from DiffusionDB.

Key Insights and Ideas

  • Existing one-class baselines practically flatline at strict audit thresholds. When you cap false alarms at 1% FPR, off-the-shelf methods (like CLIP embeddings + OC-SVM or Deep SVDD) drop to near-zero detection on subtle swaps because they get distracted by image content or have overly loose boundaries.
  • Every piece of FARE carries load. Ablating the high-pass forensic filter causes detection on Stable Diffusion version swaps to plummet from 92.56% down to 8.24%. Removing both synthetic "hard positive" strategies collapses performance to ~1.5%—barely better than a coin flip weighted for 1% FPR.
  • Perceptual constraints trap attackers. If a malicious provider uses white-box PGD to forge FARE's forensic features onto a cheap image, they can fool the detector (77.64% attack success)—but doing so visibly mangles the image. When constrained to keep the image looking clean to humans ($\text{LPIPS} < 0.05$), the attack success rate drops below 0.7%.

Key Results

At a strict 1% FPR on single images:

  • Generator Swaps: FARE catches 99.43% (FFHQ pool) and 99.45% (CommunityForensics) of cross-family swaps. For much subtler within-family swaps, it catches 96.38% of StyleGAN variants and 92.56% of Stable Diffusion version swaps (e.g., swapping SD1.4 for SD1.5).
Single-image swap detection performance comparing FARE against baselines and ablations.
  • Cost-Cutting Variants: When a provider keeps the exact same checkpoint (e.g., SD2.1) and cuts corners, FARE catches aggressive shortcuts easily: 98.27% TPR on INT4 quantization, 98.12% on heavy pruning, and 98.29% when slashing diffusion steps from $20 \to 5$. Milder tweaks (like $20 \to 10$ steps on SD2.1) are tougher, landing at 80.86%.
  • Batch Auditing Recovers Ultra-Low FPR: Tightening false alarms tenfold to 0.1% FPR hurts single-image detection on SD version swaps (dropping to 62.39%). However, simply averaging scores across a tiny batch of 5 images rockets detection back up to 98.27%.

Limitations and Future Work

  • Strict Contracts Only: FARE enforces zero-tolerance contracts. Because it flags any pipeline shift, benign changes—like a provider adding an unannounced JPEG compression step or safety filter—will trip the alarm alongside malicious swaps. Evaluating flexible contracts that tolerate pre-agreed post-processing is left for future work.
  • Subtle Same-Model Tweaks: Mild modifications to the exact same model (like light pruning or INT8 quantization) leave most forensic traces intact, making single-image detection under strict false-alarm budgets inherently difficult.
  • Future Horizons: Beyond looser contracts, the authors point toward combining passive forensics like FARE with cryptographic attestation, testing on live commercial APIs, and extending spatial patch forensics into the temporal world of AI video generation.

Summary updated

BibTeX
@inproceedings{yao2026fare,
  author = {Kai Yao and Marc Juarez},
  title = {{FARE: Forensic Acceptance Region Estimation for Catching Bait-and-Switch Image Generators}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=biz1Z9lOtc},
}
Figure