Covariance Matrix Adaptation Evolution Strategy for Low Effective Dimensionality

Kento Uchida, Teppei Yamaguchi, Shinichi ShirakawaarXiv 2024

High-dimensional black-box optimization is a notorious challenge in machine learning and engineering. Whether you are tuning hyperparameters for a massive neural network or optimizing complex shapes in fluid dynamics, you often face a sea of variables. However, many of these problems possess a hidden property: Low Effective Dimensionality (LED). This means that while the problem lives in a high-dimensional space, the objective function only truly changes along a few "intrinsic" directions.

Standard algorithms like the Covariance Matrix Adaptation Evolution Strategy (CMA-ES) often struggle here. In a new paper, researchers from Yokohama National University propose CMA-ES-LED, a variant designed to automatically detect and adapt to these low-dimensional structures.

TL;DR

CMA-ES-LED improves high-dimensional optimization by estimating the intrinsic dimensionality and rotation of a problem on the fly. By using signal-to-noise ratios to identify effective dimensions, it adaptively tunes its hyperparameters and step-size rules, significantly outperforming standard CMA-ES on redundant problems.

What Problem Does This Paper Address?

CMA-ES is a state-of-the-art derivative-free optimizer that uses a multivariate Gaussian distribution to sample candidate solutions. However, it has two major Achilles' heels when dealing with LED:

  1. Rigid Hyperparameters: Its default learning rates and damping factors are functions of the total number of dimensions ($N$). If $N$ is 1000 but only 10 dimensions matter, the algorithm uses settings that are far too conservative.
  2. Noisy Step-Size Adaptation: Popular step-size rules like Cumulative Step-size Adaptation (CSA) calculate norms across all dimensions. In LED problems, noise from hundreds of redundant dimensions drowns out the signal from the few effective ones, leading to poor step-size control.

The challenge is compounded by the fact that these effective dimensions are rarely aligned with the coordinate axes; they are usually hidden behind an unknown rotation matrix $R$, as illustrated in Figure 1.

Figure 1: The conceptual image of function with LED. We simply consider the case where the objective function contains a rotation matrix R ∈RN×N and an intrinsic objective function ˜f : RNeff →R. The objective function value at x is given by f(x) = ˜f(ψ(Rx)), where ψ(y) = (y1, · · · , yNeff )T ∈RNeff . This figure shows an example with N = 2 and Neff = 1. See Section 4 for detail.

Methods

The authors introduce three key innovations to transform CMA-ES into CMA-ES-LED:

1. Estimating the Rotation and Effectiveness

To find the hidden "important" directions, the algorithm uses the eigenvectors of the covariance matrix as a proxy for the rotation matrix. It then calculates the Signal-to-Noise Ratio (SNR) for the update directions in this rotated space. A high SNR indicates a dimension that consistently contributes to finding better solutions (an "effective" dimension), while a low SNR suggests a redundant, noisy dimension.

2. Hyperparameter Adaptation

Instead of using the total dimension $N$ to set hyperparameters, CMA-ES-LED calculates an estimated number of effective dimensions, $\hat{N}_{eff}$, by summing up the "effectiveness" scores of each rotated dimension. It then plugs $\hat{N}_{eff}$ into the standard CMA-ES hyperparameter formulas. This allows the algorithm to use aggressive learning rates appropriate for the true, lower-dimensional problem.

3. Refined Step-Size Rules

The authors modified the norm calculations in both CSA and Two-Point Step-size Adaptation (TPA). Instead of a standard Euclidean norm, they use a weighted norm where each dimension's contribution is scaled by its estimated effectiveness. This effectively "mutes" the noise from redundant dimensions.

The full procedure is detailed in the algorithm below:

The CMA-ES-LED algorithm, highlighting the SNR estimation and hyperparameter adaptation steps.

Datasets

The researchers evaluated their method on 9 standard benchmark functions (including Sphere, Ellipsoid, Ackley, and Rosenbrock). To simulate LED, they extended these functions by:

  • Adding varying numbers of redundant dimensions ($N_{red}$ up to 128).
  • Applying a random rotation matrix $R$ to ensure the effective dimensions were not axis-aligned.

Key Insights and Ideas

  • Eigenvectors as a Compass: The covariance matrix in CMA-ES naturally learns the landscape's shape. Its eigenvectors eventually align with the intrinsic subspace, making them an excellent choice for estimating the rotation matrix $R$ without needing prior knowledge.
  • SNR as a Filter: By treating the optimization update as a signal, the authors provide a robust way to distinguish between progress and random walk noise. Figure 4 shows how the SNR clearly separates effective dimensions (Sphere function) from redundant ones (Random function) as the search progresses.
  • Seamless Integration: The method doesn't require the user to guess the intrinsic dimensionality. The algorithm "discovers" it and adjusts its own internal physics accordingly.
Figure 3: The transitions of the elements of vsnr on the sphere function (green) and the random function (gray). The solid lines and shaded areas show the median and ranges between the minimum and maximum, respectively. Note that these lines are obtained by a single trial of the CMA-ES with the CSA.

Key Results

  • Superior Scaling: On functions with many redundant dimensions, CMA-ES-LED required significantly fewer function evaluations to reach the target optimum compared to standard CMA-ES. The performance gap widened as the number of redundant dimensions increased.
  • No "Free Lunch" Penalty: Crucially, on problems where all dimensions were effective ($N = N_{eff}$), CMA-ES-LED remained competitive with the original algorithm, showing that the adaptation mechanism doesn't hurt performance on standard tasks.
  • Robustness: When combined with the IPOP restart strategy, the method successfully handled highly multimodal landscapes, proving that the effectiveness estimation is robust even when the local landscape is "bumpy."

Limitations and Future Work

While powerful, the authors noted a few areas for improvement:

  • Multimodality Challenges: On the Rastrigin function, the estimation of effective dimensions became unstable due to the highly oscillatory nature of the landscape.
  • Restart Initialization: Currently, when the algorithm restarts (e.g., in IPOP), the learned effectiveness and rotation are reset. Developing a way to "inherit" this knowledge across restarts could further boost performance.
  • Population Size: The current work keeps the sample size fixed to default settings; combining this with population size adaptation is a promising future direction.

For researchers dealing with high-dimensional black-box problems, CMA-ES-LED offers a principled way to ignore the noise and focus on what matters.

Summary updated

BibTeX
@misc{uchida2024covariance,
  author = {Kento Uchida and Teppei Yamaguchi and Shinichi Shirakawa},
  title = {{Covariance Matrix Adaptation Evolution Strategy for Low Effective Dimensionality}},
  year = {2024},
  eprint = {2412.01156},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.01156},
}
Figure