A narrated tour from the area law and tensor trains, through network compression, MPS classifiers and Born machines, to quantum circuits and open questions.

3 min 16 s, made with Claude

Two fields, one representation problem

A wave function of N spins has 2^N amplitudes. A binary image with 784 pixels lives in a space of 2^784 configurations. Quantum many-body physics and machine learning both need to describe functions on spaces this large using a manageable number of parameters.

A tensor network writes one huge tensor as a contraction of many small ones. Each small tensor carries a few physical indices and a few bond indices shared with its neighbours; summing over the bonds rebuilds the whole. The bond dimension D controls how much correlation the network can carry, and so how many parameters it needs.

The same object has appeared under different names. Numerical analysts call the one-dimensional chain a tensor train; physicists call it a matrix product state, or MPS. The DMRG algorithm, which optimizes an MPS by sweeping back and forth and updating a few tensors at a time, has close relatives among alternating optimization methods for tensor trains.

Why low rank can work

Most states in Hilbert space are highly entangled, yet ground states of gapped local Hamiltonians are not. Their entanglement across a cut grows with the size of the boundary rather than the volume: an area law. In one dimension this has been proven, and it is why an MPS with modest bond dimension describes such states accurately. Critical systems and higher dimensions need more care.

Natural images are also special. Meaningful pictures occupy a tiny corner of configuration space, far from uniform noise. One way to quantify this is the mutual information between two parts of an image. For a Born machine built from an MPS, the mutual information across a cut is at most log₂ D bits, so a data set with little mutual information across every cut can, in principle, be captured with small bonds.

The estimates shown in the video for binarized MNIST come out at only a few bits, far below the hundreds allowed in principle. That is encouraging, but it is not the whole story. An MPS orders pixels along a line, so neighbouring pixels in two dimensions can end up far apart in the chain. This is one motivation for tree and two-dimensional networks.

Compressing and relating neural networks

Tensor networks first entered deep learning as a compression tool. A dense weight matrix can be reshaped into a high-order tensor and written as a matrix product operator. Novikov and coauthors showed that fully connected layers of large image classifiers can be compressed by several orders of magnitude with only a small change in accuracy. In our work on MPO-Net, we applied the same decomposition to both fully connected and convolutional layers.

The connection also runs the other way. Restricted Boltzmann machines can be rewritten exactly as tensor network states, with a bond dimension set by their connectivity, while not every tensor network state has an efficient Boltzmann-machine form. Related results link convolutional and recurrent architectures to hierarchical Tucker and tensor-train formats. These correspondences let ideas about expressive power move between the two fields.

Tensor networks as learning models

Tensor networks can also be the model itself. Stoudenmire and Schwab mapped each pixel to a two-component feature vector, so that an image becomes a product state, and represented the classifier as an MPS acting on it. Trained with DMRG-style sweeps, it reached a test error below one percent on MNIST. Later tree, PEPS, string-bond and residual architectures reported results comparable to classic convolutional baselines on Fashion-MNIST.

For generative modelling, the Born rule gives a natural recipe: the probability of a configuration is its squared amplitude divided by a normalization constant. For an MPS or a tree tensor network, that constant is an exact contraction, and samples can be drawn directly pixel by pixel from conditional probabilities without a Markov chain. For PEPS, contraction is generally approximate.

Han and coauthors trained an MPS Born machine on binarized MNIST and reported a test negative log-likelihood of about 101.5. Our tree tensor network model captured more two-dimensional correlation and lowered this value; later PEPS and autoregressive MPS models went further, approaching strong deep generative models such as PixelCNN, though not yet surpassing the best of them.

Towards quantum circuits, and what remains open

If each tensor is made unitary, a tensor network becomes a quantum circuit. Huggins and coauthors proposed discriminative and generative tensor-network circuits that could run on small quantum processors, trained with hybrid quantum-classical optimization. This makes tensor-network models a natural bridge between machine learning and quantum computing.

Several questions remain open. We still lack good ways to measure which structure in a data set suits which network geometry. The expressive power and learnability of different architectures are only partly understood, and the optimizers used in practice leave room for improvement. Tensor network models are also costly: contraction cost grows as a power of the bond dimension.

In return, they are unusually interpretable. Canonical forms, entanglement spectra and exact normalization give handles that most neural networks lack. Much of the bridge between the two fields is still waiting to be built.

Papers & further reading

  1. E. M. Stoudenmire & D. J. Schwab, Supervised learning with quantum-inspired tensor networks, NeurIPS 2016 (arXiv:1605.05775)
  2. Z.-Y. Han et al., Unsupervised generative modeling using matrix product states, Phys. Rev. X 8, 031012 (2018)
  3. S. Cheng, L. Wang, T. Xiang & P. Zhang, Tree tensor networks for generative modeling, Phys. Rev. B 99, 155131 (2019)
  4. A. Novikov et al., Tensorizing neural networks, NeurIPS 2015 (arXiv:1509.06569)
  5. Z.-F. Gao et al., Compressing deep neural networks by matrix product operators, Phys. Rev. Research 2, 023300 (2020)
  6. J. Chen et al., Equivalence of restricted Boltzmann machines and tensor network states, Phys. Rev. B 97, 085104 (2018)
  7. I. Convy et al., Mutual information scaling for tensor network machine learning, Mach. Learn.: Sci. Technol. 3, 015017 (2022)
  8. W. Huggins et al., Towards quantum machine learning with tensor networks, Quantum Sci. Technol. 4, 024001 (2019)