计算机科学 > 机器学习
[提交于 2020年1月14日 (v1),最后修订于 2024年12月18日 (此版本, v2)]
标题:Faster Transformer Decoding: N-gram Masked Self-Attention
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Motivated by the fact that most of the information relevant to the prediction of target tokens is drawn from the source sentence $S=s_1, \ldots, s_S$, we propose truncating the target-side window used for computing self-attention by making an $N$-gram assumption. Experiments on WMT EnDe and EnFr data sets show that the $N$-gram masked self-attention model loses very little in BLEU score for $N$ values in the range $4, \ldots, 8$, depending on the task.