English

Faster Transformer Decoding: N-gram Masked Self-Attention

Machine Learning 2024-12-19 v2 Computation and Language Machine Learning

Abstract

Motivated by the fact that most of the information relevant to the prediction of target tokens is drawn from the source sentence S=s1,,sSS=s_1, \ldots, s_S, we propose truncating the target-side window used for computing self-attention by making an NN-gram assumption. Experiments on WMT EnDe and EnFr data sets show that the NN-gram masked self-attention model loses very little in BLEU score for NN values in the range 4,,84, \ldots, 8, depending on the task.

Keywords

Cite

@article{arxiv.2001.04589,
  title  = {Faster Transformer Decoding: N-gram Masked Self-Attention},
  author = {Ciprian Chelba and Mia Chen and Ankur Bapna and Noam Shazeer},
  journal= {arXiv preprint arXiv:2001.04589},
  year   = {2024}
}
R2 v1 2026-06-23T13:10:23.620Z