Source-linked AI summary

Text-Adaptive Generative Adversarial Networks: Manipulating Images with Natural Language

Seonghyeon Nam, Yunji Kim, Seon Joo Kim

arXiv:1810.11919v2cs.CV

TL;DR

The paper studies natural-language manipulation of existing images, where specified visual attributes should change without losing text-irrelevant content. It proposes TAGAN, whose word-level text-adaptive discriminator guides fine-grained attribute editing, and reports superior quantitative and qualitative results with strongest user preference. The method can nevertheless fail to reproduce an exact requested shape because reconstruction and content generation trade off.

  • Problem

    Existing image-manipulation methods often synthesize new attributes without fully preserving image contents unrelated to the text.

  • Method

    TAGAN uses word-level local discriminators created from the input text to provide fine-grained feedback for changing specified attributes while preserving other contents.

  • Results

    TAGAN outperforms existing methods quantitatively and qualitatively on CUB and Oxford-102, while receiving the strongest user-study preference.

  • Takeaways & Limitations

    The analysis indicates that TAGAN disentangles visual attributes and transfers them across images while retaining pose, shape, and background information unrelated to the text.

  • Takeaways & Limitations

    TAGAN sometimes fails to generate the exact shape described because generating new contents trades off against preserving original contents.

Abstract

from arXiv · show

This paper addresses the problem of manipulating images using natural language description. Our task aims to semantically modify visual attributes of an object in an image according to the text describing the new visual appearance. Although existing methods synthesize images having new attributes, they do not fully preserve text-irrelevant contents of the original image. In this paper, we propose the text-adaptive generative adversarial network (TAGAN) to generate semantically manipulated images while preserving text-irrelevant contents. The key to our method is the text-adaptive discriminator that creates word-level local discriminators according to input text to classify fine-grained attributes independently. With this discriminator, the generator learns to generate images where only regions that correspond to the given text are modified. Experimental results show that our method outperforms existing methods on CUB and Oxford-102 datasets, and our results were mostly preferred on a user study. Extensive analysis shows that our method is able to effectively disentangle visual attributes and produce pleasing outputs.

1 Introduction

The paper targets natural-language image manipulation that changes specified object attributes while preserving text-irrelevant content. TAGAN addresses existing methods’ coarse feedback by using text-adaptive, word-level discrimination, and experiments report stronger quantitative and qualitative results.

  • Problem: The task modifies an object’s color and texture according to natural-language descriptions while retaining other image information.The authors present this as a more intuitive manipulation approach, particularly suitable for mobile devices.
  • Limitations of Existing Methods: Existing conditional methods can preserve pose and layout but often regenerate regions unrelated to the text because sentence-level discrimination provides coarse feedback.This limits their ability to disentangle different image regions.
  • TAGAN: TAGAN splits sentence-level discrimination into word-level local discriminators, each attached to a specific visual attribute.Their matching scores are aggregated with text attention to classify images as real or fake.
  • TAGAN: The generator learns to modify the visual attributes described by the text while preserving text-irrelevant contents of the original image.Figure 1 contrasts this behavior with existing methods that fail to preserve unrelated content such as the background.
  • Results: Experimental results on CUB and Oxford-102 outperform existing methods quantitatively and qualitatively, and participants preferred the authors’ results most in a user study.The analysis also reports effective visual-attribute disentanglement and accurate text-guided manipulation.

2 Related Work

Related work spans conditional image generation, user-guided image manipulation, domain translation, and text-to-image synthesis. TAGAN instead focuses on modifying an existing image from natural language, requiring mechanisms for sequential textual inputs and preservation of the source image.

  • Conditional Image Generation: Conditional generation methods such as cGAN, Attribute2Image, and InfoGAN generate new images from labels, attributes, or latent variables rather than modifying a given image.The paper distinguishes this generation-from-noise setting from its image-manipulation task.
  • Conditional Image Manipulation: User-guided manipulation methods edit images through sketches, scribbles, or learned attribute-invariant latent spaces.Examples include latent-vector editing from sketches, face editing with scribbles, and FaderNetworks.
  • Domain Translation: Image-to-image domain translation methods are not directly applicable because they lack mechanisms for processing sequential textual inputs.The paper therefore focuses on multimodal learning from images and natural-language descriptions.
  • Text-to-Image Synthesis: Text-to-image methods generate images from sentence representations using progressively higher-resolution GAN architectures and attention mechanisms.The paper relates TAGAN to these methods while addressing manipulation conditioned on an original image.
  • Text-Conditioned Manipulation: Earlier image-manipulation approaches preserve some pose or layout but tend to generate new images instead of changing only text-described regions.The paper attributes this limitation to coarse sentence-conditional feedback and motivates fine-grained text-adaptive discrimination.

