Undoing Bad Merges in Phrase Alignment

Word aligners find which words in a sentence correspond to which words in its translation. Modern ones read these correspondences off similarity scores from multilingual language models. Their weak spot is phrases. When a multi-word expression, an idiom, or a split verb such as German "rufe … an" should align as one unit, today's pipelines link fragments one by one. They then glue the fragments together with fixed rules, and a wrong early link is never revisited. Cross-Align reports exactly this failure, "broken" alignments where only part of a phrase is matched, and names phrase-level constraints as its missing piece. Older phrase-building methods have the same flaw in a different form. Recursive matrix cutting, bottom-up tree linking, and permanent word packing each lock in a decision, so one early error corrupts everything built on top of it.

Clustering research has names for this problem, irreversible merging and cascading errors, and it also has repair operators. These are moves that detach a wrongly placed branch of a cluster tree and reattach it where it fits better. This note proposes to treat sentence-pair alignment as hierarchical clustering over the tokens of both sentences. Each cluster is a bilingual unit: a set of source tokens together with the target tokens they translate. The tree is built bottom-up and repaired with tree-grafting moves as it grows. The proposal also measures, for the first time, how much alignment error comes from irreversible commitment in the search rather than from bad similarity scores.

Core Claim

Given fixed token similarity scores from an existing aligner, a large share of phrase-level alignment errors is search error: greedy merge decisions that a better search over the same scores would avoid. The claim is that non-greedy hierarchical clustering can recover most of the gap between greedy merging and the exact optimum at near-greedy cost. The clustering uses the rotate and graft operations of GRINCH under a bilingual consistency constraint.

The gains should concentrate where cheap exact methods cannot reach, namely units that are discontiguous or that cross each other when reordered. For purely contiguous, nestable structure, a standard dynamic program over bracketings is already exact, and we expect no advantage there. Proposing a method whose predicted win is confined to a measurable subset is deliberate: it makes the claim falsifiable.

Research Program

The input is a similarity matrix between the source and target tokens of one sentence pair. It is taken either from zero-shot contextual embeddings as in SimAlign or from the fine-tuned model of AWESOME. Every source and target token starts as its own leaf. Merging two clusters is scored by a linkage that rewards cross-lingual similarity between the source tokens of one cluster and the target tokens of the other, plus a smaller monolingual cohesion term. Concretely, for clusters $A$ and $B$ with source parts $A_s, B_s$ and target parts $A_t, B_t$, we use

$$ \ell(A,B) = \frac{1}{|A_s\cup B_s|\,|A_t\cup B_t|}\sum_{i\in A_s\cup B_s}\sum_{j\in A_t\cup B_t} s_{ij} \;-\; \lambda\,\big(\text{penalty for unaligned mass}\big), $$

where $s_{ij}$ is the aligner's similarity between source token $i$ and target token $j$, and $\lambda$ is tuned on development data.

The method borrows two ideas from clustering. The first is the hard-constraint idea of Clustering-based Inference for Biomedical Entity Linking, which merges mentions bottom-up but forbids any cluster from holding two knowledge-base entities. Our analogue is the phrase-pair consistency condition: no merge may produce a unit whose tokens are strongly attached to tokens outside it on the other side. Clusters are otherwise allowed to be discontiguous, which is what lets split verbs and idioms form single units.

The second idea is repair, and it is where this proposal departs from that paper. Angell et al.'s mention merges are themselves irreversible. We add GRINCH's two moves after every merge. A rotate swaps a node with its aunt, the sibling of its parent, when the aunt fits better than the current sibling. A graft detaches a whole subtree and reattaches it elsewhere when a better partner appears. As a second repair option we implement the global hill-climbing tree moves of An Iterative Improvement Procedure for Hierarchical Clustering, applied after the tree is complete.

The finished tree yields two outputs. Cutting it at a tuned threshold gives flat word alignments, scored by alignment error rate (AER), the standard metric that penalizes both missing and spurious links against human gold links. The nested clusters give phrase pairs at every level, and these can be supplied to translation-memory fragment reuse.

The research is as much diagnostic as constructive, because the greedy, repaired, and exact variants all optimize the same objective. On short sentences we solve the flat version exactly, using the integer-programming formulation of hierarchical clustering in Formalizing Hierarchical Clustering as Integer Linear Programming. The objective gap between greedy and exact then measures cascading error directly. The AER gap tells us whether that search error matters for quality.

Baselines

