Cost Savings from Automatic Quality Assessment of Generated Images

Xavier Giró-i-Nieto, Nefeli Andreou, Anqi Liang, Manel Baradad, Francesc Moreno-Noguer, Aleix Martinez

TL;DR

Production pipelines using generative AI often require expensive human review to filter out low-quality images containing artifacts. This paper introduces a mathematical framework to calculate the cost savings of adding an automated pre-filtering stage (AutoQA) and demonstrates a massive 51.61% cost reduction in an e-commerce background inpainting use case using a simple AutoML solution.

What Problem Does This Paper Address?

While modern diffusion and autoregressive models generate stunning images, they frequently introduce subtle or glaring artifacts—such as structural distortions or semantic mismatches. In commercial applications like e-commerce, images must meet strict quality standards before going live.

Currently, companies rely on human annotators (ManualQA) to filter out bad generations. However, because the "pass yield" (the percentage of high-quality images) can be incredibly low in production settings, humans waste massive amounts of time and money reviewing junk images. The authors address this inefficiency by analyzing how automated pre-filtering can optimize the pipeline, filtering out obvious failures before they ever reach a human reviewer.

Vertical pipeline for image generation and quality assessment

Methods

The paper approaches the problem through both a theoretical cost framework and practical experimentation:

  • Mathematical Cost Framework: The authors derive a closed-form formula that calculates total pipeline costs and net savings ($\Delta C$). The equation balances the unit costs of image generation ($c_{Gen}$), automated QA ($c_{AQA}$), and manual QA ($c_{MQA}$) against the precision and yield of the automated filter.
  • AutoQA Implementations: They test two distinct approaches for the automated filter:
  • AutoML (AutoGluon): An ensemble of fine-tuned vision transformers trained directly on a labeled dataset.
  • Vision-Language Models (VLMs): Zero-shot prompting using Amazon Nova Pro 1.0, framed as a Visual Question Answering (VQA) task with custom, fine-grained prompts for specific defect types.

Datasets

To evaluate their approach, the authors curated a specialized dataset:

  • 8,304 images across 195 product types.
  • Images were generated using Stability AI SDXL combined with ControlNet for a background inpainting task (placing a product into a realistic "lifestyle" context).
  • Each image was evaluated by 3 professional photography annotators who categorized defects into six types: Main Object Distortion, Main Object Extension, Misplaced Object, Scale Mismatch, Background Objects Distortion, and Background Structural Distortion.
Types of visual defects in background inpainting

Key Insights and Ideas

  • Human Labor Dominates the Bill: Manual review accounts for a staggering 99.5% of the total pipeline cost. Because human eyes are so expensive compared to compute, an automated filter doesn't need to be perfect to be highly profitable. Even a modest filter with 40% precision can slash costs in half.
  • AutoML Beats Zero-Shot VLMs: Fine-tuned, task-specific AutoML models (AutoGluon) outperformed the massive zero-shot VLM (Nova Pro) in 4 out of 6 defect categories. Off-the-shelf VLMs struggle with fine-grained image quality assessment and often exhibit biases, such as rejecting complex backgrounds unless explicitly instructed otherwise.
  • The Alignment Challenge: Human agreement on image quality is notoriously low (an overall agreement rate of just ~45.8% in this study). Defining what makes an image "good" or "bad" remains a major hurdle for both humans and machines.

Key Results

  • Integrating a single AutoML binary classifier (Single AG) yielded a 51.61% reduction in total cost compared to a manual-only baseline.
  • The AutoQA filter successfully increased the human review pass yield from 18.7% to 40.0% by filtering out obvious failures.
  • For a target of 100 high-quality images, the automated pipeline drastically reduced the human workload, saving hundreds of dollars even when accounting for the extra images that needed to be generated to compensate for false negatives.

Limitations and Future Work

  • Undetected Defects: Neither AutoML nor the VLM was able to reliably detect "Main Object Distortion" (e.g., small black dots on a product surface).
  • VLM Fine-Tuning: Off-the-shelf VLMs are currently too unreliable for zero-shot image quality assessment; future work should explore fine-tuning these models specifically for quality control tasks rather than relying on zero-shot prompting.
  • The Ultimate Goal: The authors note that while pre-filtering is an excellent intermediate step for industry, the long-term goal is to improve generative models or automated QA to the point where human review can be eliminated entirely.

Summary updated

BibTeX
@inproceedings{giroinieto2026cost,
  author = {Xavier Giró-i-Nieto and Nefeli Andreou and Anqi Liang and Manel Baradad and Francesc Moreno-Noguer and Aleix Martinez},
  title = {{Cost Savings from Automatic Quality Assessment of Generated Images}},
  booktitle = {WACVW},
  year = {2026},
  doi = {10.1109/wacvw68408.2026.00115},
}
Figure