GLU 变体改进 Transformer

GLU Variants Improve Transformer

诺姆·沙泽尔 Noam Shazeer · Google · 2020-02-12 · arXiv:2002.05202 ↗ · 被引 2011

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

摘要 · Abstract

门控线性单元(GLU,arXiv:1612.08083)由两个线性投影的分量积组成,其中一个先经过 sigmoid 函数。GLU 可以有多种变体,使用不同的非线性(甚至线性)函数代替 sigmoid。我们在 Transformer(arXiv:1706.03762)序列到序列模型的前馈子层中测试了这些变体,发现其中一些变体比通常使用的 ReLU 或 GELU 激活函数能带来质量提升。

Gated Linear Units (arXiv:1612.08083) consist of the component-wise product of two linear projections, one of which is first passed through a sigmoid function. Variations on GLU are possible, using different nonlinear (or even linear) functions in place of sigmoid. We test these variants in the feed-forward sublayers of the Transformer (arXiv:1706.03762) sequence-to-sequence model, and find that some of them yield quality improvements over the typically-used ReLU or GELU activations.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 8)

阅读逐段中英对照全文 →