Evolution of Images with Diversity and Constraints Using a Generator Network

Aneta Neumann, Christo Pyromallis, Bradley AlexanderarXiv 2018 · OpenReview

TL;DR

This paper introduces a novel method for generating artistic images by evolving latent representations within Generative Adversarial Networks (GANs). By combining evolutionary search with GANs, the authors demonstrate the ability to generate images that score high or low on specific aesthetic features, opening new avenues for creative AI.

What Problem Does This Paper Address?

Generating artistic images using evolutionary algorithms has been a long-standing challenge due to the high dimensionality of raw image data. Previous approaches relied on simplified encodings or prior constraints. While recent advancements in GANs have enabled the generation of realistic images from low-dimensional latent spaces, these methods have primarily focused on class-conditional generation or style transfer. A significant gap existed in using evolutionary search within these GAN latent spaces to explicitly optimize for aesthetic qualities, either individually or in combination. This paper aims to bridge that gap by exploring how evolutionary search can navigate the latent space of a GAN to produce images with desired aesthetic characteristics.

Methods

The core of this work lies in the integration of evolutionary algorithms with Generative Adversarial Networks (GANs). The authors employ a pre-trained GAN, consisting of a generator and a discriminator. The generator maps a low-dimensional latent vector ($z$) to an image. The evolutionary process then operates on this latent vector $z$.

The key innovation is the fitness function used to guide the evolutionary search. This fitness function combines two components:

  1. Aesthetic Feature Score: This is calculated using predefined aesthetic feature functions (e.g., hue, saturation, smoothness, symmetry, Global Contrast Factor) applied to the generated image. The goal is to either maximize or minimize these scores.
  2. Realness Score: This is provided by the GAN's discriminator, which is trained to distinguish between real and generated images. The absolute value of the discriminator's output is used as a penalty, encouraging the evolutionary process to produce images that are perceived as realistic by the discriminator.

To balance the exploration of aesthetic features with the constraint of realism, a "cut-off function" is introduced. This function modifies the discriminator's output, allowing for greater exploration of aesthetic features once a certain threshold of realism is met. The evolutionary algorithm used is primarily CMA-ES (Covariance Matrix Adaptation Evolution Strategy), known for its effectiveness in optimizing complex, non-linear functions.

Datasets

The authors trained their GAN models on two distinct datasets:

  • CelebA: A large dataset of celebrity faces (over 150k images).
  • ImageNet (butterfly class): A subset of the ImageNet dataset containing butterfly images (over 45,000 images).

These datasets were chosen to represent different types of visual content and to investigate how the GAN's inherent priors influence the evolutionary process and the resulting aesthetic qualities.

Key Insights and Ideas

  • GAN Latent Space as a Canvas for Evolution: The paper demonstrates that the latent space of a GAN, typically used for generating realistic images, can be effectively explored by evolutionary algorithms to achieve specific aesthetic goals.
  • Balancing Realism and Aesthetics: The introduction of a cut-off function for the discriminator's output is crucial. It allows for the generation of images that are both aesthetically optimized and sufficiently realistic, preventing the evolutionary process from producing abstract or unrealistic outputs when pushing aesthetic boundaries.
  • Feature Interactions Matter: The study highlights that optimizing multiple aesthetic features simultaneously can be challenging, suggesting that some features might be in conflict (e.g., smoothness and high contrast for GCF). This implies that the GAN's learned priors play a significant role in how these features interact.
  • Dataset Priors Influence Evolution: The choice of dataset (faces vs. butterflies) significantly impacts the evolutionary outcomes. For instance, the butterfly dataset allows for a wider range of saturation values, suggesting that the GAN's training data shapes the achievable aesthetic space.
  • Symmetry and Realism Trade-off: Highly symmetric images tend to appear less realistic, often sacrificing detail for geometric regularity. Conversely, asymmetric images can be more realistic.

Key Results

  • Successful Optimization of Single Features: The evolutionary approach successfully generated images that minimized or maximized individual aesthetic features like hue, saturation, smoothness, symmetry, and GCF, with varying degrees of success and realism across features and datasets.
  • Demonstrated Multi-Feature Optimization: The paper shows that it's possible to evolve images based on combinations of two aesthetic features (e.g., GCF-Saturation, Hue-Symmetry). However, some feature combinations proved more challenging to optimize simultaneously while maintaining realism.
  • Impact of Cut-off Value: Experiments with different cut-off values for the discriminator's output showed that a lower cut-off (e.g., 0.02 for single features, 0.008 for multi-features) allowed for greater aesthetic evolution while still producing recognizable images.
  • Quantitative Ranges: Tables in the paper provide specific minimum and maximum values achieved for each feature across the face and butterfly datasets, illustrating the range of aesthetic control possible. For example, hue could be evolved from 0.0337 to 0.4886 for faces.

Limitations and Future Work

  • Subjectivity of Aesthetics: The paper acknowledges that aesthetic measures are inherently subjective. While they use quantifiable features, the "interestingness" of an image is ultimately a human judgment.
  • GAN Priors: The results are heavily influenced by the GAN's training data. The paper suggests that exploring different GAN architectures and training datasets would be valuable.
  • Exploration of Intermediate Points: The authors suggest that future work could explore intermediate points in the feature space to gain a deeper understanding of feature interactions and their impact on aesthetic appearance.
  • Additional Constraints: Investigating the effect of other types of constraints on the evolutionary process is also proposed.
  • User Interaction: The potential for incorporating user feedback into the evolutionary loop for more personalized aesthetic generation is an interesting future direction.

Summary updated

Abstract

Evolutionary search has been extensively used to generate artistic images. Raw images have high dimensionality which makes a direct search for an image challenging. In previous work this problem has been addressed by using compact symbolic encodings or by constraining images with priors. Recent developments in deep learning have enabled a generation of compelling artistic images using generative networks that encode images with lower-dimensional latent spaces. To date this work has focused on the generation of images concordant with one or more classes and transfer of artistic styles. There is currently no work which uses search in this latent space to generate images scoring high or low aesthetic measures. In this paper we use evolutionary methods to search for images in two datasets, faces and butterflies, and demonstrate the effect of optimising aesthetic feature scores in one or two dimensions. The work gives a preliminary indication of which feature measures promote the most interesting images and how some of these measures interact.
BibTeX
@misc{neumann2018evolution,
  author = {Aneta Neumann and Christo Pyromallis and Bradley Alexander},
  title = {{Evolution of Images with Diversity and Constraints Using a Generator Network}},
  year = {2018},
  eprint = {1802.05480},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.05480},
}
Figure