Transformers have emerged as the prevailing standard solution for various AI tasks, including computer vision and natural language processing. The widely adopted Query, Key, and Value formulation (QKV) has played a significant role in this. Nevertheless, no research has examined the essentiality of these three components for transformer performance. Therefore, we conducted an evaluation of the key-value formulation (KV), which generates symmetric attention maps, along with an asymmetric version that incorporates a 2D positional encoding into the attention matrix. Remarkably, this transformer requires fewer parameters and computation than the original one. Through experiments encompassing three task types -- synthetics (such as reversing or sorting a list), vision (mnist or cifar classification), and NLP (character generation and translation) -- we discovered that the KV transformer occasionally outperforms the QKV transformer. However, it also exhibits instances of underperformance compared to QKV, making it challenging to draw a definitive conclusion. Nonetheless, we consider the reported results to be encouraging and anticipate that they may pave the way for more efficient transformers in the future.
University of Pisa(比萨大学);University of Trento(特伦托大学);ETH Zürich(苏黎世联邦理工学院);Meta Reality Labs(元宇宙现实实验室);Peking University(北京大学);University of Modena and Reggio Emilia(摩德纳大学与雷焦艾米利亚大学)
Transforming medical imaging with Transformers? A comparative review of key properties, current progresses, and future perspectives
Chinese Academy of Sciences(中国科学院);Johns Hopkins Medical Institutes(约翰斯·霍普金斯医学院);Vanderbilt University(范德堡大学);University of Science and Technology of China(中国科学技术大学)
Dissecting Query-Key Interaction in Vision Transformers
University of Miami(迈阿密大学);Harvard University(哈佛大学);Michigan State University(密歇根州立大学);University of Texas Health Science Center at Houston(休斯顿德克萨斯大学健康科学中心)
Keypoint Counting Classifiers: Turning Vision Transformers into Self-Explainable Models Without Training
Department of Physics and Technology(物理与技术系);UiT The Arctic University of Norway(北摩尔曼斯克大学);Department of Applied Mathematics and Computer Science(应用数学与计算机科学系);Technical University of Denmark(技术大学)
Sharing Key Semantics in Transformer Makes Efficient Image Restoration
ETH Zürich(苏黎世联邦理工学院);INSAIT, Sofia University(保加利亚索菲亚大学INSAIT研究院);University of Pisa(比萨大学);University of Trento(特伦托大学);Meta Reality Labs(元宇宙现实实验室);Peking University(北京大学);University of Modena and Reggio Emilia(摩德纳-雷焦艾米利亚大学);University of California, Merced(加州大学默塞德分校)
Transformer with Selective Shuffled Position Embedding and Key-Patch Exchange Strategy for Early Detection of Knee Osteoarthritis
IDP Institute(IDP研究所);UMR CNRS 7013(法国国家科学研究中心UMR 7013);University of Orleans(奥尔良大学);PRISME Laboratory(PRISME实验室);Massachusetts General Hospital(麻省总医院);Harvard Medical School(哈佛医学院);Geneva University Hospital(日内瓦大学医院)
Enhancing Image Restoration Transformer via Adaptive Translation Equivariance
Institute of Medical Technology, Peking University Health Science Center, Peking University(北京大学医学部医学技术研究所);Biomedical Engineering Department, College of Future Technology, Peking University(未来技术学院生物医学工程系);National Biomedical Imaging Center, Peking University(北京大学国家生物医学成像中心);China Mobile Research Institute(中国移动研究院)