DocHPLT

Dayyán O'Brien, Bhavitvya Malik, Ona de Gibert, Pinzhen Chen, Barry Haddow, Jörg Tiedemann

TL;DR

Researchers have released DocHPLT, the largest publicly available document-level translation dataset to date, featuring 124 million aligned document pairs across 50 languages. By shifting from traditional sentence-matching to a "document-first" extraction approach, the team provides a massive resource that helps Large Language Models (LLMs) master the nuances of context, flow, and discourse that sentence-level translation often misses.

What Problem Does This Paper Address?

Most machine translation (MT) systems operate one sentence at a time. While effective for simple phrases, this "sentence-level" approach fails to capture discourse phenomena—things like anaphora (ensuring "it" refers to the correct noun mentioned three sentences ago), deixis (contextual references to time/place), and general stylistic cohesion.

To fix this, we need Document-Level MT (DocMT). However, DocMT faces a massive data bottleneck. Most existing parallel corpora were built by stripping sentences out of their original context, aligning them, and throwing away the "unaligned" bits. This leaves researchers with very few resources to train models on how a whole document should flow, especially for medium- and low-resource languages.

Methods

The authors introduce a "document-first" methodology. Instead of reconstructing documents from sentence pairs after the fact, they modified the web extraction pipeline (based on ParaCrawl) to preserve document integrity from the very beginning.

  1. Preservation: They retain the entire document structure, including unaligned portions, using a hierarchical XML representation.
  2. Deduplication: They implemented a content-based deduplication strategy across 15TB of web data to ensure unique document versions while preserving near-duplicates that represent meaningful revisions.
  3. Alignment & Scoring: They used tools like BLEUalign, Bicleaner, and Bifixer to provide quality scores for sentence alignments within the documents.
  4. Alignment Density (AD): They introduced a metric called AD to measure how much of a document pair is actually parallel, helping practitioners filter for high-quality data.

Datasets

  • DocHPLT (New): 124 million document pairs, 4.26 billion sentences, covering 50 languages paired with English. It includes a "bonus" pivoted set allowing for 2,500 non-English language pairs.
  • WMT24++: Used as an external benchmark to test the models' ability to generalize to different domains (social media, speech, etc.).

Key Insights and Ideas

  • The "10-Sentence" Sweet Spot: The researchers tested various context lengths for fine-tuning LLMs (Qwen2.5 and Llama-3). Surprisingly, training on 10-sentence chunks almost universally outperformed training on full documents.
  • The "Full Doc" Degradation: Models trained on entire documents (doc2doc) actually performed worse. This suggests that while context is crucial, current LLMs may struggle with "length bias" or noise when processing very long, unfiltered web documents in a single pass.
  • Massive Gains for Low-Resource Languages: The impact of this data is most dramatic for languages like Icelandic or Malayalam. For these languages, fine-tuning on DocHPLT turned "unsupported" languages into high-performers, far exceeding the capabilities of off-the-shelf instruction-tuned models.
  • Document-First vs. Reconstruction: By keeping the "connective tissue" of a document (even the parts that don't translate perfectly), the dataset provides the structural cues necessary for models to learn natural language flow.

Key Results

  • Performance Jumps: On the DocHPLT test set, fine-tuning led to massive gains. For example, on English-to-Icelandic, the BLEU score for Llama-3.1-8B jumped from 6.51 (instruction-tuned) to 32.07 (fine-tuned on DocHPLT).
  • Scale: The dataset is orders of magnitude larger than previous efforts. For instance, it contains over 11 million document pairs for Japanese-English alone.
  • Multilingual Synergy: Multilingual fine-tuning (training on 5 languages at once) generally improved performance for seen languages compared to training on just 1,000 documents per language, though it did not result in significant "zero-shot" transfer to entirely unseen languages.

Limitations and Future Work

  • Domain Mismatch: While DocHPLT is excellent for web-based text, models still showed lower performance on the WMT24++ benchmark, likely due to the difference between "web-crawl" style and the specific domains (like speech or social) found in WMT.
  • The Doc2Doc Challenge: The fact that full-document training underperformed chunk-based training is a "call to action." Future work is needed to determine if this is due to data noise, model architecture limits, or the need for better long-context loss functions.
  • Evaluation Metrics: The authors note that standard metrics like BLEU and chrF++ are imperfect for document-level nuances. They suggest that developing better DocMT-specific metrics is a high priority.

Reference: O’Brien, D., Malik, B., de Gibert, O., Chen, P., Haddow, B., & Tiedemann, J. (2025). DocHPLT: A Massively Multilingual Document-Level Translation Dataset. Proceedings of WMT 2025.

Summary updated

BibTeX
@inproceedings{obrien2025dochplt,
  author = {Dayyán O'Brien and Bhavitvya Malik and Ona de Gibert and Pinzhen Chen and Barry Haddow and Jörg Tiedemann},
  title = {{DocHPLT}},
  booktitle = {WMT - 10th Conference on Machine Translation, Proceedings of the Conference},
  year = {2025},
  url = {https://openreview.net/forum?id=Q0STbbCG9M},
}
Figure