3 Text-Adaptive Generative Adversarial Networks

TAGAN combines an encoder-decoder generator with a text-adaptive discriminator to modify text-specified visual attributes while preserving unrelated image content.

  • Task and architecture: TAGAN generates a manipulated image from an input image and target text using a GAN framework.The generator produces ˆy = G(x, ˆt), where the output should match the target text semantically while remaining realistic.
  • Task and architecture: The encoder-decoder generator transforms image features according to conditional text features and generates manipulated content through residual blocks with skip connections.The text is encoded by a bidirectional RNN trained from scratch, with conditioning augmentation used for smoother and more diverse text representations.
  • Content preservation: A reconstruction loss encourages the generator to preserve text-irrelevant contents instead of generating new background or other unrelated content.This loss is applied when a positive text is given, requiring reconstruction of content from the input image.
  • Text-adaptive discriminator: The text-adaptive discriminator uses independent word-level local discriminators to classify visual attributes and provide attribute-specific feedback to the generator.Each local discriminator evaluates whether an attribute associated with a word exists in the image.
  • Text-adaptive discriminator: Word-level softmax attention reduces the influence of less important words when combining local discriminator outputs into the final classification decision.The attention is computed across the T words in the sentence.
  • Design advantages: The method trains its text-adaptive discriminator as the core GAN framework rather than as an auxiliary loss and uses multiplicative score aggregation with cross-entropy training.The discriminator also learns individual sentence attributes before detecting each attribute in the image, without explicit spatial attention or hand-tuned hyperparameters.

4 Experiments

Experiments on CUB and Oxford-102 evaluate TAGAN qualitatively, through user judgments, reconstruction error, retrieval, ablations, and interpolation. Across these analyses, TAGAN generally changes text-specified attributes while preserving text-irrelevant image content, though shape generation can fail in some cases.

  • Experimental setup: Experiments use CUB and Oxford-102, comparing TAGAN with SISGAN and AttnGAN using user evaluation and reconstruction error.The datasets contain 11,788 bird images and 8,189 flower images, with ten captions per image; outputs were resized to 64×64 for user evaluation.
  • Content preservation: TAGAN achieved the lowest L2 reconstruction error, indicating better preservation of the original image content.The error was averaged over 50 trials for each method.
  • Qualitative results: TAGAN usually changes visual attributes according to text while generating textures across classes and preserving pose, shape, and background.The qualitative results indicate that visual attributes are disentangled from text-irrelevant contents.
  • Qualitative comparison: Compared with baselines, TAGAN preserves text-irrelevant contents while transferring visual attributes accurately, whereas baselines often regenerate images from the original layout.The comparison also reports that baseline outputs can become similar when sentences correlate strongly with particular bird or flower classes.
  • Component and inference analysis: The text-adaptive discriminator learns word-level attention and local classifiers, while multi-scale layers select different levels for coarse or fine-grained attributes.Visualization shows three top word attentions and three layer-wise local-discriminator saliency maps; sentence interpolation produced smoothly changing images while preserving original content.

5 Conclusion

TAGAN semantically manipulates images from natural-language descriptions while preserving irrelevant original content. Its text-adaptive discriminator uses word-level local discriminators to disentangle fine-grained visual attributes, and experiments show quantitative and qualitative improvements over existing methods.

  • TAGAN semantically manipulates images using natural-language descriptions.
  • Its text-adaptive discriminator creates word-level local discriminators on the fly according to the text.
  • The discriminator disentangles fine-grained visual attributes so the generator modifies particular attributes while preserving irrelevant original content.
  • Experimental results show that TAGAN outperforms existing methods quantitatively and qualitatively.
Loading 1810.11919v2…