arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.18585cs.CV
收藏

HAViT:历史注意力视觉变换器

HAViT: Historical Attention Vision Transformer

Computer Vision and Biometrics Lab, Indian Institute of Information Technology, Allahabad(计算机视觉与生物特征实验室,印度信息技术学院,阿勒颇)

Swarnendu Banik, Manish Das, Shiv Ram Dubey, Satish Kumar Singh

AI总结:

本文提出一种跨层注意力传播方法,通过整合历史注意力矩阵提升视觉变换器的特征学习能力,实验表明在CIFAR-100和TinyImageNet上性能均有提升。

摘要:

视觉变换器在计算机视觉领域表现出色,但其注意力机制在层间独立运作,限制了信息流动和特征学习。我们提出了一种有效的跨层注意力传播方法,通过在编码器层中整合历史注意力矩阵,为视觉变换器的层间信息流动提供系统性的改进。该方法使注意力模式在变换器层级中逐步细化,增强了特征获取和优化动态。该方法仅需最小的架构改动,仅添加注意力矩阵存储和融合操作。在CIFAR-100和TinyImageNet上的全面实验表明,方法在准确率上持续提升,ViT在CIFAR-100上的性能从75.74%提升至77.07%(+1.33%),在TinyImageNet上从57.82%提升至59.07%(+1.25%)。跨架构验证显示,在变换器变体中均获得相似的提升,CaiT显示1.01%的增强。系统分析表明,历史注意力的融合超参数(alpha = 0.45)在所有配置中均最优,提供了当前与历史注意力信息之间的理想平衡。随机初始化始终优于零初始化,表明多样的初始注意力模式加速了收敛并提升了最终性能。我们的代码已公开在https://github.com/banik-s/HAViT。

英文摘要:

Vision Transformers have excelled in computer vision but their attention mechanisms operate independently across layers, limiting information flow and feature learning. We propose an effective cross-layer attention propagation method that preserves and integrates historical attention matrices across encoder layers, offering a principled refinement of inter-layer information flow in Vision Transformers. This approach enables progressive refinement of attention patterns throughout the transformer hierarchy, enhancing feature acquisition and optimization dynamics. The method requires minimal architectural changes, adding only attention matrix storage and blending operations. Comprehensive experiments on CIFAR-100 and TinyImageNet demonstrate consistent accuracy improvements, with ViT performance increasing from 75.74% to 77.07% on CIFAR-100 (+1.33%) and from 57.82% to 59.07% on TinyImageNet (+1.25%). Cross-architecture validation shows similar gains across transformer variants, with CaiT showing 1.01% enhancement. Systematic analysis identifies the blending hyperparameter of historical attention (alpha = 0.45) as optimal across all configurations, providing the ideal balance between current and historical attention information. Random initialization consistently outperforms zero initialization, indicating that diverse initial attention patterns accelerate convergence and improve final performance. Our code is publicly available at https://github.com/banik-s/HAViT.

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

↑