Segmenting Two-Dimensional Structures with Strided Tensor Networks

Raghavendra Selvan, Erik B. Dam, Jens Petersen2021 · DOI

Abstract Tensor networks provide an efficient approximation of operations involving high-dimensional tensors and have been extensively used in modelling quantum many-body systems. More recently, supervised learning has been attempted with tensor networks, primarily focused on tasks such as image classification. In this work, we propose a novel formulation of tensor networks for supervised image segmentation which allows them to operate on high-resolution medical images. We use the matrix product state (MPS) tensor network on non-overlapping patches of a given input image to predict the segmentation mask by learning a pixel-wise linear classification rule in a high-dimensional space. The proposed model is end-to-end trainable using backpropagation and is implemented as a Strided Tensor Network to reduce parameter complexity. Evaluation on two public medical imaging datasets shows that the strided tensor network yields competitive performance compared to CNN-based models while using significantly fewer resources.

Introduction

Deep learning, particularly Convolutional Neural Networks (CNNs) like the U-Net, has become the gold standard for medical image segmentation. However, CNNs are often criticized for being highly non-linear "black boxes" that require massive parameter counts and significant computational overhead.

Tensor networks—mathematical tools originally designed to model complex quantum systems—offer an intriguing alternative. They can be viewed as linear models operating in exponentially high-dimensional spaces. While they have shown promise in image classification, they typically struggle with high-resolution segmentation due to the "curse of dimensionality" and the loss of spatial correlation when flattening 2D images into 1D vectors. This paper introduces a "Strided Tensor Network" to bridge this gap.

The Strided Tensor Network (MPS TeNet)

The core innovation of this work is the Strided Tensor Network (MPS TeNet), which treats the tensor network like a non-overlapping convolutional kernel. This approach allows the model to preserve local spatial structures while keeping the parameter count manageable.

Overview of the Strided TeNet architecture: (a) shows the end-to-end training loop with backpropagation, and (b) illustrates the Matrix Product State (MPS) operating on local image patches.

Methodology

  1. Patching: Instead of processing the whole image at once, the model operates on small, non-overlapping patches (strides).
  2. Feature Lifting: Each pixel is "lifted" into a higher-dimensional space using a sinusoidal feature map. This transformation makes non-linearly separable data potentially separable by a linear hyperplane in that higher dimension.
  3. Matrix Product State (MPS): The model uses MPS to factorize the massive weight tensor into a chain of smaller, trainable tensors. This acts as a highly efficient approximation of a linear decision rule.
  4. End-to-End Training: The model is fully differentiable and trained using standard backpropagation and Binary Cross Entropy loss.

To understand the underlying mechanics, it is helpful to view tensor networks through their graphical notation, where nodes represent tensors and edges represent their indices or dimensions.

Graphical notation for tensor networks, where nodes represent tensors (S: scalar, V: vector, M: matrix, T: rank-3 tensor) and edges represent their indices.

Experimental Evaluation

The model was evaluated on two distinct biomedical imaging tasks:

  • MO-NuSeg (Multi-Organ Nuclei Segmentation): 44 H&E stained tissue images containing roughly 29,000 manually annotated nuclear boundaries.
  • Lung-CXR: 704 chest X-rays used for segmenting lung boundaries to aid in tuberculosis diagnosis.

Key Results and Efficiency

The Strided TeNet performed on par with state-of-the-art deep learning models while demonstrating extreme efficiency:

  • Performance: On MO-NuSeg, both the Strided TeNet and U-Net achieved a 0.70 Dice score. On Lung-CXR, the TeNet achieved a 0.93 Dice score, trailing only slightly behind the U-Net’s 0.95.
  • Parameter Efficiency: For the MO-NuSeg task, the strided tensor network used only 5.1K parameters, compared to the 500K parameters required by a tuned U-Net.
  • Memory Gains: The model utilized only 0.8GB of GPU memory, whereas the U-Net required 6.5GB. This suggests tensor networks could be ideal for processing very large medical volumes (like 3D CT scans) that currently exceed standard GPU memory limits.

Discussion and Future Outlook

This research demonstrates that deep non-linearity may not be strictly necessary for complex segmentation if we operate in a sufficiently high-dimensional feature space. While the tensor network converged more slowly (requiring 80 epochs vs. the U-Net's 50), its resource efficiency is a major advantage.

Future work will focus on improving convergence speeds and exploring more complex "jet-based" feature maps. A natural next step is applying this architecture to 3D medical volumes, where the memory efficiency of tensor networks would provide a decisive advantage over traditional 3D CNNs.

Summary updated

BibTeX
@misc{selvan2021segmenting,
  author = {Raghavendra Selvan and Erik B. Dam and Jens Petersen},
  title = {{Segmenting Two-Dimensional Structures with Strided Tensor Networks}},
  year = {2021},
  eprint = {2102.06900},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.06900},
}
Figure