Parallel Data Mining and Quality Control

Michael BrenndoerferNovember 26, 20263 min read
Language AI HandbookAll chapters
Part 27 of 67Machine Translation and Speech Translation
Chapter 192Parallel Data Mining and Quality Control
Reading section 1 of 14 · Parallel Data Mining and Quality Control · 3 minSection 1 of 14 · 3 min

Section 1 of 14 · 3 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

A translated web page looks like a source of training pairs until you try to match the sentences. Navigation text can appear on only one side, a translator can split one sentence into two, and two stories about the same news event may have no translated sentences in common. Here we retrieve candidates, decide which ones to keep, and screen the resulting corpus for overlap with your evaluation set.

Parallel data mining recovers candidate text pairs from existing sources. One approach extracts text from the web, embeds sentences in a multilingual space, and retrieves likely matches by similarity. Quality control checks whether those matches express the same content.

A multilingual site might publish translated pages without sentence-level alignment. A miner can recover candidate sentence pairs from the pages and ask people to label a smaller sample for calibration. The procedure below works from existing translations and leaves their correspondence to be checked.

The chapter follows these stages.

crawl → clean → propose page pairs → retrieve or align sentences → score → filter → screen overlap

The pipeline first extracts usable text from raw pages. Embeddings support cross-lingual retrieval, and scoring ranks the retrieved candidates. Alignment can establish sentence correspondences inside candidate document pairs before final pair filtering. Back-translation can supply an additional stream of pairs, and an overlap audit can screen both streams before training.

Two organizing ideas carry through everything below:

  • Mining is retrieval. You have millions of source sentences and millions of target sentences. You want the pairs that are translations. The core operation is a similarity search in a shared vector space, exactly like the dense retrieval systems you met in Part XLIV: Retrieval-Augmented Generation.
  • Quality control is classification. Given a candidate pair, decide keep or drop. The features are heuristic (length ratios, punctuation, numbers), statistical (language model scores), or learned (quality estimation models).

On a fixed set of candidates, raising the margin cutoff can only retain the same number or fewer pairs. Precision can rise, fall, or stay flat depending on the labels of the pairs removed. Choose a cutoff by measuring both precision and recall on labeled candidates.

Choose a cutoff for the language pair, domain, encoder, and candidate pool you plan to use. If those inputs change, measure the score distribution and recheck the cutoff against labeled pairs. Evaluate downstream training effects on held-out data.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy