Effect of Patch Size on Fine-Tuning Vision Transformers in Two-Dimensional and Three-Dimensional Medical Image Classification
원문 초록
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.
제출 이력
확인된 버전만 표시합니다. 전체 제출 이력은 arXiv 원문에서 확인하세요.
- arXiv:2602.18614v2제출 시각 미확인
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
공통 태그로 연결된 공개 논문이 아직 없습니다.
토론
이 논문과 연결된 포럼 글이 아직 없습니다.