arXiv:2602.14615cs.CVcs.AI2026-02被引 3

让视觉Transformer支持任意尺寸图像,提升医学影像分析精度

VariViT: A Vision Transformer for Variable Image Sizes

  • 采用新型位置编码重缩放方案,适配不同大小输入图像
  • 在脑肿瘤分类中达76.3% F1分数,比传统ViT更精准
  • 新批处理策略提速30%,适合医疗图像等高维数据

视觉变换器(ViT)作为表征学习的前沿架构,依赖自注意力机制在各类任务中表现优异。然而,现有ViT将图像划分为固定尺寸的补丁,限制了输入尺寸,需进行重缩放、填充或裁剪等预处理,这在医学影像中带来挑战,尤其面对形状不规则的肿瘤时。固定边界框裁剪导致前景与背景比例差异大,重缩放会损失信息并引入伪影,影响诊断。因此,针对感兴趣区域动态调整裁剪尺寸可增强特征表示能力。此外,大图像计算成本高,小尺寸又易丢失信息,存在计算与精度的权衡。本文提出VariViT,一种能处理可变图像尺寸且保持一致补丁大小的改进型ViT。其采用新颖的位置编码重缩放机制以适应不同数量的补丁,并设计新的批处理策略降低计算复杂度,实现更快的训练与推理。在两个3D脑部MRI数据集上的评估显示,VariViT在胶质瘤基因型预测和脑肿瘤分类任务上超越标准ViT与ResNet,F1得分分别为75.5%和76.3%,学习到更具判别性的特征。所提批处理策略相较传统架构最高减少30%计算时间。结果验证了VariViT在图像表征学习中的有效性。

原文摘要 · Abstract (English)

Vision Transformers (ViTs) have emerged as the state-of-the-art architecture in representation learning, leveraging self-attention mechanisms to excel in various tasks. ViTs split images into fixed-size patches, constraining them to a predefined size and necessitating pre-processing steps like resizing, padding, or cropping. This poses challenges in medical imaging, particularly with irregularly shaped structures like tumors. A fixed bounding box crop size produces input images with highly variable foreground-to-background ratios. Resizing medical images can degrade information and introduce artefacts, impacting diagnosis. Hence, tailoring variable-sized crops to regions of interest can enhance feature representation capabilities. Moreover, large images are computationally expensive, and smaller sizes risk information loss, presenting a computation-accuracy tradeoff. We propose VariViT, an improved ViT model crafted to handle variable image sizes while maintaining a consistent patch size. VariViT employs a novel positional embedding resizing scheme for a variable number of patches. We also implement a new batching strategy within VariViT to reduce computational complexity, resulting in faster training and inference times. In our evaluations on two 3D brain MRI datasets, VariViT surpasses vanilla ViTs and ResNet in glioma genotype prediction and brain tumor classification. It achieves F1-scores of 75.5% and 76.3%, respectively, learning more discriminative features. Our proposed batching strategy reduces computation time by up to 30% compared to conventional architectures. These findings underscore the efficacy of VariViT in image representation learning. Our code can be found here: https://github.com/Aswathi-Varma/varivit

视觉Transformer医学影像可变尺寸高效计算

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。