Quantum Deep Equilibrium Models

Philipp Schleich, Marta Skreta, Lasse Bjørn Kristensen, Rodrigo Vargas-Hernandez, Alan Aspuru-GuzikNeurIPS 2024

In the race to make quantum machine learning (QML) practical, researchers face a frustrating "depth trap." To make a Variational Quantum Algorithm (VQA) expressive enough to solve complex tasks, you typically need to stack many layers of gates. However, on today’s noisy, near-term (NISQ) hardware, deeper circuits lead to a rapid accumulation of errors and decoherence. Furthermore, the "parameter-shift rule"—the standard way to calculate gradients on quantum hardware—requires measurements that scale linearly with the number of parameters, making deep networks prohibitively expensive to train.

A recent paper from researchers at the University of Toronto and the Vector Institute proposes a clever escape route: Quantum Deep Equilibrium Models (QDEQs). By borrowing a concept from "implicit" deep learning, they demonstrate how to achieve the performance of an infinitely deep network using the circuit depth of just a single layer.

TL;DR

QDEQs replace traditional multi-layer quantum neural networks with a single "weight-tied" layer and a root-finding algorithm that identifies the system's equilibrium state. This approach allows shallow quantum circuits to outperform explicit networks with five times as many layers, significantly reducing the hardware requirements for near-term quantum computers.

What Problem Does This Paper Address?

The core challenge in QML is the trade-off between expressivity and feasibility.

  1. Noise: Every quantum gate adds a small amount of error. Deep circuits eventually become "all noise," losing the quantum information they were meant to process.
  2. Measurement Overhead: Training a VQA involves optimizing parameters ($\theta$). To find the gradient of a loss function, you usually have to run the circuit multiple times for every single parameter. More layers mean more parameters, leading to a massive bottleneck in training time.

The authors sought a way to gain the representational power of deep networks without actually building deep circuits.

Methods

The researchers adapted Deep Equilibrium Models (DEQs) to the quantum domain. In a standard neural network, you pass data through layers: $x \to L_1 \to L_2 \to \dots \to y$. In a DEQ, you use a single "weight-tied" layer $f_\theta$ and look for a fixed point where the input and output stabilize: $$f_\theta(z^*; x) = z^*$$ Finding this $z^*$ is equivalent to running an infinitely deep network where every layer is identical.

The QDEQ Recipe: * The Layer: A Parametrized Quantum Circuit (PQC) acts as the function $f_\theta$. * The Solver: Instead of stacking layers, they use a classical "root-solver" (like Broyden’s method) to iteratively find the equilibrium state $z^*$. * Implicit Differentiation: To train the model, they don't backpropagate through the solver's iterations (which would be memory-intensive). Instead, they use the Implicit Function Theorem to calculate gradients directly at the equilibrium point. This makes the memory cost constant, regardless of how "deep" the equilibrium represents. * Warm-up: They found that pre-training with a shallow (2-layer) explicit network helps the model converge faster.

Datasets

The authors evaluated QDEQ across several standard image classification benchmarks, downsampled to fit current quantum simulation constraints:

  • MNIST-4: A 4-class subset of handwritten digits (0, 3, 6, 9) using 4 qubits.
  • MNIST-10: The full 10-digit dataset using a 10-qubit "staircase" architecture.
  • FashionMNIST: 10 classes of clothing items.
  • CIFAR-10: 10 classes of natural images (the most challenging of the set).

Key Insights and Ideas

  • Shallow is the New Deep: The most striking insight is that QDEQ can achieve higher accuracy than a 10-layer explicit network while only using the physical gates of a 1- or 2-layer circuit.
  • Contractivity in Quantum Maps: For a fixed point to exist, the function must be "contractive" (it must bring points closer together). The authors provide theoretical evidence and numerical proofs that common quantum data encodings—like amplitude encoding and angle encoding—naturally satisfy the conditions needed for DEQs to work.
Quantum Circuit Encodings
  • Parameter Efficiency: Because the weights are tied across the "infinite" depth, the number of independent parameters remains low. This directly translates to fewer measurements needed for gradient evaluation compared to deep, non-tied architectures.

Key Results

  • Superior Accuracy: On MNIST-4 with amplitude encoding, the IMPLICIT+WARMUP solver achieved 93.4% accuracy, outperforming a 10-layer explicit network (91.8%) and a standard 1-layer baseline (85.3%).
  • Memory Savings: For the 10-qubit MNIST-10 task, the QDEQ model used only 27.3 MB of GPU memory, whereas the 10-layer explicit model required 1233.3 MB—a massive reduction in classical overhead for simulating these systems.
  • Consistency: QDEQ remained competitive or superior across FashionMNIST and CIFAR-10, proving that the paradigm is robust across different types of data.

Limitations and Future Work

While promising, the authors note several areas for further exploration:

  • Real Hardware Noise: These experiments were conducted via classical simulation (torchquantum). While QDEQs are designed to be noise-resilient by being shallow, the actual impact of "shot noise" (statistical fluctuations in quantum measurements) on the root-finding process needs to be tested on real quantum processors.
  • Measurement Cost vs. Depth: While QDEQ reduces the number of parameters, the root-solver still requires multiple forward passes (measurements) to find the equilibrium. Future work is needed to quantify if the total measurement count is lower than traditional deep VQAs.
  • Barren Plateaus: Like all QML models, QDEQs might still face "barren plateaus" (vanishing gradients). The authors suggest that because QDEQs use shallower circuits for a given performance level, they might be less prone to this issue, but more rigorous study is required.

Paper Citation: Schleich, P., Skreta, M., Kristensen, L. B., Vargas-Hernández, R. A., & Aspuru-Guzik, A. (2024). Quantum Deep Equilibrium Models. 38th Conference on Neural Information Processing Systems (NeurIPS 2024). arXiv:2410.23940

Summary updated

BibTeX
@inproceedings{schleich2024quantum,
  author = {Philipp Schleich and Marta Skreta and Lasse Bjørn Kristensen and Rodrigo Vargas-Hernandez and Alan Aspuru-Guzik},
  title = {{Quantum Deep Equilibrium Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=CWhwKb0Q4k},
}
Figure