Abstract
Unsupervised visual clustering remains a significant challenge in computer vision, particularly due to the difficulty of determining the optimal number of clusters and the reliance on heuristic-based merging strategies. This paper introduces a hybrid framework that reformulates cluster merging as a Quadratic Unconstrained Binary Optimization (QUBO) problem. By integrating deep learning for feature extraction with Adiabatic Quantum Computing (AQC) for global optimization, the proposed method achieves state-of-the-art performance on standard image datasets like MNIST and CIFAR100. Notably, the approach eliminates the need to pre-define the number of clusters, offering a more robust and scalable solution for unsupervised learning.
Introduction
Unsupervised visual clustering—the task of grouping images without ground-truth labels—is fundamental to many computer vision applications. Traditional algorithms, such as K-Means, typically require the number of clusters ($k$) to be specified a priori, a requirement that is often impractical in real-world scenarios. While modern deep learning has significantly improved feature representation, the final stage of merging small, local clusters into meaningful global groups often relies on "brittle" rule-based heuristics. These heuristics are sensitive to hyperparameters and frequently fail to capture the complex, global relationships between data points.
To address these limitations, this research proposes a transition from heuristic-based merging to a robust, optimization-based framework. By framing the clustering problem as a global optimization task, the system can better handle noise and capture higher-order dependencies between samples.
Methodology
The proposed pipeline integrates classical deep learning with quantum optimization in a multi-stage process.
Feature Extraction and Initial Grouping
The process begins with feature extraction using a pre-trained AlexNet model. These high-dimensional features are then subjected to an initial local grouping using K-Nearest Neighbors (K-NN). To refine these initial groups and remove noisy samples, a transformer-based model called Clusformer is employed. This ensures that the inputs to the final optimization stage are high-quality local clusters.
The QUBO Formulation
The core innovation lies in treating the cluster-merging step as a global optimization problem. The authors define a cost function composed of three primary components:
- Cluster Constraint ($f_0$): Ensures that each unknown cluster is assigned to at most one "anchor" cluster.
- Cluster Assignment ($f_1$): Minimizes the cosine similarity distance between clusters to promote the grouping of similar items.
- Triplet Assignment Constraint ($f_2$): A quadratic term that considers pairwise relationships between clusters. This term ensures that if two clusters are similar to each other, they are more likely to be assigned to the same anchor, capturing higher-order logic.
Quantum Solving
The objective function is mapped to an Ising model, representing the energy states of a quantum system. This problem is then solved using Adiabatic Quantum Computing (AQC) on a D-Wave Advantage system. The quantum annealer searches for the "ground state" (lowest energy configuration), which corresponds to the mathematically optimal clustering solution.
Experimental Results
The framework was evaluated on two benchmark datasets: MNIST (70,000 grayscale digits) and CIFAR100 (60,000 color images across 100 classes).
| Method | MNIST (NMI) | CIFAR100 (NMI) |
|---|---|---|
| K-Means (Best $k$) | 90.56% | 57.87% |
| Clusformer (Classical) | 92.38% | 58.38% |
| Clusformer + QUBO (Proposed) | 94.73% | 60.10% |
The results demonstrate that the QUBO-based approach consistently outperforms both traditional methods and the standalone classical Clusformer. The inclusion of the triplet constraint ($f_2$) was particularly effective in improving clustering accuracy by accounting for inter-sample dependencies.
Discussion and Future Work
This research highlights the potential of "NISQ-era" (Noisy Intermediate-Scale Quantum) workflows, where classical deep learning handles perception and feature extraction, while quantum hardware manages complex combinatorial optimization.
Despite the promising results, hardware constraints remain a challenge. Current quantum annealers have limited qubits and are sensitive to noise, necessitating the use of batching for large-scale problems. Furthermore, mapping dense optimization problems onto sparse quantum architectures (the embedding problem) is a technical hurdle. Future work will focus on developing more complex QUBO formulations and leveraging advancements in quantum hardware to handle larger datasets without the need for batching.
Summary updated