StyleT2I: Toward Compositional and High-Fidelity Text-to-Image Synthesis

Zhiheng Li, Martin Renqiang Min, Kai Li, Chenliang Xu
3/29/2022
cs.CV

Official code: zhihengli-UR/StyleT2I (43 stars, Python, BSD-2-Clause, last commit 2022-07-31).

Abstract

Although progress has been made for text-to-image synthesis, previous methods fall short of generalizing to unseen or underrepresented attribute compositions in the input text. Lacking compositionality could have severe implications for robustness and fairness, e.g., inability to synthesize the face images of underrepresented demographic groups.

Show full abstract

In this paper, we introduce a new framework, StyleT2I, to improve the compositionality of text-to-image synthesis. Specifically, we propose a CLIP-guided Contrastive Loss to better distinguish different compositions among different sentences. To further improve the compositionality, we design a novel Semantic Matching Loss and a Spatial Constraint to identify attributes' latent directions for intended spatial region manipulations, leading to better disentangled latent representations of attributes. Based on the identified latent directions of attributes, we propose Compositional Attribute Adjustment to adjust the latent code, resulting in better compositionality of image synthesis. In addition, we leverage the $\ell_2$-norm regularization of identified latent directions (norm penalty) to strike a nice balance between image-text alignment and image fidelity. In the experiments, we devise a new dataset split and an evaluation metric to evaluate the compositionality of text-to-image synthesis models. The results show that StyleT2I outperforms previous approaches in terms of the consistency between the input text and synthesized images and achieves higher fidelity.

View on arXivView PDF

Code Implementations(1)

BSD-2-Clause

Official code of "StyleT2I: Toward Compositional and High-Fidelity Text-to-Image Synthesis" (CVPR 2022)

434Python, CudaMar 22, 20224 years agoBSD-2-Clause
ai-fairnessresponsible-aistylegantext-to-imagetext-to-image-synthesis+1 more

Similar Papers

Cite this paper

@article{li2022styleti,
  title  = {StyleT2I: Toward Compositional and High-Fidelity Text-to-Image Synthesis},
  author = {Zhiheng Li and Martin Renqiang Min and Kai Li and Chenliang Xu},
  year   = {2022},
  eprint = {2203.15799},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.15799}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.15799.svg)](https://codeofpaper.com/paper/2203.15799)

Discussion