Multi-layered tensor networks for image classification

Raghavendra Selvan, Silas Ørting, Erik B. DamarXiv 2020

Introduction

Convolutional Neural Networks (CNNs) are the standard for image classification, but Tensor Networks—mathematical structures derived from quantum physics—offer a promising alternative for representing complex, high-dimensional data efficiently. However, applying tensor networks like Matrix Product States (MPS) to 2D images often results in the loss of spatial correlation when images are flattened into 1D vectors. Previous solutions, such as the Locally Orderless Tensor Network (LoTeNet), addressed this by using multiple small tensor blocks for image patches, but at a high computational cost. This paper introduces the Multi-Layered Tensor Network (MLTN), a hierarchical architecture designed to preserve spatial information while significantly reducing training time.

Methodology

The MLTN architecture processes images through a series of layers, each consisting of three primary operations: Squeeze, Contract, and Rearrange.

  1. Squeeze: This operation moves spatial information from local $k \times k$ neighborhoods into the feature dimension, ensuring that local pixel correlations are maintained during reshaping.
  2. Contract (MPS Step): Unlike patch-based methods, MLTN performs a single global MPS operation per layer. This allows the model to learn linear decision boundaries in a high-dimensional space with a larger field of view.
  3. Rearrange: The output is reshaped back into a 2D grid to serve as input for the subsequent layer.
The MLTN architecture (A) utilizes a squeeze operation (B) to preserve spatial features before processing through global MPS layers. Sample CT patches are shown in (C).

The model is fully linear, eschewing non-linear activation functions like ReLU, and is optimized using standard backpropagation with the Adam optimizer.

Experimental Setup

The model was evaluated on the LIDC-IDRI dataset, which contains thoracic CT images. The task was binary classification to detect lung tumors. The researchers used 15,096 2D patches (128x128 pixels), with labels established by a consensus of four expert radiologists.

Results and Discussion

The MLTN demonstrates significant improvements in efficiency and performance compared to existing models. By reducing the computational complexity of the final decision rule from linear ($N$) to logarithmic ($\log N$), the model achieves a substantial speedup.

Comparison of MLTN against LoTeNet, Tenet-X, and MLP models across parameters, complexity, training time, and AUROC.

As shown in the table above, MLTN achieved an AUROC of 0.88, slightly outperforming LoTeNet (0.87) and a standard MLP (0.86). Most notably, MLTN reduced training time per epoch to 2.8 seconds, a nearly 7x speedup over LoTeNet's 18.5 seconds. Furthermore, MLTN is more parameter-efficient, utilizing only 0.42 million parameters.

Conclusion

MLTN offers a high-performance, computationally efficient alternative to traditional tensor network architectures for image classification. While the model faces challenges such as exploding gradients—requiring a very small learning rate—and potential limitations due to its fully linear nature, its ability to capture global context through a hierarchical approach is a significant advancement. Future research will explore the scalability of this "squeeze-contract-rearrange" method to more complex natural images and 3D volumetric data.

Summary updated

BibTeX
@misc{selvan2020multi,
  author = {Raghavendra Selvan and Silas Ørting and Erik B. Dam},
  title = {{Multi-layered tensor networks for image classification}},
  year = {2020},
  eprint = {2011.06982},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.06982},
}
Figure