注意力机制就是一切

Attention Is All You Need

诺姆·沙泽尔 Noam Shazeer · Google · 2017-06-12 · arXiv:1706.03762 ↗ · 被引 183094

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

主流的序列转换模型基于复杂的循环或卷积神经网络,采用编码器-解码器结构。性能最佳的模型还通过注意力机制连接编码器和解码器。我们提出了一种新的简单网络架构——Transformer,它完全基于注意力机制,完全摒弃了循环和卷积。在两个机器翻译任务上的实验表明,这些模型在质量上更优,同时更易于并行化,且训练时间显著减少。我们的模型在 WMT 2014 英德翻译任务上达到了 28.4 BLEU,比现有最佳结果(包括集成模型)提高了超过 2 BLEU。在 WMT 2014 英法翻译任务上,我们的模型在 8 个 GPU 上训练 3.5 天后,建立了新的单模型最优 BLEU 分数 41.8,仅为文献中最佳模型训练成本的一小部分。我们通过将 Transformer 成功应用于英语成分句法分析(包括大规模和有限训练数据),证明了其良好的泛化能力。

The dominant sequence transduction models are based on complex recurrent or convolutional neural networks in an encoder-decoder configuration. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely. Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable and requiring significantly less time to train. Our model achieves 28.4 BLEU on the WMT 2014 English-to-German translation task, improving over the existing best results, including ensembles by over 2 BLEU. On the WMT 2014 English-to-French translation task, our model establishes a new single-model state-of-the-art BLEU score of 41.8 after training for 3.5 days on eight GPUs, a small fraction of the training costs of the best models from the literature. We show that the Transformer generalizes well to other tasks by applying it successfully to English constituency parsing both with large and limited training data.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 19)

阅读逐段中英对照全文 →