Designing Robust Transformers using Robust Kernel Density Estimation
Xing Han, Tongzheng Ren, Tan Nguyen, Khai Nguyen, Joydeep Ghosh, Nhat Ho
摘要
Transformer-based architectures have recently exhibited remarkable successes across different domains beyond just powering large language models. However, existing approaches typically focus on predictive accuracy and computational cost, largely ignoring certain other practical issues such as robustness to contaminated samples. In this paper, by re-interpreting the self-attention mechanism as a non-parametric kernel density estimator, we adapt classical robust kernel density estimation methods to develop novel classes of transformers that are resistant to adversarial attacks and data contamination. We first propose methods that down-weight outliers in RKHS when computing the self-attention operations. We empirically show that these methods produce improved performance over existing state-of-the-art methods, particularly on image data under adversarial attacks. Then we leverage the median-of-means principle to obtain another efficient approach that results in noticeably enhanced performance and robustness on language modeling and time series classification tasks. Our methods can be combined with existing transformers to augment their robust properties, thus promising to impact a wide variety of applications.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 10 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- AdanCA: Neural Cellular Automata As Adaptors For More Robust Vision Transformer 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- AdanCA: Neural Cellular Automata As Adaptors For More Robust Vision Transformer 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- AdanCA: Neural Cellular Automata As Adaptors For More Robust Vision Transformer 引用了 Training data-efficient image transformers & distillation through attention
- Elliptical Attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Elliptical Attention 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Elliptical Attention 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Elliptical Attention 引用了 Training data-efficient image transformers & distillation through attention
- Elliptical Attention 引用了 Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysis
- Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysis 引用了 Elliptical Attention
- ProTransformer: Robustify Transformers via Plug-and-Play Paradigm 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- ProTransformer: Robustify Transformers via Plug-and-Play Paradigm 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- ProTransformer: Robustify Transformers via Plug-and-Play Paradigm 引用了 Training data-efficient image transformers & distillation through attention
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale 引用了 Language Models are Few-Shot Learners
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Swin Transformer: Hierarchical Vision Transformer using Shifted Windows 引用了 Training data-efficient image transformers & distillation through attention
- In-Context Learning with Transformers: Softmax Attention Adapts to Function Lipschitzness 引用了 Language Models are Few-Shot Learners
- Learning Transferable Visual Models From Natural Language Supervision 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Learning Transferable Visual Models From Natural Language Supervision 引用了 Language Models are Few-Shot Learners
- Training data-efficient image transformers & distillation through attention 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysis 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysis 引用了 Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
- Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysis 引用了 Language Models are Few-Shot Learners
- Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysis 引用了 Learning Transferable Visual Models From Natural Language Supervision
- Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component Analysis 引用了 Training data-efficient image transformers & distillation through attention
引用它的顶会 Paper10
- In-Context Learning with Transformers: Softmax Attention Adapts to Function LipschitznessLiam Collins, Advait Parulekar, Aryan Mokhtari, Sujay Sanghavi 等NeurIPS 2024 · 33 次引用
- Elliptical AttentionStefan K. Nielsen, Laziz U. Abdullaev, Rachel S. Y. Teo, Tan NguyenNeurIPS 2024 · 12 次引用
- Unveiling the Hidden Structure of Self-Attention via Kernel Principal Component AnalysisRachel S. Y. Teo, Tan M. NguyenNeurIPS 2024 · 11 次引用
- ProTransformer: Robustify Transformers via Plug-and-Play ParadigmZhichao Hou, Weizhi Gao, Yuchen Shen, Feiyi Wang 等NeurIPS 2024 · 9 次引用
- AdanCA: Neural Cellular Automata As Adaptors For More Robust Vision TransformerYitao Xu, Tong Zhang, Sabine SüsstrunkNeurIPS 2024 · 5 次引用
它引用的 Paper32
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh 等ICML 2021 · 47,906 次引用
- Swin Transformer: Hierarchical Vision Transformer using Shifted WindowsZe Liu, Yutong Lin, Yue Cao, Han Hu 等ICCV 2021 · 31,683 次引用
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
- Training data-efficient image transformers & distillation through attentionHugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa 等ICML 2021 · 8,974 次引用
相关 Paper
- Robust Kernel Density Estimation with Median-of-Means principlePierre Humbert, Batiste Le Bars, Ludovic MinvielleICML 2022 · 19 次引用
- Transformer Meets Twicing: Harnessing Unattended Residual InformationLaziz U. Abdullaev, Tan Minh NguyenICLR 2025
- On the Optimality of the Median-of-Means Estimator under Adversarial ContaminationXabier de Juan, Santiago MazuelasNeurIPS 2025
- Adversarial Self-Attention for Language UnderstandingHongqiu Wu, Ruixue Ding, Hai Zhao, Pengjun Xie 等AAAI 2023 · 19 次引用
- Can CNNs Be More Robust Than Transformers?Zeyu Wang, Yutong Bai, Yuyin Zhou, Cihang XieICLR 2023 · 14 次引用
