Optimizing low-discrepancy sequences with an evolutionary algorithm

François-Michel De Rainville, Christian Gagné, Olivier Teytaud, Denis Laurendeau

Abstract

Low-discrepancy sequences (LDS) are essential for high-dimensional sampling in fields like Monte Carlo simulations and machine learning. However, their performance often depends on internal permutations that are typically chosen randomly. This paper demonstrates that replacing these random shuffles with an Evolutionary Algorithm (EA) significantly improves space-filling properties. By optimizing sequences such as Nearly Orthogonal Latin Hypercubes (NOLH) and Scrambled Halton Sequences (SHS), the researchers achieved up to a 12.9% improvement in distribution quality while requiring far fewer computational resources than brute-force random searching.

Introduction: The Challenge of High-Dimensional Sampling

In fields such as Monte Carlo simulations, machine learning, and complex system optimization, sampling high-dimensional spaces efficiently is a critical task. Simple random sampling often fails because points tend to "clump" together, leaving large empty gaps—a phenomenon often associated with the "curse of dimensionality."

To address this, researchers utilize Quasi-random or Low-Discrepancy Sequences (LDS), designed to cover space as uniformly as possible. Popular methods include Nearly Orthogonal Latin Hypercubes (NOLH) and Scrambled Halton Sequences (SHS). These methods rely on internal permutations (shuffling of indices) to function effectively. Traditionally, these permutations are selected randomly. This paper argues that "random" is suboptimal; if the goal is the best possible space-filling property, the selection of these permutations should be treated as an optimization problem.

Comparison between random sampling (a) and quasi-random low-discrepancy sequences (b).

Methodology: Evolutionary Optimization of Permutations

The authors propose an Evolutionary Algorithm (EA) to evolve the permutations used in the construction of NOLH and SHS.

Representation and Variation

Each "individual" in the EA population is a vector representing a permutation of indices. Because the genotype is a permutation, standard mutation and crossover operators are unsuitable as they might create duplicate indices. Instead, the authors employ:

  • Swap Mutation: Switching two indices within the vector.
  • Specialized Crossover: A method that mixes parent indices while maintaining a valid permutation.

Fitness Functions

The EA optimizes based on specific criteria:

  • For SHS: Fitness is determined by the direct minimization of the $ML_2$ discrepancy, a mathematical measure of non-uniformity.
  • For NOLH: A multi-criteria approach is used, combining $ML_2$ discrepancy, Euclidean Maximin distance (maximizing the distance between the two closest points), and measures of orthogonality to ensure variables are not correlated.

The EA-optimized sequences were benchmarked against the best results found by testing 12.5 million random permutations.

Experimental Setup

The algorithm was evaluated on generated sampling matrices of varying dimensions, rather than external datasets:

  • NOLH: Tested at order $m=5$, resulting in 11 dimensions and 33 samples.
  • SHS: Tested at 11 dimensions with 200 samples. These benchmarks represent standard mathematical formulations for these sequences.

Key Insights: Efficiency and Visual Quality

The research yielded several significant insights:

  • Efficiency over Brute Force: The EA found superior configurations by exploring only about 1 million solutions. In contrast, a random search failed to match this quality even after 12.5 million trials. This indicates that the space of "good shuffles" is structured and searchable.
  • Visual Uniformity: Pairwise dimension comparisons often reveal artifacts in randomly scrambled sequences, such as "X" shapes or visible lines. The EA-optimized sequences successfully eliminated these patterns, resulting in a more isotropic and uniform distribution.
  • The Power of Scrambling: The results reinforce that the method of scrambling a sequence is as vital as the mathematical foundation of the sequence itself.

Results and Discussion

  • NOLH Improvements: EA-optimized designs improved discrepancy by 5.7% and maximin distance by 3.1% over the best random designs. When combined with "Florian’s Method" (a local search refinement), improvements reached 10% for discrepancy and 8.3% for maximin distance.
  • SHS Improvements: The EA outperformed random scrambling by an average of 12.9% in terms of discrepancy.
  • Computational Savings: The EA achieved these results using roughly 1/12th to 1/25th of the evaluations required by massive random searches.

Conclusion and Future Work

While the current approach optimizes for a fixed number of points and dimensions, future work could explore "anytime" properties—permutations that remain high-quality regardless of the number of points drawn. Additionally, scaling to extremely high-dimensional spaces (hundreds or thousands of variables) may require more sophisticated EA representations. Finally, implementing a formal Pareto-based multi-objective EA could further refine the balance between discrepancy and orthogonality.

Summary updated

BibTeX
@inproceedings{rainville2009optimizing,
  author = {François-Michel De Rainville and Christian Gagné and Olivier Teytaud and Denis Laurendeau},
  title = {{Optimizing low-discrepancy sequences with an evolutionary algorithm}},
  booktitle = {GECCO},
  year = {2009},
  doi = {10.1145/1569901.1570101},
}
Figure