Abstract
Most existing transformer-based network architectures for computer vision tasks are large (in number of parameters) and require large-scale datasets for training. However, the relatively small number of data samples in medical imaging compared to the datasets for vision applications makes it difficult to effectively train transformers for medical imaging applications. Further, transformer-based architectures encode long-range dependencies in the data and are able to learn more global representations. This could bridge the gap with convolutional neural networks (CNNs), which primarily operate on features extracted in local image neighbourhoods. In this work, we present a hybrid transformer-based approach for segmentation of medical images that works in conjunction with a CNN. We propose to use learnable global attention heads along with the traditional convolutional segmentation network architecture to encode long-range dependencies. Specifically, in our proposed architecture the local information extracted by the convolution operations and the global information learned by the self-attention mechanisms are fused using bi-directional cross attention during the encoding process, resulting in what we call a hybrid ladder transformer (HyLT). We evaluate the proposed network on two different medical image segmentation datasets. The results show that it achieves better results than the relevant CNN- and transformer-based architectures.
Introduction
In medical image segmentation, researchers face a "Goldilocks" problem. CNNs (like the classic U-Net) are excellent at capturing local textures and edges but struggle with long-range dependencies due to their fixed, local receptive fields. Transformers, on the other hand, excel at capturing global context but typically require massive datasets and huge computational budgets—resources that are notoriously scarce in the medical domain.
Existing attempts to combine them often treat the Transformer as a "bottleneck" or a separate head, which can lead to high parameter counts or a failure to properly integrate local and global cues throughout the encoding process. The Hybrid Ladder Transformer (HyLT) seeks to fuse these two paradigms efficiently, specifically for small-data regimes like histology.
Methods
The core innovation is the Hybrid Ladder Transformer (HyLT) architecture. It consists of two parallel encoding paths:
- The CNN Path: A standard hierarchical encoder (similar to the U-Net) that extracts local features.
- The Transformer Path: A lightweight path that processes learnable "global tokens."
The "Ladder" structure is established through Bidirectional Cross-Attention Bridges. At each layer, local features from the CNN are injected into the Transformer tokens (Local-to-Global), while global information learned by the Transformer is simultaneously injected back into the CNN feature maps (Global-to-Local). To maintain efficiency, the authors used miniaturized bridges and a fixed number of global tokens ($M$), ensuring the Transformer path only accounts for approximately 5% of the total parameters.
Experimental Results
The authors evaluated HyLT on two challenging histology datasets: GlaS (Gland Segmentation) and MoNuSeg (Multi-Organ Nuclei Segmentation). HyLT outperformed several heavyweights, including TransUNet and Swin-UNet, while remaining significantly more parameter-efficient.
As shown in the results, HyLT achieved a 90.86% Dice score on the GlaS dataset, significantly higher than the baseline U-Net (84.45%) and TransUNet (78.98%). On MoNuSeg, it reached an 80.25% Dice score, outperforming all competitors. Notably, HyLT (43.25M parameters) is much leaner than Hybrid DPT (124M) or TransUNet (143M), making it more practical for real-world medical deployment.
Key Insights and Discussion
- Bidirectional Fusion: The "ladder" structure allows the CNN to "ask" the Transformer for global context to resolve local ambiguities, and vice versa.
- Efficiency via Tokenization: By using a small, fixed number of global tokens (with $M=25$ identified as the optimal balance), the model achieves global reasoning without the quadratic complexity usually associated with Transformers.
- Robustness to Noise: HyLT demonstrated significant robustness to image corruption (like random masking) compared to pure CNNs. Because the model maintains a global "understanding" of the image structure, it can effectively "fill in the blanks" when local pixels are missing.
Conclusion
HyLT successfully bridges the gap between local feature extraction and global context in a parameter-efficient manner. While the number of tokens ($M$) remains a sensitive hyperparameter, the architecture provides a robust framework for medical imaging. Future work will explore extending this bidirectional ladder architecture to 3D medical volumes such as CT or MRI scans.
Summary updated