Abstract
The resemblance between the methods used in studying quantum-many body physics and in machine learning has drawn considerable attention. In particular, tensor networks (TNs) and deep learning architectures bear striking similarities to the extent that TNs can be used for machine learning. Previous results used one-dimensional TNs in image recognition, showing limited scalability and a high bond dimension. In this work, we train two-dimensional hierarchical TNs to solve image recognition problems, using a training algorithm derived from the multipartite entanglement renormalization ansatz (MERA). This approach overcomes scalability issues and implies novel mathematical connections among quantum many-body physics, quantum information theory, and machine learning. While keeping the TN unitary in the training phase, TN states can be defined, which optimally encodes each class of the images into a quantum many-body state. We study the quantum features of the TN states, including quantum entanglement and fidelity. We suggest these quantities could be novel properties that characterize the image classes, as well as the machine learning tasks. Our work could be further applied to identifying possible quantum properties of certain artificial intelligence methods.
Introduction
The rapid advancement of deep learning has prompted researchers to seek a deeper understanding of the mathematical foundations that govern these complex models. One promising avenue is the field of quantum many-body physics, where tensor networks (TNs) have long been used to represent and simulate highly entangled quantum systems. The structural parallels between TNs and deep neural networks suggest that the former can be adapted for machine learning tasks, offering a more interpretable and theoretically grounded framework.
However, early applications of TNs to image recognition were primarily restricted to one-dimensional structures, such as Matrix Product States (MPS). While successful in some contexts, these 1D models struggle to capture the spatial correlations inherent in 2D images, leading to scalability issues and the need for excessively large bond dimensions. This paper addresses these limitations by introducing a two-dimensional hierarchical Tree Tensor Network (TTN) architecture designed specifically for image classification.
The 2D Hierarchical Pipeline
The authors propose a pipeline that reinterprets image classification as a process of quantum state transformation and renormalization. The workflow consists of several distinct stages:
- Feature Mapping: Each pixel $x$ in an input image is mapped to a $d$-dimensional vector in a local Hilbert space using a non-linear feature map. This step transforms the entire image into a massive product state, effectively embedding the classical data into a quantum-mechanical representation.
- Tree Tensor Network (TTN) Architecture: The model employs a hierarchical structure where tensors are organized in layers. Each tensor node acts as a "renormalizer," compressing four neighboring vectors from a lower layer into a single vector for the layer above. This process is functionally similar to the pooling and convolution operations in standard Convolutional Neural Networks (CNNs), but it operates within the constraints of tensor algebra.
- Unitary Training: To ensure computational stability and efficiency, the authors impose a unitary constraint on the tensors, treating them as isometries. The training process utilizes an iterative optimization algorithm inspired by the Multi-scale Entanglement Renormalization Ansatz (MERA). By defining an "environment tensor" for each component and updating it via Singular Value Decomposition (SVD), the network learns to optimally represent the target classes.
- Classification Strategy: The model uses a "one-against-all" scheme. For a dataset with $p$ classes, $p$ separate TTNs are trained. Classification is determined by calculating the "fidelity" (inner product) between the input image state and the learned state of each network; the class with the highest fidelity is selected as the output.
Quantum Insights into Data Representation
Beyond classification performance, the TTN framework provides unique tools for analyzing data through the lens of quantum information theory.
- Real-Space Renormalization: The hierarchical structure of the TTN implements a real-space renormalization group flow. As data moves up through the layers, the network systematically coarse-grains the image, discarding local noise and extracting high-level abstract features. This effect is clearly visible in t-SNE visualizations, which show that classes overlapping at the input layer become linearly separable as they reach the top of the hierarchy.
- Entanglement as an Information Metric: The authors demonstrate that "entanglement entropy" can serve as a measure of the information correlation between different regions of an image. Interestingly, the trained TTNs were found to possess "small entanglement," suggesting that they provide a highly efficient and compressed representation of the underlying data.
- Fidelity and Classification Difficulty: The "quantum fidelity" between learned class states offers a quantitative proxy for the difficulty of a classification task. For instance, digits with similar shapes (like 4 and 9) exhibit higher fidelity between their respective TTN states, making them harder for the model to distinguish.
Experimental Results and Scalability
The model's efficacy was evaluated on the MNIST and CIFAR-10 datasets. On the MNIST handwritten digit benchmark, the 10-class classifier achieved a training accuracy of 98% and a testing accuracy of 95%. For the more complex CIFAR-10 dataset, binary classification experiments (e.g., distinguishing airplanes from horses) showed that the model's representational power increases with the "bond dimension" $\chi$—the size of the internal links between tensors. However, the authors noted a point of diminishing returns where further increases in $\chi$ led to overfitting.
A key advantage of this hierarchical approach is its scalability. The computational complexity scales as $O(( \chi^5 + d^4\chi)LN)$, where $L$ is the number of pixels and $N$ is the number of training samples. This is significantly more manageable than non-hierarchical tensor network approaches, paving the way for the application of TNs to larger and more complex image datasets.
Conclusion
This work establishes a robust connection between quantum many-body physics and machine learning by demonstrating the power of 2D hierarchical tensor networks. By leveraging concepts like renormalization and entanglement, the authors provide a new perspective on how deep architectures extract and represent information. Furthermore, because the network is constructed from unitary gates, it is inherently compatible with future quantum computing hardware, offering a potential path toward practical quantum machine learning.
Summary updated