Sainbayar Sukhbaatar and colleagues asked whether one operation could do the work of two in a Transformer. Normally, attention mixes information from earlier tokens, then a feedforward layer transforms each token on its own. In their 2019 design, one attention step reads both the earlier tokens and a bank of learned weights. The authors call those weights “persistent memory.” They stay fixed while the model runs.

  • enwik8: The 114-million-parameter model matched a 209-million-parameter Transformer at 0.98 bits per character, a measure of how well the model predicts the next character. On text8 it was slightly worse: 1.08 versus 1.07, where lower is better.
  • WikiText-103: The model scored 20.6 perplexity against 24.0 for a similarly sized Transformer-XL. A larger Transformer-XL still led at 18.3. Perplexity measures how surprised a model is by the next word; lower is better.
  • What made the difference: On text8, removing the learned vectors hurt performance. Giving the tokens and learned vectors separate pools of attention did worse than letting them compete in one pool.

Caveat: These are next-character and next-word tests on Wikipedia. The arXiv paper reports no inference-speed comparison, so fewer parameters in one benchmark pairing do not establish faster generation.