Online Streaming Feature Selection

Xindong Wu, Kui Yu, Hao Wang, Wei DingICML 2010

TL;DR

Traditional feature selection assumes you have all your data columns ready before you start modeling. This paper introduces OSFS (Online Streaming Feature Selection) and its high-speed sibling Fast-OSFS, which can pick the best features from a continuous, potentially infinite stream of incoming data attributes without ever needing to see the full set upfront.

What Problem Does This Paper Address?

In the "Big Data" era, we often face a "feature stream" rather than a static table. Imagine an image processing task where thousands of texture features are generated one by one, or a genomic study where new markers are discovered sequentially.

Standard feature selection methods (filters, wrappers, or embedded methods) are "batch" processors: they require every candidate feature to be present before they can decide which ones to keep. Existing attempts to solve this in a streaming fashion had major drawbacks: Grafting isn't truly online because it needs to see all features to tune its parameters, and Alpha-investing often requires prior knowledge about the structure of the feature space to work effectively. The authors sought a method that is truly online, requires no prior structural knowledge, and explicitly handles feature redundancy.

Methods

The authors propose a framework based on the formal definitions of feature relevance and redundancy (specifically using the concept of a Markov Blanket).

  1. OSFS (Online Streaming Feature Selection): This algorithm operates in two alternating phases:
  2. Online Relevance Analysis: As a new feature arrives, the algorithm checks if it is "irrelevant" to the target class using conditional independence tests. If it shows a relationship, it’s added to the "best candidate" set (BCF).
  3. Online Redundancy Analysis: Every time a new feature is added, the algorithm re-examines the entire BCF. If any existing feature becomes redundant (i.e., its information is subsumed by a subset of other features), it is discarded.
The OSFS algorithm pseudocode
  1. Fast-OSFS: Recognizing that re-checking the entire set every time is computationally expensive, the authors optimized the process. Fast-OSFS only checks if the newly arrived feature is redundant against the existing set (inner-redundancy). It only performs a full sweep of the entire set (outer-redundancy) once the feature stream stops or reaches a specific point.

Datasets

The researchers evaluated their algorithms against two main groups of data:

  • 8 UCI Benchmark Datasets: Including medical data (SPECT, WDBC), spam detection (Spambase), and ecology (Sylva). These are smaller, "traditional" datasets used to simulate a streaming environment.
  • 10 High-Dimensional Challenge Datasets: These include massive datasets from NIPS and WCCI challenges, such as Dorothea (100,000 features), Dexter (20,000 features), and various genomic/proteomic datasets like Ovarian Cancer and Breast Cancer.

Key Insights and Ideas

  • Redundancy is Dynamic: A feature might look "strongly relevant" at step 10, but by step 100, a combination of three other features might make it completely redundant. OSFS is designed to "change its mind" and prune features it previously liked.
  • The Power of the Markov Blanket: By using the Markov Blanket criterion, the authors provide a rigorous mathematical way to define when a feature adds no new information to a model, allowing for a "minimal yet good" feature set.
  • Efficiency via "Fast" Pruning: The jump from OSFS to Fast-OSFS shows that you don't need to be perfectly optimal at every single micro-step. By delaying the full redundancy check, you gain massive speedups with negligible loss in accuracy.

Key Results

  • Compactness: In almost all tests, OSFS and Fast-OSFS selected significantly fewer features than Alpha-investing. For example, on the wdbc dataset, Alpha-investing kept all features, while the authors' methods kept only a small, highly predictive subset.
  • Accuracy: Despite having fewer features (more "compact"), the proposed algorithms matched or exceeded the predictive accuracy of state-of-the-art methods like Grafting and Alpha-investing on the majority of datasets.
Accuracy vs. Proportion of selected features across various datasets
  • Speed: Fast-OSFS proved to be at least twice as fast as the standard OSFS on small datasets and orders of magnitude faster on high-dimensional challenge data.
  • Robustness: The algorithms successfully handled the Dorothea dataset (100k features), whereas Grafting failed due to out-of-memory errors.

Limitations and Future Work

  • Fixed Observations: The paper assumes the number of observations (rows) is constant while features (columns) stream in. It does not address "data streams" where new rows arrive over time.
  • Infinite Streams: While the theory allows for infinite features, the experimental setup used "unknown but finite" sets. The authors noted that in a truly infinite stream, the algorithm might struggle to know exactly when a feature is "permanently" redundant.
  • Future Directions: The authors plan to explore dynamic assessment of predictive accuracy for infinite streams and apply these methods to real-world "Mars crater" data, which involves thousands of texture-based features.

Summary updated

BibTeX
@inproceedings{wu2010online,
  author = {Xindong Wu and Kui Yu and Hao Wang and Wei Ding},
  title = {{Online Streaming Feature Selection}},
  booktitle = {International Conference on Machine Learning},
  year = {2010},
}
Figure