Imagine trying to find the lowest valley in a landscape riddled with hills and false bottoms. Random guessing finds valleys slowly. Gradient descent gets stuck in the nearest dip. What if, instead, you scattered thousands of probes at random, kept only the deepest ones, and then asked: what do the survivors have in common? Rebuild your next batch of probes around that common profile — and repeat.
That is the cross-entropy (CE) method in one sentence. Proposed by Reuven Rubinstein in 1999, it originally solved a technical problem in rare-event simulation — how to estimate the probability of a catastrophic failure that almost never happens. The core insight was to adapt the sampling distribution itself: minimize the Kullback–Leibler divergence (equivalently, the cross-entropy) between the current distribution and the ideal one that concentrates mass on the rare event or the optimal solution.
The resulting loop is elegant:
- Sample a batch of candidate solutions from a parametric distribution (Gaussian means and variances, Bernoulli probabilities for discrete problems, etc.).
- Evaluate each candidate with your objective function.
- Select the elite fraction — the top γ% by score.
- Refit the distribution to maximize the likelihood of the elites.
- Go to 1.
Each iteration the distribution tightens around better and better regions. The method is not a gradient method — it never differentiates the objective — yet for many smooth and combinatorial problems it converges to near-optimal solutions reliably. It sits alongside simulated annealing and evolutionary algorithms, but with a probabilistic model at the center.
Comments
Loading comments...