Semantic Object Accuracy for Generative Text-to-Image Synthesis

Tobias Hinz, Stefan Heinrich, Stefan Wermter · DOI

TL;DR

This paper introduces OP-GAN, a novel generative model that explicitly focuses on individual objects within an image for text-to-image synthesis, leading to better generation of complex scenes. They also propose Semantic Object Accuracy (SOA), a new evaluation metric that uses object detection to assess caption-image consistency, which proves to be more aligned with human judgment than existing metrics.

What Problem Does This Paper Address?

Generating realistic images from text descriptions is a challenging task, especially when dealing with complex captions that describe multiple objects in heterogeneous scenes. Existing text-to-image models often struggle with these scenarios, leading to a drop in image quality. A significant issue is the lack of robust evaluation metrics. Current metrics like Inception Score (IS) and Fréchet Inception Distance (FID) primarily focus on overall image quality and diversity, failing to adequately assess how well the generated image actually matches the textual description, particularly concerning the presence and accuracy of individual objects. This gap makes it difficult to compare and improve text-to-image synthesis models effectively.

Methods

The authors propose OP-GAN (Object Pathway Generative Adversarial Network), an extension of the AttnGAN architecture. The core innovation is the introduction of object pathways within both the generator and discriminator. These pathways are designed to explicitly model individual objects identified by bounding boxes and labels from the image caption. This is done in parallel with a global pathway that handles the background generation. The generator uses these object pathways iteratively to refine features for each object at different resolutions.

For evaluation, they introduce Semantic Object Accuracy (SOA). This metric leverages a pre-trained object detector (YOLOv3) to verify if objects mentioned in the image caption are actually present and detectable in the generated image. SOA can be calculated as a class average (SOA-C) or an image average (SOA-I), and also includes an Intersection over Union (IoU) component (SOA-IoU) for models that utilize scene layouts or bounding boxes.

Datasets

  • Training and Evaluation: The primary dataset used is MS-COCO.
  • Object Detection: The YOLOv3 network used for SOA was pre-trained on the COCO dataset.
  • Caption Filtering for SOA: Captions from the COCO validation set were filtered based on keywords related to object labels to create specific test cases for SOA.

Key Insights and Ideas

  • Object-centric generation is crucial for complex scenes: Explicitly modeling individual objects, rather than just relying on global image semantics, significantly improves the generation of images from complex captions.
  • Existing metrics are insufficient for text-to-image synthesis: Metrics like IS and FID, while useful for general GAN evaluation, fail to capture the critical aspect of caption-image consistency, especially for multi-object scenes.
  • Object detection is a powerful tool for evaluation: Using a pre-trained object detector to verify the presence of mentioned objects provides a more direct and meaningful assessment of text-to-image models.
  • Human evaluation aligns with SOA: The authors' user study demonstrates that SOA scores correlate well with human judgments of image quality and caption relevance, suggesting it's a more reliable metric.
  • Model performance varies by object frequency: Models perform significantly better on common objects that appear frequently in the training data compared to rare objects.

Key Results

  • OP-GAN outperforms baselines: The proposed OP-GAN model consistently outperforms the AttnGAN baseline and other state-of-the-art models across various metrics, including R-precision, CIDEr, FID, and importantly, SOA.
  • SOA is a strong predictor of human judgment: The user study showed that SOA scores closely mirrored human rankings of image quality and caption relevance, while IS scores were found to be the least predictive.
  • Significant improvements in SOA: OP-GAN achieved SOA-C scores of 35.85 and SOA-I scores of 50.47, a substantial improvement over AttnGAN's 25.88 and 39.01, respectively.
  • Object pathways are essential: Ablation studies showed that removing object pathways led to a significant decrease in performance across most metrics, highlighting their importance.
  • Models struggle with rare objects: While models perform well on common objects, they show a marked decline in performance for less frequent objects, indicating a persistent challenge.

Limitations and Future Work

  • Object detector bias: The SOA metric's effectiveness is dependent on the pre-trained object detector. The authors note that detectors like YOLOv3 tend to focus more on texture than shape, which can lead to a "false sense of quality" where an object is detected but not realistically rendered. Future work could involve using more shape-aware object detectors.
  • Performance on rare objects: All tested models, including OP-GAN, struggle to generate rare objects with high quality. This suggests a need for further research into techniques that can better handle infrequent visual concepts.
  • IoU scores: While OP-GAN improves SOA, its IoU scores are generally lower than some prior methods like Obj-GAN. This is attributed to the model's tendency to place object features more broadly, potentially outside the strict bounding box. Future work could explore balancing SOA and IoU.
  • Further improvements in SOA: The authors suggest that future improvements in object detection models could further enhance the information provided by the SOA score.

Summary updated

BibTeX
@article{hinz2019semantic,
  author = {Tobias Hinz and Stefan Heinrich and Stefan Wermter},
  title = {{Semantic Object Accuracy for Generative Text-to-Image Synthesis}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2019},
  doi = {10.1109/tpami.2020.3021209},
}
Figure