Elamur Research

Lingua-Align: An Experimental Toolbox for Automatic Tree-to-Tree Alignment

Paper · 2010 · Jörg Tiedemann

Summary

When a sentence is translated, corresponding words can appear in a different order, and an expression made of several words can become a single word. A word alignment records some of these relationships, but it leaves open which larger grammatical units correspond. Lingua-Align takes a pair of translated sentences that already have syntactic trees and proposes links between nodes in those trees. The links can connect words or larger units such as phrases. For research in machine translation, the aim is to make such correspondences available in quantities that would be difficult to produce by hand.

The paper divides the task into judging individual candidate links and selecting a set of links for the tree pair. A classifier learns the first job from human-annotated examples. Its evidence includes word translation probabilities, existing word links, grammatical labels, and information about where each candidate sits in its tree. It can also inspect neighboring nodes and use its own earlier estimates from lower in the trees. Once the candidates have scores, a separate search decides which links to keep. The strongest search setting in the experiments gives priority to high-scoring candidates and checks that accepted links agree with the trees’ ancestor and descendant relationships.

The evaluation uses the English and Swedish versions of chapters from Sophie’s World in SMULTRON. The paper uses the first 100 sentences for training and scores the alignments on the remainder. Its best setting reaches a balanced F-score of 77.66, compared with 57.57% for an unsupervised subtree aligner on the same dataset and about 58.64% when that baseline has access to additional lexical training material from Europarl. Within Lingua-Align, progressively richer feature sets improve results, and the structural checks give the strongest results among the search procedures tested. The effect of using earlier predictions varies with the feature set, and a simplified iterative training procedure gives lower scores than ordinary training with prediction history.

Lingua-Align also addresses the practical work of producing an aligned corpus. The package can read several treebank formats, import word-alignment information, and report results separately for word-level and phrase-level links. Its output follows the conventions of the Stockholm Tree Aligner, so a researcher can inspect and correct proposed links in an existing manual alignment tool. The experiment measures agreement with a reference alignment. The paper describes manual correction and use in translation research as applications of those links.

Deep dive: Lingua-Align: An Experimental Toolbox for Automatic Tree-to-Tree Alignment

Lingua-Align learns to match nodes in translated sentence trees and tests which features and structural constraints improve those links. · about 36 minutes to read

The problem and its context

The unit of correspondence

A parallel corpus supplies text and its translation. When corresponding sentences have already been paired, an alignment can describe how smaller pieces of those sentences relate. A word alignment connects individual word occurrences. A tree alignment works with the units identified by parsing. In a phrase-structure tree, a terminal represents a word and a nonterminal groups material into a larger grammatical unit. An internal node may dominate several words or only one. A link joins a particular node in one tree to a particular node in the other.

The grammatical grouping gives the task a different meaning from matching spans of text. A word can participate in a correspondence at the level of its terminal node and also contribute to the correspondence of a larger phrase that contains it. Those are separate claims. Learning that some of the words in a phrase have counterparts across the sentence pair can help establish a phrase link, while the proposed phrase link says something about the grouping as a whole. Even two nodes that cover the same words can represent different units if one sits above the other in the tree.

The paper’s SMULTRON illustration makes this concrete with the English expression the garden of eden and the Swedish edens lustgård. The translation provides fewer word positions on the Swedish side, so the graph of plausible correspondences cannot be read off from their positions. The example also includes an automatic word alignment that the paper describes as largely incorrect. A tree aligner receives that information as evidence and must decide which of its implications to accept alongside evidence from the parses.

Once nodes are the units of comparison, decisions also affect one another. Suppose a phrase on the source side has already been paired with a phrase on the target side. A proposed link from inside the source phrase to material outside the target phrase raises a question about how those two links fit together. A counterpart for the first node also takes up a possible endpoint for other links if the alignment permits only one partner per node. These are properties of the chosen set of links. Looking closely at the words and categories in a single candidate can help score it, while resolving a conflict requires considering what else will be selected.

The resource the paper works with is a parallel treebank, a collection in which corresponding sentences have syntactic analyses. For supervised alignment, some of those trees also need human-supplied links between their nodes. Parsing the sentences and identifying their cross-language correspondences are distinct pieces of linguistic annotation. The paper describes manually aligned resources as scarce and labor-intensive to create. It points to efforts such as LinES, whose English and Swedish trees exemplify the kind of bilingual resource in question.

Where the trees come from

In the account of prior work, data-driven translation systems draw information from parallel text, and a growing set of approaches incorporates syntax. The term covers different ways of obtaining structure and different roles for that structure. Some approaches learn grammatical mappings for translation from the parallel text itself. The structures in these mappings are induced with the translation task in view. The introduction points to existing word alignments as one basis for induction, citing hierarchical phrase-based translation, and also mentions approaches based on repeated estimation.

A separate line of work uses linguistic parses to constrain the training of a translation system. The paper cites syntax-augmented machine translation via chart parsing and online large-margin training of syntactic and structural translation features in this context. The distinction concerns where the structure originates. A translation procedure can use categories and groupings supplied by an independently motivated analysis of each language. Other work described in the introduction goes further by deriving translation information directly from mappings between those analyses. In example-based translation, for example, aligned structures can supply templates for reuse.

Lingua-Align addresses the resource problem that arises when an application needs links between linguistically analyzed trees. The grammatical analysis of a sentence identifies units in that sentence. The analysis of its translation identifies units in the other language. The cross-language mapping is an additional layer, and the parses alone leave it unresolved. Automating that layer would allow a manually aligned sample to support work on a larger collection of parsed sentence pairs. It would also provide a set of proposals that annotators could inspect with a manual tool.

