Relative position encoding (RPE) is important for transformer to capture sequence ordering of input tokens. General efficacy has been proven in natural language processing. However, in computer vision, its efficacy is not well studied and even remains controversial, e.g., whether relative position encoding can work equally well as absolute position? In order to clarify this, we first review existing relative position encoding methods and analyze their pros and cons when applied in vision transformers. We then propose new relative position encoding methods dedicated to 2D images, called image RPE (iRPE). Our methods consider directional relative distance modeling as well as the interactions between queries and relative position embeddings in self-attention mechanism. The proposed iRPE methods are simple and lightweight. They can be easily plugged into transformer blocks. Experiments demonstrate that solely due to the proposed encoding methods, DeiT and DETR obtain up to 1.5% (top-1 Acc) and 1.3% (mAP) stable improvements over their original versions on ImageNet and COCO respectively, without tuning any extra hyperparameters such as learning rate and weight decay. Our ablation and analysis also yield interesting findings, some of which run counter to previous understanding. Code and models are open-sourced at https://github.com/microsoft/Cream/tree/main/iRPE.
Rethinking Guidance Information to Utilize Unlabeled Samples:A Label Encoding Perspective
College of Control Science and Engineering, Zhejiang University(浙江大学控制科学与工程学院);Southern University of Science and Technology(南方科技大学);Beijing Teleinfo Technology Company Ltd., China Academy of Information and Communications Technology(中国信息通信研究院北京 Teleinfo 技术有限公司);Research Institute of Industrial Internet of Things, China Academy of Information and Communications Technology(中国信息通信研究院工业互联网物联网研究所)
Rethinking Alignment in Video Super-Resolution Transformers
Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);Shanghai AI Laboratory(上海人工智能实验室);The University of Sydney(悉尼大学);University of Chinese Academy of Sciences(中国科学院大学);Tencent PCG(腾讯平台与内容事业群)
Rethinking Local Perception in Lightweight Vision Transformer
Tsinghua University(清华大学);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)
School of Computer Science and Software Engineering, Southwest Petroleum University(计算机科学与软件工程学院,西南石油大学);School of Computing and Artificial Intelligence, Southwest Jiaotong University(计算与人工智能学院,西南交通大学);School of Computing and Artificial Intelligence, Southwestern University of Finance and Economics(计算与人工智能学院,西南财经大学)
Rethinking Surgical Captioning: End-to-End Window-Based MLP Transformer Using Patches
The Chinese University of Hong Kong(香港中文大学);National University of Singapore(新加坡国立大学);Imperial College London(帝国理工学院);National University of Singapore (Suzhou) Research Institute(新加坡国立大学(苏州)研究院)
UltraImage: Rethinking Resolution Extrapolation in Image Diffusion Transformers
Dept. of Comp. Sci. & Tech., BNRist Center, Tsinghua University(计算机科学与技术系,北京理工大学中心,清华大学);ShengShu(盛书);Gaoling School of Artificial Intelligence, Renmin University of China(光明人工智能学院,中国人民大学);Princeton University(普林斯顿大学)
Rethinking Cross-Modal Interaction in Multimodal Diffusion Transformers
The University of Hong Kong(香港大学);Nanjing University(南京大学);University of Chinese Academy of Sciences(中国科学院大学);Nanyang Technological University(南洋理工大学);Harbin Institute of Technology(哈尔滨工业大学)
Rethinking the Encoding and Annotating of 3D Bounding Box: Corner-Aware 3D Object Detection from Point Clouds
School of Computer Science, Beijing Institute of Technology(计算机科学学院,北京理工大学);Computer Science Program, Computer, Electrical and Mathematical Sciences and Engineering (CEMSE) Division, Center of Excellence for Smart Health, and Center of Excellence for Generative AI, King Abdullah University of Science and Technology (KAUST)(计算机科学项目,计算机、电气和数学科学与工程(CEMSE)部门,智能健康卓越中心,生成人工智能卓越中心,国王阿卜杜勒·阿齐兹大学科学与技术(KAUST));State Key Laboratory of Internet of Things for Smart City, Department of Computer and Information Science, University of Macau(智慧城市物联网国家重点实验室,澳门大学计算机与信息科学系);Guangdong Provincial Key Laboratory of Machine Perception and Intelligent Computing, Shenzhen MSU-BIT University(广东省机器感知与智能计算重点实验室,深圳MSU-BIT大学);Beijing Key Laboratory of Intelligent Information Technology, School of Computer Science, Beijing Institute of Technology(北京智能信息技术重点实验室,计算机科学学院,北京理工大学)
Rethinking Attention Gated with Hybrid Dual Pyramid Transformer-CNN for Generalized Segmentation in Medical Imaging
Junia(朱尼亚学院);Centrale Lille(里尔中央理工学院);University of the Basque Country UPV/EHU(巴斯克大学 UPV/EHU);Université Polytechnique Hauts-de-France(上法兰西理工大学);Université de Lille(里尔大学);Ho Chi Minh City Open University(胡志明市开放大学)
VPNeXt -- Rethinking Dense Decoding for Plain Vision Transformer
School of Information and Software Engineering, University of Electronic Science and Technology of China(信息与软件工程学院,电子科学与技术大学);Shenzhen Institute for Advanced Study, University of Electronic Science and Technology of China(深圳先进研究所,电子科学与技术大学)
Rethinking Vision Transformer and Masked Autoencoder in Multimodal Face Anti-Spoofing
Great Bay University(大湾区大学);Nanyang Technological University(南洋理工大学);University of Oulu(奥卢大学);Lappeenranta-Lahti University of Technology(拉彭兰塔-拉赫蒂理工大学);South China University of Technology(华南理工大学)
近年来,基于视觉Transformer(ViT)的多模态学习方法被提出来提高人脸反欺骗(FAS)系统的鲁棒性。然而,仍然没有工作来探索的基本性质(\textit{e.g.},模态感知输入,合适的多模态预训练,和有效的微调),在香草ViT多模态FAS。在本文中,我们研究了三个关键因素(即,输入、预训练和微调),用于具有RGB、红外(IR)和深度的多模态FAS。首先,在ViT输入方面,我们发现利用局部特征描述符有利于IR模态上的ViT,而不是RGB或深度模态。其次,在观察的效率直接微调整个或部分ViT,我们设计了一个自适应多模态适配器(AMA),它可以有效地聚合本地多模态功能,同时冻结大多数ViT参数。最后,考虑到任务(FAS与通用对象分类)和模态(多模态与单峰)的差距,ImageNet预训练模型对于多模态FAS任务可能是次优的。为了弥合这些差距,我们提出了模态非对称掩码自编码器(M $^{2}$ A $^{2}$ E),用于多模态FAS自监督预训练,而无需昂贵的注释标签。与先前的模态对称自动编码器相比,所提出的M $^{2}$ A $^{2}$ E能够学习更多内在的任务感知表示并且与模态不可知(例如,单峰、双峰和三峰)下游设置。在多模态FAS基准上进行的单峰(RGB,深度,IR)和多模态(RGB+深度,RGB+IR,深度+IR,RGB+深度+IR)设置的广泛实验证明了所提出的方法的优…
SpectralFormer: Rethinking Hyperspectral Image Classification with Transformers
Aerospace Information Research Institute, Chinese Academy of Sciences(中国科学院空天信息创新研究院);University of Chinese Academy of Sciences(中国科学院大学);University of Extremadura(埃斯特雷马杜拉大学);Univ. Grenoble Alpes(格勒诺布尔阿尔卑斯大学);INRIA(法国国家信息与自动化研究所);CNRS(法国国家科学研究中心);Grenoble INP(格勒诺布尔理工学院)