Abstract
This paper introduces LoTeNet (Locally Orderless Tensor Network), a novel framework that adapts Tensor Networks—originally a tool for quantum physics—for medical image classification. By employing a hierarchical "squeeze" operation to preserve spatial structure, LoTeNet achieves performance comparable to state-of-the-art Convolutional Neural Networks (CNNs) while reducing GPU memory consumption by up to 15x. This approach addresses the memory bottleneck in deep learning for medical imaging, enabling high-resolution analysis on standard hardware.
Introduction
Deep learning, particularly Convolutional Neural Networks (CNNs), is the current standard for medical image analysis. However, CNNs are notoriously resource-intensive, requiring massive GPU memory to store intermediate feature maps during training. This memory bottleneck often limits the resolution of images or the batch sizes that can be processed on standard hardware.
Researchers have recently explored Tensor Networks (TNs) as an alternative. TNs provide an efficient way to represent high-dimensional data by factorizing it into smaller, manageable components. However, previous TN models often required flattening 2D images into 1D vectors, a process that destroys the spatial correlations crucial for medical diagnosis, such as identifying lesions in CT scans or tumors in pathology slides. LoTeNet seeks to bridge this gap by utilizing the efficiency of Tensor Networks without losing the 2D "big picture."
Methods: The LoTeNet Architecture
LoTeNet moves away from simple flattening in favor of a hierarchical approach designed to maintain spatial relationships:
- The Squeeze Operation: Instead of turning the whole image into a line, the model takes small $k \times k$ patches and "squeezes" them. This reshapes local spatial information into the feature dimension, effectively increasing the "depth" of the data while reducing its width and height.
- Matrix Product States (MPS): The model uses a specific type of tensor network called a Matrix Product State. In this context, an MPS acts as a linear classifier operating in an exponentially high-dimensional feature space. Pixels are mapped into this space via feature maps (using trigonometric functions like $cos$ and $sin$) to find a separating hyperplane for complex classes.
- Hierarchical Structure: LoTeNet consists of multiple layers of MPS blocks. Each layer summarizes a local patch into a vector, which is then passed to the next layer. This mimics the receptive field expansion seen in CNNs, allowing the model to capture both local textures and global structures.
Experimental Evaluation
The model was evaluated on two distinct medical imaging tasks:
- PCam (PatchCamelyon): A dataset of 220,000 histopathology patches (96x96 pixels) used for detecting metastatic cancer.
- LIDC-IDRI: A dataset of thoracic CT scans. The authors extracted 15,000 patches (128x128 pixels) to predict the presence of lung nodules based on radiologist consensus.
Key Results and Insights
- Performance vs. CNNs: On the PCam dataset, LoTeNet achieved an AUC of 0.943, closely trailing DenseNet (0.962). On the LIDC dataset, LoTeNet actually outperformed DenseNet (0.874 vs 0.829 AUC).
- Dramatic Memory Efficiency: The most striking result is the memory savings. CNNs must store intermediate activations for every layer to perform backpropagation. Tensor Networks contract the data into smaller tensors immediately. For the LIDC dataset, LoTeNet required only 0.7 GB of GPU memory, whereas DenseNet required 10.5 GB.
- Local Orderlessness: The framework relies on the theory that for small neighborhoods, the exact order of pixels matters less than local statistics, provided the global structure is maintained across scales. This justifies the patch-based "squeeze" and contraction approach.
Conclusion and Future Work
LoTeNet offers a compelling alternative for medical AI, approaching deep learning accuracy while running on consumer-grade hardware. While CNNs have benefited from a decade of architectural optimization, LoTeNet achieves these results with a relatively simple 3-layer hierarchy. Future work will focus on scaling these techniques to 3D volumes (MRI/CT) and optimizing the speed of tensor contractions to match the performance of highly tuned CUDA kernels used in standard convolutions.
Summary updated