Learning Hidden Quantum Markov Models

Siddarth Srinivasan, Geoffrey J. Gordon, Byron BootsAISTATS 2018

TL;DR

This paper introduces a novel framework and learning algorithm for Hidden Quantum Markov Models (HQMMs), showing how they can be viewed as a more expressive generalization of classical Hidden Markov Models (HMMs). The authors demonstrate that HQMMs can achieve the same predictive accuracy as HMMs while using significantly fewer hidden states, and they provide the first practical maximum-likelihood algorithm to learn these models directly from data.

What Problem Does This Paper Address?

Sequential data modeling is a cornerstone of machine learning, traditionally dominated by Hidden Markov Models (HMMs). However, HMMs are constrained by classical probability rules—specifically, they represent uncertainty as a simple probability distribution over discrete states.

Quantum mechanics offers a different mathematical formalism for uncertainty using density matrices and complex-valued operators. While "Hidden Quantum Markov Models" had been proposed theoretically, two major gaps remained:

  1. Interpretability: How exactly do these quantum models relate to the classical HMMs we already understand?
  2. Learning: How do we actually train an HQMM on a sequence of data? Unlike HMMs, which have the well-known Baum-Welch algorithm, HQMMs lacked a robust, unsupervised learning algorithm that could estimate parameters while respecting the strict mathematical constraints of quantum mechanics (like maintaining the "unit trace" of density matrices).

Methods

The authors bridge the gap between classical and quantum modeling through three main steps:

  1. Quantum Circuit Simulation: They show how a classical HMM can be simulated on a quantum circuit using "ancilla" (extra) qubits and unitary operations. By relaxing the constraints on this circuit, they naturally arrive at the HQMM formulation.
  2. Kraus Operator Representation: HQMMs are parameterized using Kraus operators $\{K_i\}$. In this framework, the state of the system is a density matrix $\rho$, and an observation $y$ updates the state via $\rho_{t} \propto \sum K_w \rho_{t-1} K_w^\dagger$. This allows for "quantum coherences"—off-diagonal elements in the matrix that have no classical equivalent.
  3. The Learning Algorithm: The core contribution is an iterative maximum-likelihood algorithm. To ensure the learned operators remain valid (i.e., they must be orthonormal), the authors treat the optimization as a search for a unitary transformation. They decompose this transformation into a series of generalized Givens rotations (complex-valued rotations). This allows them to use standard optimization tools (like MATLAB’s fmincon) to maximize the log-likelihood of the data without breaking the physical constraints of the model.

Datasets

The authors evaluate their algorithm on two types of synthetic sequential data designed to highlight the differences between classical and quantum logic:

  • The Probability Clock: A 2-hidden-state model where the probability of an observation changes periodically based on the length of the preceding sequence. This is a known "hard" problem for finite-dimensional HMMs.
  • The Stern-Gerlach Model (Fully Quantum): A dataset inspired by electron spin measurements. It simulates a particle being measured along different axes (x, y, z), where the act of measurement "collapses" the state. This model inherently uses complex numbers and quantum interference.

Key Insights and Ideas

  • Expressive Efficiency: The most striking insight is that HQMMs are "denser" information carriers. Because they use complex-valued density matrices, they can capture periodicities and dependencies that would require a classical HMM to have a much larger state space.
  • HMMs as a Subset: The paper provides a clear recipe for converting any HMM into an HQMM. This proves that HQMMs are a true generalization; they can do everything an HMM can do, plus more.
  • No Quantum Computer Required: While the math is pulled from quantum mechanics, these models run perfectly well on classical hardware. They are "quantum-inspired" tools for classical data science.

Key Results

  • Probability Clock: A 2-state HQMM learned the data perfectly (Description Accuracy $\approx 0.16$). To reach the same level of accuracy, a classical HMM required 8 hidden states and ten times as many parameters.
  • Stern-Gerlach: On the fully quantum dataset, a 2-state HQMM matched the true model's performance. A classical HMM required 6 states to achieve comparable predictive power.
  • Learning Accuracy: The proposed iterative algorithm successfully recovered the parameters of the underlying models, showing that maximum-likelihood estimation is a viable path for training quantum-inspired graphical models.

Limitations and Future Work

  • Scalability: The current implementation uses a general-purpose optimizer (fmincon) and is computationally expensive. It is currently too slow for very large datasets or models with many hidden states.
  • Local Optima: Like many non-convex optimization problems, the algorithm can get stuck in local optima, especially as the number of parameters increases.
  • Real-World Data: The study focuses on synthetic data to prove theoretical advantages. The authors note that future work should explore how HQMMs perform on real-world "noisy" datasets, such as speech or financial time series, where "quantum-like" effects might be less obvious but still present.

Summary updated

BibTeX
@inproceedings{srinivasan2018learning,
  author = {Siddarth Srinivasan and Geoffrey J. Gordon and Byron Boots},
  title = {{Learning Hidden Quantum Markov Models}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2018},
  url = {https://openreview.net/forum?id=N69sOYxJ_w},
}
Figure