Parallel Data Mining and Quality Control › Word Alignment
Language AI HandbookAll chapters Word alignment identifies corresponding word positions inside an accepted sentence pair. This adds a finer-grained description than the segment alignments above.
The IBM models provide names for quantities that appear below. Fertility counts how many words an input word generates, and the NULL position represents output words without a corresponding input word.
The IBM models
Brown, Della Pietra, Della Pietra, and Mercer (1993) introduced five increasingly complex generative models of translation. The simplest, IBM Model 1, assumes:
where:
- : the source sentence, with tokens
- : the target sentence, with tokens
- : the latent alignment of target position into the source, where means NULL (no source word)
- : the uniform alignment prior over the source positions plus NULL
- : the translation probability of target word given the aligned source word
The translation table is unobserved, so the model is trained with EM. The E-step computes expected word alignments under the current table, and the M-step re-estimates the table from expected counts.
The E-step assigns each target position a fractional count for every possible source position, including NULL. The M-step pools and normalizes those counts. Words that frequently co-occur can still compete for the same target, so co-occurrence alone does not identify the correct links. Brown et al., 1993
The five models add progressively more realism:
- Model 1: uniform alignment prior, no word order.
- Model 2. The position model conditions on the connected positions and sentence lengths.
- Model 3. Adds a fertility model and explicitly models how many output words are generated from NULL. The NULL position is already part of the paper’s general alignment convention.
- Model 4. Uses relative-position distortion for placement.
- Model 5. Accounts for vacant target positions during placement to fix the deficiency of Model 4. Brown et al., 1993, §4
Fertility can express the case where an input compound is translated into two output words. An alignment restricted to one output word per input word cannot represent that link pattern.
GIZA++ is an implementation of classical word alignment training for directional models. A phrase-based pipeline can train both directions and symmetrize the resulting alignments as a separate step.
Directional alignments can disagree because each direction chooses correspondences from a different side. A symmetrization heuristic such as grow-diag-final starts from their intersection, grows it using adjacent links from the union, and then considers additional links.
Modern aligners
The sentence-level training objective below only needs sentence pairs. If you have checked word links, you can use them to build a lexicon or estimate how much of a source a candidate translation covers.
- fast_align uses a log-linear reparameterization of IBM Model 2 and estimates its parameters with EM. Dyer et al. report faster training than Model 4 under their experimental conditions. Dyer et al., 2013
- eflomal uses Bayesian word alignment and can estimate Dirichlet priors over lexical probabilities, alignment jumps, and fertility. The project builds on Östling and Tiedemann’s 2016 efmaral work. eflomal project
The Dirichlet priors smooth estimates when observed counts are sparse. For example, the lexical prior contributes to the estimated translation probabilities alongside the word alignment counts. Compare the aligners on your own bitext and a checked sample of word links.
A third family has emerged from multilingual encoders:
- SimAlign (Jalili Sabet et al., 2020) extracts alignments from multilingual token embeddings without training a task-specific aligner.
- Awesome-align (Dou and Neubig, 2021) can extract alignments from multilingual BERT and improve them by fine-tuning on parallel sentences. The fine-tuning objectives can use sentence pairs without hand-labeled word links.
Both methods draw on cross-lingual information in multilingual token embeddings. SimAlign extracts links from pretrained representations, while Awesome-align also provides objectives for improving the alignments with parallel text.
A QC model can use word-alignment coverage as one feature. Compare coverage with human judgments on the intended language pair before choosing how to use it.
For example, two linked source words out of ten give source-side coverage of 0.2 under this definition. Low coverage can indicate omissions, a mispaired sentence, or a failure of the aligner. The score does not distinguish those cases on its own.
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!