arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.17929cs.CVcs.LGeess.IV
收藏

ZACH-ViT:用于医学影像的紧凑视觉变换器中的领域依赖归纳偏置

ZACH-ViT: Regime-Dependent Inductive Bias in Compact Vision Transformers for Medical Imaging

BioML Lab, RI CODE, UniBw, Munich, Germany(生物机器学习实验室,RI CODE,UniBw,慕尼黑,德国);EDS, Amsterdam UMC, Amsterdam, Netherlands(EDS,阿姆斯特丹大学医学中心,阿姆斯特丹,荷兰)

Athanasios Angelakis

AI总结:

ZACH-ViT通过去除位置嵌入和[CLS]标记,利用全局平均池化实现排列不变的片段处理,在医学影像领域表现出领域依赖的归纳偏置优势。

摘要:

视觉变换器依赖于位置嵌入和类别标记编码固定的空域先验。尽管在自然图像中效果显著,这些先验在空间布局弱信息的条件下可能不理想,这在医学影像中很常见。我们引入了ZACH-ViT(零标记适应紧凑层次视觉变换器),这是一种紧凑的视觉变换器,去除了位置嵌入和[CLS]标记,通过全局平均池化实现排列不变的片段处理。零标记表示移除专用聚合标记和位置编码。片段标记保持不变。自适应残差投影在严格参数约束下保持训练稳定性。我们评估了ZACH-ViT在七个MedMNIST数据集上的表现,采用严格的少样本协议(每类50个样本,固定超参数,五个种子)。结果揭示了领域依赖行为:ZACH-ViT(0.25M参数,从头训练)在BloodMNIST上表现最强,在PathMNIST上保持竞争力,而在具有更强解剖先验的数据集(OCTMNIST、OrganAMNIST)上相对优势下降,与我们的假设一致。组件和池化消融实验显示,位置支持在空间结构增加时变得略有有益,而重新引入[CLS]标记始终不利。这些发现支持了架构与数据结构的对齐可以超越通用基准主导。尽管规模极小且无预训练,ZACH-ViT在数据稀缺条件下实现了竞争力的表现,这在紧凑医学影像和低资源设置中相关。代码:https://github.com/Bluesman79/ZACH-ViT

英文摘要:

Vision Transformers rely on positional embeddings and class tokens encoding fixed spatial priors. While effective for natural images, these priors may be suboptimal when spatial layout is weakly informative, a frequent condition in medical imaging. We introduce ZACH-ViT (Zero-token Adaptive Compact Hierarchical Vision Transformer), a compact Vision Transformer that removes positional embeddings and the [CLS] token, achieving permutation-invariant patch processing via global average pooling. Zero-token denotes removal of the dedicated aggregation token and positional encodings. Patch tokens remain unchanged. Adaptive residual projections preserve training stability under strict parameter constraints. We evaluate ZACH-ViT across seven MedMNIST datasets under a strict few-shot protocol (50 samples/class, fixed hyperparameters, five seeds). Results reveal regime-dependent behavior: ZACH-ViT (0.25M parameters, trained from scratch) achieves strongest advantage on BloodMNIST and remains competitive on PathMNIST, while relative advantage decreases on datasets with stronger anatomical priors (OCTMNIST, OrganAMNIST), consistent with our hypothesis. Component and pooling ablations show positional support becomes mildly beneficial as spatial structure increases, whereas reintroducing a [CLS] token is consistently unfavorable. These findings support that architectural alignment with data structure can outweigh universal benchmark dominance. Despite minimal size and no pretraining, ZACH-ViT achieves competitive performance under data-scarce conditions, relevant for compact medical imaging and low-resource settings. Code: https://github.com/Bluesman79/ZACH-ViT

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

↑