The paper describes earlier automatic tree alignment as frequently using word alignment to infer links between nonterminals. It names the subtree approach of Zhechev and Way and the work on syntax-driven learning of translation equivalents and rules as examples. Lingua-Align retains the connection to words. The innovation it emphasizes is how several kinds of evidence are brought together. An existing word link can support a phrase link, but its influence is learned from annotated tree pairs alongside evidence from the trees themselves.

That choice makes the role of supervision explicit. A reference alignment supplies examples of which node pairs count as links in the training data. A discriminative classifier learns to distinguish those pairs from other candidates using properties of the input and the candidate. Word evidence, tree position, and syntactic categories can all enter the same decision even when they overlap in what they reveal. The paper then reserves a separate procedure for decisions about compatibility across a tree pair. This division lets it ask experimentally how much can be learned from richer descriptions of the nodes and how much comes from rules applied during search.

The method, step by step

The input is a source tree and a target tree for sentences already known to correspond. Source and target are names for the two sides of the calculation. The system considers a node from one side together with a node from the other and asks whether that pair should be linked. During training, the annotated alignments supply the answers for the examples. During alignment, the classifier estimates how plausible each candidate is. The final links depend on both these estimates and the selection procedure.

The paper calls the task structured prediction because a complete answer contains decisions about many related candidates. It makes the task easier to handle by first treating each candidate as a binary choice. Information about other parts of the trees can appear in that choice as features. The classifier can also score children before their parents and pass evidence from the earlier estimates into the later decisions. Search then handles restrictions that refer to the selected alignment, such as whether a node already has a partner.

From parsed translations to a tree alignment

The steps in order.

From parsed translations to a tree alignmentStep 1: Read paired trees and available word evidence1. Read paired trees and available word evidenceStep 2: Form candidates from source and target nodes2. Form candidates from source and target nodesStep 3: Extract features from candidates and their neighbors3. Extract features from candidates and their neighborsStep 4: Learn feature weights from annotated tree links4. Learn feature weights from annotated tree linksStep 5: Score candidates and pass child evidence upward5. Score candidates and pass child evidence upwardStep 6: Select links with the chosen search procedure6. Select links with the chosen search procedureStep 7: Write alignments for evaluation or manual review7. Write alignments for evaluation or manual review

How the classifier scores a pair

The classifier assigns a conditional probability to a candidate decision using a weighted sum of features. Exponentiation turns that sum into a positive value, and a normalizer makes the results for the possible decisions add up to a probability distribution. The paper expresses the calculation as follows.

P(aᵢⱼ | sᵢ, tⱼ) = exp(∑ₖ λₖ fₖ(sᵢ, tⱼ, aᵢⱼ)) / Z(sᵢ, tⱼ)

Here, sᵢ is the source node indexed by i, and tⱼ is the target node indexed by j. The variable aᵢⱼ is the decision for that pair, with a link and the absence of a link as its possible values. P denotes probability, and the vertical bar means that the probability is conditional on the displayed nodes. The index k runs over features, and ∑ₖ adds their contributions. Each fₖ is a feature function of the nodes and the candidate decision. Its learned weight is λₖ. The function exp exponentiates the weighted sum, and Z is the normalizing factor for the pair, obtained by adding the unnormalized values over its possible decisions. The slash denotes division.

The features give the calculation much of its practical meaning. A feature can represent the presence of a grammatical label, the amount of support from word links, or the position of a node relative to those around it. The training data determine how those values affect the score. Features can have real values, which makes it possible to preserve a graded quantity such as lexical support instead of converting every observation into a yes-or-no flag.

The paper uses the maximum entropy classifier in Megam to fit the weights. Training uses its conjugate gradient optimizer, an iterative method for adjusting the weights. Lingua-Align prepares the feature representation and calls the external classifier. The paper describes the representation as adaptable to other classifiers that accept real-valued features. In this setup, the costly part of training and testing is gathering the features, which can require repeated traversals of the trees and access to word-alignment data.

Words inside and outside the subtrees

A candidate node defines a subtree. Its yield is the words at the leaves it dominates. The lexical features ask whether words in the source yield have plausible counterparts in the target yield and whether the surrounding words also agree with the proposed division. To calculate this evidence, the system uses a table of lexical translation probabilities, typically obtained from automatic word alignment. These probabilities describe how strongly a source word is associated with a target word in a particular direction.

αᵢₙₛᵢ𝒹ₑ(s | t) = ∏ₛᵢ ∈ yield(s) maxₜⱼ ∈ yield(t) P(sᵢ | tⱼ)

The symbol αᵢₙₛᵢ𝒹ₑ(s | t) denotes the inside score for the source node s given the target node t. The vertical bar in the score’s arguments indicates its direction. yield(s) and yield(t) are the words under those nodes. In this calculation, sᵢ and tⱼ denote source and target word occurrences indexed by i and j. The symbol ∈ means that an occurrence belongs to the indicated yield. For each source word in yield(s), max chooses the largest lexical probability P(sᵢ | tⱼ) available among the target words in yield(t). The probability’s vertical bar means that the source word is evaluated given the target word. The product operator ∏ multiplies the resulting values across the source yield.

A source word contributes through its strongest available counterpart. That is the point at which the paper’s definition differs from the earlier lexical scoring scheme it adapts, which uses mean link scores. Taking a maximum makes the feature sensitive to whether there is a plausible counterpart somewhere in the target yield. The calculation leaves the question of whether different source words rely on the same target word to other evidence or constraints. Its output is evidence about the candidate node pair, instead of a set of independently accepted word links.

