视觉变换器是否都需要寄存器?一种跨架构重新评估
Do All Vision Transformers Need Registers? A Cross-Architectural Reassessment
AI总结:
本文重新评估了视觉变换器中寄存器的必要性,验证了Darcet等人的发现,并发现其结论在不同模型中并不普遍,同时探讨了模型规模和术语一致性的影响。
摘要:
训练视觉变换器(ViTs)面临显著挑战,其中之一是注意力图中出现的伪影问题,阻碍了其可解释性。Darcet等人(2024)研究了这一现象,认为ViTs需要存储超出[CLS]标记的全局信息。他们提出了一种新颖的解决方案,即添加空输入标记(寄存器),成功消除了伪影并提高了注意力图的清晰度。在本文中,我们复现了Darcet等人的发现,并评估了其主张在多个模型中的通用性,包括DINO、DINOv2、OpenCLIP和DeiT3。尽管我们确认了几个关键主张的有效性,但我们的结果表明,某些主张并不普遍适用于其他模型。此外,我们探讨了模型规模的影响,将他们的发现扩展到较小的模型。最后,我们解开了原始论文中发现的术语不一致问题,并解释了这些不一致在扩展到更广泛模型范围时的影响。
英文摘要:
Training Vision Transformers (ViTs) presents significant challenges, one of which is the emergence of artifacts in attention maps, hindering their interpretability. Darcet et al. (2024) investigated this phenomenon and attributed it to the need of ViTs to store global information beyond the [CLS] token. They proposed a novel solution involving the addition of empty input tokens, named registers, which successfully eliminate artifacts and improve the clarity of attention maps. In this work, we reproduce the findings of Darcet et al. (2024) and evaluate the generalizability of their claims across multiple models, including DINO, DINOv2, OpenCLIP, and DeiT3. While we confirm the validity of several of their key claims, our results reveal that some claims do not extend universally to other models. Additionally, we explore the impact of model size, extending their findings to smaller models. Finally, we untie terminology inconsistencies found in the original paper and explain their impact when generalizing to a wider range of models.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。