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

视觉Transformer可视化:神经元告诉什么和神经元如何行为?

Vision Transformer Visualization: What Neurons Tell and How Neurons Behave?

Monash University(莫纳什大学);OrientSoftware(东方软件公司);Adobe Research(奥多比研究院)

Van-Anh Nguyen, Khanh Pham Dinh, Long Tung Vuong, Thanh-Toan Do, Quan Hung Tran, Dinh Phung, Trung Le

摘要:

近年来,视觉Transformer(ViT)已成功地应用于计算机视觉的各种任务。然而,重要的问题,如它们为什么工作或它们如何行为仍然在很大程度上是未知的。在本文中,我们提出了一种有效的可视化技术,以帮助我们揭示神经元中携带的信息以及ViT层中的特征嵌入。我们的方法从ViTs的计算过程出发,专注于可视化输入图像中的局部和全局信息以及多层次的潜在特征嵌入。0级输入和嵌入的可视化揭示了有趣的发现,例如为为什么ViT通常对图像遮挡和补丁重排具有相当鲁棒性提供支持;或者与CNN不同,0级嵌入已经携带丰富的语义细节。接下来,我们开发了一个严格的框架来跨层执行有效的可视化,将ViTs过滤器和分组/聚类行为的效果暴露给对象补丁。最后,我们在真实数据集上提供了全面的实验,定性和定量地证明了我们提出的方法以及我们的研究结果的优点。https://github.com/byM1902/ViT_visualization

英文摘要:

Recently vision transformers (ViT) have been applied successfully for various tasks in computer vision. However, important questions such as why they work or how they behave still remain largely unknown. In this paper, we propose an effective visualization technique, to assist us in exposing the information carried in neurons and feature embeddings across the ViT's layers. Our approach departs from the computational process of ViTs with a focus on visualizing the local and global information in input images and the latent feature embeddings at multiple levels. Visualizations at the input and embeddings at level 0 reveal interesting findings such as providing support as to why ViTs are rather generally robust to image occlusions and patch shuffling; or unlike CNNs, level 0 embeddings already carry rich semantic details. Next, we develop a rigorous framework to perform effective visualizations across layers, exposing the effects of ViTs filters and grouping/clustering behaviors to object patches. Finally, we provide comprehensive experiments on real datasets to qualitatively and quantitatively demonstrate the merit of our proposed methods as well as our findings. https://github.com/byM1902/ViT_visualization

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

↑