αₒᵤₜₛᵢ𝒹ₑ(s | t) = ∏ₛᵢ ∉ yield(s) maxₜⱼ ∉ yield(t) P(sᵢ | tⱼ)

The symbol αₒᵤₜₛᵢ𝒹ₑ(s | t) is the outside score in the same direction, indicated by the vertical bar between s and t. The nodes and their yields have the same meaning as in the inside calculation. Here, ∉ means the word occurrence falls outside the corresponding yield. For each source word sᵢ outside yield(s), the maximum is taken over target words tⱼ outside yield(t). The i and j indices identify word occurrences, P(sᵢ | tⱼ) again gives the lexical probability of the source word given the target word, and ∏ multiplies the chosen probabilities.

The outside feature puts the candidate in the context of the rest of the sentence pair. A pair of subtrees divides the words on each side into the material it covers and the material it leaves outside. A candidate can look plausible when its own words are considered and still leave surrounding words with weak counterparts on the other side. The inside and outside calculations preserve those observations separately. The system can also reverse the lexical probability direction, using estimates for target words given source words. The two directions of both calculations become separate features, so the classifier can give them different weights.

A lexical table supplies probabilities for word translations. Lingua-Align can also read an explicit word alignment that proposes links between particular word occurrences in a sentence pair. For a pair of subtrees, it computes the proportion of relevant word links that are consistent with the pair. Relevant links involve words covered by either subtree. A link with both endpoints inside the respective yields is consistent. A link with one endpoint inside and the other outside is evidence against that particular pairing of subtrees. A link with both endpoints outside does not enter this proportion.

The distinction is visible in the paper’s example. The word aligner gives different link sets depending on direction. For one candidate pairing an English proper-noun node with a Swedish proper-noun node, the paper shows consistency values of 0 for the source-to-target word alignment and 0.5 for the reverse alignment. A candidate pairing noun phrases in the same example receives 1 in both directions. These are input feature values for particular pairs. The classifier can weigh them against the categories and positions of the candidates and against the support available for nearby alternatives.

The usual inputs described in the paper are directional Viterbi alignments from Giza++ and symmetrized links from Moses. A Viterbi alignment is the particular alignment selected by the word aligner in a given direction. Symmetrization combines information from directional alignments into a shared link set. The package can take other word alignments for this feature as well. The paper draws on Och and Ney’s comparison of statistical alignment methods for the word-alignment background and later for the distinction between sure and possible reference links.

Explicit consistency and lexical probability answer related questions with different inputs. The consistency feature asks whether a set of word links already chosen for the sentence agrees with the candidate. The probability features look for lexical associations among the words that the candidate puts inside or outside its boundary. Separate feature values allow the annotated examples to determine the contribution of each signal. The English–Swedish illustration shows the practical value of that flexibility because a directional word alignment can give little support to a reasonable candidate.

Position, category, and nearby alternatives

The tree features compare where the candidates sit and how much material they cover. For vertical position, the system takes a node’s distance from its root and relates it to the greatest root-to-leaf distance in that tree. It then takes the absolute difference between the relative positions on the two sides. The normalization gives each node a position with respect to the height of its own tree. A pairing of nodes at similar relative levels supplies a different feature value from a pairing in which one is near its root and the other is near its leaves.

For horizontal position, the system averages the sentence positions of the words dominated by a node and normalizes the average using the sentence length. This provides a location for the subtree relative to the words in its sentence. The paper’s feature compares these relative locations. The ratio of the numbers of leaves dominated by the candidates provides a separate indication of size. A pair can be similar in horizontal location and still differ in the amount of material covered. Keeping these cues separate lets the classifier learn how much each one matters in combination with the others.

The label features use phrase categories for nonterminals and part-of-speech tags for terminals. A particular category pairing can be represented as a binary observation. Its weight reflects what the training examples teach about that pairing in the language pair. Equality of labels is not a prerequisite for offering a candidate. The paper’s context example contains pairings involving noun phrases, prepositional phrases, and word categories. The feature system can also accommodate labels of other kinds, such as labels used in dependency parsing.

The context mechanism extends these same feature definitions to structurally related nodes. A prefix on a feature specification tells the system where to move before calculating the value. It can move to both parents or move only on the source or target side. It can visit sisters, meaning nodes that share a parent, or go down to children. For a feature taken over children, the system can use the mean of the corresponding values. Movements can be chained. Moving to a parent and then moving to a parent again reaches a grandparent. A requested feature is extracted only when the required movements can be completed.

Context can change the significance of familiar evidence. Strong word-link consistency for a candidate is ordinarily a reason to favor that candidate. If the same calculation is applied after moving to a sister on one side, a high value may instead favor a competitor for the original node’s partner. Training can learn different weights for those cases because the two observations occupy different feature positions. The structure is informing the local score before the search procedure has to choose between the candidates.

The paper’s worked example applies context features to a pair consisting of an English determiner and a Swedish noun. The observations include the labels reached through sister moves, an inside lexical score at the parents in the reverse direction, and a word-link consistency value obtained by moving to the source parent while keeping the target node fixed. This illustrates what it means for a score to be local. The output still concerns the original candidate, even while the observations come from several relationships around it.

The feature specification also allows combinations of base features. The paper gives examples such as a category paired with a word-alignment score, or a horizontal position feature combined with a vertical one. For real-valued features, the implementation multiplies their values. If a lexical score matters especially for a particular category pairing, a combined feature can express that interaction directly. A feature for the lexical score alone and a separate feature for the category would each contribute independently to the sum in the classifier. The product creates a separate quantity with a weight of its own.

