Block-Recurrent Transformers
DeLesley Hutchins, Imanol Schlag, Yuhuai Wu, Ethan Dyer, Behnam, Neyshabur

TL;DR
The paper introduces the Block-Recurrent Transformer, a model that combines recurrence with transformer layers to efficiently process very long sequences, achieving better perplexity and faster speed than existing models.
Contribution
It presents a novel recurrent transformer architecture that operates on blocks of tokens with linear complexity, improving long-sequence language modeling performance.
Findings
Outperforms Transformer XL on long sequences
Runs twice as fast as baseline models
Achieves lower perplexity on language modeling tasks
Abstract
We introduce the Block-Recurrent Transformer, which applies a transformer layer in a recurrent fashion along a sequence, and has linear complexity with respect to sequence length. Our recurrent cell operates on blocks of tokens rather than single tokens during training, and leverages parallel computation within a block in order to make efficient use of accelerator hardware. The cell itself is strikingly simple. It is merely a transformer layer: it uses self-attention and cross-attention to efficiently compute a recurrent function over a large set of state vectors and tokens. Our design was inspired in part by LSTM cells, and it uses LSTM-style gates, but it scales the typical LSTM cell up by several orders of magnitude. Our implementation of recurrence has the same cost in both computation time and parameter count as a conventional transformer layer, but offers dramatically improved…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
Taxonomy
TopicsTopic Modeling · Machine Learning in Bioinformatics · Natural Language Processing Techniques
MethodsMulti-Head Attention · Attention Is All You Need · Linear Layer · Byte Pair Encoding · Softmax · Dense Connections · Residual Connection · Tanh Activation · Sigmoid Activation · Dropout
