Abstract
Training high-quality Machine Translation (MT) models requires massive amounts of parallel data—sentence pairs that are translations of each other. While the web is a rich source of such data, mining it effectively is challenging due to noisy layouts and inconsistent segmentation. This paper introduces the Hierarchical Document Encoder (HiDE), a novel architecture that builds document-level representations from sentence-level embeddings. HiDE achieves state-of-the-art results on standard benchmarks and demonstrates exceptional robustness to noisy data and poor sentence segmentation compared to traditional averaging methods.
Introduction
The performance of modern MT systems relies heavily on the availability of millions of parallel sentences. Traditionally, these are mined by identifying translated document pairs from the web. However, document-level mining is fraught with difficulties. Existing methods often rely on hand-engineered metadata or simple "bag-of-words" models that ignore structural context. While sentence embeddings have improved the field, simply averaging them to represent a document fails when faced with the "noise" of real-world web data, such as messy layouts and incorrect sentence boundaries.
Methodology: The HiDE Architecture
The researchers propose a Dual Encoder framework where two identical neural networks map documents from different languages into a shared vector space. The core innovation is the Hierarchical Document Encoder (HiDE). Unlike a simple average of sentence embeddings, HiDE processes a document as a hierarchy: words form sentences, and sentences form documents.
HiDE takes sentence-level embeddings and passes them through a feed-forward Deep Neural Network (DNN) to adapt them for document-level tasks before pooling them into a final document vector. The model is trained using a bidirectional ranking objective with an additive margin softmax, which effectively clusters true translation pairs while separating non-translations.
Experimental Setup and Datasets
The model was evaluated on two distinct types of data:
- WebData: A large-scale, noisy dataset containing 13 million English-French and 6 million English-Spanish document pairs mined from the web.
- United Nations (UN) Parallel Corpus: A clean, professional dataset. To test robustness, the authors created a "Noisy UN" version by intentionally using a standard, error-prone sentence splitter instead of ground-truth human alignments.
Key Results and Robustness
HiDE consistently outperformed baseline methods, particularly in noisy environments. On the standard UN benchmark, it achieved a Precision at 1 (P@1) of 96.7% for English-French and 97.3% for English-Spanish.
The most significant finding was HiDE's resilience to poor sentence segmentation. In the "Noisy UN" task, while simple averaging methods saw a sharp decline in performance, HiDE maintained high accuracy.
On the noisy WebData test set, HiDE outperformed the simple averaging baseline by a substantial margin (91.4% vs. 78.1% for English-French), proving its utility for real-world web mining.
Conclusion
The Hierarchical Document Encoder (HiDE) represents a significant step forward in parallel corpus mining. By leveraging the inherent hierarchical structure of documents, it provides a robust solution for extracting high-quality translation data from messy web sources. Future work may involve incorporating attention mechanisms to further refine document embeddings and testing the architecture on more linguistically distant language pairs.
Summary updated