Attribute-Centric Compositional Text-to-Image Generation

Yuren Cong, Martin Renqiang Min, Li Erran Li, Bodo Rosenhahn, Michael Ying Yang

Abstract

Despite the recent impressive breakthroughs in text-to-image generation, generative models have difficulty in capturing the data distribution of underrepresented attribute compositions while over-memorizing overrepresented attribute compositions, which raises public concerns about their robustness and fairness. To tackle this challenge, we propose ACTIG, an attribute-centric compositional text-to-image generation framework. We present an attribute-centric feature augmentation and a novel image-free training scheme, which greatly improves model’s ability to generate images with underrepresented attributes. We further propose an attribute-centric contrastive loss to avoid overfitting to overrepresented attribute compositions. We validate our framework on the CelebA-HQ and CUB datasets. Extensive experiments show that the compositional generalization of ACTIG is outstanding, and our framework outperforms previous works in terms of image quality and text-image consistency.

Introduction

Modern text-to-image (T2I) models, while capable of generating high-fidelity images, often struggle with compositional generalization—the ability to combine known concepts in novel ways. A primary failure mode is "attribute composition," where models fail to correctly assign traits like color, gender, or accessories to specific entities when those combinations are rare in the training data.

This issue stems from data imbalance. For instance, in datasets like CelebA-HQ, the attribute "wearing earrings" is frequently associated with "woman" but rarely with "man." Consequently, models often default to their training memory, generating a woman when prompted for a "man wearing earrings." This bias limits the robustness and fairness of generative AI.

The ACTIG Framework

To address these biases, we propose ACTIG (Attribute-Centric Compositional Text-to-Image Generation). The framework consists of three core components designed to disentangle attributes from their common correlations.

The ACTIG framework addresses the imbalance in training datasets by using synthetic prompts and an image-free training scheme to generate underrepresented attribute compositions.

1. Attribute-Centric Feature Augmentation

Since real images for every possible attribute combination are scarce, ACTIG augments the text space. Using probabilistic grammars for faces and dependency parsing for birds, the framework generates millions of synthetic prompts featuring underrepresented combinations.

2. Image-Free Training Scheme

Training on synthetic prompts without corresponding images requires a bridge between text and visual spaces. We developed a Text-to-Image Mapping Network that projects CLIP text encodings into the CLIP image latent space. The model alternates between supervised training on real image-text pairs and image-free training using synthetic text and predicted image features.

3. Attribute-Centric Contrastive Loss ($L_{attr}$)

To prevent over-memorizing popular attribute "packages," we introduce a contrastive loss using a specialized CLIP model (CLIP-A) fine-tuned on attribute-image pairs. This forces the generator to treat attributes like "earrings" as independent features, regardless of the subject's primary category (e.g., gender).

Experimental Results

We validated ACTIG on the CelebA-HQ and CUB datasets. On CelebA-HQ, we focused on a test set of rare attribute compositions. ACTIG achieved an R-Precision of 65.0, significantly outperforming StyleT2I (62.5) and TediGAN-B (30.6). On the CUB dataset, ACTIG reached a state-of-the-art FID of 12.5.

A qualitative result from ACTIG showing a man wearing earrings, an underrepresented attribute composition correctly generated by the model.

Qualitatively, ACTIG demonstrates a superior ability to follow complex prompts. While baseline models often ignore "distractor" attributes that contradict common data patterns (e.g., "man with lipstick"), ACTIG successfully renders these specific traits while maintaining high photographic quality.

Conclusion

ACTIG provides a robust solution for compositional text-to-image generation by leveraging synthetic data and image-free training. While currently optimized for single entities and dependent on CLIP's underlying perceptual limits, it sets a new standard for fairness and robustness in generative modeling. Future work will explore extending this approach to complex scenes with multiple interacting entities.

Summary updated

BibTeX
@article{cong2025attribute,
  author = {Yuren Cong and Martin Renqiang Min and Li Erran Li and Bodo Rosenhahn and Michael Ying Yang},
  title = {{Attribute-Centric Compositional Text-to-Image Generation}},
  journal = {Int. J. Comput. Vis.},
  year = {2025},
  url = {https://openreview.net/forum?id=8oB3ahIEWy},
}
Figure