While transformers have begun to dominate many tasks in vision, applying them to large images is still computationally difficult. A large reason for this is that self-attention scales quadratically with the number of tokens, which in turn, scales quadratically with the image size. On larger images (e.g., 1080p), over 60% of the total computation in the network is spent solely on creating and applying attention matrices. We take a step toward solving this issue by introducing Hydra Attention, an extremely efficient attention operation for Vision Transformers (ViTs). Paradoxically, this efficiency comes from taking multi-head attention to its extreme: by using as many attention heads as there are features, Hydra Attention is computationally linear in both tokens and features with no hidden constants, making it significantly faster than standard self-attention in an off-the-shelf ViT-B/16 by a factor of the token count. Moreover, Hydra Attention retains high accuracy on ImageNet and, in some cases, actually improves it.
Ensembling Pruned Attention Heads For Uncertainty-Aware Efficient Transformers
U2IS, ENSTA, Institut Polytechnique de Paris(U2IS、ENSTA、巴黎理工学院);University of Trento(特伦托大学);NVIDIA;University of Bergamo, Italy(意大利贝拉姆博大学);Fondazione Bruno Kessler (FBK)(布鲁诺·凯斯勒基金会);AMIAD, Pôle Recherche, Palaiseau(AMIAD、研究部、帕莱索)
MoH: Multi-Head Attention as Mixture-of-Head Attention
School of Electronic and Computer Engineering, Shenzhen Graduate School, Peking University, Shenzhen, China(电子与计算机工程系,深圳研究生院,北京大学,深圳,中国);Pengcheng Laboratory, Shenzhen, China(鹏城实验室,深圳,中国);School of AI for Science, Shenzhen Graduate School, Peking University, Shenzhen, China(科学人工智能学院,深圳研究生院,北京大学,深圳,中国);National University of Singapore, Singapore(新加坡国立大学,新加坡)
HeadRouter: A Training-free Image Editing Framework for MM-DiTs by Adaptively Routing Attention Heads
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);Beihang University(北京航空航天大学);National Cheng-Kung University(国立成功大学)
HEART: Exploiting Head Heterogeneity in Sparse Attention for Video Diffusion
Key Laboratory of Multimedia Trusted Perception and Efficient Computing, Ministry of Education of China, Xiamen University(中国教育部多媒体可信感知与高效计算重点实验室,厦门大学)
Multimodal Multi-Head Convolutional Attention with Various Kernel Sizes for Medical Image Super-Resolution
University of Bucharest(布加勒斯特大学);“Carol Davila” University of Medicine and Pharmacy(“卡罗尔·达维拉”医药大学);Colţea Hospital(科尔察医院);University Politehnica of Bucharest(布加勒斯特理工大学);MBZ University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);Linköping University(林雪平大学)