TAC-GAN - Text Conditioned Auxiliary Classifier Generative Adversarial Network

Ayushman Dash, John Cristian Borges Gamboa, Sheraz Ahmed, Marcus Liwicki, Muhammad Zeshan AfzalarXiv 2017

Introduction

Generating realistic images from text descriptions is a significant "one-to-many" challenge in computer vision: a single sentence like "a red flower with yellow stamens" could describe thousands of unique images. Previous approaches, such as the original StackGAN, focused heavily on conditioning the Generative Adversarial Network (GAN) solely on textual embeddings. However, these models often struggled with structural coherence and diversity.

The authors of TAC-GAN (Text Conditioned Auxiliary Classifier GAN) identified a missed opportunity: while text provides rich detail, explicit class information (e.g., knowing a flower belongs to the "Passion Flower" category) helps a model learn the underlying structural "prototype" of an object. The challenge was to effectively fuse text-to-image synthesis with the stability and discriminative power of an Auxiliary Classifier GAN (AC-GAN).

Methods

TAC-GAN is an evolution of the AC-GAN architecture, adapted for textual input. The model architecture integrates text embeddings and class labels to guide the generation process.

The TAC-GAN architecture, showing the integration of text embeddings and class labels into the Generator and Discriminator.
  1. Text Embedding: The model uses Skip-Thought vectors to convert sentences into high-dimensional embeddings ($\Psi(t)$).
  2. The Generator ($G$): Instead of taking just a class label and noise, the Generator takes a noise vector ($z$) concatenated with a latent representation of the text embedding. This allows the model to capture both the specific details in the text and the random "style" variations provided by the noise.
  3. The Discriminator ($D$): The Discriminator is tasked with three simultaneous goals:
  4. Source Classification: Is the image real or fake?
  5. Class Classification: Which of the 102 flower classes does this image belong to?
  6. Text Conditioning: Does the image actually match the provided text description?

Datasets and Evaluation

The authors evaluated their model using the Oxford-102 Flowers dataset, which contains 102 categories of flowers, with each image accompanied by five unique text descriptions. Text descriptions were converted into 4800-dimensional Skip-Thought vectors for processing.

Key Insights and Results

TAC-GAN demonstrates that forcing the Discriminator to predict class labels—even when text is present—acts as a powerful regularizer. It helps the model learn the global structure of the object (the "flower-ness") while the text handles the fine-grained details like colors and petal shapes.

Visual comparison between images generated by TAC-GAN (left and middle columns) and real samples (right column, highlighted in yellow).

Quantitative Performance

  • Inception Score (IS): TAC-GAN achieved an IS of 3.45 ± 0.05, outperforming the then-state-of-the-art StackGAN (3.20) and GAN-INT-CLS (2.66).
  • Diversity: Using the Multi-Scale Structural Similarity Index (MS-SSIM), the authors proved the model avoids memorization. Generated images showed a lower MS-SSIM (0.13) than the training data (0.28), indicating high internal diversity.
  • Resolution: The model successfully synthesized images at 128 x 128 resolution in a single stage, a notable improvement over the 64 x 64 resolution typically produced by the first stage of competing models.

Limitations and Future Work

While 128x128 is an improvement, it remains below high-definition standards. Future work could integrate TAC-GAN into multi-stage refinement pipelines to reach 256x256 or higher. Additionally, while the model excels at flower synthesis, testing the architecture on more complex, multi-object datasets like COCO is a necessary next step to prove its generalizability across diverse domains.

Summary updated

BibTeX
@misc{dash2017tac,
  author = {Ayushman Dash and John Cristian Borges Gamboa and Sheraz Ahmed and Marcus Liwicki and Muhammad Zeshan Afzal},
  title = {{TAC-GAN - Text Conditioned Auxiliary Classifier Generative Adversarial Network}},
  year = {2017},
  eprint = {1703.06412},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1703.06412},
}
Figure