Quantum HyperNetworks: Training Binary Neural Networks in Quantum Superposition

Juan Carrasquilla, Mohamed Hibat-Allah, Estelle Inack, Alireza Makhzani, Kirill Neklyudov +2 more
1/19/2023
quant-phcs.LG

No official code found. Best implementation: GTorlai/PastaQ.jl (150 stars, Apache-2.0, last commit 2024-05-17). 1 more below.

Abstract

Binary neural networks, i.e., neural networks whose parameters and activations are constrained to only two possible values, offer a compelling avenue for the deployment of deep learning models on energy- and memory-limited devices. However, their training, architectural design, and hyperparameter tuning remain challenging as these involve multiple computationally expensive combinatorial optimization problems. Here we introduce quantum hypernetworks as a mechanism to train binary neural networks on quantum computers, which unify the search over parameters, hyperparameters, and architectures in a single optimization loop. Through classical simulations, we demonstrate that our approach effectively finds optimal parameters, hyperparameters and architectural choices with high probability on classification problems including a two-dimensional Gaussian dataset and a scaled-down version of the MNIST handwritten digits. We represent our quantum hypernetworks as variational quantum circuits, and find that an optimal circuit depth maximizes the probability of finding performant binary neural networks. Our unified approach provides an immense scope for other applications in the field of machine learning.

View on arXivView PDF

Code Implementations(2)

GTorlai/PastaQ.jlCommunity100%
Apache-2.0

Package for Simulation, Tomography and Analysis of Quantum Computers

15024JuliaMay 13, 20202 years agoApache-2.0
machinelearningquantum-algorithmsquantum-computingquantum-controlquantum-tomography+1 more
carrasqu/binncodeCommunity100%

Mini MNIST binary neural network classifier trained by full enumeration and variational quantum algorithm

40Julia, ShellNov 7, 20222 years ago

Similar Papers

Cite this paper

@article{carrasquilla2023quantum,
  title  = {Quantum HyperNetworks: Training Binary Neural Networks in Quantum Superposition},
  author = {Juan Carrasquilla and Mohamed Hibat-Allah and Estelle Inack and Alireza Makhzani and Kirill Neklyudov and Graham W. Taylor and Giacomo Torlai},
  year   = {2023},
  eprint = {2301.08292},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.08292v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2301.08292.svg)](https://codeofpaper.com/paper/2301.08292)

Discussion