Abstract
Medical image segmentation requires a delicate balance between local spatial precision and global contextual understanding. Traditional Convolutional Neural Networks (CNNs) excel at the former but struggle with the latter, while standard Transformers often sacrifice fine-grained detail. We present TranSiam, a 2D dual-path architecture that harmonizes these approaches. By utilizing specialized Improved Convolutional Multi-head Transformer (ICMT) blocks and a Transformer Multimodal Mixing (TMM) fusion engine, TranSiam achieves state-of-the-art accuracy on brain tumor segmentation tasks. Notably, the model maintains high efficiency, utilizing 75% fewer parameters than leading 3D hybrid models like TransBTS.
Introduction
Accurate segmentation of anatomical structures and lesions is critical for diagnosis and treatment planning. While U-Net and its variants have dominated this field, their local receptive fields limit their ability to model long-range dependencies. Transformers offer a solution for global context but typically require extensive data and can lose spatial resolution. Furthermore, medical imaging often involves multiple modalities (e.g., T1, T2, Flair MRI), which present distinct visual characteristics that simple concatenation fails to exploit effectively. TranSiam addresses these challenges by integrating convolutional operations directly into the Transformer architecture and employing an attention-based fusion strategy.
Methods
TranSiam employs a dual-path encoder-decoder structure to process multimodal inputs in parallel streams (typically grouping T1/T1ce and Flair/T2). The architecture transitions from standard CNN layers for low-level feature extraction to specialized Transformer-based blocks for high-level reasoning.
Improved Convolutional Multi-head Transformer (ICMT)
The ICMT block enhances the standard Transformer by embedding convolutional layers to preserve spatial information. Instead of standard linear projections for Query (Q), Key (K), and Value (V), it uses depthwise convolutions. This allows the model to encode relative spatial positions implicitly, removing the need for explicit positional embeddings. Additionally, the standard Multi-Layer Perceptron (MLP) is replaced with standard convolutions to ensure that fine-grained spatial details are maintained even in deeper layers.
Transformer Multimodal Mixing (TMM)
The TMM block serves as the fusion hub. It utilizes cross-attention to identify and weight complementary features across different modality groups. Following cross-modal interaction, a self-attention layer is applied to capture global correlations within the newly fused feature space, ensuring a holistic representation of the lesion area.
Results and Discussion
The model was rigorously evaluated on the BraTS 2019 and 2020 datasets, which comprise 3D MRI volumes across four modalities.
Quantitative Performance
TranSiam achieved a Dice score of 89.34% on the BraTS 2020 benchmark, surpassing established models such as U-Net (88.63%) and CE-Net (88.98%). A key advantage of TranSiam is its parameter efficiency; with only 7.98 million parameters, it is significantly lighter than the 32.99 million parameters required by TransBTS, representing a 75% reduction in model size without compromising accuracy.
Qualitative Analysis
Visual inspections reveal that TranSiam is particularly adept at identifying small, isolated tumor fragments that traditional CNN-based architectures often overlook. The attention-based fusion allows the model to leverage subtle cues present in specific MRI sequences that might be obscured in others.
Conclusion
TranSiam demonstrates that the strategic integration of CNNs and Transformers can overcome the individual limitations of each architecture in medical imaging. By treating convolution as an inherent "positioning system" within the Transformer and using cross-attention for multimodal fusion, the model achieves superior segmentation performance with high efficiency. Future research will focus on extending this 2D framework to native 3D processing and evaluating its generalizability across diverse anatomical regions and imaging modalities.
Summary updated