Adiabatic Quantum Computing for Kernel k=2 Means Clustering

Christian Bauckhage, César Ojeda, Rafet Sifa, Stefan WrobelLwda 2018

Introduction

Clustering is a fundamental task in unsupervised machine learning, yet finding the optimal partition of data is generally an NP-hard problem. While classical heuristics like Lloyd’s algorithm (standard $k$-means) are widely used, they often converge to local minima and struggle with non-linearly separable data unless "kernelized."

This paper explores a novel approach: reformulating kernel $k=2$ means clustering as an Ising model to be solved on Adiabatic Quantum Computers (AQC). AQC systems, such as those developed by D-Wave, solve optimization problems by physically evolving a quantum system toward its lowest energy state (the ground state). By translating the clustering objective into the language of magnetic spins, the authors demonstrate a path toward leveraging quantum hardware for complex data partitioning.

Methodology

To bridge the gap between machine learning and quantum physics, the authors developed a multi-step translation process:

  1. Objective Reformulation: Instead of minimizing "within-cluster scatter," which is mathematically cumbersome for AQC, the authors maximize "between-cluster scatter." Based on Fisher’s analysis of variance, these two objectives are equivalent.
  2. Equal-Size Heuristic: To simplify the objective into a Quadratic Unconstrained Binary Optimization (QUBO) form, they assume clusters are roughly equal in size ($n_1 \approx n_2$). This allows the problem to be expressed as a matrix-vector product: $s^T Q s$, where $s$ is a vector of cluster assignments (+1 or -1) and $Q$ is a coupling matrix.
  3. Kernelization: By replacing the standard data matrix with a centered kernel matrix, the algorithm can identify clusters in high-dimensional feature spaces. This enables the separation of complex, non-linear shapes that linear $k$-means cannot distinguish.
  4. Symmetry Breaking: In standard Ising models, states $s$ and $-s$ have identical energy. To prevent the quantum system from fluctuating between these two solutions, the authors fix one data point's assignment ($s_n = +1$), reducing the problem to $n-1$ qubits and ensuring a unique ground state.

Experimental Results

The authors validated their model by numerically simulating the Schrödinger equation using the Python QuTiP library, modeling 15-16 qubit systems. They tested the approach on two primary synthetic datasets: "Two Half-Moons" (non-linear) and "Imbalanced Gaussians."

Figure 1: (a) 16 data points in a half-moon configuration, (b) the resulting clustering, and (c) the simulated adiabatic evolution of the basis state amplitudes over time.

As shown in the figure above, the simulation successfully identified the two half-moon clusters. In the 16-qubit "ambiguous" model, the wave function collapsed into two equally likely ground states. However, by applying symmetry breaking (the 15-qubit experiment), the system converged to a single, clear most-likely state. Notably, the "equal-size" heuristic proved resilient; the system correctly partitioned data even when cluster sizes were imbalanced (e.g., an 11:5 split).

Key Insights and Future Work

The core contribution of this work is demonstrating that machine learning objectives can be mapped directly to physical Ising models. By showing that the coupling matrix $Q$ is essentially a Gram matrix, the authors make it possible to integrate any Mercer kernel (such as Gaussian/RBF) into the quantum framework.

However, several challenges remain for future research:

  • Binary Limitation: The current formulation is restricted to $k=2$ clustering. Scaling to $k > 2$ would require more complex qubit encoding.
  • Hardware Realities: These results are based on ideal numerical simulations. Real-world AQC hardware must contend with decoherence and limited qubit connectivity.
  • Scalability: While 16 qubits are manageable for simulation, real-world datasets require strategies to decompose large problems into chunks compatible with near-term quantum hardware.

Summary updated

BibTeX
@inproceedings{bauckhage2018adiabatic,
  author = {Christian Bauckhage and César Ojeda and Rafet Sifa and Stefan Wrobel},
  title = {{Adiabatic Quantum Computing for Kernel k=2 Means Clustering}},
  booktitle = {Lwda},
  year = {2018},
}
Figure