Abstract: Classical machine learning models struggle with learning and prediction tasks on data sets exhibiting long-range correlations. Previously, the existence of a long-range correlational structure known as contextuality was shown to inhibit efficient classical machine learning representations of certain quantum-inspired sequential distributions. Here, we define a new quantifier of contextuality we call strong k-contextuality, and prove that any translation task exhibiting strong k-contextuality is unable to be represented to finite relative entropy by a classical streaming model with fewer than k latent states. Importantly, this correlation measure does not induce a similar resource lower bound for quantum generative models. Using this theory as motivation, we develop efficient algorithms which estimate our new measure of contextuality in sequential data, and empirically show that this estimate is a good predictor for the difference in performance of resource-constrained classical and quantum Bayesian networks in modeling the data. Strong k-contextuality thus emerges as a measure to help identify problems that are difficult for classical computers, but may not be for quantum computers.
Introduction: The Search for Quantum Advantage
To justify the advancement of quantum machine learning (QML), researchers must identify practical problems that are computationally feasible for quantum systems but prohibitively difficult for classical ones. Classical generative models often fail to capture complex, long-range correlations, particularly those found in quantum measurement statistics. Previous research identified contextuality as a primary inhibitor of efficient classical representations. However, to leverage this for practical QML, we require a method to quantify contextuality in datasets and translate that value into specific classical memory requirements.
Theoretical Framework: Strong k-Contextuality
This paper bridges the gap between quantum foundations and machine learning by introducing strong $k$-contextuality. Building on the sheaf-theoretic framework, the authors prove a foundational result: Lemma 1. This lemma establishes that any classical Hidden Markov Model (HMM) attempting to simulate a strongly $k$-contextual empirical model with finite relative entropy must possess at least $k$ hidden (latent) states.
Crucially, quantum generative models are not subject to this specific memory bottleneck. This theoretical floor suggests that high $k$-contextuality acts as a mathematical barrier for classical memory structures, providing a clear signal for where quantum models might excel.
Algorithmic Estimation
Calculating the exact $k$-contextuality of a dataset is computationally intractable, scaling at $O(n! \times n^3)$. To make this metric practical for real-world data, the authors developed two approximation algorithms:
- Greedy Heuristic: By sampling a fixed number of random permutations of data contexts, this algorithm reduces complexity to $O(n^3)$, allowing for the analysis of models with hundreds of contexts.
- Hypergraph Coloring: For sparse models with limited outcomes, the problem is mapped to a hypergraph coloring task, utilizing existing approximation techniques.
Empirical Results
The theory was tested using both synthetic and real-world datasets, comparing classical HMMs (trained via Baum-Welch) against Quantum HMMs (simulated as tensor networks).
Synthetic and GHZ Models
On random empirical models, the researchers observed a consistent trend: as the contextuality number $k$ increased from 1 to 8, the performance gap—measured by the minimum KL divergence—between classical and quantum HMMs widened significantly. This confirms that $k$-contextuality is a reliable predictor of classical modeling failure.
Real-World Biological Data
In a fascinating application to biology, the authors analyzed DNA sequences from promoter regions. They discovered that these sequences exhibit measurable $k$-contextuality that increases with the length of the sequence tokens. Correspondingly, the quantum models outperformed classical models in these high-contextuality regimes, with a likelihood-ratio test confirming the quantum advantage with $3\sigma$ confidence.
Conclusion and Future Outlook
Strong $k$-contextuality serves as a "searchlight" for quantum advantage. While it does not guarantee that a quantum model will learn a distribution easily, it identifies datasets where classical models are mathematically guaranteed to struggle due to memory constraints. Future work will involve scanning more diverse real-world datasets for high contextuality and exploring the relationship between $k$-contextuality and other quantum hardness measures like Wigner negativity or magic states.
Summary updated