Skip to main content
QUICK REVIEW

[Paper Review] Quantum advantage in training binary neural networks

Yidong Liao, Daniel Ebler|arXiv (Cornell University)|Oct 30, 2018
Quantum Computing Algorithms and ArchitectureComputer Science3 citations
TL;DR

This paper proposes a fully quantum training protocol for binary neural networks that leverages quantum superposition and Grover's search to guarantee convergence to globally optimal weights, avoiding suboptimal solutions and vanishing/exploding gradients. It achieves a provable quadratic speedup—up to exponential in some cases—over classical brute-force search for weight configurations.

ABSTRACT

The performance of a neural network for a given task is largely determined by the initial calibration of the network parameters. Yet, it has been shown that the calibration, also referred to as training, is generally NP-complete. This includes networks with binary weights, an important class of networks due to their practical hardware implementations. We therefore suggest an alternative approach to training binary neural networks. It utilizes a quantum superposition of weight configurations. We show that the quantum training guarantees with high probability convergence towards the globally optimal set of network parameters. This resolves two prominent issues of classical training: (1) the vanishing gradient problem and (2) common convergence to suboptimal network parameters. Moreover we achieve a provable polynomial---sometimes exponential---speedup over classical training for certain classes of tasks. We design an explicit training algorithm and implement it in numerical simulations.

Motivation & Objective

  • Address the NP-completeness of training binary neural networks (BNNs), which leads to suboptimal solutions and long training times.
  • Overcome classical limitations such as vanishing and exploding gradients in backpropagation, especially in deep networks.
  • Develop a fully quantum training protocol that maintains quantum superposition throughout training, avoiding reliance on classical gradient-based optimization.
  • Demonstrate a provable quantum speedup in finding optimal weights by reformulating BNN training as a quantum search problem.
  • Provide a concrete, implementable quantum algorithm for training BNNs using a small number of logical qubits, suitable for near-term quantum hardware.

Proposed method

  • Reformulate binary neural network training as a quantum search problem over the space of all possible weight configurations.
  • Use Grover's algorithm to amplify the amplitude of the globally optimal weight configuration, ensuring high-probability convergence to the global minimum.
  • Design a quantum extension of the binary neuron that maps the cost function to a phase oracle, enabling the use of amplitude amplification.
  • Maintain coherent superposition of all weight configurations throughout the training process, avoiding classical parameter updates.
  • Implement the protocol using a fixed number of logical qubits (approximately 8 for a single binary neuron), making it feasible for current quantum hardware.
  • Use numerical simulations to validate the protocol on small, non-trivial BNNs, demonstrating convergence to optimal solutions.

Experimental results

Research questions

  • RQ1Can a fully quantum training protocol for binary neural networks guarantee convergence to the globally optimal set of weights, avoiding local minima?
  • RQ2Does the proposed quantum approach provide a provable speedup over classical training methods, particularly brute-force search over weight configurations?
  • RQ3How can quantum superposition and Grover's search be effectively applied to the non-convex optimization landscape of binary neural network training?
  • RQ4To what extent does the quantum protocol mitigate classical training issues such as vanishing and exploding gradients?
  • RQ5What is the resource cost (in terms of qubits and circuit depth) for implementing this protocol on near-term quantum devices?

Key findings

  • The quantum training protocol guarantees convergence to the globally optimal weight configuration with high probability, resolving the issue of suboptimal convergence in classical training.
  • The protocol achieves a quadratic speedup in the number of queries required to find the optimal weights, scaling as $ \mathcal{O}(2^{N/2}/n\log(n/\delta)) $, where $ N $ is the number of weights.
  • For certain classes of tasks—such as two-hidden-layer feedforward networks with $ n < N $—the speedup becomes exponential in $ N $, as shown in Eq. (20).
  • The method avoids gradient-related failures such as vanishing and exploding gradients by eliminating backpropagation and relying on global quantum search instead.
  • Numerical simulations confirm the feasibility of the protocol on small-scale BNNs, with a single binary neuron requiring only ~8 logical qubits, placing it within reach of current quantum hardware.
  • The protocol provides a fully specified, implementable quantum algorithm that can be extended to include quantum analogues of classical regularization techniques like dropout.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.