ArtifactLens: Hundreds of Labels Are Enough for Artifact Detection with VLMs

James Burgess, Rameen Abdal, Dan Stoddart, Sergey Tulyakov, Serena Yeung-Levy, Kuan-Chieh Wang · DOI

Abstract

Modern image generators produce strikingly realistic images, where only artifacts like distorted hands or warped objects reveal their synthetic origin. Detecting these artifacts is essential: without detection, we cannot benchmark generators or train reward models to improve them. Current detectors fine-tune VLMs on tens of thousands of labeled images, but this is expensive to repeat whenever generators evolve or new artifact types emerge. We show that pretrained VLMs already encode the knowledge needed to detect artifacts - with the right scaffolding, this capability can be unlocked using only a few hundred labeled examples per artifact category. Our system, ArtifactLens, achieves state-of-the-art on five human artifact benchmarks while requiring orders of magnitude less labeled data. The scaffolding consists of a multi-component architecture with in-context learning and text instruction optimization, generalizing to various artifact types and the task of AIGC detection.

The Challenge of Artifact Detection

While modern AI image generators produce stunning visuals, they frequently stumble on "artifacts"—anatomical impossibilities like six-fingered hands, warped faces, or floating limbs. Detecting these errors is crucial for benchmarking new models and training reward systems to improve them.

Examples of common AI-generated artifacts, such as distorted hands and anatomical impossibilities.

The current status quo for detection is to fine-tune Vision-Language Models (VLMs) on massive datasets (30k to 300k labeled images). However, this is a "cat-and-mouse" game: every time a new generator (like Flux or Midjourney v6) is released, the nature of the artifacts changes, rendering old detectors obsolete and requiring a new round of expensive data collection. Meanwhile, "zero-shot" VLMs (asking a model like GPT-4o directly if an image has an error) perform poorly because they are often too cautious or fail to notice small, localized details.

Methods: Scaffolding the VLM

ArtifactLens treats the VLM as a frozen, black-box component and builds a "scaffold" around it to unlock its latent knowledge. The core insight is that pretrained VLMs already "know" what a human hand should look like; they just need better instructions and a closer look at the pixels to overcome their natural "caution" bias.

Comparison of ArtifactLens against zero-shot and fine-tuned VLM approaches, highlighting superior performance with significantly less data.

Key innovations in the ArtifactLens architecture include:

  • Multi-component Architecture: Instead of one general query, the system uses "specialists." It identifies regions of interest (like hands or faces) using an object detector (GroundingDino) and creates zoomed-in crops. Each specialist VLM focuses on one specific error type.
  • Counterfactual In-Context Learning (ICL): Rather than providing random examples of "good" and "bad" images, the system uses pairs of semantically similar images where one has an artifact and the other doesn't. This helps the VLM isolate exactly what constitutes the "error" boundary.
  • Full Spectrum Prompting: VLMs are naturally biased against the "artifact" class, often assuming an image is correct unless the error is glaring. ArtifactLens uses an LLM-based optimizer to generate a pool of prompts ranging from aggressive (high recall) to conservative (high precision), ensuring the final system finds the optimal decision threshold.
  • DSPy Integration: The entire pipeline is implemented using the DSPy framework, allowing for programmatic optimization of the prompts and demonstrations.

Evaluation and Results

The study is the first to perform a multi-benchmark evaluation in this field, combining five major human artifact datasets: SynArtifact, AbHuman, Human Artifact Dataset (HAD), AIGC-HA, and MagicBench.

ArtifactLens (using Gemini-2.5-Pro) achieved an F1 score of 0.82, outperforming the best fine-tuned models (0.76). Remarkably, it achieved these results using 90% less data than fine-tuning approaches. Even with as few as 200 training samples, the performance remained highly competitive at 0.74. Furthermore, unlike fine-tuned models that often fail when tested on a different generator's output, ArtifactLens generalized across all five benchmarks and even worked on non-human artifacts, such as animal anatomy and object morphology, with minimal adjustment.

Conclusion and Future Work

ArtifactLens demonstrates that "scaffolding" a frozen VLM is a more efficient and flexible alternative to massive fine-tuning for artifact detection. While the system currently faces higher inference latency due to multiple specialist calls and cropping steps, its superior data efficiency and generalization capabilities make it a powerful tool for the evolving landscape of AI generation.

Future directions include addressing the inherent subjectivity of artifact labels—where even humans achieve only moderate agreement—and using ArtifactLens as a "judge" in Reinforcement Learning from AI Feedback (RLAIF) to help generative models learn to avoid producing artifacts entirely.

Summary updated

BibTeX
@misc{burgess2026artifactlens,
  author = {James Burgess and Rameen Abdal and Dan Stoddart and Sergey Tulyakov and Serena Yeung-Levy and Kuan-Chieh Wang},
  title = {{ArtifactLens: Hundreds of Labels Are Enough for Artifact Detection with VLMs}},
  year = {2026},
  eprint = {2602.09475},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.09475},
}
Figure