arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.18614cs.CV
收藏

二维和三维医学图像分类中视觉变换器微调受补丁大小的影响

Effect of Patch Size on Fine-Tuning Vision Transformers in Two-Dimensional and Three-Dimensional Medical Image Classification

Research Center for Medical Image Analysis and Artificial Intelligence(医学图像分析与人工智能研究中心);Department of Medicine(医学系);Faculty of Medicine and Dentistry(医学与牙科学院);Danube Private University(多瑙私立大学)

Massoud Dehghan, Ramona Woitek, Amirreza Mahbod

AI总结:

本文研究了补丁大小对ViT在医学图像分类中的影响,发现较小补丁尺寸能提升分类性能,且通过模型集成策略进一步提高效果。

摘要:

视觉变换器(ViTs)及其变体在许多计算机视觉任务中已成为最先进的方法,并被广泛用作大规模视觉和视觉-语言基础模型的骨干网络。尽管大量研究集中在架构改进上,但ViTs中至关重要的初始设计选择——补丁大小的影响仍鲜有研究,特别是在存在二维(2D)和三维(3D)成像模态的医学领域。在本研究中,我们使用来自各种成像模态的12个医学影像数据集(包括7个2D和5个3D数据集),对不同补丁大小如何影响ViT分类性能进行了全面评估。使用单块图形处理单元(GPU)和一系列补丁大小(1, 2, 4, 7, 14, 28),我们对ViT模型进行微调,并观察到较小的补丁大小(1, 2和4)在分类性能上表现出一致的提升,这些补丁大小在几乎所有数据集中均取得最佳结果。更具体地说,我们的结果表明,对于2D数据集(补丁大小2 vs. 28),平衡准确率可提高高达12.78%,而对于3D数据集(补丁大小1 vs. 14),提高可达23.78%,但以增加的计算成本为代价。此外,通过应用一种简单的集成策略,将补丁大小为1、2和4的模型预测进行融合,我们证明在大多数情况下性能进一步提升,尤其是对于2D数据集。我们的实现已在GitHub上公开:https://github.com/HealMaDe/MedViT

英文摘要:

Vision Transformers (ViTs) and their variants have become state-of-the-art in many computer vision tasks. While substantial research has focused on architectural improvements, the impact of patch size, a crucial design choice in ViTs, remains underexplored, particularly in medical domains where both two-dimensional (2D) and three-dimensional (3D) imaging modalities exist. In this study, using 12 medical imaging datasets from various imaging modalities (including seven 2D and five 3D datasets), we conduct a thorough evaluation of how different patch sizes affect ViT classification performance. Using a single graphical processing unit (GPU) and a range of patch sizes (1, 2, 4, 7, 14, 28), we fine-tune ViT models and observe consistent improvements in classification performance with smaller patch sizes (1, 2, and 4), which achieve the best results across nearly all datasets. More specifically, our results indicate improvements in balanced accuracy of up to 12.78 percentage points for 2D datasets (patch size 2 vs. 28) and up to 23.78 percentage points for 3D datasets (patch size 1 vs. 14), at the cost of increased computational expense. Moreover, by combining the models trained with patch sizes 1, 2, and 4 using four fusion strategies, we achieve further performance gains in most cases, particularly for the 2D datasets. We further investigate the generalizability of these findings across higher image resolutions, different transformer architectures, and varying amounts of training data, observing performance trends similar to those of the main experiments. Our full implementation, along with guidelines for running the code, is publicly available on GitHub:https://github.com/HealMaDe/MedViT.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