On explaining machine learning models by evolving crucial and compact features

Marco Virgolin, Tanja Alderliesten, Peter A. N. Bosman · DOI

TL;DR

This paper demonstrates that we don't need hundreds of features to build accurate machine learning models. By using Genetic Programming (specifically an algorithm called GP-GOMEA), researchers can evolve just two or three "compact" features—mathematical combinations of the originals—that are human-readable, allow for easy 2D visualization, and often match or exceed the performance of models using the full dataset.

What Problem Does This Paper Address?

Modern Machine Learning (ML) is a double-edged sword. While models like Random Forests or XGBoost are incredibly accurate, they are often "black boxes." We know they work, but we don't always know why.

Traditional feature construction (creating new variables from old ones) usually focuses solely on boosting accuracy, often resulting in complex, nested variables that are as mysterious as the models themselves. The authors tackle a specific challenge: Can we automate the creation of features that are crucial (high performance) and compact (small enough for a human to read and for a computer to plot in 2D)? If we can reduce a high-dimensional problem to just two evolved features, we can literally see the model's decision boundaries on a graph.

Methods

The researchers propose an Iterative Evolutionary Feature Construction (FCS) scheme. Instead of evolving a whole model, they use Genetic Programming (GP) to evolve mathematical expressions (like $x_1 \cdot \sqrt{x_2} + x_3$) that serve as new features.

Key components include:

  • The Algorithms: They compared standard tree-based GP (SGP) against GP-GOMEA (Gene-pool Optimal Mixing Evolutionary Algorithm). GP-GOMEA is a modern evolutionary algorithm designed to find high-quality solutions while strictly limiting the size of the "trees" (the complexity of the features).
  • The Wrapper Approach: The fitness of a new feature is determined by how well a standard ML model (like an SVM or Random Forest) performs using that feature. They used $C$-fold cross-validation to ensure the features weren't just overfitting the training data.
  • The Iteration: They build features one by one. Once a "best" feature is found, it's fixed, and the algorithm searches for the next one that best complements the existing set.

Datasets

The study was rigorous, testing the approach on 21 different datasets:

  • 10 Classification Tasks: Including well-known benchmarks like Iris, Ionosphere, Madelon (500 features), and Image Segmentation.
  • 10 Regression Tasks: Including Boston Housing, Concrete, and Yacht Hydrodynamics.
  • 1 High-Dimensional Dataset: A RNA-Seq cancer gene expression dataset with over 20,000 features but only 801 examples, used to test if the method could handle extreme dimensionality.

Key Insights and Ideas

  • The "Aha" of Dimensionality: For many datasets, the "intrinsic" dimensionality is much lower than the number of recorded variables. The authors found that for several problems, just two evolved features were enough to rival the performance of the entire original feature set.
  • GP-GOMEA vs. Bloat: Standard GP often suffers from "bloat," where expressions become massive and unreadable. GP-GOMEA proved superior at finding "crucial" information within very strict size constraints (e.g., a tree height of 2 or 4).
  • Helping "Weak" Models: Simple models like Naive Bayes or Linear Regression saw the biggest performance jumps. Because these models can't handle non-linear relationships on their own, the evolved features do the "heavy lifting" by capturing those non-linearities mathematically before the model even sees the data.
  • Visualization as Explanation: By reducing data to 2D, the researchers could plot "decision surfaces." This allows a human to see exactly where a model is confident, where it struggles, and how it separates different classes.

Key Results

  • Performance: On the Yacht dataset, using an SVM on the original six features yielded an $R^2$ of 85%. Using just two evolved features, the $R^2$ jumped to 98%.
  • Interpretability: The evolved features were often simple enough to be written in a single line, such as a combination of "aging" and "water-to-cement ratio" for predicting concrete strength.
  • High-Dimensional Success: On the RNA-Seq dataset (20,000+ features), the system successfully boiled the data down to a few features that achieved a high F1 score (~0.95), effectively performing feature selection and construction simultaneously.
  • Efficiency: While GP is computationally expensive, the authors showed that for traditional datasets, the process takes anywhere from a few seconds to a few minutes on standard hardware.

Limitations and Future Work

  • Computational Cost: Evaluating the fitness of a feature requires training an ML model hundreds of times. For massive datasets or very complex ML models (like deep neural networks), this approach currently becomes too slow.
  • Hyperparameter Tuning: The study used "default" settings for the ML models (SVM, RF, etc.). The authors note that evolving features and tuning model hyperparameters simultaneously could lead to even better results but would increase complexity.
  • Subjectivity of "Simple": While the features are "compact," they still use operators like analytic quotient or protected log. A feature with 31 nodes (height 4) is still a bit of a mouthful for a human to parse at a glance. Future work could involve more sophisticated "simplicity" metrics.

Summary updated

BibTeX
@article{virgolin2020explaining,
  author = {Marco Virgolin and Tanja Alderliesten and Peter A. N. Bosman},
  title = {{On explaining machine learning models by evolving crucial and compact features}},
  journal = {Swarm Evol. Comput.},
  year = {2020},
  doi = {10.1016/j.swevo.2019.100640},
}

Loading related content...

Figure