Source-linked AI summary

Semantic Image Synthesis via Adversarial Learning

Hao Dong, Simiao Yu, Chao Wu, Yike Guo

arXiv:1707.06873v1cs.CV

TL;DR

The paper addresses realistic image synthesis from a source image and target text while preserving image features irrelevant to the text. It proposes an end-to-end GAN encoder-decoder with adversarial learning, and reports successful synthesis on bird and flower datasets, including text matching and retained original-image features.

  • Problem

    The task is to synthesize realistic images matching target text descriptions while preserving source-image features irrelevant to the text.

  • Method

    An end-to-end GAN architecture encodes image and text semantics, combines them, and uses adversarial learning to train image synthesis.

  • Results

    The method synthesizes realistic images matching descriptions while maintaining other original-image features on Caltech-200 birds and Oxford-102 flowers.

  • Takeaways & Limitations

    The approach supports semantic text-based manipulation of source images while retaining features unrelated to the target description.

  • Takeaways & Limitations

    The spatial image encoder may produce inadequate representations because the employed datasets are limited in size.

Abstract

from arXiv · show

In this paper, we propose a way of synthesizing realistic images directly with natural language description, which has many useful applications, e.g. intelligent image manipulation. We attempt to accomplish such synthesis: given a source image and a target text description, our model synthesizes images to meet two requirements: 1) being realistic while matching the target text description; 2) maintaining other image features that are irrelevant to the text description. The model should be able to disentangle the semantic information from the two modalities (image and text), and generate new images from the combined semantics. To achieve this, we proposed an end-to-end neural architecture that leverages adversarial learning to automatically learn implicit loss functions, which are optimized to fulfill the aforementioned two requirements. We have evaluated our model by conducting experiments on Caltech-200 bird dataset and Oxford-102 flower dataset, and have demonstrated that our model is capable of synthesizing realistic images that match the given descriptions, while still maintain other features of original images.

1. Introduction

The paper proposes semantically manipulating source images with target text while preserving image features irrelevant to the description. Its GAN-based architecture combines image and text semantics to generate realistic, text-matching images.

  • Motivation: The task requires mapping relevant text descriptions to image regions while disentangling image and text semantics.The model must also combine the disentangled semantics to generate realistic images.
  • Approach: The proposed model conditions image generation on both a source image and a target text description.This adds the given image as a generation condition alongside natural language.
  • Approach: An end-to-end GAN architecture learns shared representations of image and text modalities through adversarial training.The training strategy uses adversarial learning to obtain implicit loss functions adaptive to the objectives.
  • Architecture: The generator encodes the original image, concatenates its representation with pretrained text semantics, and decodes the combined representation into a synthesized image.The discriminator evaluates both realism and whether the image matches the input text.
  • Evaluation: Experiments use Caltech-200 birds and Oxford-102 flowers, with ten captions collected for each image in both datasets.The paper reports that the method synthesizes images matching descriptions while retaining other original-image features.

2. Related Work

The related work spans general image-generation models, conditional GANs, latent inversion methods, and image-text synthesis. The paper positions its approach as semantic image manipulation rather than primarily text-to-image generation.

  • Image synthesis: Image synthesis research includes deterministic networks, VAEs, autoregressive models, and GANs for generating realistic images.The paper identifies generative image modelling as an important computer-vision problem.
  • Conditional GANs: Conditional GANs generate images subject to information such as class labels or source-image constraints.Image-conditioned applications include domain transfer, constrained editing, and super-resolution.
  • Latent representations: Several methods learn latent representations of real data using jointly trained generator and encoder networks or adversarial autoencoders.These approaches use discriminators in data space, latent space, or both.
  • Image-text synthesis: Reed et al. introduced a two-step image-and-text synthesis method called “style transfer,” but its main purpose is text-to-image synthesis rather than semantic image manipulation.The paper describes it as the only prior generative model known to address the same task.

3. Background

