The Case for Translation-Invariant Self-Attention in Transformer-Based Language Models
By Ulme Wennberg, Gustav Eje Henter. 2021
26 citations recorded by the source corpus.
Mechanisms for encoding positional information are central for transformer-based language models. In this paper, we analyze the position embeddings of existing language models, finding strong evidence of translation invariance, both for the embeddings themselves and for their effect on self-attention. The degree of translation invariance increases during training and correlates positively with model performance. Our findings lead us to propose translation-invariant self-attention (TISA), which accounts for the relative position between tokens in an interpretable fashion without needing conventional position embeddings. Our proposal has several theoretical advantages over existing position-representation approaches. Proof-of-concept experiments show that it improves on regular ALBERT on GLUE tasks, while only adding orders of magnitude less positional parameters.
Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Model Architectures
How researchers see this paper
The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.
In Artificial Intelligence
- Noah A. Smith
- Michael Lewis
- Luke S. Zettlemoyer
- Yejin Choi
- Graham Neubig
- Ofir Press
- Mohit Bansal
- Richard Socher
In Computer Vision and Pattern Recognition
- Noah A. Smith
- Ofir Press
- Michael Lewis
- Luke S. Zettlemoyer
- Yejin Choi
- Hinrich Schütze
- Mohit Bansal
- Jimmy J. Lin
In Model Architectures
Citations in the corpus
- Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation (2021, methodology): “In parallel with our work, Wennberg & Henter (2021) introduce a relative position method that, like our method, adds a bias to attention scores that is a function of the distance between the key and query elements.”