Modeling Context With Linear Attention For Scalable Document-level Translation · The Large Language Model Bible Contribute to LLM-Bible

Modeling Context With Linear Attention For Scalable Document-level Translation

Wu Zhaofeng, Peng Hao, Pappas Nikolaos, Smith Noah A.. Arxiv 2022

[Paper]    
Applications Attention Mechanism Ethics And Bias Model Architecture Pretraining Methods RAG Transformer

Document-level machine translation leverages inter-sentence dependencies to produce more coherent and consistent translations. However, these models, predominantly based on transformers, are difficult to scale to long documents as their attention layers have quadratic complexity in the sequence length. Recent efforts on efficient attention improve scalability, but their effect on document translation remains unexplored. In this work, we investigate the efficacy of a recent linear attention model by Peng et al. (2021) on document translation and augment it with a sentential gate to promote a recency inductive bias. We evaluate the model on IWSLT 2015 and OpenSubtitles 2018 against the transformer, demonstrating substantially increased decoding speed on long sequences with similar or better BLEU scores. We show that sentential gating further improves translation quality on IWSLT.

Similar Work