NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Feature selection on quantum computers

Sascha Mücke, Raoul Heese, Sabine Müller, Moritz Wolter, Nico Piatkowski

TL;DR

This paper introduces a novel feature selection algorithm (QFS) that frames the problem as a Quadratic Unconstrained Binary Optimization (QUBO) task. This allows for efficient solving on both classical and quantum hardware, potentially leading to higher-quality feature subsets compared to traditional methods. The authors demonstrate competitive performance against existing techniques and show its viability on current quantum devices.

What Problem Does This Paper Address?

In machine learning, the number of features (dimensions) in a dataset significantly impacts model complexity, training time, and memory requirements. While reducing features is desirable, it's crucial to do so without losing essential information. Traditional feature selection methods often rely on iterative or greedy approaches, which can be computationally expensive and may not yield optimal results. This paper addresses the need for a more direct and potentially more effective feature selection method that can leverage emerging quantum computing capabilities.

Methods

The core of the paper is the proposed QUBO Feature Selection (QFS) algorithm. It formulates feature selection as a QUBO problem by defining an objective function that balances two key aspects:

  • Feature Importance (I): This measures how much a feature contributes to the target variable (e.g., using mutual information).
  • Feature Redundancy (R): This quantifies how much a feature overlaps with other features (e.g., using pairwise mutual information).

The algorithm uses a parameter $\alpha$ to tune the trade-off between importance and redundancy. A novel aspect is that by carefully selecting $\alpha$, the algorithm can directly control the exact number of features selected, without needing explicit constraints, which is a significant advantage. The QUBO problem can then be solved using classical solvers or, more importantly, on quantum hardware like quantum annealers or gate-based quantum computers.

Datasets

The authors evaluated their QFS algorithm on the following datasets:

  • MNIST: A dataset of handwritten digits (784 features, 10 classes).
  • Ionosphere: Measurements of electrons in the ionosphere (34 features, 2 classes).
  • Waveform: A synthetic dataset with short time series (21 features, 3 classes).
  • Madelon: A dataset with 5 informative features and many irrelevant ones (500 features, 2 classes).
  • synth_10: A synthetic dataset with 10 informative features and a binary label.
  • synth_100: A synthetic dataset with 100 informative features and a binary label.

Key Insights and Ideas

  • Direct Feature Selection via QUBO: Framing feature selection as a QUBO problem allows for a direct, non-iterative approach, potentially leading to better solutions than greedy methods.
  • Controlling Feature Count with $\alpha$: The ability to precisely control the number of selected features by tuning a single parameter ($\alpha$) is a significant theoretical and practical contribution. This avoids the need for complex constraint handling in the optimization problem.
  • Quantum Hardware Viability: The paper demonstrates that current NISQ (Noisy Intermediate-Scale Quantum) devices, specifically quantum annealers and gate-based quantum computers, can be used to solve the QUBO instances generated by QFS, albeit with performance limitations due to noise and hardware constraints.
  • Competitive Performance: QFS shows comparable or superior performance to established feature selection methods across various classifiers and datasets.

Key Results

  • Feature Quality: QFS successfully identified informative features on the MNIST dataset, leading to higher classification accuracy for Random Forest classifiers compared to random feature subsets and even using all features.
  • Cross-Model Comparison: QFS performed favorably against other heuristic feature selection methods (Logistic Regression Ranking, Extra Tree Ranking, RFE) across multiple classifiers and datasets, often achieving competitive accuracy.
  • Lossy Compression: QFS was used to select a subset of pixels from MNIST images, enabling a convolutional neural network to reconstruct the original images with high fidelity, demonstrating its utility in data compression.
  • Quantum Hardware Performance:
    • On a D-Wave quantum annealer, QFS found the optimal solution for the synth_10 dataset in about 10% of shots. Performance was lower for waveform and ionosphere, suggesting hardware limitations.
  • On an IBM quantum gate computer (using VQE), the optimal solution was found in a very small percentage of measurements (0.14%), indicating significant challenges with noise and convergence on current gate-based hardware for this task.

Limitations and Future Work

  • NISQ Hardware Limitations: The experiments on quantum hardware revealed that current devices are susceptible to noise, which impacts the quality of the solutions obtained. The performance on quantum annealers was better than on gate-based computers for this specific task, but still not perfect.
  • Scalability: While the algorithm is theoretically scalable, the current experiments were limited to low-dimensional problems due to the constraints of available quantum hardware.
  • Future Work: The authors suggest that future work could explore different measures of importance and redundancy, incorporate expert knowledge, and investigate how the algorithm scales with advancements in quantum computing hardware and error correction. They also highlight the potential for QFS to be applied to a wider range of problems beyond feature selection.

Summary updated

BibTeX
@inproceedings{mucke2023feature,
  author = {Sascha Mücke and Raoul Heese and Sabine Müller and Moritz Wolter and Nico Piatkowski},
  title = {{Feature selection on quantum computers}},
  booktitle = {Quantum Mach. Intell},
  year = {2023},
  url = {https://openreview.net/forum?id=0uSUzfcBB7},
}
Figure