A Frequency-Domain Encoding for Neuroevolution

Jan Koutník, Jürgen Schmidhuber, Faustino J. GomezarXiv 2012

Introduction

Neuroevolution—the application of evolutionary algorithms to optimize neural network parameters—offers a robust alternative to gradient-based reinforcement learning, particularly for recurrent architectures and non-stationary environments. However, direct encoding schemes, where every synaptic weight is treated as an individual gene, suffer from the "curse of dimensionality." As network sizes increase to handle high-dimensional inputs like raw video, the search space becomes prohibitively large for standard evolutionary strategies.

Existing indirect encodings attempt to map a small genotype to a larger phenotype but often lack continuity (where small genetic changes lead to catastrophic functional shifts) or a clear hierarchy of importance among genes.

The Compressed Encoding Method

To address these challenges, Koutník et al. (2012) proposed a novel indirect encoding based on the Discrete Cosine Transform (DCT), a technique widely used in image compression. Instead of evolving the weight matrices directly, the evolutionary algorithm operates on a set of low-frequency Fourier coefficients.

The pipeline for frequency-domain neuroevolution, mapping a small genome to a large network via inverse DCT.

The process involves three primary stages:

  1. Encoding: The genotype consists of a vector of Fourier coefficients.
  2. Decoding: These coefficients are mapped into a multi-dimensional array and transformed via an inverse DCT to produce the spatial-domain weight matrices.
  3. Optimization: The authors utilize Separable Natural Evolution Strategies (SNES) to evolve the distribution of these coefficients, efficiently navigating the reduced search space.

Key Insights: Regularity and Band-limiting

The success of this approach hinges on the observation that effective neural network controllers often exhibit significant spatial regularity. Just as natural images can be compressed because adjacent pixels are correlated, adjacent weights in a functional network often share similar values or gradients.

A smooth weight matrix generated from just three low-frequency DCT coefficients (c1, c2, c3).

By evolving only low-frequency coefficients, the method effectively "band-limits" the network. This acts as a powerful regularizer, preventing the evolution of noisy, overfitted weight configurations and forcing the discovery of smooth, generalizable control laws. Furthermore, because the weights are generated by a transform, the number of evolved parameters is decoupled from the actual size of the network, allowing for massive compression.

Experimental Results

The researchers evaluated their method on the Octopus Arm task, a high-dimensional reinforcement learning benchmark requiring the control of a flexible aquatic limb.

  • Massive Compression: In tasks involving direct control of every muscle ("raw actions"), the authors achieved a compression ratio of 184:1. A successful controller for a network with 3,680 weights was found by searching a space of only 20 coefficients.
  • Efficiency: The frequency-domain search reached target fitness levels up to 11 times faster than direct weight-space evolution in complex scenarios.
  • Robustness: Controllers evolved via DCT demonstrated superior generalization. When tested on arm lengths or starting positions not encountered during training, these networks significantly outperformed those evolved through direct encoding.

Conclusion and Future Directions

While the Fourier basis provides excellent global compression, it struggles with local variations; representing a change in a specific corner of a weight matrix requires many high-frequency coefficients. Future work may explore wavelets or Gaussian kernels to better handle spatial locality. Nevertheless, this frequency-domain approach represents a significant step forward in scaling neuroevolution to complex, high-dimensional control problems.

Summary updated

BibTeX
@misc{koutnik2012frequency,
  author = {Jan Koutník and Jürgen Schmidhuber and Faustino J. Gomez},
  title = {{A Frequency-Domain Encoding for Neuroevolution}},
  year = {2012},
  eprint = {1212.6521},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1212.6521},
}
Figure