What earlier predictions tell a parent

Context features can read properties of the input trees as soon as the trees are available. A history feature uses something the aligner itself has already estimated. Lingua-Align works from the bottom up when it uses this history. By the time it scores a candidate higher in the trees, it has estimates for potential links between lower nodes. For the history feature, divide the count of linking evidence that the candidate pair dominates by the larger subtree’s number of child nodes.

The history calculation uses likelihoods as soft counts. A tentative child link contributes according to its estimated plausibility. A strong candidate contributes more than a weak one, and the system can pass some evidence upward even when that candidate would fall below a threshold for accepting a link. This lets the calculation reflect uncertainty at the stage when it evaluates a parent. The subsequent search can still discard a child candidate that had contributed to the history. An earlier estimate used as a feature and a link in the final alignment are different products of the procedure.

A recurrent procedure of this kind raises a training question. Annotated examples provide reliable information about lower links during training. When it is time to align a new sentence pair, the classifier works with its own estimates, which can be uncertain or wrong. If it learns to expect the training conditions, its behavior can deteriorate when predictions replace the annotations. The paper discusses this mismatch under label bias and identifies error propagation as a risk of following a sequence of local decisions. Using soft counts preserves uncertainty, while still allowing mistakes in earlier estimates to influence later scores.

The optional training procedure adapts SEARN, short for search-learn. It interpolates history features with the current classifier’s own predictions and uses the result to train the next classifier. Interpolation here means mixing the history associated with annotation and the estimates produced by the classifier, so that later training iterations encounter a version of the conditions present at prediction time. In the approach the paper draws from, development data would be used to select the interpolation weight. Lingua-Align’s implementation skips that selection and uses a fixed weight. Ordinary training with history and this iterative variant are therefore distinct settings in the experiment.

The simplest output comes from applying a threshold directly to the scores. A candidate that meets the cutoff can become a link on the strength of its local estimate. More involved inference procedures treat these estimates as the inputs to another decision. They can require that each node have at most one partner, or check that the links agree with a specified relationship between the two tree structures.

For maximum weight matching, the paper represents candidates as edges of a bipartite graph. Its disjoint sets S and T contain the source and target nodes, respectively. Every edge runs between the two sets. Each candidate is assigned the following weight.

pᵢⱼ = P(aᵢⱼ | sᵢ, tⱼ)

Here, pᵢⱼ is the edge weight for source index i and target index j. P is the classifier probability, aᵢⱼ is the decision that the candidate link is present, and sᵢ and tⱼ are its endpoint nodes. The vertical bar indicates that the probability is conditional on those endpoints. A matching is a selection of edges in which no endpoint is used again. A maximum weight matching is the matching with the greatest sum of its edge weights.

The paper also writes this as a cost problem. Source nodes are the items to assign and target nodes are the possible destinations. A high likelihood corresponds to a low cost under the following definition.

cᵢⱼ = 1 − pᵢⱼ

Here, cᵢⱼ is the assignment cost for the pair indexed by i and j, pᵢⱼ is the same pair’s link weight, and 1 is the constant from which that weight is subtracted. The minus sign denotes subtraction. For an assignment with a fixed number of entries, minimizing their sum of costs gives the same ordering as maximizing the sum of their link weights.

C = ∑ᵢ₌₁ⁿ cᵢ,ₐᵢ

Here, C is the total cost. i indexes the source entries from 1 through n, where n is the size of the square assignment problem. The symbol ∑ instructs the procedure to add the costs over that range. The entry aᵢ is the target index assigned to source entry i, and cᵢ,ₐᵢ is the cost for that assignment. In this part of the paper, an aᵢ names a destination index. The earlier aᵢⱼ names a binary link decision.

assign([cᵢⱼ]ᵢ,ⱼ₌₁,…,ₙ) = (a₁, …, aₙ)ᵀ

The function assign maps a matrix of costs to an assignment vector. In the matrix, cᵢⱼ is the entry in source row i and target column j. Both indices range from 1 to n, with … indicating intervening entries. The vector contains the chosen destination aᵢ for each source row. The superscript ᵀ indicates that the displayed tuple is written as a column vector. It is a transpose marker, separate from the use of T for the set of target tree nodes.

Lingua-Align calls a Perl implementation of the Hungarian method, also called the Kuhn–Munkres algorithm, to solve the assignment problem. The algorithm can find an optimal assignment in polynomial time. The implementation handles different numbers of source and target nodes by padding the matrix with zeros. This allows nodes on the larger side to have no real counterpart. The optimizer knows about endpoint competition through the assignment formulation. The cost matrix and the endpoint restriction by themselves do not represent whether the chosen links preserve ancestry.

The greedy procedure approaches competition differently. It sorts candidates by score and tries them from highest to lowest. If a candidate falls below the minimum score, the search can stop because the rest of the list has no higher value. Otherwise, it checks whether the endpoints are available and, when requested, whether the new link is structurally compatible with the accepted links. A link that passes the checks is added, and the endpoints become unavailable under the one-to-one condition. The procedure continues with the remaining candidates.

Under greedy selection, the strongest available edge can take both endpoints before alternatives have been considered. Those alternatives could have yielded a larger combined weight under an assignment procedure. The appeal of the greedy method in this paper is that an additional check can guide each acceptance. If a source node is a descendant of an already linked source node, its proposed counterpart must be a descendant of the corresponding linked target node. The restriction applies to ancestor relationships as well. A candidate can have free endpoints and a high score and still be refused because it would break this relation.

