Learning Quantum Graphical Models using Constrained Gradient Descent on the Stiefel Manifold

Sandesh Adhikary, Siddarth Srinivasan, Byron BootsarXiv 2019

Introduction

Classical probabilistic graphical models, such as Hidden Markov Models (HMMs), are fundamental tools in machine learning. However, they often face limitations in expressiveness when modeling complex, high-dimensional data. Quantum Graphical Models (QGMs) offer a promising alternative by utilizing the mathematics of quantum mechanics to represent uncertainty. While theoretically more powerful—a small quantum model can often represent patterns that would require a significantly larger classical model—QGMs have historically been notoriously difficult to train.

The primary challenge lies in the parameters of these models, which must satisfy strict mathematical constraints: they must form a set of "Kraus operators" that are trace-preserving to ensure they represent valid quantum states. Previous state-of-the-art training methods relied on "Givens rotations," applying tiny iterative rotations to parameters. This approach was computationally expensive, prone to local optima, and failed to scale beyond a few hidden states.

Model Architecture and Expressiveness

Hidden Quantum Markov Models (HQMMs) generalize classical HMMs and Observable Operator Models (OOMs). As shown in the comparison below, while an HMM relies on simple transition and emission matrices, an HQMM utilizes a more complex "Quantum Channel" structure.

Comparison of model parameters for HMM, OOM, and HQMM, highlighting the increased complexity and the role of the environment dimension $w$ in HQMMs.

A key insight from this research is the power of the hyperparameter $w$, representing the dimension of the "environment" variable. The authors found that increasing $w$ is a more efficient way to boost model performance than increasing the number of hidden states ($n$). This is because parameters grow linearly with $w$ but quadratically with $n$. This efficiency allows a 2-state HQMM to match the performance of a 6-state classical HMM, demonstrating superior parameter efficiency.

The COSM Algorithm

To overcome the limitations of previous training methods, the researchers developed COSM (Constrained Optimization on the Stiefel Manifold). Instead of the indirect rotation approach, COSM recognizes that model parameters (stacked into a matrix $\kappa$) naturally reside on a Stiefel manifold—the mathematical space of all "tall and skinny" matrices with orthonormal columns.

Visualization of the COSM algorithm performing a retraction-based update on the Stiefel manifold to maintain model constraints during gradient descent.

Key technical components of COSM include:

  • Retraction-based Optimization: To update the model without violating the manifold constraints, the algorithm uses a retraction. This maps a standard gradient update back onto the manifold surface while preserving the direction of steepest descent.
  • Complex Gradients: Since HQMMs utilize complex numbers, the authors employ the Autograd package to compute gradients with respect to the complex conjugate of the Kraus operators.
  • Momentum: Standard deep learning techniques like momentum are incorporated to stabilize and accelerate the descent process.

Experimental Results

The paper evaluates COSM across three distinct scenarios:

  1. Synthetic HQMM Data: Data generated from a "fundamentally quantum" process (inspired by the Stern-Gerlach experiment).
  2. Synthetic HMM Data: Data from a classical 6-state HMM to test if quantum models can recover classical processes.
  3. Splice Dataset: A real-world DNA sequence dataset from the UCI repository used for classifying junctions between exons and introns.

Performance and Scalability

COSM demonstrated significant improvements in both speed and accuracy. On larger models, COSM converged in a few hundred seconds, whereas the previous "Givens Search" method failed to find a viable solution even after 2,000 seconds. Furthermore, COSM consistently achieved higher description accuracy across all synthetic tests.

In the real-world Splice dataset, the authors successfully trained HQMMs using 5-fold cross-validation—a task previously considered prohibitively time-consuming. The results showed that HQMMs could not only be trained efficiently but also outperform classical HMMs on real-world biological data.

Conclusion and Future Work

COSM represents a major leap forward in making Quantum Graphical Models practical for machine learning. By treating training as a manifold optimization problem, the researchers have enabled these expressive models to scale to real-world datasets for the first time.

Future work will focus on addressing remaining hurdles, such as the rapid scaling of parameters in very large HQMMs and the complexities introduced by non-commutativity in models like "Quantum Naive Bayes," where the order of feature processing affects the outcome. Additionally, the sensitivity of performance to hyperparameters $n$ and $w$ suggests that automated tuning strategies will be essential for broader adoption.

Summary updated

BibTeX
@misc{adhikary2019learning,
  author = {Sandesh Adhikary and Siddarth Srinivasan and Byron Boots},
  title = {{Learning Quantum Graphical Models using Constrained Gradient Descent on the Stiefel Manifold}},
  year = {2019},
  eprint = {1903.03730},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1903.03730},
}
Figure