When Attention Meets Fast Recurrence: Training Language Models with Reduced Compute
arXiv:2102.12459
Abstract
Large language models have become increasingly difficult to train because of the growing computation time and cost. In this work, we present SRU++, a highly-efficient architecture that combines fast recurrence and attention for sequence modeling. SRU++ exhibits strong modeling capacity and training efficiency. On standard language modeling tasks such as Enwik8, Wiki-103 and Billion Word datasets, our model obtains better bits-per-character and perplexity while using 3x-10x less training cost compared to top-performing Transformer models. For instance, our model achieves a state-of-the-art result on the Enwik8 dataset using 1.6 days of training on an 8-GPU machine. We further demonstrate that SRU++ requires minimal attention for near state-of-the-art performance. Our results suggest jointly leveraging fast recurrence with little attention as a promising direction for accelerating model training and inference.
References in corpus (13)
- Longformer: The Long-Document Transformer
- A Structured Self-attentive Sentence Embedding
- Conformer: Convolution-augmented Transformer for Speech Recognition
- Reformer: The Efficient Transformer
- Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- Understanding and Improving Layer Normalization
- Random Feature Attention
- Optimizing Performance of Recurrent Neural Networks on GPUs
- Single Headed Attention RNN: Stop Thinking With Your Head
- Optimizing Speech Recognition For The Edge
- Augmenting Self-attention with Persistent Memory
- TRANS-BLSTM: Transformer with Bidirectional LSTM for Language Understanding
- Shatter: An Efficient Transformer Encoder with Single-Headed Self-Attention and Relative Sequence Partitioning