2021
You Only Sample (Almost) Once: Linear Cost Self-Attention Via Bernoulli Sampling
ICML 2021spotlight
Transformer-based models are widely used in natural language processing (NLP). Central to the transformer model is the self-attention mechanism, which captures the interactions of token pairs in the input sequences and depends quadratically on the sequence length. Training such models on longer sequ…