The naive reference point is the standard pipeline over the same similarity matrix: probability thresholding or mutual argmax, followed by the usual subword-to-word merge rule. AWESOME found this simple thresholding more effective in practice than optimal transport. Its reported Chinese-English AER is 13.6. Running our clustering on AWESOME's own scores isolates the contribution of the search, since the scores are unchanged.

The strongest existing aligner is Cross-Align. It reports AER 10.1 on Chinese-English, against Awesome-Align's 12.9, and 35.4 on Japanese-English. It is the strongest competitor because its cross-attention layers are meant to resolve phrase-level ambiguity inside the network. We will run our search on top of Cross-Align's released scores where available. Beating it means lowering AER below its own output on the same test sets, with the threshold and $\lambda$ tuned only on the same development data Cross-Align uses. For Romanian-English we found no reported numeric AER on Lacuna, so we will rerun both systems ourselves.

The key ablation is identical bottom-up clustering with the same linkage and constraint but with rotate and graft disabled. This is greedy constrained merging in the style of Angell et al. Any gain of the full method over this ablation is attributable to repair alone.

We also compare against two structured searches. One is the exact dynamic program over contiguous bracketings described in the next section. The other is the integer-programming optimum on sentences short enough to solve. Every search variant receives the same scores and the same development-set tuning budget, and we report wall-clock time for each.

For phrase extraction on the patent data we compare with Cutnalign from Sampling-based Alignment and Hierarchical Sub-sentential Alignment in Chinese-Japanese Translation of Patents. It reports BLEU 36.11 against GIZA++'s 37.46 on the JPO Patent Corpus.

Why not just…?

Why not just use exact dynamic programming over bracketings instead of heuristic repair? For contiguous units whose reordering can be described by nested swaps, a chart-parsing dynamic program finds the optimal hierarchy over the same scores exactly. Local repair cannot beat that, and this is a real threat. We will run this dynamic program and expect it to match or beat us on the contiguous subset. Our claim survives only if the full method wins on pairs whose gold alignments contain discontiguous or crossing units. Japanese-English and German-English split verbs should supply many such pairs. If the dynamic program wins everywhere, the conclusion is that repair is unnecessary.

Why not just solve the whole thing exactly with integer programming, as SpanAlign does? SpanAlign solves sentence-level span alignment exactly in 0.39 seconds per document. It works over a handful of fixed, pre-segmented sentences, however, not the dense constraint set that transitive clustering over roughly a hundred tokens requires. We treat the exact solution as an oracle rather than dismissing it. If the solver is fast enough on typical sentence lengths, it should replace our method. The timing curve against sentence length will settle this.

Why not just fine-tune the aligner with a phrase-level objective? This is plausible, and Cross-Align's own authors point in that direction. It is complementary rather than exclusive, because better scores still pass through a merge step. The search-error decomposition shows how much remains after scores improve. If the greedy-to-exact gap shrinks toward zero on Cross-Align scores relative to AWESOME scores, then stronger encoders are absorbing the problem, and the value of our method falls accordingly.

Why not just use one-to-one matching or optimal transport, which are already global? SimAlign's Hungarian-algorithm "Match" forces one-to-one links. Its many-to-one variant, Itermax, is itself a greedy discounting loop. Neither produces nested units, and AWESOME found optimal transport worse than thresholding. We include Match and Itermax as further reference rows.

Proposed Experiments

Word alignment is evaluated on the five standard pairs used by Cross-Align and AWESOME: German-English, English-French, Romanian-English, Chinese-English, and Japanese-English. We report AER alongside a phrase-integrity score computed from the existing gold links. This score is the fraction of gold units recovered whole, where a gold unit is a connected group of links that spans two or more tokens on at least one side. It is broken down by contiguous versus discontiguous units, so no new annotation is needed.

The first decisive check is the search-error decomposition on sentences short enough for the exact solver. If greedy merging already sits within a small margin of the exact objective, the premise fails, and we would report that as a negative result. The second is the subset analysis described above against the dynamic program. The third is timing, showing that repair costs a small constant factor over greedy merging.

Downstream, the tree's phrase pairs will be fed to the constrained word lattice of Phrase-Level Combination of SMT and TM Using Constrained Word Lattice on JRC-Acquis English-French, where it reports +2.4% BLEU and −2.2% TER over phrase-based translation. We will measure gains separately by fuzzy-match band. Seeding SMT with TM output through tree-based alignment found that fragment reuse falls below plain SMT when the retrieved translation-memory match scores under 70% similarity. Cleaner fragment boundaries should reduce that loss, and whether the drop in the low band shrinks is the direct test of that prediction.