The paper describes ways to alter the greedy procedure for different outputs. One can relax the endpoint rule to permit some multiple links, with corresponding changes to the structural check. A directional search can start with the source or the target nodes, and two directional results can be combined, for instance by taking their intersection. A sequence of searches can handle nonterminals first and terminals afterward, or start with a restrictive pass and follow it with a more permissive one. The aligner can also restrict links to nodes of the same type or skip unary productions, where a parent has a single child. These are ways to specify what an acceptable output is for a particular use.

Preparing data and reviewing the output

The package consists of Perl modules and command-line frontends. Its internal divisions follow the workflow. Some modules read treebanks and word alignments, some extract features, others communicate with the classifier, and others select links. A trained classifier is saved as plain text and can be reused on additional tree pairs. With the weights fixed, feature extraction and alignment can be carried out for different partitions of a treebank in parallel. The work inside a tree pair still follows the required order if parent scores depend on the child scores.

The word evidence has to correspond to the sentences being aligned. Lingua-Align can read directional alignments and lexical probability tables from Giza++ and symmetrized alignments from Moses. In the usual workflow described in the paper, those resources are prepared with a statistical word aligner before extracting the tree features that depend on them. An existing parallel treebank therefore supplies the parses and, for supervised training, the reference links. A separate preparation step can supply the word information used to enrich the candidate descriptions.

TigerXML is the default format for the corpus. The package also reads AlpinoXML and Penn Treebank format and includes conversion tools. Its standard representation of links follows the conventions of the Stockholm Tree Aligner, the tool the paper describes for manual work. The output example associates links with node identifiers in their respective treebanks, attaches a probability to each link, and labels it good or fuzzy. The corresponding format can also supply the links used for training.

This shared format gives the automatic step a place in an annotation workflow. A researcher can align parsed sentences, inspect the links in the manual tool, and correct them there. Manually linked material can then be used as training input in the same conventions. The paper describes that workflow as a way to combine automatic proposals with human validation. Separately, its evaluation script compares a set of proposals with an existing reference, using link categories and node types to report different views of alignment quality.

Experiments and results

What was held out

The experiments use the English–Swedish portion of SMULTRON corresponding to two chapters of Sophie’s World. Across about 500 sentence pairs, the material contains 6,671 links annotated as good and 1,141 annotated as fuzzy. These counts describe the chapter material as a whole. The training portion is the first 100 sentences, and the remainder is the test portion. The paper chooses this division to leave a larger portion for measuring alignment quality.

The study varies several things within that split. A series of feature sets starts with lexical scores and adds tree properties, explicit word-alignment information, labels, and context. The search settings include a local threshold, greedy competitive linking, Kuhn–Munkres assignment, and greedy linking with the tree well-formedness check. The paper also compares settings with and without prediction history and applies the simplified SEARN training variant with well-formed greedy search. These comparisons share an evaluation corpus, while the external baseline offers a separate comparison to an unsupervised way of aligning trees.

The baseline is the subtree aligner described by Zhechev and Way. It yields a balanced F-score of 57.57% on the same dataset. The paper also runs it with lexical information estimated after adding the entire Europarl corpus to the data. The reported result is about 58.64%. That variation addresses a plausible explanation for the baseline’s result because the lexical translation probabilities are first estimated from a small amount of material. The paper attributes the modest change with much more data mainly to a mismatch between the added corpus and the chapters being aligned.

SMULTRON’s good and fuzzy labels let the evaluation distinguish the links a system should recover from the larger set it can receive credit for proposing. The good links are treated as sure. Good and fuzzy links together form the possible set. The system’s proposed links enter the overall calculation as a single set, regardless of which of those labels the system attached to them. The distinction matters when reading a score because the definition uses different reference sets for precision and recall.

Precision = |P ∩ A| / |A|

Here, P is the set of possible reference links, containing both the good and fuzzy links. A is the set of links proposed by the aligner. The operator ∩ takes the intersection, and the vertical bars give the number of links in the enclosed set. The slash denotes division. Precision is the fraction of proposed links that belong to the possible reference set.

Recall = |S ∩ A| / |S|

Here, S is the sure reference set, which contains the human-annotated good links, and A again contains the proposed links. The intersection ∩ keeps links appearing in both sets, | | counts them, and the slash denotes division. Recall under this definition measures how many of the sure links the system recovered. The script can also report coverage of the full reference set and of its fuzzy subset.

F = 2 × Precision × Recall / (Precision + Recall)

Here, F is the balanced F-score, Precision and Recall are the rates being combined, and 2 is the multiplier in their harmonic mean. The multiplication sign is ×, the slash denotes division, and the parentheses group the sum of the two rates in the denominator. The score rewards a result that maintains both precision and recall. When a report gives more than one version of recall, the reported F-score has to be read with the version it uses.

The paper illustrates this with output from its evaluation script. The example’s overall precision is 79.77, shown as 4700/5892. Recall over all reference links is 74.32, shown as 4700/6324. Recall for the good links is 75.66, shown as 4132/5461, and recall for fuzzy links is 65.82, shown as 568/863. The reported F-score is 76.95 when precision is paired with recall over all links and 77.66 when it is paired with recall over the good links. These figures belong to the illustrated evaluation report. The different F-scores describe different ways of scoring the alignment in that report.

