Reproduce “Attention Is All You Need” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, Illia Polosukhin

The paper presents the Transformer, a machine-translation system that lets tokens exchange context directly through multi-head self-attention instead of passing information sequentially. Its decoder trains in parallel with masking but generates translations autoregressively. On WMT 2014 English-to-German, Transformer big reaches 28.4 BLEU versus 26.36 for ConvS2S Ensemble, with lower estimated training FLOPs; this does not show every Transformer is cheaper.

Key insights

  • Replacing recurrence and convolutions with self-attention enables unprecedented parallelization, drastically reducing training times for sequence models.
  • Multi-head attention allows the model to jointly attend to information from different representation subspaces, capturing diverse relational patterns.
  • Direct connections between any two positions via self-attention inherently improve the handling of long-range dependencies compared to RNNs or CNNs.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.