Towards Feature Selection for Ranking and Classification Exploiting Quantum Annealers

Maurizio Ferrari Dacrema, Fabio Moroni, Riccardo Nembrini, Nicola Ferro, Guglielmo Faggioli, Paolo CremonesiarXiv 2022 · DOI

TL;DR

This paper explores the practical application of quantum annealing to the NP-hard problem of feature selection for classification and ranking. By formulating feature selection as a Quadratic Unconstrained Binary Optimization (QUBO) problem, the authors demonstrate that current quantum hardware is not only competitive with classical solvers in terms of accuracy but also offers significant scalability advantages for large-scale datasets through hybrid quantum-classical approaches.

What Problem Does This Paper Address?

Feature selection is a cornerstone of machine learning, aimed at identifying the most relevant subset of features to improve model accuracy and reduce computational overhead. However, as data grows in complexity, finding the optimal subset becomes a combinatorial nightmare—an NP-hard problem where the number of possible combinations grows exponentially.

While deep learning mitigates this by learning features automatically, it is resource-intensive and often lacks stability across different topics. Traditional "shallow" machine learning remains vital, but it relies heavily on effective feature selection. The authors investigate whether Quantum Annealing (QA)—a specialized quantum computing paradigm designed for optimization—can make high-quality feature selection "affordable" and efficient for modern Information Retrieval (IR) tasks.

Methods

The researchers treat feature selection as a Quadratic Unconstrained Binary Optimization (QUBO) problem. In this framework, each feature is represented by a binary variable (selected or not), and the goal is to minimize a cost function that balances feature relevance against redundancy.

They implemented three distinct quadratic models:

  1. MIQUBO: Based on Mutual Information, maximizing the information shared between selected features and the target variable.
  2. QUBO-Correlation: Based on Pearson Correlation, aiming to maximize correlation with the target while minimizing inter-feature redundancy.
  3. QUBO-Boosting: Inspired by the "QBoost" algorithm, it uses the predictions of individual weak classifiers (like Support Vector Classifiers) to assess feature importance.

To solve these, they compared traditional classical metaheuristics (Simulated Annealing, Tabu Search, Steepest Descent) against quantum solutions:

  • D-Wave Advantage QPU: A pure quantum annealer with 5600 qubits.
  • D-Wave Leap Hybrid: A solver that intelligently decomposes large problems into smaller chunks for the QPU while handling the rest classically.

A critical step discussed is minor embedding, where the logical problem structure is mapped onto the physical qubit topology of the hardware. As shown in Figure 1, if a problem's connectivity doesn't fit the hardware's "Pegasus" or "Chimera" graph, logical variables must be represented by multiple physical qubits.

Embedding example

Datasets

The study utilized 15 state-of-the-art datasets:

  • Classification: 12 diverse datasets from OpenML (e.g., covertype, spambase, gisette) with feature counts ranging from 34 to 5,000.
  • Ranking (Learning to Rank): Three standard LETOR datasets (OHSUMED, MQ2007, MQ2008) commonly used in search engine research.

Key Insights and Ideas

  • Quantum Reliability: The most significant "aha moment" is that quantum hardware has reached a level of maturity where its effectiveness is indistinguishable from (and sometimes superior to) best-in-class classical solvers.
  • The Connectivity Bottleneck: While the QPU has over 5,000 qubits, the "fully-connected" nature of feature selection (where every feature might interact with every other) means that a direct QPU solve is currently limited to problems with about 124 features.
  • Constant-Time Sampling: Unlike classical solvers, where time-to-solution scales with problem complexity, a QPU returns samples in nearly constant time (microseconds) once the problem is embedded.
  • Hybrid Scalability: For large-scale problems (up to 5,000 features), the hybrid quantum-classical approach becomes the clear winner in efficiency, outperforming classical simulated annealing by an order of magnitude.

Key Results

The experimental results show that quantum solvers are highly competitive across both tasks:

  • Effectiveness: In the classification task (see Figure 5), the QPU and Hybrid solvers achieved accuracies comparable to Tabu Search and Simulated Annealing. For the ranking task (Figure 4), the performance (measured by NDCG@10) showed no statistically significant difference between quantum and classical approaches, proving QA is a reliable tool for IR.

Ranking Results Classification Results

  • Speed: For the largest dataset (gisette, 5000 features), the Hybrid solver was roughly 10 times faster than classical Simulated Annealing.
  • Superiority over Baselines: The QUBO-based methods generally outperformed standard linear filter baselines like ANOVA or Chi-square tests (Figure 6), highlighting the value of accounting for feature interactions.
Table 3: Effectiveness of the baseline linear feature selection methods on the Classification and Ranking tasks, measured respectively with classification accuracy and NDCG at 10. Results that are better than or equal to the ones using all the features or QUBO methods are highlighted in bold.

Limitations and Future Work

The authors identify two primary hurdles:

  1. Network Latency: Currently, the time spent transferring data to cloud-based quantum computers is much higher than the actual quantum processing time. Integrating QPUs into data center low-latency networks would solve this.
  2. Embedding Overhead: The process of mapping the problem to the hardware is computationally expensive. The authors suggest creating a "library of precomputed embeddings" for common problem structures to eliminate this step.

Future work will explore reverse annealing—a technique that starts from a known classical solution and uses quantum effects to refine it—which could further improve solution quality.

Summary updated

BibTeX
@misc{dacrema2022towards,
  author = {Maurizio Ferrari Dacrema and Fabio Moroni and Riccardo Nembrini and Nicola Ferro and Guglielmo Faggioli and Paolo Cremonesi},
  title = {{Towards Feature Selection for Ranking and Classification Exploiting Quantum Annealers}},
  year = {2022},
  eprint = {2205.04346},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.04346},
}
Figure