The report also separates links between nonterminals from links between terminals. Across link labels, the nonterminal-to-nonterminal group in the example has precision of 82.32, recall of 78.08, and balanced F of 80.15. The terminal-to-terminal group has precision of 78.00, recall of 71.79, and balanced F of 74.77. These lines show how a combined score can hide differences between levels of the tree. The script also prints label-specific results. An automatically proposed link has the good label when its certainty is at least 0.5. That label affects category-specific evaluation while the overall scoring formula pools the proposals.

The baseline and strongest setting

Tree aligners on the SMULTRON Sophie’s World test portion, balanced F-score

The strongest supervised setting scores above the subtree aligner with either source of lexical data.

Tree aligners on the SMULTRON Sophie’s World test portion, balanced F-scoreUnsupervised subtree aligner, chapter data: 57.57Unsupervised subtree aligner, chapterdata57.57Unsupervised subtree aligner, with Europarl: 58.64Unsupervised subtree aligner, withEuroparl58.64Lingua-Align, full features and well-formed greedy search with history (this paper): 77.66Lingua-Align, full features andwell-formed greedy search with history(this paper)77.66
The numbers
System or settingbalanced F-score
Unsupervised subtree aligner, chapter data57.57
Unsupervised subtree aligner, with Europarl58.64
Lingua-Align, full features and well-formed greedy search with history (this paper)77.66

The value of 77.66 is the largest in the feature and inference comparison. It comes from the full contextual feature set, prediction history, and ordinary training, followed by greedy selection with the structural check. The baseline comparison shows the performance of the complete supervised configuration against the unsupervised subtree aligner under the reported conditions. It includes differences in features, access to annotated training links, and the way the systems use their evidence. The controlled comparisons within Lingua-Align give a more specific view of which changes are associated with better scores.

With the full features and prediction history, the local classifier at a threshold of 0.5 achieves 74.90. Greedy competitive linking reaches 75.60, and Kuhn–Munkres matching reaches 75.38. These two searches enforce endpoint competition through different objectives. Adding the well-formedness check to greedy selection gives the strongest result. The comparison is meaningful because the underlying feature conditions and history setting are held constant. It shows that the highest total weight for a one-to-one assignment and the highest agreement with the reference links are different goals.

Inference settings on the SMULTRON Sophie’s World test portion with full features and history, balanced F-score

Greedy search with the tree well-formedness check leads the comparison with feature conditions held fixed.

Inference settings on the SMULTRON Sophie’s World test portion with full features and history, balanced F-scoreLocal score threshold: 74.90Local score threshold74.90Greedy competitive linking: 75.60Greedy competitive linking75.60Kuhn–Munkres assignment: 75.38Kuhn–Munkres assignment75.38Greedy linking with well-formedness checks (this paper): 77.66Greedy linking with well-formednesschecks (this paper)77.66
The numbers
System or settingbalanced F-score
Local score threshold74.90
Greedy competitive linking75.60
Kuhn–Munkres assignment75.38
Greedy linking with well-formedness checks (this paper)77.66

The experimental table reports balanced F across all the tested configurations. The example from the evaluation script serves a different purpose. It shows how to examine a particular alignment in more detail, including which reference set determines recall and whether performance differs for words and larger units. Reading these together links the headline comparison to the task it measures. The test rewards agreement with recorded node correspondences, including recovery of sure reference links and precision over possible ones.

What the ablations show

Adding evidence in stages

The feature experiment is a cumulative comparison. Each row in the sequence retains the preceding types of evidence and adds another family. Under well-formed greedy search with history, the lexical-only setting gives 57.11. Adding tree features gives 58.68. With explicit word-alignment features also included, the score is 62.88. Adding labels brings it to 75.79, and adding contextual information brings it to 77.66. Fixing the search and history settings makes this sequence a direct comparison of increasingly rich descriptions of the candidates.

Cumulative feature sets on the SMULTRON Sophie’s World test portion with well-formed greedy search and history, balanced F-score

The score rises at each addition, with the most pronounced change when syntactic labels enter the feature set.

Cumulative feature sets on the SMULTRON Sophie’s World test portion with well-formed greedy search and history, balanced F-scoreLexical: 57.11Lexical57.11Lexical and tree position and size: 58.68Lexical and tree position and size58.68Previous features with word alignment: 62.88Previous features with word alignment62.88Previous features with syntactic labels: 75.79Previous features with syntactic labels75.79Previous features with context (this paper): 77.66Previous features with context (thispaper)77.66
The numbers
System or settingbalanced F-score
Lexical57.11
Lexical and tree position and size58.68
Previous features with word alignment62.88
Previous features with syntactic labels75.79
Previous features with context (this paper)77.66

The move from lexical scores to tree position and size increases the score in that sequence. This tests whether the candidate description benefits from information about relative level, location, and yield size once the classifier already has lexical evidence. The next addition gives the classifier explicit word-link consistency as well as lexical translation probabilities. Its increase is evidence for the contribution of existing word links in this configuration. The experiment keeps both kinds of word evidence, so it tests the value of adding one to the other.

The label step produces the largest rise along this particular sequence. The candidates already have word evidence and a description of where their nodes occur. Category information helps distinguish pairs that could otherwise look similar under those descriptions. An appropriate pairing of grammatical units can recur across examples even when the words differ. The classifier can learn such regularities directly from human-supplied links. The scale of the change belongs to the tested ordering of feature additions and the English–Swedish annotations used here. It does not isolate every label feature or establish how well the same learned category weights would work elsewhere.

The context step improves the already strong label-rich configuration. That is an informative test because the context mechanism can reuse basic features after navigating the trees. Its contribution can come from detecting support at nearby nodes or identifying competing pairs, among other kinds of observations allowed by the templates. The reported score measures the whole context addition. The paper does not break it down by individual navigation operation, so the outcome cannot identify whether parents, sisters, children, or particular combinations account for the increase.

