Lune

ICML2024Top-tier venue

Fine-grained Local Sensitivity Analysis of Standard Dot-Product Self-Attention

Aaron J. Havens, Alexandre Araujo, Huan Zhang, Bin Hu

2024Year
2Citations
2Top-tier citations

Abstract

Self-attention has been widely used in various machine learning models, such as vision transformers. The standard dot-product self-attention is arguably the most popular structure, and there is a growing interest in understanding the mathematical properties of such attention mechanisms. This paper presents a fine-grained local sensitivity analysis of the standard dot-product selfattention, leading to new non-vacuous certified robustness results for vision transformers. Despite the well-known fact that dot-product selfattention is not (globally) Lipschitz, we develop new theoretical analysis of Local Fine-grained Attention Sensitivity (LoFAST) quantifying the effect of input feature perturbations on the attention output. Our analysis reveals that the local sensitivity of dot-product self-attention to ℓ 2 perturbations can actually be controlled by several key quantities associated with the attention weight matrices and the unperturbed input. We empirically validate our theoretical findings by computing non-vacuous certified ℓ 2 -robustness for vision transformers on CIFAR-10 and SVHN datasets. The code for LoFAST is available at https: //github.com/AaronHavens/LoFAST .

Ask about this paper

Your agent reads all of it.

Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.

Questions to start from

Your agent calls

Luneget_paper_fulltext

Ask in Lune

Free to start. No credit card required.

Cited by top-tier papers2

Ask how each one uses it

Builds on29

Related papers

Dusk over the sea between two cliffs drawn in fine vertical lines