Learning Feature Engineering for Classification

Fatemeh Nargesian, Horst Samulowitz, Udayan Khurana, Elias B. Khalil, Deepak S. TuragaIJCAI 2017

TL;DR

This paper introduces Learning Feature Engineering (LFE), a novel meta-learning approach that automates feature engineering for classification tasks. LFE learns from past feature engineering successes to predict effective transformations for new datasets, significantly outperforming existing methods in accuracy while drastically reducing computational cost.

What Problem Does This Paper Address?

Feature engineering, the process of creating new, more informative features from existing ones, is crucial for improving machine learning model performance. However, it's often a manual, time-consuming process requiring domain expertise and extensive trial-and-error. Existing automated methods often rely on computationally expensive techniques like exhaustive search or repeated model evaluations, leading to high runtime and memory demands, and sometimes overfitting. This paper tackles the challenge of automating feature engineering in a way that is both effective and computationally efficient.

Methods

The core of LFE is a meta-learning approach that leverages past experiences. Instead of directly evaluating transformations on a new dataset, LFE trains a set of neural networks (specifically, Multi-Layer Perceptrons or MLPs) on a large collection of datasets. Each MLP is trained to predict whether a specific transformation (e.g., log, square root, frequency count) applied to a feature will positively impact classification performance.

A key innovation is the Quantile Sketch Array (QSA), a novel feature representation. QSA transforms variable-sized feature values into a fixed-size array that captures the distribution of feature values within each class. This representation is crucial for feeding data into the MLPs and for generalizing across different datasets. When presented with a new dataset, LFE uses these trained MLPs to recommend a set of transformations for features without needing to build or evaluate models on the new data itself.

Datasets

LFE was trained on a substantial corpus of 900 classification datasets from the OpenML and UCI repositories. For evaluation, a subset of 50 datasets from UCI, OpenML, and other sources was used. These datasets varied significantly in size, with the number of features ranging from 2 to 10,936 and data points from 57 to 140,707.

Key Insights and Ideas

  • Learning from Experience: The fundamental idea that feature engineering effectiveness can be learned from past successes across diverse datasets is powerful. This shifts the paradigm from brute-force exploration to intelligent recommendation.
  • Quantile Sketch Array (QSA) for Representation: Developing a fixed-size representation (QSA) that effectively captures feature-class distributions is critical. It allows for generalization and efficient processing by neural networks, overcoming the challenge of variable feature value ranges and sizes.
  • Decoupling Recommendation from Evaluation: LFE's ability to recommend transformations without performing expensive model evaluations on the new dataset is a major breakthrough for efficiency. This makes automated feature engineering practical for larger datasets and interactive use.
  • Robustness Across Models: The paper suggests that LFE is robust to the choice of classification model used for training, indicating a generalizable learning capability.

Key Results

  • Performance Improvement: LFE outperformed other feature engineering approaches on 89% of the datasets where improvement was observed.
  • Computational Efficiency: LFE incurred a "substantially lower computational cost" compared to other methods. While specific runtime comparisons are detailed in Table 3, the paper emphasizes that LFE can generate effective features "within seconds, on average," contrasting with methods that take hours or days.
  • Accuracy Gains: LFE achieved an average improvement of over 2% in F1 score, with a maximal improvement of 13% across 50 test datasets.
  • QSA Superiority: The Quantile Sketch Array representation significantly outperformed other tested representations (hand-crafted meta-features, stratified sampling, auto-encoder learned features) for the transformation classifiers, achieving a 35.7% margin over the next best.

Limitations and Future Work

  • Dataset Size and Feature Count: While LFE is efficient, some baseline methods (like evaluation-based) were only applicable to datasets with small numbers of features and data points due to their computational demands. LFE's efficiency makes it suitable for larger datasets.
  • Future Transformations: The authors plan to expand the set of transformations LFE can recommend.
  • Iterative and Exploratory LFE: They aim to develop an iterative version of LFE and combine it with exploration-based methods for even greater improvements.
  • Advanced Architectures: Incorporating Recurrent Neural Networks (RNNs) is a future direction to handle varying dataset sizes and capture relationships across multiple features more effectively.

Summary updated

BibTeX
@inproceedings{nargesian2017learning,
  author = {Fatemeh Nargesian and Horst Samulowitz and Udayan Khurana and Elias B. Khalil and Deepak S. Turaga},
  title = {{Learning Feature Engineering for Classification}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  url = {https://openreview.net/forum?id=BkZ-47zd-r},
}
Figure