A Simple Decentralized Cross-Entropy Method

Zichen Zhang, Jun Jin, Martin Jagersand, Jun Luo, Dale Schuurmans

Decentralized CEM (DecentCEM) improves model-based reinforcement learning (MBRL) by replacing a single, centralized sampling distribution with an ensemble of independent CEM instances. This simple architectural shift prevents the "mode collapse" common in standard CEM, allowing the agent to escape local optima and significantly improve sample efficiency in complex continuous control tasks.

The Cross-Entropy Method (CEM) is a cornerstone of planning in Model-Based Reinforcement Learning. In MBRL, an agent uses a learned model of the world to "imagine" future trajectories, ranks them by predicted reward, and updates its sampling distribution to favor the best-performing actions.

However, standard CEM is inherently centralized: it ranks all generated samples together to update a single distribution (usually a Gaussian). This approach faces two major hurdles:

  1. Local Optima: In multi-modal reward landscapes, a single Gaussian distribution often gets "stuck" on a sub-optimal peak.
  2. Sample Inefficiency: As the dimensionality of the action space increases, a centralized search becomes increasingly likely to converge prematurely, failing to find the global optimum.
Visualization of mode collapse in CEM-GMM on a 1D multi-modal task.

Even advanced versions that attempt to use Gaussian Mixture Models (GMMs) often fail. Because the global ranking step evaluates all samples together, it tends to pull all mixture components toward the exact same local peak, leading to severe "mode collapse."

The DecentCEM Approach

To overcome these limitations, the authors propose DecentCEM, which decentralizes the optimization process. Instead of maintaining one large pool of samples, the total sampling budget is divided among an ensemble of $M$ independent CEM instances.

DecentCEM divides the sampling budget among independent instances that perform local top-k ranking.
  • Independent Evolution: Each instance manages its own sampling distribution and performs its own local "top-$k$" ranking. Because they do not share samples during the search, they can explore different regions of the solution space simultaneously without collapsing into a single mode.
  • Aggregation: Once the instances reach a stopping condition, the final action is chosen by taking the argmax (the best overall result) across all instances.
  • Integration with MBRL: The authors implement three versions of this approach:
  • DecentPETS: A decentralized version of the popular PETS algorithm.
  • DecentCEM-A: Uses an ensemble of policy networks to plan in the action space.
  • DecentCEM-P: Uses an ensemble of policy networks to plan in the parameter space of the networks themselves.

Crucially, because each instance is independent, the policy networks in DecentCEM-A and DecentCEM-P are trained on their own local data. This effectively increases the total amount of diverse training data available to the ensemble compared to centralized methods like POPLIN.

Key Insights and Results

The method was evaluated on standard continuous control benchmarks from OpenAI Gym and MuJoCo (including Hopper, Walker2D, HalfCheetah, and Ant), as well as a 1D multi-modal synthetic benchmark.

  • Solving the Global Optimization Problem: In the 1D synthetic task, DecentCEM consistently found the global optimum across various population sizes. In contrast, standard CEM and CEM-GMM frequently got stuck in local minima. Furthermore, DecentCEM was over 100x faster than CEM-GMM at large population sizes.
  • Superior MBRL Performance: In high-dimensional environments like Ant and Walker2D, DecentCEM-A and DecentCEM-P significantly outperformed state-of-the-art baselines like PETS and POPLIN.
  • The Ensemble "Sweet Spot": Ablation studies revealed a trade-off when tuning the ensemble size ($M$). Increasing $M$ improves diversity and performance up to a point. However, because the total sample budget is fixed, too many instances mean each instance receives too few samples to accurately estimate the local reward gradient, leading to diminishing returns.

Limitations and Future Work

While highly effective, DecentCEM introduces a new hyperparameter—the ensemble size $M$—which requires tuning to balance exploration and exploitation. Additionally, the current implementation runs the CEM instances serially. Because the instances are entirely independent, the algorithm is "embarrassingly parallel." Future work implementing a parallelized version could offer massive wall-clock speedups, making this simple yet powerful method even more practical for real-time control.

Summary updated

BibTeX
@inproceedings{zhang2022simple,
  author = {Zichen Zhang and Jun Jin and Martin Jagersand and Jun Luo and Dale Schuurmans},
  title = {{A Simple Decentralized Cross-Entropy Method}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=IQIY2LASzYx},
}
Figure