mlsanityData to 7 Oct 2026

P-Transformer: Towards Better Document-to-Document Neural Machine Translation

arXiv 2212.05830 ↗First posted 12 Dec 2022cs.CLcited by 5

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  4. 2020Longformer: The Long-Document Transformercited by 3,362
  5. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  6. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  7. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  8. 2018Self-Attention with Relative Position Representationscited by 1,112
  9. 2020Multilingual Denoising Pre-training for Neural Machine Translationcited by 1,028
  10. 2018Universal Transformerscited by 613
  11. 2018What you can cram into a single vector: Probing sentence embeddings for linguistic propertiescited by 452
  12. 2018Music Transformercited by 207
28 more
  1. 2018Scaling Neural Machine Translationcited by 204
  2. 2020Rethinking Positional Encoding in Language Pre-trainingcited by 197
  3. 2018Context-Aware Neural Machine Translation Learns Anaphora Resolutioncited by 97
  4. 2017Neural Machine Translation with Extended Contextcited by 95
  5. 2017Evaluating Discourse Phenomena in Neural Machine Translationcited by 87
  6. 2018Document-Level Neural Machine Translation with Hierarchical Attention Networkscited by 85
  7. 2018Improving the Transformer Translation Model with Document-Level Contextcited by 74
  8. 2020Improve Transformer Models with Better Relative Position Embeddingscited by 73
  9. 2020Learning to Encode Position for Transformer with Continuous Dynamical Modelcited by 61
  10. 2019Selective Attention for Context-aware Neural Machine Translationcited by 60
  11. 2019Microsoft Translator at WMT 2019: Towards Large-Scale Document-Level Neural Machine Translationcited by 56
  12. 2017Exploiting Cross-Sentence Context for Neural Machine Translationcited by 48
  13. 2021G-Transformer for Document-level Machine Translationcited by 46
  14. 2017Document Context Neural Machine Translation with Memory Networkscited by 41
  15. 2017Does Neural Machine Translation Benefit from Larger Context?cited by 38
  16. 2021A Simple and Effective Positional Encoding for Transformerscited by 37
  17. 2020Does Multi-Encoder Help? A Case Study on Context-Aware Neural Machine Translationcited by 34
  18. 2020Rethinking Document-level Neural Machine Translationcited by 32
  19. 2020Long-Short Term Masking Transformer: A Simple but Effective Baseline for Document-level Neural Machine Translationcited by 27
  20. 2021Document-Level Text Simplification: Dataset, Criteria and Baselinecited by 27
  21. 2020Dynamic Context Selection for Document-level Neural Machine Translation via Reinforcement Learningcited by 25
  22. 2021Long Document Summarization in a Low Resource Setting using Pretrained Language Modelscited by 24
  23. 2019Self-Attention with Structural Position Representationscited by 21
  24. 2021Modeling Bilingual Conversational Characteristics for Neural Chat Translationcited by 18
  25. 2020Contextual Neural Machine Translation Improves Translation of Cataphoric Pronounscited by 13
  26. 2020Document Graph for Neural Machine Translationcited by 12
  27. 2019Enhancing Context Modeling with a Query-Guided Capsule Network for Document-level Translationcited by 10
  28. 2022Focused Concatenation for Context-Aware Neural Machine Translationcited by 7

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 3; 2025: 1.

5 papers.