The background introduces GANs and conditional generation, then describes a baseline that inverts synthesized images into latent variables before applying target text. Its key limitation is poor encoding of real images.

  • Generative Adversarial Networks: GANs use a generator to map latent variables into fake samples and a discriminator to distinguish real samples from generated ones.The two networks are trained competitively, with the generator trying to fool the discriminator.
  • Generative Adversarial Networks: The GAN training process is formulated as a minimax optimization over a value function using latent samples from pz and real samples from pdata.The cited formulation models the competing objectives of generator and discriminator.
  • Conditional generation: Conditional GANs provide both generator and discriminator with additional conditional information so generated samples follow the specified condition.The condition extends the basic GAN framework to model a conditional distribution.
  • Baseline method: The baseline trains a style encoder to invert the generator, using mean squared error to map synthesized images back to latent variables.The trained encoder then encodes an input image, while the generator combines that latent code with target-text embeddings.
  • Baseline limitation: The baseline encoder is trained only on generator-produced images rather than real images, which can yield poor feature representations for complex natural images.The mismatch between learned generator distributions and real-data distributions is identified as the main drawback.

4. Method

The method synthesizes an image from a source image and target text, combining their representations while preserving source features irrelevant to the text. A conditional GAN uses an encoder-decoder generator, text-conditioned discriminator, and adversarial training with semantically relevant text to guide synthesis.

  • Architecture: The conditional GAN generator encodes a source image and text description, then decodes their combined representations into a synthesized image.The discriminator evaluates both image realism and image-text matching.
  • Architecture: The generator includes a CNN encoder, text embedding augmentation, residual transformation unit, and upsampling decoder.The source encoder produces spatial representations, while the residual unit jointly encodes image and text features before decoding.
  • Architecture: The residual transformation unit helps retain source-image structure while enabling deeper encoding of joint image-text representations.This supports preserving features unrelated to the target text description.
  • Adaptive loss: Adversarial learning automatically learns implicit loss functions for producing realistic images that match text while retaining irrelevant source features.The model is trained with a jointly learned spatial encoder, which may produce poor representations because of the limited dataset size.
  • Adaptive loss: The discriminator receives three image-text pair types and outputs independent probabilities for their positive or negative classifications.These include synthesized images with semantically relevant text, while matching and mismatching text distinguish the conditioning cases.
  • Adaptive loss: Semantically relevant text is used because it relates to source-image features without requiring an exact description, reducing overfitting to either target text or source images.Using mismatching text can make the generator overfit text, whereas matching text alone can make it ignore the text condition.

5. Experiments

Experiments on bird and flower datasets evaluate zero-shot synthesis, preservation of source-image features, human preferences, interpolation, and output variety. The method produces realistic text-matched images while retaining relevant original structure and background details.

  • Experimental setup: The experiments use Caltech-200 birds and Oxford-102 flowers, with captions describing visual attributes and disjoint training and testing classes.The bird dataset contains 11,788 images across 200 classes, while the flower dataset contains 8,189 images across 102 classes.
  • Qualitative comparison: Compared with the baseline on bird images, the method preserves more original background, pose, and other source-image information.Examples include clearly retained tree branches.
  • Qualitative comparison: The method synthesizes plausible unseen birds and produces clearer details in complex backgrounds, with pretrained VGG improving background clarity.Examples include identifiable cables, timber piles, and tree trunks.
  • Qualitative comparison: On Oxford-102 zero-shot results, the method generates realistic flowers while modifying target semantics, whereas the baseline failed to preserve reasonable flower shapes.The authors attribute the baseline difficulty possibly to flowers’ diverse shapes.
  • Quantitative comparison: Human rankings indicate that the method better matches text realistically and preserves bird pose, flower shape, and complex background details than the baseline.The pretrained-VGG variant receives better background-detail judgments.
  • Interpolation and variety: Linear interpolation supports smooth transitions between source images or text descriptions, while text-embedding augmentation enables diverse outputs from the same source and description.Text interpolation changes sentence meanings gradually while keeping plausible shapes and other details.
Loading 1707.06873v1…