摇摆或搅拌?对MetaFormer在医学影像中token混合的分析
Shaken or Stirred? An Analysis of MetaFormer's Token Mixing for Medical Imaging
AI总结:
本文首次系统研究了MetaFormer在医学影像中的token混合方法,分析了不同混合器在图像分类和语义分割中的表现,发现低复杂度混合器在分类中有效,而卷积混合器在分割中表现更优。
摘要:
通过MetaFormer将Transformer架构泛化,重新塑造了其在计算机视觉中的成功理解。通过将自注意力替换为更简单的token混合器,MetaFormer为视觉任务提供了强大的基线。然而,尽管在自然图像数据集上被广泛研究,其在医学影像中的应用仍较少,现有研究很少比较不同的token混合器,可能忽略了更合适的设计选择。本文首次全面研究了医学影像中的token混合器。我们系统分析了基于池化、卷积和注意力的token混合器在MetaFormer架构中的表现,应用于图像分类(全局预测任务)和语义分割(密集预测任务)。我们的评估覆盖了九个数据集(七个2D和两个3D),涵盖多种模态和医学领域常见的挑战。鉴于从自然图像预训练来缓解医学数据稀缺的普遍性,我们还检查了将预训练权重转移到新token混合器。我们的结果表明,在分类中,低复杂度的token混合器(例如分组卷积或池化)足够,与在自然图像上的发现一致。预训练权重在某些情况下仍然有用,尽管新token混合器引入了领域差距。在分割中,我们发现卷积token混合器的局部归纳偏置至关重要。分组卷积成为首选,因为它们相比标准卷积减少了运行时间和参数数量,而MetaFormer的通道MLP已经提供了必要的跨通道交互。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。