The Cross-Entropy Method Optimizes for Quantiles

Sergiu Goschin, Ari Weinstein, Michael L. Littman

TL;DR

Researchers have discovered that the popular Cross-Entropy (CE) optimization method fails to find the best average performance in noisy environments because it inherently optimizes for quantiles (like the top 10% of outcomes) rather than the expected value (the mean). To fix this, they propose Proportional CE, a variant that weights all samples by their performance, successfully finding optimal average solutions where standard CE fails.

What Problem Does This Paper Address?

In the world of optimization and Reinforcement Learning (RL), the Cross-Entropy (CE) method is a heavyweight. It’s used to find the best "policy" or solution by maintaining a probability distribution over possible answers, sampling from it, and then "refocusing" that distribution on the best-performing samples—the so-called "elite" set.

The problem arises in stochastic (noisy) environments. Imagine you are training an AI to play a game where luck is involved. Standard CE looks at the top, say, 10% of your attempts and tries to mimic them. However, in a noisy world, the "top 10%" might just be the attempts that got lucky, not the ones that are actually the best on average.

The authors tackle a fundamental misunderstanding: most researchers assume CE optimizes for the best average (expected value), but this paper proves that it actually optimizes for a specific "quantile" determined by your choice of the elite percentage. If your goal is to win consistently on average, but your algorithm is chasing "lucky" outliers, you end up with a sub-optimal, or even disastrous, solution.

Methods

The paper compares three main approaches:

  1. Standard CE: Uses a parameter $\rho$ (rho) to select the top $\rho\%$ of samples to update the model.
  2. m-Cross-Entropy (mCE): A common "brute force" fix where each solution is tested $m$ times and averaged to reduce noise before selection.
  3. Proportional CE (The New Approach): Instead of picking a "top percentage" and ignoring the rest, this method keeps all samples but weights them. A sample's influence on the next generation is proportional to its score (normalized between the minimum and maximum scores seen in that batch). This removes the arbitrary $\rho$ parameter and aligns the algorithm's mathematical goal with the expected value.

The authors provide a formal mathematical proof using an "infinite population model" to show that while standard CE converges to a quantile, Proportional CE converges to the true mean.

Datasets

The authors evaluated these algorithms across four distinct "noisy" domains:

  • Die4: A simple risk-management game where you roll a die to accumulate points but lose everything if you roll a 4.
  • Inventory Control: A classic operations research problem where a manager must decide how much stock to order given unpredictable customer demand.
  • Stochastic SZTetris: A modified version of Tetris using only "S" and "Z" pieces, designed to be difficult and "infuse risk" into the scoring.
  • Blackjack: Two versions of the card game—one standard and one allowing "Double Down" bets, which significantly increases the variance (noise) of the outcomes.

Key Insights and Ideas

  • CE is Risk-Seeking: Because standard CE focuses on the "elite" tail of a distribution, it is inherently "risk-seeking." In a gambling context, it will prefer a strategy that wins big 10% of the time even if it loses 90% of the time, provided your $\rho$ is set to 10%.
  • The "Elite" Trap: The very mechanism that makes CE fast—cutting out the "losers"—is what blinds it to the true average performance in noisy settings.
  • Equivalence to Genetic Algorithms: The authors show that the update rule for CE is mathematically identical to "truncation selection" in genetic algorithms, allowing them to bridge two different fields of optimization theory.
  • mCE is a Half-Measure: While testing a solution multiple times (mCE) helps, it is computationally expensive and, as the paper shows, often still fails to match the performance of Proportional CE.

Key Results

Tetris policies and CE convergence comparison
  • Tetris: In a risky version of Tetris, standard CE's performance actually degraded over time. It over-optimized for "lucky" runs and eventually settled on poor policies. Proportional CE remained stable and achieved significantly higher scores. The figure above illustrates how different policies perform across quantiles and how Proportional CE successfully converges compared to standard CE.
  • Blackjack: In the "Double Down" variant, standard CE (with $\rho=50\%$) performed no better than random chance. Proportional CE, however, correctly learned when to be conservative and when to bet, finding a winning strategy.
  • Inventory Control: Standard CE converged to different stock-ordering thresholds depending on the $\rho$ value chosen, most of which were sub-optimal. Proportional CE consistently found the threshold that maximized average profit.

Limitations and Future Work

The primary limitation noted is that Proportional CE can converge more slowly than standard CE. Because it considers all samples rather than just the "best" ones, it takes more generations to "narrow down" on the final answer.

The theoretical proof also relies on an "infinite population model," which assumes an infinite number of samples per generation—a luxury not available in the real world. Future work could explore how these findings apply to more complex, high-dimensional continuous spaces (like deep reinforcement learning) where noise is even more prevalent.

Summary updated

BibTeX
@inproceedings{goschin2013cross,
  author = {Sergiu Goschin and Ari Weinstein and Michael L. Littman},
  title = {{The Cross-Entropy Method Optimizes for Quantiles}},
  booktitle = {International Conference on Machine Learning},
  year = {2013},
}
Figure