Vision transformers have become one of the most important models for computer vision tasks. Although they outperform prior works, they require heavy computational resources on a scale that is quadratic to $N$. This is a major drawback of the traditional self-attention (SA) algorithm. Here, we propose the Unit Force Operated Vision Transformer (UFO-ViT), a novel SA mechanism that has linear complexity. The main approach of this work is to eliminate nonlinearity from the original SA. We factorize the matrix multiplication of the SA mechanism without complicated linear approximation. By modifying only a few lines of code from the original SA, the proposed models outperform most transformer-based models on image classification and dense prediction tasks on most capacity regimes.
Copy the Same, Distill the Difference: Initializing Linear Vision Transformers
Institute of Advanced Intelligence and Computing (IAIC), A*STAR(先进智能与计算研究所(IAIC),新加坡科技研究局);Nanyang Technological University(南洋理工大学);ST Engineering Geo-Insights(新科工程地理信息公司);Sichuan University(四川大学);Shanghai Jiao Tong University(上海交通大学);University of Science and Technology of China(中国科学技术大学)
DopQ-ViT: Towards Distribution-Friendly and Outlier-Aware Post-Training Quantization for Vision Transformers
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);Department of Computer Science, City University of Hong Kong(香港城市大学计算机科学系)
ViT-LSLA: Vision Transformer with Light Self-Limited-Attention
Southwest University(西南大学)
Transformers在广泛的视觉任务中表现出具有竞争力的性能,但计算全局自我注意力的成本非常高。许多方法将注意力的范围限制在局部窗口内以降低计算复杂度。然而,他们的方法不能节省参数的数量;同时,自我关注和内部位置偏差(在softmax函数内部)导致每个查询都关注相似和接近的补丁。因此,本文提出了一种轻型自限制注意机制(LSLA),它由轻型自注意力机制(LSA)和自限制注意力机制(SLA)组成,前者节省了计算量和参数数目,后者提高了性能。首先,LSA用X(原点输入)替换自注意力的K(关键)和V(价值)。将其应用于具有编码器结构和自注意力机制的视觉Transformer中,可以简化计算。第二,二语习得有位置信息模块和有限注意模块。前者包含一个动态尺度和一个内部位置偏差,用于调整自我注意分数的分布,增强位置信息。后者在softmax函数之后使用外部位置偏差来限制一些大的注意力权重值。最后,提出了一种具有光自限制注意的层次化视觉Transformer(ViT-LSLA)。实验表明,ViT-LSLA在IP 102上达到了71.6%的top-1准确率(Swin-T的绝对提高2.4%);在Mini-ImageNet上达到了87.2%的top-1准确率(Swin-T的绝对提高3.7%)。此外,它大大降低了FLOPs(3.5GFLOPs vs. Swin-T的4.5GFLOPs)和参数(18.9…
Reweighting Framewise Attention in Video Transformers for Facial Expression Understanding
Inria, Université Côte d’Azur, France(法国国家信息与自动化研究所、法国滨海阿尔卑斯大学);Hanyang University, South Korea(韩国家阳大学);Pusan National University, South Korea(韩国釜山国立大学)
AdaLog: Post-Training Quantization for Vision Transformers with Adaptive Logarithm Quantizer
State Key Laboratory of Virtual Reality Technology and Systems, Beihang University(北京航空航天大学虚拟现实技术与系统国家重点实验室);School of Computer Science and Engineering, Beihang University(北京航空航天大学计算机科学与工程学院)
I&S-ViT: An Inclusive & Stable Method for Pushing the Limit of Post-Training ViTs Quantization
Institute of Artificial Intelligence, Xiamen University(厦门大学人工智能学院);MAC Lab, Department of Artificial Intelligence, School of Informatics, Xiamen University(厦门大学信息学院人工智能系);Rakuten;Peng Cheng Laboratory(鹏城实验室)
I-ViT: Integer-only Quantization for Efficient Vision Transformer Inference
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)
Multi-Tailed Vision Transformer for Efficient Inference
School of Computer Science, Wuhan University(武汉大学计算机学院);School of Electric Information, Wuhan University(武汉大学电子信息学院);School of Computer Science, The University of Sydney(悉尼大学计算机学院)
RepQ-ViT: Scale Reparameterization for Post-Training Quantization of Vision Transformers
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)
Self-Attention And Beyond the Infinite: Towards Linear Transformers with Infinite Self-Attention
Equixly API Security, Italy(Equixly API安全公司,意大利);Toyota Motor Europe, Belgium(丰田汽车欧洲公司,比利时);MindVisionLabs, UK(MindVisionLabs,英国);Institute of Cognitive Neuroscience, University College London, UK(伦敦大学学院认知神经科学研究所,英国);GlimpseML, UK(GlimpseML,英国)
HiLRP: Toward One Trustworthy Explanation for Vision Transformer: Conservation-Valid Attribution via Attention Primitives
Faculty of Engineering, University of Peradeniya(佩拉德尼亚大学工程学院);School of Computing Technologies, RMIT University(皇家墨尔本理工大学计算技术学院);School of Engineering & Digital Technologies, University of Southern Queensland(南昆士兰大学工程与数字技术学院);School of Engineering & Technologies, UNSW(新南威尔士大学工程与技术学院);Faculty of Science and Technology, Charles Darwin University(查尔斯达尔文大学科学技术学院)