flâneur — a map of the web's best reading

Repeat After Me: Transformers are Better than State Space Models at Copying - Kempner Institute

harvard.edu · 199 words · saved by 1 readers

This blog post is based on the paper “Repeat After Me: Transformers are Better than State Space Models at Copying.” Transformers are the workhorse of modern sequence modeling, achieving remarkable performance on a variety of tasks, but they have unavoidable inefficiencies. Specifically, the memory and compute used for generating every output token grows linearly with the input length. This means that generating n tokens requires O(n^2) compute, making training with long sequence lengths practically impossible. Recently, State Space Models (SSMs) have emerged as a challenger to the Transformer architecture. These models can be interpreted as a type of recurrent neural networks (RNNs), which use a fixed-size memory that does not grow with the sequence length. This makes training and inference on long sequences much more efficient, opening up the possibility of feeding extremely long inputs, such as entire libraries, audio samples or DNA sequences, directly into the model. Mamba, which is

Explore this link on the map →

saved by