TensorNetwork for Machine Learning

Stavros Efthymiou, Jack Hidary, Stefan Leichenauer
6/7/2019
cs.LGcond-mat.str-elcs.CV

Official code: google/TensorNetwork (1,868 stars, Python, Apache-2.0, last commit 2023-09-04).

Abstract

We demonstrate the use of tensor networks for image classification with the TensorNetwork open source library. We explain in detail the encoding of image data into a matrix product state form, and describe how to contract the network in a way that is parallelizable and well-suited to automatic gradients for optimization.

Show full abstract

Applying the technique to the MNIST and Fashion-MNIST datasets we find out-of-the-box performance of 98% and 88% accuracy, respectively, using the same tensor network architecture. The TensorNetwork library allows us to seamlessly move from CPU to GPU hardware, and we see a factor of more than 10 improvement in computational speed using a GPU.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A library for easy and efficient manipulation of tensor networks.

1,868363Python, Jupyter NotebookApr 25, 20193 years agoApache-2.0
matrix-product-statestensor-networks

Similar Papers

Cite this paper

@article{efthymiou2019tensornetwork,
  title  = {TensorNetwork for Machine Learning},
  author = {Stavros Efthymiou and Jack Hidary and Stefan Leichenauer},
  year   = {2019},
  eprint = {1906.06329},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.06329}
}

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/1906.06329.svg)](https://codeofpaper.com/paper/1906.06329)

Discussion