MagicMirror: A Large-Scale Dataset and Benchmark for Fine-Grained Artifacts Assessment in Text-to-Image Generation

TL;DR

MagicMirror uses 340K annotated images and GRPO-trained VLM for fine-grained artifact assessment, advancing model defect detection.

cs.CV 🔴 Advanced 2025-09-12 40 views
Jia Wang Jie Hu Xiaoqi Ma Hanghang Ma Yanbing Zeng Xiaoming Wei
ImageGeneration ArtifactEvaluation LargeDataset Vision-LanguageModel ReinforcementLearning

Key Findings

Methodology

The study develops a hierarchical artifact taxonomy, constructs MagicData340K with human annotations, and trains MagicAssessor using Qwen2.5-VL-7B. It employs a novel GRPO-based training with multi-level rewards and class-balanced sampling to address data imbalance and reward hacking. The model integrates multi-modal inputs, learns fine-grained artifact detection, and is validated on MagicBench, enabling automated, detailed evaluation of T2I models.

Key Results

  • MagicAssessor achieves a 70.01% F1-score on artifact detection, outperforming prior methods. It demonstrates robustness across 340K images, especially improving recall for rare classes like hands by over 20%.
  • In MagicBench, even top-tier models like GPT-image-1 show artifact rates above 60%, confirming the persistent challenge of artifact reduction and the framework’s effectiveness.
  • Ablation studies show that multi-layer rewards and balanced sampling improve recall by 15%, validating the design choices for handling class imbalance and reward hacking.

Significance

This work addresses the critical need for fine-grained, scalable artifact evaluation, providing a quantitative tool to enhance model development. Its automated platform sets a new industry standard, enabling reliable quality control in high-stakes applications like medical imaging, design, and content creation, ultimately fostering trust and usability of generative models.

Technical Contribution

The paper introduces a hierarchical artifact taxonomy, the first large-scale annotated dataset (MagicData340K), and a reinforcement learning framework (GRPO with multi-level rewards and balanced sampling) for fine-grained detection. The model architecture based on Qwen2.5-VL-7B supports multi-modal reasoning, setting a new benchmark for artifact assessment accuracy.

Novelty

This is the first comprehensive system integrating hierarchical artifact taxonomy, large-scale human annotations, and reinforcement learning-based optimization for detailed artifact detection in generated images. It surpasses traditional coarse metrics, enabling targeted model improvements.

Limitations

  • Detection accuracy for extremely rare or complex artifacts remains limited, especially in dynamic or high-resolution scenarios.
  • Training requires extensive manual annotation and computational resources, limiting rapid deployment.
  • Current focus is on static images; extending to videos and real-time applications remains future work.

Future Work

Future directions include expanding multi-modal detection capabilities, reducing annotation costs via semi-supervised learning, and deploying the system for real-time quality control in industrial settings. Further research will explore unsupervised approaches and broader artifact categories.

AI Executive Summary

The rapid evolution of text-to-image (T2I) models has revolutionized visual content creation, enabling photorealistic images from textual prompts. Despite these advances, persistent issues such as physical artifacts—anatomical distortions, structural flaws, and unnatural interactions—limit their practical deployment. Traditional evaluation metrics like FID and CLIP scores focus on overall quality and semantic alignment but fail to capture the nuanced types of artifacts that compromise perceptual fidelity.

Addressing this gap, MagicMirror introduces a comprehensive framework for fine-grained artifact assessment. Central to this approach is a hierarchical taxonomy that categorizes artifacts into object anatomy, attributes, and interaction anomalies, further refined into specific subcategories. Guided by this taxonomy, the authors manually annotate MagicData340K, a large-scale dataset of 340,000 images generated from diverse models, with detailed labels. Human annotation combined with GPT-4o’s chain-of-thought reasoning ensures high label accuracy and granularity.

Building on this dataset, the team develops MagicAssessor, a vision-language model based on Qwen2.5-VL-7B. They innovate with a multi-layer reward system and a class-balanced sampling strategy within the Group Relative Policy Optimization (GRPO) framework. This design effectively mitigates issues like class imbalance and reward hacking, leading to a model capable of highly detailed artifact detection. The model achieves a 70.01% F1-score, significantly surpassing prior approaches.

The evaluation platform, MagicBench, automates the comparison of different T2I models, revealing that even top-tier models like GPT-image-1 still produce over 60% images with notable artifacts. This highlights the importance of targeted artifact reduction for real-world applications. The framework’s robustness and scalability promise to influence future research and industry standards.

While the results are promising, challenges remain in detecting rare or complex artifacts, especially in dynamic scenarios. The high computational cost of large-scale annotation and training also limits immediate deployment. Future work aims to extend multi-modal capabilities, reduce annotation reliance, and incorporate real-time assessment, pushing the boundaries of high-fidelity image generation.

Deep Dive

Plain Language Accessible to non-experts

想象你在一家工厂里,生产各种各样的玩具。每个玩具可能会出现不同的问题,比如颜色不对、形状奇怪、拼装不牢。这些问题就像图像中的伪影,有很多不同的类型。有的玩具会缺少部分,有的会变形或颜色不匹配。工厂需要一套方法,能快速找到这些问题,告诉工人哪里出了错。MagicMirror就像这套检测系统,它用大量的标注数据学会了识别各种伪影类型,并用智能算法不断改进检测能力。这样,未来生产的玩具就能更完美,没有瑕疵。它还可以自动检测不同模型生成的图像,帮助开发者改进算法,减少伪影,让生成的图片更真实、更漂亮。

ELI14 Explained like you're 14

想象你在玩一个超级复杂的拼图游戏,每次拼完后都希望没有任何瑕疵,但有时候拼错了,拼图会出现裂缝或变形。现在,假设你有一个聪明的机器人助手,它能帮你检查每一块拼图,告诉你哪里拼错了,哪块需要重新调整。这个机器人学习了成千上万的拼图,知道哪些地方容易出错,哪些瑕疵最常见。它用一种特别的“眼睛”看每一块拼图,快速找到瑕疵,然后告诉你怎么修正。MagicMirror就像这个机器人,它用大量的图片和标注学会了识别各种瑕疵,不仅能找到问题,还能告诉你具体是哪种问题。这样一来,生成的图片就会变得越来越完美,没有奇怪的扭曲或不合理的部分,就像拼图变得越来越完整一样。

Abstract

Text-to-image (T2I) generation has achieved remarkable progress in instruction following and aesthetics. However, a persistent challenge is the prevalence of physical artifacts, such as anatomical and structural flaws, which severely degrade perceptual quality and limit application. Given the diversity and complexity of these artifacts, a systematic and fine-grained evaluation framework is required, which is lacking in current benchmarks. To fill this gap, we introduce MagicMirror, a comprehensive framework for artifacts assessment. We first establish a detailed taxonomy of generated image artifacts. Guided by this taxonomy, we manually annotate MagicData340K, the first human-annotated large-scale dataset of 340K generated images with fine-grained artifact labels. Building on this dataset, we train MagicAssessor, a Vision-Language Model (VLM) that provides detailed assessments and corresponding labels. To overcome challenges like class imbalance and reward hacking, we design a novel data sampling strategy and a multi-level reward system for Group Relative Policy Optimization (GRPO). Finally, we leverage MagicAssessor to construct MagicBench, an automated benchmark for evaluating the image artifacts of current T2I models. Our evaluation with MagicBench reveals that despite their widespread adoption, even top-tier models like GPT-image-1 are consistently plagued by significant artifacts, highlighting artifact reduction as a critical frontier for future T2I development. Project page: https://wj-inf.github.io/MagicMirror-page/.

cs.CV