A new hybrid metric for verifying parallel corpora of Arabic-English

Saad Alkahtani, Wei Liu, William J. Teahan · DOI

Abstract

This paper discusses a new metric that has been applied to verify the quality in translation between sentence pairs in parallel corpora of Arabic-English. This metric combines two techniques, one based on sentence length and the other based on compression code length. Experiments on sample test parallel Arabic-English corpora indicate the combination of these two techniques improves accuracy of the identification of satisfactory and unsatisfactory sentence pairs compared to sentence length and compression code length alone. The new method proposed in this research is effective at filtering noise and reducing mis-translations resulting in greatly improved quality.

Introduction

The development of effective Statistical Machine Translation (SMT) models relies heavily on the availability of high-quality "parallel corpora"—large datasets of sentences paired with their accurate translations. However, acquiring such data for Arabic-English pairs presents significant hurdles. High-quality corpora are often prohibitively expensive, while free web-scraped data is frequently contaminated with "noise," such as misalignments or poor translations.

The fundamental challenge in automated verification is the structural divergence between Arabic and English. As shown in the table below, the two languages differ in script direction, capitalization, and grammatical structures, making simple character-count comparisons unreliable.

Graphology differences between Arabic and English

Methodology: The Hybrid Metric

To address these challenges, researchers developed a hybrid metric that combines traditional length-based analysis with information theory.

1. Sentence Length Ratio (SLR)

SLR serves as a baseline, calculating the ratio of lengths between paired sentences. While useful for catching extreme mismatches, it often fails to detect semantic errors where lengths happen to align.

2. Compression Code Length Ratio (CR)

The core innovation is the use of Compression Code Length. Based on Shannon’s Information Theory, the authors posit that true translation pairs should contain equivalent amounts of information. By employing the PPMD (Prediction by Partial Matching) compression algorithm, they measure the bits required to encode each sentence. A ratio close to 1.0 suggests semantic equivalence.

To optimize this for short sentences, the authors introduced WTPP, which involves:

  • Priming: Pre-training the compressor on large general corpora (Brown for English, CCA for Arabic).
  • Pre-processing: Converting Arabic UTF-8 text into a specialized number-string format, improving compression efficiency by over 25%.

Experimental Setup and Datasets

The metric was tested on two primary datasets:

  • Corpus A: A large, noisy dataset of 58 million words collected from sources like Al Hayat.
  • Corpus B (Ground Truth): A manually verified set of 12,000 pairs (10,000 satisfactory, 2,000 unsatisfactory) used to calibrate the metric's accuracy.

The following table illustrates the types of sentence pairs evaluated by the system during testing.

Sample Arabic-English sentence pairs from the evaluation corpus

Key Results and Insights

The hybrid approach demonstrated superior performance over individual metrics:

  • Near-Perfect Accuracy: On the ground-truth Corpus B, the hybrid metric achieved 100% accuracy in distinguishing satisfactory from unsatisfactory pairs using optimized thresholds (e.g., SLR > 2.5 or CR > 2.25).
  • Information Stability: The study found that while Arabic sentences were longer than English ones in only 16.5% of cases based on character count, they were longer in 55% of cases when measured by compressed code length. This suggests that compressed size is a more stable "universal" metric for translation equivalence.
  • Noise Filtering: When applied to the massive Corpus A, the metric successfully identified and filtered out approximately 8.18% of unsatisfactory data, significantly purifying the training set for future AI development.

Conclusion and Future Directions

The proposed hybrid metric offers a robust, automated solution for verifying parallel corpora, effectively handling the linguistic complexities of Arabic-English pairs. Future work will explore applying this compression-based metric at different granularities (document or paragraph levels) and addressing the complexities of 1-to-many sentence mappings.

Summary updated

BibTeX
@misc{alkahtani2015new,
  author = {Saad Alkahtani and Wei Liu and William J. Teahan},
  title = {{A new hybrid metric for verifying parallel corpora of Arabic-English}},
  year = {2015},
  eprint = {1502.03752},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1502.03752},
}
Figure