Skip to main content
QUICK REVIEW

[Paper Review] Entanglement and Tensor Networks for Supervised Image Classification

John R. C. Martyn, Guifré Vidal|arXiv (Cornell University)|Jul 12, 2020
Computational Physics and Python ApplicationsComputer Science9 citations
TL;DR

This paper investigates entanglement in tensor network models for supervised image classification using MNIST digits. It finds that while long-range entanglement is not essential—block product states with local entanglement (n×n blocks) achieve 99.97% training accuracy even at n=2—the models suffer from overfitting, indicating that generalization requires improved optimization beyond current approaches.

ABSTRACT

Tensor networks, originally designed to address computational problems in quantum many-body physics, have recently been applied to machine learning tasks. However, compared to quantum physics, where the reasons for the success of tensor network approaches over the last 30 years is well understood, very little is yet known about why these techniques work for machine learning. The goal of this paper is to investigate entanglement properties of tensor network models in a current machine learning application, in order to uncover general principles that may guide future developments. We revisit the use of tensor networks for supervised image classification using the MNIST data set of handwritten digits, as pioneered by Stoudenmire and Schwab [Adv. in Neur. Inform. Proc. Sys. 29, 4799 (2016)]. Firstly we hypothesize about which state the tensor network might be learning during training. For that purpose, we propose a plausible candidate state $|Σ_{\ell} angle$ (built as a superposition of product states corresponding to images in the training set) and investigate its entanglement properties. We conclude that $|Σ_{\ell} angle$ is so robustly entangled that it cannot be approximated by the tensor network used in that work, which must therefore be representing a very different state. Secondly, we use tensor networks with a block product structure, in which entanglement is restricted within small blocks of $n imes n$ pixels/qubits. We find that these states are extremely expressive (e.g. training accuracy of $99.97 \%$ already for $n=2$), suggesting that long-range entanglement may not be essential for image classification. However, in our current implementation, optimization leads to over-fitting, resulting in test accuracies that are not competitive with other current approaches.

Motivation & Objective

  • To understand why tensor networks succeed in machine learning, especially in image classification, by analyzing their entanglement properties.
  • To investigate whether tensor networks learn a sum state of training images, which would require massive entanglement.
  • To test if restricting entanglement to small blocks (n×n pixels) can maintain high performance while improving generalization.
  • To identify structural and optimization improvements that reduce overfitting in tensor network models for image classification.

Proposed method

  • Proposes a sum state |Σℓ⟩ as a candidate for the state learned by tensor networks, defined as a superposition of all training images of class ℓ.
  • Analyzes entanglement entropy of |Σℓ⟩ and shows it requires bond dimension χ ≈ 6,000 to approximate, far exceeding typical MPS bond dimensions (χ ≤ 120).
  • Introduces block product states (BPS) where entanglement is restricted within n×n pixel blocks, enabling efficient computation and controlled entanglement.
  • Uses matrix product state (MPS) architecture with block-structured tensors to represent BPS, allowing optimization via gradient descent on the loss function.
  • Employs redundant parameterization of MPS tensors (e.g., bond dimension >2 at boundaries) to improve generalization, observing improved test accuracy.
  • Compares training and test accuracy across different block sizes (n=2,3,4) and bond dimensions (χ) to assess overfitting and expressivity.

Experimental results

Research questions

  • RQ1Can the tensor network model in prior work (Stoudenmire and Schwab, 2016) be approximating the sum state |Σℓ⟩ of all training images of class ℓ?
  • RQ2What is the entanglement structure of the actual state learned by tensor networks in image classification tasks?
  • RQ3Can restricting entanglement to local n×n blocks still achieve high classification accuracy?
  • RQ4Why do current tensor network models for image classification overfit, and how can optimization be improved?

Key findings

  • The sum state |Σℓ⟩, a plausible candidate for the learned state, is so highly entangled that it cannot be approximated by MPS with bond dimension χ ≤ 120, indicating the model learns a different state.
  • Block product states with n=2 (2×2 pixel blocks) achieve a training accuracy of 99.97%, demonstrating that long-range entanglement is not necessary for high expressivity.
  • Test accuracy remains low despite high training accuracy, indicating significant overfitting in the current optimization scheme.
  • Using redundant parameterization (e.g., bond dimension >2 at MPS boundaries) improves test accuracy, suggesting optimization space for better generalization.
  • The maximal test accuracy increases monotonically with block size n, indicating that larger blocks improve generalization potential.
  • Despite high expressivity, current implementations of block product states do not achieve competitive test accuracy compared to state-of-the-art models, highlighting the need for better optimization strategies.

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.