Lexicase Selection at Scale

Li Ding, Ryan Boldi, Thomas Helmuth, Lee Spector · DOI

Lexicase selection is a favorite in the evolutionary computation community because it excels at maintaining population diversity. Unlike standard methods that boil an individual's performance down to a single average score, lexicase selection forces individuals to compete on specific test cases. However, this diversity comes at a high price: the algorithm is inherently sequential and computationally expensive, making it a tough sell for large-scale datasets or deep learning models.

In this paper, researchers from the University of Massachusetts Amherst and Hamilton College propose Fast Lexicase Selection, a method that significantly reduces the computational overhead of this powerful selection technique.

TL;DR

The authors introduce "Fast Lexicase Selection," a method that uses weighted shuffling and partial evaluation to prioritize informative test cases during parent selection. This approach slashes the number of required evaluations by over 60% in deep learning tasks while maintaining the problem-solving performance and diversity of the original algorithm.

What Problem Does This Paper Address?

The core of lexicase selection involves shuffling all training cases and then filtering the population case-by-case. You take the first case, keep only the individuals that performed best on it, move to the second case with the survivors, and repeat until only one "parent" remains.

While effective, this is a "single-data-stream" process. For a deep neural network (DNN) training on 50,000 images, standard lexicase selection might require running inference on thousands of images just to select one parent. This is slow and doesn't play well with the parallel, batch-oriented nature of modern GPUs. The "evaluate-everything-then-select" paradigm creates a massive bottleneck as datasets and models scale up.

Methods

The researchers' key insight is that not all test cases are equally useful for filtering a population. If every individual passes an "easy" case, evaluating it doesn't help select a parent—it just wastes time.

To fix this, they introduced:

  • Weighted Shuffle with Partial Evaluation: Instead of a uniform random shuffle, they assign weights to test cases. Cases with higher weights are more likely to appear earlier in the selection sequence.
  • Bias Metrics: They tested two ways to weight cases:
  • Number-of-Zeros (Num-Zeros): Prioritizes "easy" cases that many individuals pass.
  • Number-of-Nonzeros (Num-Nonzeros): Prioritizes "hard" cases that many individuals fail.
  • Online Weight Updating: Because evaluating the entire population on every case is too expensive, they update these weights "on the fly" using results from the current selection events to inform the next ones.
  • Fast Gradient Lexicase Selection: An extension specifically for deep learning that integrates these efficiency gains into the training loop of neural networks.

Datasets

The authors evaluated their methods across two distinct domains:

  1. Genetic Programming (GP): They used the Mirror Image and Last Index of Zero problems from the General Program Synthesis Benchmark Suite.
  2. Deep Learning: They used the classic CIFAR-10 image classification dataset (50,000 training images, 10,000 test images) using a VGG network architecture.

Key Insights and Ideas

  • Hard Cases are Better Sieves: The "hard-first" (Num-Nonzeros) approach was the clear winner for efficiency. By putting difficult cases at the front of the line, the population size shrinks much more rapidly, requiring fewer total evaluations to find a single winner.
  • Initialization is Crucial: For deep learning, the best results came from assuming all cases were "hard" at the start (Default-Max). This creates an initial bias toward exploring unseen or difficult parts of the data space.
  • Efficiency Without Sacrifice: The most important "aha" moment was that you can "game" the selection order to save time without losing the specialized, diverse solutions that make lexicase selection so valuable in the first place.

Key Results

The results show a dramatic improvement in theoretical runtime (measured by the number of evaluations) across both GP and Deep Learning tasks.

  • In Genetic Programming: The "Ranked Num-Nonzeros" method consistently required the fewest evaluations per generation compared to standard lexicase selection. Average evaluations for the Mirror Image problem
  • In Deep Learning: On the CIFAR-10 task, the fastest variant (Num-Nonzeros with Default-Max initialization) reduced the total number of evaluations from 614,940 down to 230,335.
  • Performance Parity: Despite the massive reduction in computation, the accuracy on CIFAR-10 remained statistically identical to the baseline (roughly 93%), proving that the speedup doesn't come at the cost of model quality. Smoothed comparison of evaluations in the final generations of CIFAR-10 training
Figure 1: Average number of evaluations performed in a given active generation over evolutionary time while solv- ing the Mirror Image problem. The hard first metrics (those using the Number-of-Nonzeros bias metric) are shown in red and the easy first metrics (Number-of-Zeros) are shown in blue. The weighted shuffling technique is presented as dotted lines, and the ranked shuffling technique is shown in solid lines. Lexicase selection is shown in black. Ranked shuffling using the Number-of-Nonzeros bias metric consis- tently performs less comparisons per generation than all other shuffling methods, including lexicase selection (ran- dom shuffling).
Figure 4: Comparing number of evaluations of regular gra- dient lexicase selection and fast gradient lexicase selection, using the same data as Fig. 3 but on a different view with the last 50 generations of each method, aligned by the end. The y-axis is smoothed by applying a moving average over 20 generations. This plot more clearly shows the compar- ison among methods, that the fast gradient lexicase selec- tion with Default-Max and Num-Nonzeros being the most efficient method.

Limitations and Future Work

While the paper demonstrates a massive reduction in the number of evaluations (a hardware-agnostic proxy for speed), it doesn't focus on actual wall-clock time speedups on specific GPU clusters. Because lexicase selection is inherently sequential, even with fewer evaluations, it still struggles to fully utilize the parallel "SIMD" (Single Instruction, Multiple Data) power of modern hardware.

The authors suggest that future work should explore even more sophisticated ways to extract information about the relationship between the population and the training data to refine the case-weighting process further, potentially leading to even greater efficiency gains.

Summary updated

BibTeX
@inproceedings{ding2022lexicase,
  author = {Li Ding and Ryan Boldi and Thomas Helmuth and Lee Spector},
  title = {{Lexicase Selection at Scale}},
  booktitle = {GECCO Companion},
  year = {2022},
}
Figure