首次系统比较Transformer的token混合器在医学图像中的表现。
Shaken or Stirred? An Analysis of MetaFormer's Token Mixing for Medical Imaging
- 对比池化、卷积、注意力三种混合器在医学图像任务中的效果。
- 分类任务中低复杂度混合器已足够,分割任务依赖卷积的局部先验性。
- 组卷积最优,兼顾速度、参数量与性能,适合医学图像分析。
MetaFormer通过用简单token混合器替代自注意力机制,重塑了我们对Transformer在计算机视觉中成功原因的理解。尽管在自然图像上已有广泛研究,其在医学图像领域的应用仍较少,且现有工作很少比较不同token混合器,可能忽略了更优的设计选择。本文首次对医学图像中的token混合器进行了全面分析。我们在九个数据集(七个2D、两个3D)上系统评估了基于池化、卷积和注意力的混合器在图像分类(全局预测)与语义分割(密集预测)任务中的表现,覆盖多种模态和常见医学挑战。鉴于利用自然图像预训练缓解医学数据稀缺的普遍做法,我们也考察了将预训练权重迁移至新混合器的效果。结果表明:在分类任务中,低复杂度混合器(如分组卷积或池化)已足够,且预训练权重在某些场景下仍有效;而在分割任务中,卷积混合器的局部归纳偏置至关重要,分组卷积因其更低的运行时与参数量成为首选,而MetaFormer的通道MLP已提供足够的跨通道交互。
原文摘要 · Abstract (English)
The generalization of the Transformer architecture via MetaFormer has reshaped our understanding of its success in computer vision. By replacing self-attention with simpler token mixers, MetaFormer provides strong baselines for vision tasks. However, while extensively studied on natural image datasets, its use in medical imaging remains scarce, and existing works rarely compare different token mixers, potentially overlooking more suitable designs choices. In this work, we present the first comprehensive study of token mixers for medical imaging. We systematically analyze pooling-, convolution-, and attention-based token mixers within the MetaFormer architecture on image classification (global prediction task) and semantic segmentation (dense prediction task). Our evaluation spans nine datasets (seven 2D and two 3D) covering diverse modalities and common challenges in the medical domain. Given the prevalence of pretraining from natural images to mitigate medical data scarcity, we also examine transferring pretrained weights to new token mixers. Our results show that, for classification, low-complexity token mixers (e.g. grouped convolution or pooling) are sufficient, aligning with findings on natural images. Pretrained weights remain useful in some settings despite the domain gap introduced by the new token mixer. For segmentation, we find that the local inductive bias of convolutional token mixers is essential. Grouped convolutions emerge as the preferred choice, as they reduce runtime and parameter count compared to standard convolutions, while the MetaFormer's channel-MLPs already provide the necessary cross-channel interactions.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。