A Data-scalable Transformer for Medical Image Segmentation: Architecture, Model Efficiency, and Benchmark
Yunhe Gao, Mu Zhou, Di Liu, Zhennan Yan, Shaoting Zhang, Dimitris N. Metaxas
TL;DR
MedFormer presents a data-scalable hybrid Transformer for 3D medical image segmentation that learns from limited data without pre-training. It introduces convolutional inductive bias, an efficient Bidirectional Multi-Head Attention (B-MHA) with linear complexity, and a global multi-scale semantic map fusion to capture global context with minimal overhead. Across a large cardiac MRI collection and seven public datasets, MedFormer outperforms CNNs and Transformer baselines, showing strong data scalability, robustness to domain shifts, and superior generalization. The work provides a public codebase to enable fair, cross-task benchmarking and sets a foundation for robust, clinically applicable medical segmentation models.
Abstract
Transformers have demonstrated remarkable performance in natural language processing and computer vision. However, existing vision Transformers struggle to learn from limited medical data and are unable to generalize on diverse medical image tasks. To tackle these challenges, we present MedFormer, a data-scalable Transformer designed for generalizable 3D medical image segmentation. Our approach incorporates three key elements: a desirable inductive bias, hierarchical modeling with linear-complexity attention, and multi-scale feature fusion that integrates spatial and semantic information globally. MedFormer can learn across tiny- to large-scale data without pre-training. Comprehensive experiments demonstrate MedFormer's potential as a versatile segmentation backbone, outperforming CNNs and vision Transformers on seven public datasets covering multiple modalities (e.g., CT and MRI) and various medical targets (e.g., healthy organs, diseased tissues, and tumors). We provide public access to our models and evaluation pipeline, offering solid baselines and unbiased comparisons to advance a wide range of downstream clinical applications.
