Aligning Bilingual Corpora Using Sentences Location Information

Weigang Li, Ting Liu, Zhen Wang, Sheng LiSIGHAN @ ACL 2004

TL;DR

This paper introduces a robust method for aligning bilingual corpora—matching sentences in one language to their translations in another—by leveraging the relative location of sentences within a text. Unlike traditional methods that rely on strict paragraph boundaries or complex linguistic rules, this approach uses "sentence location information" and bipartite graph matching to achieve high precision even on messy, real-world data.

What Problem Does This Paper Address?

Building large-scale bilingual corpora (like those used to train machine translation models) is difficult because real-world texts are "noisy." While parliamentary records (like the Canadian Hansards) are perfectly formatted with clear paragraph markers, most web-based resources are not.

The authors identify five major hurdles in "real" bilingual texts:

  1. Vague boundaries: No strict alignment between paragraphs.
  2. Merged content: Translators often combine multiple source paragraphs into one target paragraph.
  3. Complex patterns: Translations aren't always 1-to-1; they can be 1-to-many or many-to-1.
  4. Style variance: Different themes and writing styles.
  5. Genre differences: Inherent characteristics that vary across types of literature.

Traditional alignment methods usually fall into two camps: lexical (matching words) or length-based (matching sentence lengths). Both struggle when paragraph markers are missing or when languages are linguistically distant (like English and Chinese).

Methods

The researchers propose a Location-based Alignment Method. The core intuition is that if a sentence appears at the 25% mark of an English document, its translation is highly likely to appear near the 25% mark of the corresponding Chinese document.

Key Components:

  • Paragraph Integration: To solve the "vague boundary" problem, they first merge all paragraphs into one giant block of text, treating the entire document as a single sequence.
  • Bipartite Graph Matching: They model the alignment as a "Best Alignment Matching" (BAM) problem in graph theory. Every possible sentence pair is a potential "edge" in a graph, and the goal is to find the set of edges that minimizes a specific "weight" (distance) without crossing paths.
  • The Alignment Function: They calculate a weight for every potential sentence pair $\{s_i, t_j\}$ using four ratios:
  • P0: The overall length ratio of the two documents.
  • Pu: The ratio of text appearing above the current sentences.
  • Pd: The ratio of text appearing below the current sentences.
  • Pl: The ratio of the lengths of the two specific sentences.
  • Dictionary Refinement: After using location to find candidate "anchors" (likely 1:1 matches), they use a bilingual dictionary to calculate a semantic similarity score to confirm the match.
  • Greedy Implementation: To keep the algorithm efficient ($O(m*n)$ complexity), they use a greedy search that prevents "cross-alignment" (where sentence 5 matches sentence 10, but sentence 6 matches sentence 9).

Datasets

The authors evaluated their method using several types of English-Chinese data:

  • Literary Text: Chapter 17 of Wuthering Heights (approx. 270 sentences per language).
  • Mixed "Fixed" Data: A combination of two news texts and two novel excerpts to test "theme independence."
  • Short News: A small set of 40 sentences to test performance on brief documents.
  • Large Synthetic Set: 2,000 aligned sentence pairs merged to simulate a large, continuous bilingual corpus.

Key Insights and Ideas

  • Location is a Universal Signal: By focusing on relative position (upper and lower context) rather than just the length of the sentence itself, the model becomes much more resilient to the "noise" of human translation.
  • 1:1 Beads as Anchors: Statistically, about 85-89% of sentence alignments are 1:1. By treating these as "anchors," the model can divide a massive document into smaller, manageable fragments, which can then be refined using traditional methods.
  • Language Independence: Because the primary signal is geometric (location and length ratios), the method doesn't require deep linguistic knowledge of the languages involved, making it easily adaptable to other language pairs.

Key Results

The location-based method significantly outperformed the classic length-based approach, especially on "uncleaned" data:

Method Precision (Wuthering Heights)
Length-based (Traditional) 20.3%
Location-based (Proposed) 87.8%

When the traditional length-based method was given "merged" paragraphs (removing boundary info), its precision only rose to 25.4%. In contrast, the authors' method maintained high precision across different datasets:

  • Mixed Themes: 86.9% precision.
  • Short News: 94.4% precision.
  • Large Dataset: 90.5% precision.

Limitations and Future Work

  • Dictionary Dependency: While the location information does the heavy lifting, the final refinement still relies on a bilingual dictionary. For very low-resource languages where no dictionary exists, this step would need an alternative.
  • Complex Patterns: The current model focuses heavily on 1:1 "anchors." While it can handle 1:2 or 2:1 patterns within the fragments created by those anchors, the initial "anchor" selection is biased toward 1:1 matches.
  • Future Directions: The authors plan to extend the method to other language pairs and further refine the alignment of non-1:1 sentence patterns.

Summary updated

BibTeX
@inproceedings{li2004aligning,
  author = {Weigang Li and Ting Liu and Zhen Wang and Sheng Li},
  title = {{Aligning Bilingual Corpora Using Sentences Location Information}},
  booktitle = {SIGHAN @ ACL},
  year = {2004},
}
Figure