Command Palette
Search for a command to run...
Felix Wu; Angela Fan; Alexei Baevski; Yann N. Dauphin; Michael Auli

Abstract
Self-attention is a useful mechanism to build generative models for language and images. It determines the importance of context elements by comparing each element to the current time step. In this paper, we show that a very lightweight convolution can perform competitively to the best reported self-attention results. Next, we introduce dynamic convolutions which are simpler and more efficient than self-attention. We predict separate convolution kernels based solely on the current time-step in order to determine the importance of context elements. The number of operations required by this approach scales linearly in the input length, whereas self-attention is quadratic. Experiments on large-scale machine translation, language modeling and abstractive summarization show that dynamic convolutions improve over strong self-attention models. On the WMT'14 English-German test set dynamic convolutions achieve a new state of the art of 29.7 BLEU.
Code Repositories
Benchmarks
| Benchmark | Methodology | Metrics |
|---|---|---|
| abstractive-text-summarization-on-cnn-daily | Dynamic Conv | ROUGE-1: 39.84 ROUGE-2: 16.25 ROUGE-L: 36.73 |
| document-summarization-on-cnn-daily-mail | DynamicConv | ROUGE-1: 39.84 ROUGE-2: 16.25 ROUGE-L: 36.73 |
| document-summarization-on-cnn-daily-mail | LightConv | ROUGE-1: 39.52 ROUGE-2: 15.97 ROUGE-L: 36.51 |
| language-modelling-on-one-billion-word | DynamicConv | Number of params: 0.34B PPL: 26.67 |
| machine-translation-on-iwslt2014-german | LightConv | BLEU score: 34.8 |
| machine-translation-on-iwslt2014-german | DynamicConv | BLEU score: 35.2 |
| machine-translation-on-wmt-2017-english-1 | DynamicConv | BLEU score: 24.4 |
| machine-translation-on-wmt-2017-english-1 | LightConv | BLEU score: 24.3 |
| machine-translation-on-wmt2014-english-french | LightConv | BLEU score: 43.1 |
| machine-translation-on-wmt2014-english-french | DynamicConv | BLEU score: 43.2 |
| machine-translation-on-wmt2014-english-german | LightConv | BLEU score: 28.9 Number of Params: 202M |
| machine-translation-on-wmt2014-english-german | DynamicConv | BLEU score: 29.7 Number of Params: 213M |
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.