P-Transformer: Towards Better Document-to-Document Neural Machine Translation
Not on the map. Why?
Abstract (arXiv)
Directly training a document-to-document (Doc2Doc) neural machine translation (NMT) via Transformer from scratch, especially on small datasets usually fails to converge. Our dedicated probing tasks show that 1) both the absolute position and relative position information gets gradually weakened or even vanished once it reaches the upper encoder layers, and 2) the vanishing of absolute position information in encoder output causes the training failure of Doc2Doc NMT. To alleviate this problem, we propose a position-aware Transformer (P-Transformer) to enhance both the absolute and relative position information in both self-attention and cross-attention. Specifically, we integrate absolute positional information, i.e., position embeddings, into the query-key pairs both in self-attention and cross-attention through a simple yet effective addition operation. Moreover, we also integrate relative position encoding in self-attention. The proposed P-Transformer utilizes sinusoidal position encoding and does not require any task-specified position embedding, segment embedding, or attention mechanism. Through the above methods, we build a Doc2Doc NMT model with P-Transformer, which ingests the source document and completely generates the target document in a sequence-to-sequence (seq2seq) way. In addition, P-Transformer can be applied to seq2seq-based document-to-sentence (Doc2Sent) and sentence-to-sentence (Sent2Sent) translation. Extensive experimental results of Doc2Doc NMT show that P-Transformer significantly outperforms strong baselines on widely-used 9 document-level datasets in 7 language pairs, covering small-, middle-, and large-scales, and achieves a new state-of-the-art. Experimentation on discourse phenomena shows that our Doc2Doc NMT models improve the translation quality in both BLEU and discourse coherence. We make our code available on Github.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Builds on 40 of its 55 references that are in the map. First posted on arXiv 12 Dec 2022.
Builds on
40 of 55 references.
References · 40
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2020Multilingual Denoising Pre-training for Neural Machine Translationcited by 1,028
- 2018Universal Transformerscited by 613
- 2018What you can cram into a single vector: Probing sentence embeddings for linguistic propertiescited by 452
- 2018Music Transformercited by 207
28 more
- 2018Scaling Neural Machine Translationcited by 204
- 2020Rethinking Positional Encoding in Language Pre-trainingcited by 197
- 2018Context-Aware Neural Machine Translation Learns Anaphora Resolutioncited by 97
- 2017Neural Machine Translation with Extended Contextcited by 95
- 2017Evaluating Discourse Phenomena in Neural Machine Translationcited by 87
- 2018Document-Level Neural Machine Translation with Hierarchical Attention Networkscited by 85
- 2018Improving the Transformer Translation Model with Document-Level Contextcited by 74
- 2020Improve Transformer Models with Better Relative Position Embeddingscited by 73
- 2020Learning to Encode Position for Transformer with Continuous Dynamical Modelcited by 61
- 2019Selective Attention for Context-aware Neural Machine Translationcited by 60
- 2019Microsoft Translator at WMT 2019: Towards Large-Scale Document-Level Neural Machine Translationcited by 56
- 2017Exploiting Cross-Sentence Context for Neural Machine Translationcited by 48
- 2021G-Transformer for Document-level Machine Translationcited by 46
- 2017Document Context Neural Machine Translation with Memory Networkscited by 41
- 2017Does Neural Machine Translation Benefit from Larger Context?cited by 38
- 2021A Simple and Effective Positional Encoding for Transformerscited by 37
- 2020Does Multi-Encoder Help? A Case Study on Context-Aware Neural Machine Translationcited by 34
- 2020Rethinking Document-level Neural Machine Translationcited by 32
- 2020Long-Short Term Masking Transformer: A Simple but Effective Baseline for Document-level Neural Machine Translationcited by 27
- 2021Document-Level Text Simplification: Dataset, Criteria and Baselinecited by 27
- 2020Dynamic Context Selection for Document-level Neural Machine Translation via Reinforcement Learningcited by 25
- 2021Long Document Summarization in a Low Resource Setting using Pretrained Language Modelscited by 24
- 2019Self-Attention with Structural Position Representationscited by 21
- 2021Modeling Bilingual Conversational Characteristics for Neural Chat Translationcited by 18
- 2020Contextual Neural Machine Translation Improves Translation of Cataphoric Pronounscited by 13
- 2020Document Graph for Neural Machine Translationcited by 12
- 2019Enhancing Context Modeling with a Query-Guided Capsule Network for Document-level Translationcited by 10
- 2022Focused Concatenation for Context-Aware Neural Machine Translationcited by 7
Built on by
Citing papers per year: 2023: 1; 2024: 3; 2025: 1.
5 papers.
- 2024DelTA: An Online Document-Level Translation Agent Based on Multi-Level Memorycited by 27
- 2024Enhancing Document-level Translation of Large Language Model via Translation Mixed-instructionscited by 13
- 2023Improving Long Context Document-Level Machine Translationcited by 8
- 2024Hybrid Dynamic Pruning: A Pathway to Efficient Transformer Inferencecited by 2
- 2025Speech Translation Refinement using Large Language Modelscited by 2
- 2025Speech Translation Refinement using Large Language Models25 Jan 2025
- 2024DelTA: An Online Document-Level Translation Agent Based on Multi-Level Memory10 Oct 2024
- 2024Hybrid Dynamic Pruning: A Pathway to Efficient Transformer Inference17 Jul 2024
- 2024Enhancing Document-level Translation of Large Language Model via Translation Mixed-instructions16 Jan 2024
- 2023Improving Long Context Document-Level Machine Translation8 Jun 2023