GACEM: Generalized Autoregressive Cross Entropy Method for Multi-Modal Black Box Constraint Satisfaction

Kourosh Hakhamaneshi, Keertana Settaluri, Pieter Abbeel, Vladimir StojanovicarXiv 2020

TL;DR

GACEM introduces a generalized Cross-Entropy Method (CEM) that swaps out simple parametric distributions for an expressive masked autoregressive neural network trained via reinforcement learning. By optimizing for a maximum-entropy uniform distribution over valid regions, it successfully maps complex, unstructured, and multi-modal solution spaces where traditional black-box optimizers fail.

What Problem Does This Paper Address?

In many complex engineering tasks—such as circuit design, robotics, and hyperparameter tuning—evaluating constraints or performance metrics requires running expensive, time-consuming simulations. Worse yet, gradient information is often completely unavailable or impractical to estimate, forcing researchers to rely on black-box optimization methods like the Cross-Entropy Method (CEM).

However, traditional CEM has a major flaw: it is incredibly greedy. It typically assumes the underlying solution space can be modeled by a simple multivariate Gaussian distribution. As the algorithm iterates, its variance rapidly collapses to zero, locking onto a single local optimum. This makes it incapable of discovering multiple distinct solution paths (modes) or mapping complex, arbitrarily shaped valid regions. If the underlying environment dynamics change slightly, a single greedy solution fails to adapt.

Methods

To overcome these limitations, the authors present GACEM (Generalized Autoregressive Cross Entropy Method). The core innovation lies in replacing the standard Gaussian distribution model with a highly expressive neural network architecture:

  1. Masked Autoregressive Architecture: GACEM utilizes a Masked Autoencoder for Distribution Estimation (MADE), modified with mixture-of-Gaussians outputs inspired by PixelCNN++. This allows the model to capture complex conditional dependencies and represent arbitrary, unstructured, and multi-modal distributions across both continuous and discrete design spaces.
Figure 1. NN architecture of the masked auto-encoder, red arrows: dependencies of unit 2, black arrows: dependencies of unit 3
  1. Training via REINFORCE: Instead of standard maximum likelihood updates on elite samples, the network is trained using the REINFORCE policy gradient algorithm from Reinforcement Learning.
  2. Entropy Regularization: To prevent the distribution from collapsing into a single point, the objective function includes an explicit entropy bonus ($\beta H(p_\theta)$). This forces the algorithm to maintain a high-entropy, uniform distribution over all regions that satisfy the constraints.
  3. Off-Policy Sampling: The authors introduce an off-policy variant utilizing a replay buffer and importance sampling. This allows the algorithm to remember previously discovered modes and prevents it from greedily focusing only on the first valid region it encounters.

Datasets

The algorithm was evaluated using four parameterized synthetic benchmark functions designed to test specific geometric challenges in optimization:

  • Ackley: Features a uni-modal solution space but possesses an intricate, arbitrary cross-like shape in 2D.
  • Styblinski & Levy: Classic multi-modal optimization benchmarks used to test the algorithm's ability to navigate multiple local minima.
  • Synt: A custom synthetic function specifically designed to evaluate mode discovery. In $d$ dimensions, it contains $2^d$ distinct valid solution "clouds" that an algorithm must discover simultaneously.

Key Insights and Ideas

  • Constraint Satisfaction as Uniform Distribution Learning: Instead of treating optimization as finding a single pixel-perfect point, GACEM aims to learn a uniform distribution over the entire valid constraint space ($f(x) \leq 0$). This non-greedy representation acts as a robust "belief space" that can easily be fine-tuned if environment dynamics shift.
  • Expressiveness Matters: Traditional extensions of CEM try to use Kernel Density Estimation (KDE) to capture multiple modes, but these fail to scale as dimensions increase. Autoregressive neural networks provide the mathematical capacity to scale complex shape fitting to higher dimensions.
Comparison of distribution tracking over iterations between standard CEM variants on Ackley and Styblinski functions.

Key Results

  • True Shape Expression: On the 2D Ackley function, off-policy GACEM was the only algorithm capable of fully mapping the true, arbitrary cross-like shape of the valid solution space, whereas traditional CEM collapsed to a single central point.
  • Simultaneous Mode Discovery: In the "Synt" benchmark, t-SNE projections revealed that GACEM successfully tracked and sampled from multiple distinct clusters simultaneously (e.g., discovering all 4 clusters in 2D and multiple clusters in higher dimensions), while standard CEM variants completely exploited a single mode.
  • Scalability: While the off-policy variant excelled at capturing exact shapes in lower dimensions, the on-policy GACEM variant demonstrated superior scalability and solution diversity in higher-dimensional spaces (up to 20D) compared to all baseline methods.

Limitations and Future Work

Despite its advantages, the authors note a few key areas for improvement:

  • Off-Policy Scalability: The off-policy version with importance sampling struggles to scale effectively to high-dimensional spaces, occasionally failing to converge.
  • Sample Efficiency Momentum: Because GACEM relies on stochastic gradient descent (SGD) to update its neural network parameters, it exhibits less initial "momentum" toward the solution space than traditional CEM, requiring more initial evaluations.
  • Exploration Bounds: GACEM does not feature an explicit exploration mechanism outside of its entropy bonus. The authors suggest that integrating advanced RL exploration techniques—such as intrinsic novelty rewards—could prevent the model from getting trapped in local optima during early training phases.

Summary updated

BibTeX
@misc{hakhamaneshi2020gacem,
  author = {Kourosh Hakhamaneshi and Keertana Settaluri and Pieter Abbeel and Vladimir Stojanovic},
  title = {{GACEM: Generalized Autoregressive Cross Entropy Method for Multi-Modal Black Box Constraint Satisfaction}},
  year = {2020},
  eprint = {2002.07236},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2002.07236},
}
Figure