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(多瑙私立大学)
视觉变换器(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.
Key Patches Are All You Need: A Multiple Instance Learning Framework For Robust Medical Diagnosis
Institute for Systems and Robotics(系统与机器人研究所);Instituto Superior Técnico(里斯本高等理工学院);Institute of Computing(计算研究所);University of Campinas(坎皮纳斯大学);Lisbon ELLIS Unit(里斯本ELLIS单元)
iPac: Incorporating Intra-image Patch Context into Graph Neural Networks for Medical Image Classification
Nuffield Department of Surgical Sciences, University of Oxford, UK(牛津大学外科科学系);School of Computing and Digital Technology, Birmingham City University, UK(伯明翰城市大学计算与数字技术学院);Department of Computer Science, University of Exeter, UK(埃克塞特大学计算机科学系)
Nanjing University(南京大学);National Institute of Healthcare Data Science at Nanjing University(南京大学国家医疗健康数据科学研究院);Istanbul Technical University(伊斯坦布尔理工大学);University of Dundee(邓迪大学);ShanghaiTech University(上海科技大学);Shanghai United Imaging Intelligence Co., Ltd.(上海联影智能有限公司)
Transforming medical imaging with Transformers? A comparative review of key properties, current progresses, and future perspectives
Chinese Academy of Sciences(中国科学院);Johns Hopkins Medical Institutes(约翰斯·霍普金斯医学院);Vanderbilt University(范德堡大学);University of Science and Technology of China(中国科学技术大学)
MedicalPatchNet: A Patch-Based Self-Explainable AI Architecture for Chest X-ray Classification
Department of Diagnostic and Interventional Radiology of the University Hospital RWTH Aachen(鲁尔大学亚琛医院诊断与介入放射科);Else Kroener Fresenius Center for Digital Health, Technical University Dresden(德累斯顿技术大学埃勒克罗纳弗雷斯内尔数字健康中心);Department of Medicine III, University Hospital RWTH Aachen(鲁尔大学亚琛医院第三医学部);Pathology & Data Analytics, Leeds Institute of Medical Research at St James’s, University of Leeds(利兹大学圣詹姆斯医院医学研究所以及病理学与数据科学);Department of Medicine I, University Hospital Dresden(德累斯顿大学第一医学部);Medical Oncology, National Center for Tumor Diseases (NCT), University Hospital Heidelberg(海德堡大学国家肿瘤疾病中心(NCT)肿瘤医学部)
Structure-aware Semantic Discrepancy and Consistency for 3D Medical Image Self-supervised Learning
Artificial Intelligence Innovation and Incubation Institute, Fudan University(复旦大学人工智能创新与孵化院);Shanghai Academy of Artificial Intelligence for Science(上海人工智能科学研究院);The University of Queensland(昆士兰大学);Zhongshan Hospital, Fudan University(复旦大学中山医院)
Unsupervised Patch-GAN with Targeted Patch Ranking for Fine-Grained Novelty Detection in Medical Imaging
the Southern University of Science and Technology(南方科技大学);University of Oxford(牛津大学);Tsinghua University(清华大学);University of Warwick(华威大学);Northwest University(西北大学);Peng Cheng Lab(鹏城实验室)
PatchDropout: Economizing Vision Transformers Using Patch Dropout
KTH Royal Institute of Technology(瑞典皇家理工学院);Science for Life Laboratory(生命科学实验室);Karolinska Institutet(卡罗林斯卡学院);Karolinska University Hospital(卡罗林斯卡大学医院);AstraZeneca(阿斯利康)
TransMorph: Transformer for unsupervised medical image registration
Johns Hopkins Medical Institutes(约翰·霍普金斯医学院);Johns Hopkins University(约翰·霍普金斯大学);NVIDIA Corporation(英伟达公司);Duke University Medical Center(杜克大学医学中心);Massachusetts General Hospital(麻省总医院);Harvard Medical School(哈佛医学院)
Fine-Grained Image-Text Alignment in Medical Imaging Enables Explainable Cyclic Image-Report Generation
City University of Hong Kong(香港城市大学);Shenzhen University(深圳大学);University of Rochester(罗切斯特大学);Massachusetts General Hospital(麻省总医院);Harvard Medical School(哈佛医学院);The Chinese University of Hong Kong(香港中文大学)
AMLP: Adjustable Masking Lesion Patches for Self-Supervised Medical Image Segmentation
State Key Laboratory of Reliability and Intelligence of Electrical Equipment, School of Health Sciences and Biomedical Engineering, Hebei University of Technology, Tianjin, China(河北工业大学可靠性与智能电气设备国家重点实验室,健康科学与生物医学工程学院,中国天津);Department of Computer Science, University of Oxford, Oxford, United Kingdom(英国牛津大学计算机科学系);institute of Logic and Computation, Vienna University of Technology, Vienna, Austria(奥地利技术大学逻辑与计算研究所)
HIPA: Hierarchical Patch Transformer for Single Image Super Resolution
Ocean University of China(中国海洋大学);University of Manitoba(曼尼托巴大学);Harbin Institute of Technology(哈尔滨工业大学);The Hong Kong Polytechnic University(香港理工大学);University of Alberta(阿尔伯塔大学);University of Science and Technology of China(中国科学技术大学)