The context result also has an instructive comparison within direct thresholding. With history disabled, the label-rich setting scores 72.44 and the setting with context scores 74.68. With history enabled, those scores are 72.24 and 74.90. The local decision therefore benefits from the contextual information in both cases. Structural information can help before the aligner begins final search, because nearby categories and links become evidence for a candidate. The final compatibility checks address a different issue, deciding whether candidates can coexist after they have been scored.

History is most helpful in some settings

The clean comparison for history keeps the feature set and search procedure fixed and changes whether lower-node predictions enter the candidate description. With lexical features and ordinary greedy search, omitting history gives 50.05 and including it gives 56.76. With well-formed greedy search and lexical features, the corresponding scores are 52.03 and 57.11. In these settings, scores from lower in the trees supply useful information to decisions above them. The results are consistent with child alignments helping to compensate for the limitations of a simple lexical description.

The pattern varies as other features are added. For ordinary greedy linking with the cumulative set through explicit word alignment, the scores are 60.92 without history and 60.87 with it. Under local thresholding with the cumulative set through labels, the corresponding values are 72.44 and 72.24. These cases show that including prediction history can lower the measured score. With the full context features and well-formed search, history raises the result from 77.29 to 77.66. The highest-scoring configuration uses it, although its contribution at that point is smaller than in the lexical-only examples.

The comparison also helps distinguish history from context. A context feature can inspect the label, position, or word evidence of a parent or sister directly. A history feature brings in an earlier link estimate produced from other evidence. Both can reveal a relationship with the current candidate, and both can be available in the same setting. The reported configurations show that context can improve thresholding without history and that history can improve a lexical setting without the richer context features. There is no measurement here that assigns the benefit of one mechanism to the other.

Soft counts are part of the history implementation. The experiments change whether that implemented history is present, but they do not separately compare a history made from soft scores with one made from hard accepted links. The paper’s argument for soft counts is that uncertain predictions can contribute proportionally instead of being committed to as final decisions. The measured comparison is between full settings that include or omit this history, so it cannot establish how large a difference the soft-count choice makes on its own.

When candidate descriptions are sparse, the choice of inference procedure has a large effect. In the lexical-only setting without history, thresholding gives 38.52. Ordinary greedy linking gives 50.05 and Kuhn–Munkres assignment gives 49.75. Well-formed greedy search gives 52.03. At this stage much of the candidate evidence comes from words and the relative plausibility of the subtrees’ yields. Selection rules can use relationships among candidates that the threshold procedure has no means to enforce.

As the feature descriptions are enriched, direct thresholding approaches ordinary greedy search and assignment. With full features and history, the three scores are 74.90 for thresholding, 75.60 for greedy competitive linking, and 75.38 for assignment. The paper interprets the narrowing as evidence of what the local classifier can learn with richer features. The context machinery in particular can give the scorer information about potential competitors. The well-formed greedy procedure still raises the score to 77.66, indicating a remaining benefit from checking the selected links.

That structural check has a clearer controlled comparison than the contrast between greedy search and global assignment. Compare the two greedy settings with full features and history. The setting with endpoint competition alone gives 75.60, and the setting with the ancestry restriction gives 77.66. The consistent advantage of well-formed greedy linking across the feature sequence under ordinary training shows that the benefit is present even when the underlying classifier has only lexical evidence. It also shows that the comparison remains relevant when the classifier has labels and contextual observations.

The paper provides an individual sentence pair to illustrate what the procedures do to the link set. In its example, thresholding retains a noun phrase correspondence and leaves out other displayed candidates. The greedy and assignment procedures accept more of them. The well-formed search rejects a displayed prepositional-phrase-to-noun-phrase candidate that those procedures retain while keeping other displayed links. The paper considers every final alignment in that example imperfect. The example explains how the search changes the output, while the held-out aggregate scores establish which settings agree best with the annotations across the test material.

The iterative variant gives lower scores

The simplified SEARN variant tests whether training on a mixture that includes the classifier’s own history estimates helps under well-formed greedy search. Across the reported feature sets, it gives lower scores than ordinary training with history. For lexical features, the SEARN result is 57.05, alongside 57.11 for ordinary training with history. For the setting that adds tree features, the scores are 55.47 and 58.68. For full features, they are 75.21 and 77.66. The size of the change varies, with the same direction of change in the reported comparisons.

The full-feature variant also scores below the 77.29 achieved by ordinary training with well-formed search and no history. This helps locate the experimental result. Including history can give the best alignment, while the specific procedure tested to make training history resemble prediction history weakens it. The paper takes the outcome as a sign that label bias may be a small problem for these data and suggests that the fixed, untuned interpolation weight may explain the poor showing. The experiment gives no independent measure of label bias, and it changes the way history is prepared during training. Its direct finding concerns the behavior of the implemented variant.

Limitations

Limits discussed in the paper

The paper describes local classification as an approximation to the full structured problem. The candidate scores can incorporate features from around the nodes and from earlier estimates, and search can impose compatibility rules. The procedure still learns a classifier for individual decisions. Some earlier estimates will be wrong, and bottom-up use of history can pass their influence to parent decisions. Soft counts temper commitment by carrying uncertainty onward. The paper identifies error propagation as a risk that remains in a sequential architecture.

Another stated limit concerns the attempt to handle the mismatch between annotated training history and predicted history. The SEARN adaptation omits development-set optimization of the interpolation weight. The paper raises this implementation choice as a possible explanation for the lower results and leaves investigation of the training strategy open. The comparison evaluates the available implementation. A different weighting procedure would need its own result before any conclusion about its value could be drawn.

