Quantum-classical truncated Newton method for high-dimensional energy landscapes

Leonard Wossnig, Sebastian Tschiatschek, Stefan ZohrenarXiv 2017 · DOI

Abstract

We develop a quantum-classical hybrid algorithm for function optimization that is particularly useful in the training of neural networks since it makes use of particular aspects of high-dimensional energy landscapes. Due to a recent formulation of semi-supervised learning as an optimization problem, the algorithm can further be used to find the optimal model parameters for deep generative models. In particular, we present a truncated saddle-free Newton's method based on recent insight from optimization, analysis of deep neural networks and random matrix theory. By combining these with the specific quantum subroutines we are able to exhaust quantum computing in order to arrive at a new quantum-classical hybrid algorithm design. Our algorithm is expected to perform at least as well as existing classical algorithms while achieving a polynomial speedup. The speedup is limited by the required classical read-out. Omitting this requirement can in theory lead to an exponential speedup.

Introduction: Navigating Rugged Landscapes

Training deep neural networks is essentially a massive optimization problem: finding the minimum of a "loss function" in a space with millions of parameters. Most practitioners rely on First-Order Methods like Stochastic Gradient Descent (SGD). While computationally efficient, these methods are "blind" to the curvature of the landscape, often getting stuck in areas of "pathological curvature" or suffering from vanishing gradients.

Second-Order Methods, such as Newton’s Method, utilize the Hessian matrix (the second derivative) to understand curvature. However, they face two significant hurdles:

  1. Computational Cost: Calculating and inverting a Hessian for $N$ parameters scales as $O(N^2)$ or $O(N^3)$, which is prohibitive for modern large-scale models.
  2. Saddle Points: In high-dimensional spaces, local minima are rare. Instead, the landscape is dominated by saddle points—regions where the curvature is positive in some directions and negative in others. Standard Newton methods are often attracted to these points rather than escaping them.

Methods: The Quantum-Classical Truncated Newton Approach

The proposed algorithm addresses these challenges through a hybrid framework that combines classical optimization logic with quantum computational power. The core methodology rests on three pillars:

1. Saddle-Free Logic

To prevent attraction to saddle points, the algorithm modifies the standard Newton update. Instead of dividing the gradient by the Hessian's eigenvalues ($\lambda$), it divides by their absolute values ($|\lambda|$). This ensures that the algorithm always moves in a direction that decreases the loss, even in regions of negative curvature.

2. Truncation via Random Matrix Theory

Drawing on the Marchenko–Pastur distribution from random matrix theory, the authors observe that the Hessian of a neural network typically consists of a "bulk" of small eigenvalues (representing noise) and a few large "outliers" (representing the structural signal).

The eigenvalue spectrum of a neural network Hessian, distinguishing the continuous 'noise' bulk from the 'outlier' signal.

By truncating the calculation to only invert these top $k$ eigenvalues, the algorithm drastically reduces computational complexity and filters out noise that could otherwise derail the optimization process.

3. Quantum Subroutines

The heavy lifting of matrix inversion is offloaded to a quantum computer. Using Quantum Phase Estimation (QPE) and Hamiltonian Simulation, the Hessian is represented as a quantum state. This allows the inversion to occur in the quantum regime. To apply the update classically, a "classical readout" is performed, leading to a final complexity of approximately $\tilde{O}(N \log N)$ per step.

Key Insights: The Role of the "Noise Bulk"

A counterintuitive finding of this research is that including more information from the Hessian isn't always beneficial. In high-dimensional landscapes, the small eigenvalues in the "bulk" are often artifacts of the network architecture rather than the data itself.

Theoretical Marchenko-Pastur distributions illustrating the density of eigenvalues in different regimes.

Including these noisy components can actually harm the optimization. The truncation strategy is therefore not just a computational shortcut, but a principled way to focus on the most relevant features of the energy landscape.

Results and Performance

  • Complexity: The algorithm achieves a runtime of approximately $\tilde{O}(iter \cdot k \cdot N \log N)$. Compared to the classical saddle-free Newton method ($O(kN^2)$), this represents a significant quadratic improvement relative to the number of parameters $N$.
  • Memory Efficiency: The quantum approach requires only $O(\log N)$ qubits to represent the state, offering a massive space advantage over classical Hessian storage.
  • Empirical Validation: The truncation strategy was validated using datasets like MNIST, not-MNIST, and Spambase, confirming that a small fraction of principal components accounts for the vast majority of the variance in real-world data.

Limitations and Future Outlook

The primary bottleneck remains the classical readout. Because a classical computer must eventually apply the parameter update, the quantum speedup is limited to polynomial. Furthermore, the performance is sensitive to the "condition number" of the Hessian.

Future work may explore purely quantum optimization loops. If the entire training process could remain within the quantum regime, avoiding the $O(N)$ readout, a true exponential speedup might be achievable.

Reference: Wossnig, L., Tschiatschek, S., & Zohren, S. (2017). Quantum-classical truncated Newton method for high-dimensional energy landscapes. arXiv:1710.07063v1 [quant-ph].

Summary updated

BibTeX
@misc{wossnig2017quantum,
  author = {Leonard Wossnig and Sebastian Tschiatschek and Stefan Zohren},
  title = {{Quantum-classical truncated Newton method for high-dimensional energy landscapes}},
  year = {2017},
  eprint = {1710.07063},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1710.07063},
}
Figure