SynArtifact: Classifying and Alleviating Artifacts in Synthetic Images via Vision-Language Model

Bin Cao, Jianhao Yuan, Yexin Liu, Jian Li, Shuyang Sun, Jing Liu, Bo ZhaoarXiv 2024 · DOI

Abstract

Generative AI models frequently produce images with visual artifacts, such as distorted limbs or illogical lighting, which traditional metrics like FID fail to capture specifically. We present SynArtifact, a framework that leverages Vision-Language Models (VLMs) to identify and correct these glitches. By defining a taxonomy of 13 artifact categories and fine-tuning a VLM on the new SynArtifact-1K dataset, we create a feedback loop for generative models via Reinforcement Learning from AI Feedback (RLAIF). Our approach significantly improves the perceptual realism of generated images, as validated by both automated metrics and human evaluation.

Introduction

While modern generative models produce high-quality visuals, they often fall into the "uncanny valley" by generating physically impossible or distorted features. Current evaluation metrics provide a general sense of image quality but lack the granularity to identify specific structural failures. Human evaluation remains the gold standard but is unscalable. SynArtifact addresses this by teaching an AI to act as a "digital art critic," providing actionable feedback to generative models to eliminate common artifacts.

The SynArtifact Framework

The SynArtifact pipeline consists of three primary stages designed to move from artifact identification to model correction.

The SynArtifact pipeline: (a) Dataset construction, (b) VLM fine-tuning, and (c) Artifact alleviation via RLAIF.
  1. Taxonomy & Dataset Construction: A detailed taxonomy of 13 artifact categories was established to provide a structured way to describe visual failures.
  2. VLM as a Classifier: A Vision-Language Model (specifically LLaVA-v1.5) is fine-tuned to recognize these artifacts. Unlike binary classifiers, this model provides descriptive captions and localized feedback.
  3. Artifact Alleviation via RLAIF: The fine-tuned VLM provides "AI Feedback" to optimize a generative model (e.g., Stable Diffusion) using Denoising Diffusion Policy Optimization (DDPO). The reward function encourages the generator to produce images that the VLM classifies as "artifact-free."

Artifact Taxonomy and Dataset

A core contribution of this work is the SynArtifact-1K dataset, which contains 1,300 text-image pairs annotated with specific artifact labels, descriptions, and spatial coordinates.

The proposed artifact taxonomy for synthetic images, categorizing 13 common visual glitches.

The taxonomy includes categories such as Distorted and Deformated Components, Illegible Letters, and Impractical Luminosity. By using diverse prompt sources (ImageNet, MSCOCO, Midjourney, etc.), the dataset ensures broad coverage of real-world generative failures.

Key Insights and Results

Granularity and Prevalence

Analysis of the SynArtifact-1K dataset reveals that "Distortion" is the most frequent artifact, appearing in over 35% of the annotated glitches. This high granularity allows the VLM to provide much more precise supervision than a single quality score.

Fine-Tuning Strategies

The researchers observed that standard VLMs perform poorly on artifact detection in zero-shot settings. Fine-tuning on the SynArtifact taxonomy improved classification accuracy by 25.66%. Notably, keeping the LLM backbone frozen and only training the vision-language projector prevented overfitting on the relatively small dataset.

Performance Gains

The fine-tuned VLM achieved an F1 score of 52.02% on multi-label classification. More importantly, the RLAIF process led to visible improvements in generated images, such as fixing "melted" limbs and correctly framing subjects. In user studies, images from the alleviated model were consistently preferred for their realism.

Limitations and Future Work

Despite its success, SynArtifact faces limitations in dataset scale and localization precision. Future research will focus on expanding the dataset to tens of thousands of images and utilizing VLMs with stronger visual grounding capabilities to improve the accuracy of artifact bounding boxes.

Summary updated

BibTeX
@misc{cao2024synartifact,
  author = {Bin Cao and Jianhao Yuan and Yexin Liu and Jian Li and Shuyang Sun and Jing Liu and Bo Zhao},
  title = {{SynArtifact: Classifying and Alleviating Artifacts in Synthetic Images via Vision-Language Model}},
  year = {2024},
  eprint = {2402.18068},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.18068},
}
Figure