Skip to main content
QUICK REVIEW

[Paper Review] Optimizing Neural Networks with Gradient Lexicase Selection

Li Ding, Lee Spector|arXiv (Cornell University)|Dec 19, 2023
Evolutionary Algorithms and ApplicationsComputer Science6 citations
TL;DR

This paper proposes Gradient Lexicase Selection, an evolutionary optimization framework that integrates lexicase selection with stochastic gradient descent to improve deep neural network generalization. By selecting model updates based on individual training case errors rather than aggregated loss, the method enhances representation diversity and achieves consistent accuracy gains across multiple image classification benchmarks and architectures.

ABSTRACT

One potential drawback of using aggregated performance measurement in machine learning is that models may learn to accept higher errors on some training cases as compromises for lower errors on others, with the lower errors actually being instances of overfitting. This can lead to both stagnation at local optima and poor generalization. Lexicase selection is an uncompromising method developed in evolutionary computation, which selects models on the basis of sequences of individual training case errors instead of using aggregated metrics such as loss and accuracy. In this paper, we investigate how lexicase selection, in its general form, can be integrated into the context of deep learning to enhance generalization. We propose Gradient Lexicase Selection, an optimization framework that combines gradient descent and lexicase selection in an evolutionary fashion. Our experimental results demonstrate that the proposed method improves the generalization performance of various widely-used deep neural network architectures across three image classification benchmarks. Additionally, qualitative analysis suggests that our method assists networks in learning more diverse representations. Our source code is available on GitHub: https://github.com/ld-ing/gradient-lexicase.

Motivation & Objective

  • To address the limitation of aggregated loss functions in deep learning, which can lead to compromised performance on individual training cases and hinder generalization.
  • To investigate whether lexicase selection—originally used in evolutionary computation—can improve representation diversity and generalization in deep neural networks.
  • To develop a hybrid optimization framework that combines the efficiency of gradient descent with the uncompromising selection strategy of lexicase selection.
  • To evaluate the method’s robustness and effectiveness across diverse architectures and benchmark datasets in image classification.

Proposed method

  • The method replaces standard gradient-based weight updates with a lexicase selection process that evaluates models based on their error sequences across individual training cases, rather than aggregated loss.
  • At each training step, a population of model copies is maintained, each updated via stochastic gradient descent on a random batch of data.
  • After each update, models are ranked using lexicase selection: candidates are progressively eliminated based on their performance on randomly shuffled training cases, preserving diversity.
  • The final model is selected from the population based on its ability to achieve low error on all cases without compromise, promoting robust and generalizable representations.
  • The framework supports parallel training of multiple model instances, enabling efficient computation on modern hardware.
  • Hyperparameters such as population size and momentum are tuned to balance exploration and exploitation in the search process.

Experimental results

Research questions

  • RQ1Can lexicase selection, traditionally used in evolutionary computation, improve generalization in deep neural networks trained with gradient descent?
  • RQ2Does avoiding aggregated loss functions reduce overfitting to specific training cases and improve representation diversity in DNNs?
  • RQ3How does the integration of lexicase selection affect the performance of diverse deep learning architectures on standard image classification benchmarks?
  • RQ4What is the trade-off between population size, momentum, and generalization performance in the proposed framework?
  • RQ5To what extent does the method enhance feature representation diversity compared to standard SGD?

Key findings

  • Gradient Lexicase Selection improves test accuracy across six widely used deep neural network architectures—VGG, ResNet, DenseNet, MobileNetV2, SENet, and EfficientNet—on CIFAR-10, CIFAR-100, and SVHN benchmarks.
  • The method consistently outperforms standard SGD and baseline selection strategies (random and tournament selection), demonstrating robustness across different architectures and datasets.
  • Ablation studies show that the performance gain is primarily due to the lexicase selection mechanism, not the population-based training setup alone.
  • Qualitative analysis reveals that models trained with gradient lexicase selection learn flatter, more diverse activation distributions in convolutional layers, which correlates with better generalization.
  • The method achieves superior performance even with a population size only four times that of standard SGD, indicating computational efficiency.
  • Representation diversity analysis confirms that the method reduces over-reliance on specific features and promotes broader, more generalizable feature learning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.