Abstract
The Sparse Tensor Classifier (STC) is a novel supervised learning algorithm that applies principles of quantum mechanics—specifically superposition and wave-particle duality—to categorical data classification. It delivers state-of-the-art performance on structured and text data with almost no pre-processing or hyper-parameter tuning, while providing "native" explanations for its predictions that are easily understood by humans.
Introduction
Categorical data is notoriously difficult to handle because it is often heterogeneous, noisy, and imbalanced. Traditional machine learning workflows require significant "feature engineering"—labor-intensive steps like data cleaning, text normalization (removing stop words, stemming), and complex vectorization (Tf-Idf or word embeddings). Furthermore, as AI is deployed in sensitive areas, there is a growing demand for explainability. Most high-performing models (like deep neural networks) are "black boxes," requiring secondary tools like LIME or SHAP to interpret decisions. This paper introduces the Sparse Tensor Classifier (STC) to bridge this gap by creating a classifier that is mathematically robust, requires minimal setup, and is transparent by design.
Methodology
The STC represents observations as a "superposition of features." Key technical components include:
- Tensor Representation: Instead of simple matrices, STC uses multi-dimensional tensors to represent the joint probability distribution of features and target labels.
- Quantum Probability Framework: Borrowing from the Born rule in quantum mechanics, the model calculates the probability of a class by treating features as complex-valued wave functions. This allows the model to account for "interference" between features.
- Entropic Weighting: To handle noise, the model calculates the Shannon entropy of each feature. Features that are distributed randomly across all classes (high entropy) are automatically down-weighted, while those that strongly point to a specific class (low entropy) are prioritized. This acts as a built-in feature selection mechanism.
- Fallback Mechanism (Policy): To handle "sparsity" (when a model encounters a combination of features it hasn't seen in training), STC uses a reinforcement-learning-inspired "policy" to systematically drop dimensions of the tensor until a valid prediction can be made.
Experimental Evaluation
The researchers evaluated STC on two distinct types of data:
- The Zoo Dataset: A small, highly imbalanced structured dataset containing 101 animals and 16 attributes (like "has feathers" or "number of legs"). This tested the model's robustness to small samples and class imbalance.
- 20 Newsgroups: A classic text classification benchmark with ~19,000 documents across 20 categories. Crucially, the authors performed no text cleaning (no removing punctuation or stop words) to see if the model could handle "raw" noisy data.
Results and Discussion
Performance on Structured Data
On the Zoo dataset, the quantum version (STC-Q) outperformed all competitors, including SVM, Random Forest, and Logistic Regression, and showed the highest stability across different training/test splits. As shown in the performance metrics, STC-Q achieved the highest F1-macro score (0.871) among the tested models.
Performance on Text Data
On the 20 Newsgroups text task, STC-Q achieved an accuracy of 0.873, outperforming specialized deep learning models like Cooperative Neural Networks (0.837) and Neural Attentive Bag-of-Entities (0.868), despite the deep learning models being specifically tuned for the task. STC's entropic weighting naturally ignored "noise" words that usually require manual removal in other pipelines.
Native Explainability
Because the model is built on explicit probability distributions, it doesn't need a "wrapper" to explain itself. You can look directly at the tensor weights to see exactly which feature contributed most to a specific prediction. In a survey of 45 evaluators, STC’s native explanations were rated as more meaningful and less noisy than those generated by LIME for other standard classifiers.
Conclusion and Future Work
STC demonstrates that quantum-inspired frameworks can achieve state-of-the-art results on categorical data without extensive pre-processing. While the results are promising, future work will focus on learning "phase factors" via gradient descent to unlock higher performance, extending the framework to handle continuous/numerical variables, and automating the optimization of tensor shapes.
Summary updated