While Convolutional Neural Networks (CNNs) are the undisputed kings of medical image analysis, their massive memory footprint often limits their use with high-resolution data or large batch sizes. In a new paper presented at MIDL 2020, researchers from the University of Copenhagen propose a compelling alternative borrowed from quantum physics: Tensor Networks.
TL;DR
The authors introduce LoTeNet (Locally Orderless Tensor Network), a hierarchical architecture that adapts Matrix Product States for 2D medical image classification. It achieves performance comparable to state-of-the-art CNNs while requiring up to 13x less GPU memory and significantly fewer hyperparameters.
What Problem Does This Paper Address?
Deep learning models are notoriously resource-hungry. In medical imaging, where clinicians deal with high-resolution 3D volumes or large histopathology patches, the memory required to store intermediate feature maps in a CNN can quickly exceed the capacity of modern GPUs.
Tensor Networks (TNs) offer a different path. Originally developed by physicists to simulate quantum many-body systems, TNs can represent high-dimensional tensors (like the weights of a classifier) as a network of smaller, low-rank tensors. However, standard TN approaches for machine learning usually involve "flattening" an image into a 1D vector. For complex medical images, this flattening destroys vital spatial correlations and global structure, making the models perform poorly on anything larger than a tiny MNIST digit.
Methods
The core contribution of this paper is LoTeNet, which bridges the gap between the efficiency of Tensor Networks and the spatial requirements of 2D images.
1. Matrix Product States (MPS)
The authors utilize a specific type of TN called a Matrix Product State. Instead of a single weight tensor that grows exponentially with the number of pixels, an MPS factorizes the weights into a chain of smaller tensors. This reduces the parameter count from exponential to linear.
2. The Squeeze Operation
To avoid global flattening, the authors apply a "squeeze" operation to local $k \times k$ image patches. This operation reshapes the patch by stacking pixels along the feature dimension rather than a long 1D line, preserving local context.
3. Hierarchical LoTeNet
LoTeNet processes these squeezed patches through multiple layers of MPS blocks. The output of one layer is reshaped and fed into the next, creating a hierarchical structure that captures increasingly global features—much like the pooling and stride operations in a CNN.
Datasets
The model was evaluated on two distinct medical imaging tasks:
- PCam (PatchCamelyon): A dataset of $96 \times 96$ px histopathology patches for detecting metastatic cancer.
- LIDC-IDRI: Thoracic CT images ($128 \times 128$ px patches) used for lung nodule detection. The authors formulated this as a binary classification task based on the majority vote of four radiologists.
Key Insights and Ideas
- Local Orderlessness: The model is built on the theory that while global structure is essential, the exact local order of pixels in a tiny neighborhood can be treated as "orderless" statistics. This justifies the use of MPS on local patches.
- Massive Memory Savings: Unlike CNNs, which must store large intermediate feature maps for backpropagation, LoTeNet contracts input data into smaller tensors. This means memory consumption does not grow significantly with successive layers.
- Hyperparameter Robustness: The most critical hyperparameter in an MPS is the "bond dimension" ($\beta$), which controls the quality of the approximation. The authors found that LoTeNet is surprisingly robust, performing well even with a very small $\beta=5$.
Key Results
The results show that LoTeNet is a heavyweight contender in a lightweight package:
- Performance: On the PCam dataset, LoTeNet achieved an AUC of 0.943, which is highly competitive with DenseNet (0.962). On the LIDC dataset, LoTeNet actually outperformed DenseNet (0.874 vs 0.829 AUC).
- Efficiency: The most striking result is the memory usage. On the LIDC task, LoTeNet used only 0.7 GB of GPU memory, compared to 10.5 GB for DenseNet.
- Training Speed: The model is fast to train, taking only about 3 minutes per epoch on the large PCam dataset using a single Tesla K80 GPU.
Limitations and Future Work
While promising, the authors note a few areas for further exploration:
- Task Scope: This work focused strictly on classification. Extending LoTeNet to image segmentation or object detection (e.g., precise nodule localization) remains an open challenge.
- Feature Maps: The current model uses a fixed trigonometric feature map to lift pixels into high-dimensional space. Exploring learnable or more complex feature maps could further boost accuracy.
- Architectural Search: While the hierarchical structure works well, the optimal number of layers and kernel sizes for different medical modalities hasn't been fully mapped out.
Summary updated