The remarkable success of transformers in sequence modeling tasks, spanning various applications in natural language processing and computer vision, is attributed to the critical role of self-attention. Similar to the development of most deep learning models, the construction of these attention mechanisms relies on heuristics and experience. In our work, we derive self-attention from kernel principal component analysis (kernel PCA) and show that self-attention projects its query vectors onto the principal component axes of its key matrix in a feature space. We then formulate the exact formula for the value matrix in self-attention, theoretically and empirically demonstrating that this value matrix captures the eigenvectors of the Gram matrix of the key vectors in self-attention. Leveraging our kernel PCA framework, we propose Attention with Robust Principal Components (RPC-Attention), a novel class of robust attention that is resilient to data contamination. We empirically demonstrate the advantages of RPC-Attention over softmax attention on the ImageNet-1K object classification, WikiText-103 language modeling, and ADE20K image segmentation task.
Unveiling the Inflexibility of Adaptive Embedding in Traffic Forecasting
SUSTech-UTokyo Joint Research Center on Super Smart City(南方科技大学-东京大学超级智慧城市联合研究中心);Research Institute of Trustworthy Autonomous Systems, Southern University of Science and Technology (SUSTech)(南方科技大学可信自主系统研究院);School of Artificial Intelligence, Jilin University(吉林大学人工智能学院);Center for Spatial Information Science, University of Tokyo(东京大学空间信息科学中心)
Unveiling the Backdoor Mechanism Hidden Behind Catastrophic Overfitting in Fast Adversarial Training
School of Computer Science and Technology, Anhui University(安徽大学计算机科学与技术学院);School of Information and Communication Engineering, Dalian University of Technology(大连理工大学信息与通信工程学院);School of Computer Science and Technology, Zhejiang University(浙江大学计算机科学与技术学院)
AI Alignment in Medical Imaging: Unveiling Hidden Biases Through Counterfactual Analysis
School of Computation, Information and Technology, Technical University of Munich(技术大学慕尼黑计算、信息与技术学院);Department of Computer Science, University of Oxford(牛津大学计算机科学系);Department of Engineering Science, University of Oxford(牛津大学工程科学系);Helmholtz AI, Munich, Germany(海德堡人工智能研究所,德国慕尼黑)
Learning Physics for Unveiling Hidden Earthquake Ground Motions via Conditional Generative Modeling
Lawrence Berkeley National Lab(劳伦斯伯克利国家实验室);Earthquake Research Institute, University of Tokyo(东京大学地震研究所);University of California, Berkeley(加州大学伯克利分校);Ben Gurion University of the Negev(本-古里安大学内盖夫分校);MIT(麻省理工学院);International Computer Science Institute(国际计算机科学研究所)
Unveiling Hidden Factors: Explainable AI for Feature Boosting in Speech Emotion Recognition
University of Québec (TÉLUQ)(魁北克大学(TÉLUQ));Concordia University(康考迪亚大学);Concordia Institute for Information Systems Engineering(康考迪亚信息系统工程学院);University of Québec at Montréal(蒙特利尔魁北克大学);Centre for Research and Intervention on Suicide, Ethical Issues and End-of-Life Practices(自杀、伦理问题与临终实践研究与干预中心)