A Linear Time Natural Evolution Strategy for Non-Separable Functions

Yi Sun, Faustino J. Gomez, Tom Schaul, Jürgen SchmidhuberarXiv 2011

Introduction

In continuous black-box optimization, practitioners often face a stark trade-off between computational efficiency and the ability to handle complex, non-separable objective functions. State-of-the-art methods like the Covariance Matrix Adaptation Evolution Strategy (CMA-ES) and Exponential Natural Evolution Strategies (xNES) are highly effective at navigating non-separable landscapes by learning a full covariance matrix. However, this power comes at a significant cost: the computational complexity of these methods scales quadratically ($O(d^2)$) or even cubically ($O(d^3)$) with the number of dimensions $d$. This paper introduces Rank-One NES (R1-NES), an algorithm designed to provide the benefits of covariance adaptation with the linear time complexity of simpler diagonal methods.

The Challenge of High-Dimensional Optimization

The primary difficulty in high-dimensional black-box optimization is the presence of correlations between variables. In "separable" functions, each dimension can be optimized independently. For such problems, diagonal covariance methods—which only track the variance along coordinate axes—are highly efficient, scaling linearly $O(d)$.

However, real-world problems are rarely separable. In non-separable functions, variables are highly correlated, creating narrow, curving valleys that do not align with the coordinate axes. Diagonal methods fail in these scenarios because they cannot "turn" their search distribution to follow the valley's orientation. While full-covariance methods can adapt to any orientation, their $O(d^2)$ parameter growth makes them impractical for high-dimensional tasks, such as optimizing the weights of large neural networks. R1-NES seeks a middle ground: an algorithm as fast as diagonal methods that can still align itself with the principal directions of the function landscape.

Methodology: Rank-One Natural Evolution Strategy

The authors propose a specific parameterization of the covariance matrix $C$ that captures the most significant direction of curvature while maintaining linear complexity. The covariance is defined as: $$C = \sigma^2 (I + uu^\top)$$ where $\sigma$ represents the global step size, $I$ is the identity matrix, and $u$ is a vector representing a rank-one update.

Why This Approach Works

  1. Efficiency: This structure only requires $O(d)$ parameters. The authors derive the natural gradient for this specific formulation analytically, ensuring that the update remains computationally cheap.
  2. Flexibility: The vector $u$ represents a "predominant direction." It allows the search distribution to stretch and align itself with the most important direction of the function's landscape (like the floor of a long, narrow valley), even if that direction is not axis-aligned.
  3. Stability: To prevent numerical issues when the vector $u$ changes direction abruptly, the authors introduce a reparameterization that separates the length and direction of $u$, along with a hybrid update rule that switches between additive and exponential updates based on the gradient's behavior.

Experimental Evaluation

The performance of R1-NES was benchmarked using the BBOB (Black-Box Optimization Benchmarking) 2010 unimodal collection. This suite includes 12 noise-free functions that test various challenges, including:

  • Separable functions: Sphere and Linear functions.
  • Non-separable functions: Rosenbrock, Sharp Ridge, and Cigar.
  • Ill-conditioned functions: Ellipsoid and Tablet.

The experiments spanned dimensions from $d=2$ up to $d=512$, allowing for a clear analysis of how the algorithm scales compared to full-covariance NES (xNES).

Results and Discussion

The empirical results highlight several key strengths of the R1-NES approach:

  • Linear Scalability: R1-NES demonstrates true $O(d)$ scaling in computation time per function evaluation. In contrast, xNES exhibits cubic growth. For a 64-dimensional problem, xNES may take hours to complete, while R1-NES finishes in minutes.
  • Success on Non-Separable Problems: R1-NES successfully solved the 512-dimensional Rosenbrock function, setting a record for performance on this benchmark at the time of publication. This demonstrates that learning even a single predominant direction of curvature is often sufficient to navigate complex landscapes.
  • Competitive Efficiency: On specific non-separable problems like the "Cigar" function—where one direction of curvature is significantly more important than others—R1-NES performs comparably to xNES in terms of the number of fitness evaluations required, while being orders of magnitude faster in wall-clock time.

Limitations

The primary limitation of the algorithm is its reliance on a rank-one approximation. While sufficient for many problems, it struggles on "ill-conditioned" functions like the Tablet or Ellipsoid. In these cases, the Hessian of the objective function has multiple significant eigenvalues, and a single vector $u$ cannot adequately capture the necessary search shape.

Conclusion

R1-NES represents a significant step forward in making natural evolution strategies applicable to high-dimensional problems. By bridging the gap between diagonal and full-covariance methods, it enables the optimization of non-separable functions that were previously computationally prohibitive. Future work may involve extending this framework to "Rank-$k$ NES," allowing the algorithm to track multiple principal directions of curvature to better handle ill-conditioned landscapes.

Summary updated

BibTeX
@misc{sun2011linear,
  author = {Yi Sun and Faustino J. Gomez and Tom Schaul and Jürgen Schmidhuber},
  title = {{A Linear Time Natural Evolution Strategy for Non-Separable Functions}},
  year = {2011},
  eprint = {1106.1998},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1106.1998},
}
Figure