Feature extraction carries both practical cost and assumptions about the data. The paper identifies it as the bottleneck and explains that some important features require prior word alignment for the corpus. The relevant files must describe the same sentence pairs as the treebank. Though parsing formalism is flexible at the level of general architecture, the paper says much of the system’s power depends on features suited to the structures at hand. It also describes parse label features as specific to the language pair. Those qualifications matter for interpreting the portability of the package.

The inference procedures have limits that follow from their objectives. Assignment gives an optimum for the weighted endpoint problem, without a guarantee that the resulting links preserve tree ancestry. Greedy linking can enforce that ancestry relation, while its early choices can prevent the largest possible sum of link weights. The paper discusses options for relaxing one-to-one linking and for cascading several searches. Those options reflect the fact that different applications can ask for different balances of coverage, precision, and structural compatibility.

Finally, the paper distinguishes interoperability from tighter integration with the manual annotation tool. Shared conventions already allow inspection and correction of automatic output and reuse of human-supplied alignments. Integration into the graphical interface and incremental updating of the classifier are presented as future possibilities. The experiments measure link quality. They supply no timing results for how long annotation takes with automatic proposals or how quickly correction produces enough new training material.

Limits visible in the experiment

The reported comparison comes from one language pair and one work in SMULTRON. A reader can use it to establish how the settings compare when trained on the first 100 sentences and tested on the remainder of that material. There is no separate result on another language pair, another genre, or a treebank with different annotation conventions. The paper’s format support establishes that the software can read several representations. It leaves open whether the same feature choices, weights, and search constraints would be effective under different annotation schemes.

The design also gives a single view of training-data requirements. The supervised classifier performs well in the reported split using the first 100 sentences for training. A learning curve with a series of training sizes could show whether the score stabilizes early, keeps increasing, or varies substantially with the selected examples. The paper gives no such curve and no repeated splits. Its result supports the feasibility of learning a tree aligner from this sample. The amount of annotation needed for other uses remains open.

A further distinction concerns what “small” refers to. The amount of manually aligned tree data used for fitting is small in the setup described. Word translation probabilities and explicit alignments can require their own preparation, including a statistical word-alignment pass over the corpus. Those inputs have a different role from the tree reference links. The amount of labeled tree data needed to train the classifier and the total amount of preparation needed to run the full system are separate quantities. The experiment reports the former through the training split and explains the latter as part of the workflow.

The baseline comparison changes several things together. The unsupervised subtree aligner does not learn feature weights from the same kind of annotated tree examples, and the final Lingua-Align configuration also has richer tree and word information and a different inference procedure. The baseline with Europarl changes the lexical resources again. The domain mismatch is the paper’s explanation for the limited gain from adding Europarl. The comparison does not include a larger, matched-domain lexical corpus that would allow the role of domain and the role of data volume to be examined separately.

The evaluation units are links from an existing reference. A subtree correspondence that a human might accept under a different convention can receive no credit if it is outside the reference set. Within the reference, fuzzy links count as possible for the precision calculation, while their recovery is not required by sure-link recall. The report’s separate categories help a reader examine that choice. The paper gives no direct evaluation of whether a translation system trained with the resulting treebank produces better translations, or whether post-editors find the highest-scoring output the quickest to correct.

The table provides point estimates of balanced F for the tested settings. It does not show uncertainty intervals or significance tests. Large changes in the cumulative feature sequence describe substantial differences on the test material. For closely spaced settings, the table determines their order on that split, while leaving the stability of that order open. The strongest evidence about search comes from the well-formed greedy setting’s advantage under several feature conditions within the same experiment.

The paper mentions that disabling history and using simple greedy linking without tree well-formedness checks allows the general procedure to be applied to structures such as dependency graphs. This is a description of what the architecture can accommodate. The SMULTRON study tests alignment of the parsed trees described for the chapters. There is no graph alignment experiment showing which features or selection rules would work when the ancestry restrictions used in the strongest tree setting are unavailable.

What came after

The paper places Lingua-Align in an ongoing project on syntax-based machine translation and says that the toolbox is being used to align large parallel treebanks. This is a contemporaneous application reported by the author. It identifies where the aligned trees were intended to go next, while the experiment in the paper ends with evaluating the alignments themselves. No later study is identified that establishes what other researchers adopted from the toolbox or what results they obtained with its links.

The paper also describes a possible continuation on the annotation side. Existing format compatibility lets a human correct an automatic alignment in the Stockholm Tree Aligner. Closer integration would put automatic proposals inside that graphical workflow, with incremental learning as a possibility for updating the classifier as more corrections become available. The paper presents this as future work. It gives no subsequent results for an integrated interface or for learning from corrections as they are made.

Cite

Cite as Jörg Tiedemann. 2010. Lingua-Align: An Experimental Toolbox for Automatic Tree-to-Tree Alignment. Proceedings of the Seventh International Conference on Language Resources and Evaluation (LREC'10).

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{jorg2010lingua,
  title = {{Lingua-Align: An Experimental Toolbox for Automatic Tree-to-Tree Alignment}},
  author = {Jörg Tiedemann},
  booktitle = {Proceedings of the Seventh International Conference on Language Resources and Evaluation (LREC'10)},
  year = {2010},
  doi = {10.63317/5j9aesx5bksq},
  url = {https://doi.org/10.63317/5j9aesx5bksq}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/tiedemann-2010-lingua-align-experimental-toolbox-automatic/