MLLGJun 8, 2020

The Lipschitz Constant of Self-Attention

arXiv:2006.04710v2219 citations
AI Analysis

This addresses a theoretical gap for researchers in sequence modeling, enabling applications like invertible neural networks, though it is incremental as it builds on prior Lipschitz constant work.

The paper tackled the problem that standard dot-product self-attention is not Lipschitz for unbounded inputs, and proposed an alternative L2 self-attention that is Lipschitz, with an upper bound on its Lipschitz constant and empirical evidence for tightness.

Lipschitz constants of neural networks have been explored in various contexts in deep learning, such as provable adversarial robustness, estimating Wasserstein distance, stabilising training of GANs, and formulating invertible neural networks. Such works have focused on bounding the Lipschitz constant of fully connected or convolutional networks, composed of linear maps and pointwise non-linearities. In this paper, we investigate the Lipschitz constant of self-attention, a non-linear neural network module widely used in sequence modelling. We prove that the standard dot-product self-attention is not Lipschitz for unbounded input domain, and propose an alternative L2 self-attention that is Lipschitz. We derive an upper bound on the Lipschitz constant of L2 self-attention and provide empirical evidence for its asymptotic tightness. To demonstrate the practical relevance of our theoretical work, we formulate invertible self-attention and use it in a Transformer-based architecture for a character-level language modelling task.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes