Distributed Genetic Algorithm for Feature Selection

Michael Potter, Ayberk Yarkin Yildiz, Nishanth Marer Prabhu, Cameron GordonarXiv 2024 · DOI

Introduction

In the era of "Big Data," researchers frequently encounter datasets with hundreds of thousands of features. However, high dimensionality often introduces "distractor" features—noise that increases computational costs, consumes memory, and risks overfitting. Finding the optimal subset of features is a combinatorial challenge; for a dataset with just 270 features, the number of possible subsets exceeds the number of atoms in the known universe. While Genetic Algorithms (GA) provide a heuristic search mechanism for this space, they are traditionally computationally expensive because evaluating each candidate subset requires training a complete machine learning model.

Methodology

This research implements a Distributed Genetic Algorithm (GA) to automate feature selection. The GA treats feature subsets as "chromosomes" within a population. The process involves:

  1. Evaluation: Each subset is used to train an ML model, with performance metrics (e.g., F1-score) serving as the chromosome's "fitness."
  2. Selection & Elitism: The highest-performing subsets are preserved for the next generation.
  3. Crossover & Mutation: New candidates are generated via one-point crossover and Bernoulli mutation.

The primary innovation lies in parallelizing the evaluation bottleneck. By utilizing PySpark for distributed clusters and Joblib for multi-core local processing, the system trains the entire population of models simultaneously rather than sequentially.

Comparison of parallel and sequential model evaluation

Experimental Setup

The study evaluated the framework using three datasets from the Agnostic Learning vs. Prior Knowledge challenge, each containing 50% "distractor" features:

  • Sylva Agnostic: Forest cover statistics (14,395 samples, 217 features).
  • Gina Agnostic: MNIST-derived digit recognition (174 samples, 451 features).
  • Hiva Agnostic: AIDS HIV infection compounds (171 samples, 1203 features).

Results and Discussion

The distributed approach yielded significant improvements in both efficiency and model performance. Parallel execution achieved a 2x to 25x reduction in computation time. Interestingly, Joblib often outperformed Spark for mid-sized datasets due to lower overhead.

Beyond speed, the GA successfully pruned irrelevant data. Jaccard Overlap analysis confirmed that the algorithm effectively filtered out the 50% noise built into the challenge datasets. In nearly all test cases, models trained on GA-selected features outperformed the full-feature baseline. For instance, on the Gina Agnostic dataset using a Multi-Layer Perceptron (MLP), the F1-score improved from 0.875 to 0.889.

F1 Score trends over evolution iterations

Conclusion

Parallelism is a critical requirement for applying Genetic Algorithms to high-dimensional data. By drastically reducing compute time, researchers can run more evolution rounds and maintain larger populations, increasing the probability of finding optimal feature sets. Future work will focus on hyperparameter tuning for the GA itself and addressing reproducibility challenges inherent in distributed multi-threaded environments.

Summary updated

BibTeX
@misc{potter2024distributed,
  author = {Michael Potter and Ayberk Yarkin Yildiz and Nishanth Marer Prabhu and Cameron Gordon},
  title = {{Distributed Genetic Algorithm for Feature Selection}},
  year = {2024},
  eprint = {2401.10846},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.10846},
}
Figure