arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.14615cs.CVcs.AIcs.LG
收藏

VariViT:一种适用于可变图像尺寸的视觉变换器

VariViT: A Vision Transformer for Variable Image Sizes

Technical University of Munich(慕尼黑技术大学);Institute for Artificial Intelligence and Informatics in Medicine, Technical University of Munich(慕尼黑技术大学人工智能与医学信息研究所);University of Zurich(苏黎世大学);Harvard Medical School(哈佛医学院)

Aswathi Varma, Suprosanna Shit, Chinmay Prabhakar, Daniel Scholz, Hongwei Bran Li, Bjoern Menze, Daniel Rueckert, Benedikt Wiestler

AI总结:

VariViT 是一种改进的视觉变换器,通过可变大小裁剪和新的批处理策略,提升医学图像的表示学习性能。

摘要:

视觉变换器(ViTs)已经 emerged 为表示学习中的 state-of-the-art 架构,在各种任务中通过 self-attention 机制表现出色。ViTs 将图像分割成固定大小的块,限制它们到预定义的大小,并需要预处理步骤如调整大小、填充或裁剪。这在医学成像中带来了挑战,特别是对于形状不规则的结构如肿瘤。固定边界框裁剪尺寸会产生前景与背景比例高度变化的输入图像。调整医学图像可能会降低信息并引入伪影,影响诊断。因此,针对感兴趣区域定制可变大小的裁剪可以增强特征表示能力。此外,大图像计算成本高,而小尺寸可能造成信息丢失,呈现出计算-准确性权衡。我们提出了 VariViT,一种改进的 ViT 模型,旨在处理可变图像尺寸的同时保持一致的块大小。VariViT 采用了一种新的位置嵌入调整方案,以适应可变数量的块。我们还实现了 VariViT 中新的批处理策略,以减少计算复杂性,从而加快训练和推理时间。在我们对两个 3D 大脑 MRI 数据集的评估中,VariViT 在胶质瘤基因型预测和脑肿瘤分类任务上优于 vanilla ViTs 和 ResNet。它分别实现了 75.5% 和 76.3% 的 F1 分数,学习了更具判别性的特征。我们提出的批处理策略将计算时间减少了高达 30% 相比于传统架构。这些发现强调了 VariViT 在图像表示学习中的有效性。我们的代码可以在这里找到:https://github.com/Aswathi-Varma/varivit

英文摘要:

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

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

↑