Elamur Research

Improving Machine Translation Quality Prediction with Syntactic Tree Kernels

Paper · 2011 · Christian Hardmeier

Summary

A raw translation can give a professional editor a useful head start, or it can take longer to assess than it would take to start over. Christian Hardmeier’s paper asks whether a machine translation system’s output can be screened automatically, segment by segment, before the editor makes that decision. The task is to predict whether a translation needs little or no editing or belongs in a group requiring more work. The predictor learns from translations that people have already judged. It does not need a human reference translation for the segment it is asked to classify.

The paper’s approach compares sentences by their grammatical structure. A parser represents a sentence as a tree. A tree kernel measures similarity by finding fragments that the trees of different sentences share, allowing a support vector machine to use a large collection of possible patterns without someone having to specify each pattern by hand. The experiments use phrase structure on the English source side and another representation, based on dependencies between words, on the source and translation sides. The paper tests these structural comparisons on their own and alongside explicitly designed features such as vocabulary coverage, sentence length and scores for how typical a word sequence is.

The evaluation covers English-to-Spanish Europarl translations from different systems and English-to-Swedish TV subtitles. The strongest result for each reported dataset comes from combining syntax with explicit features. On the subtitle data, the reported F-score is 63.3 with the full explicit feature set and 68.8 when that set is combined with source and target dependency trees. The rule that accepts every subtitle reaches 66.8 on the same metric. The dependency combination accepts a smaller share of the translations that annotators rated positively, but a larger share of the translations it does accept are positive. This tradeoff helps explain why a quality filter needs to be judged by more than a single score.

The tree-only classifiers also come close to the explicit-feature classifiers in several comparisons. There is an important exception: on a Europarl dataset with a large positive class, the tree-only classifiers fall back to accepting everything. The results support using a parser and a tree kernel as a low-effort starting point where suitable parsing tools are available. They also show why the two sources of information can be complementary. A source tree can reveal constructions associated with translation difficulty, and an output tree can reveal regularities in the translation, while explicit features can supply evidence about how the sentences align or how familiar they are to the translation system.

Deep dive: Improving Machine Translation Quality Prediction with Syntactic Tree Kernels

Syntactic tree kernels help predict which machine translations are worth post-editing, with tests on parliamentary text and TV subtitles. · about 35 minutes to read

The problem and its context

Screening the output of a translation system

The paper begins from a practical division of labour. A statistical translation system produces a draft, and a professional translator makes the changes needed to use it. For suitably chosen material and a system trained on relevant data, this can make production more economical. The paper cites earlier work on TV film subtitles in which, under favourable conditions, the system produced a translation close to a professional one for more than 30 % of the subtitles. The unit of work matters here. An episode can supply many helpful drafts while still containing individual captions that an editor would prefer to translate afresh.

Determining which kind of draft is in front of you is itself work. The editor must read the output, understand the intended meaning and judge whether the problems can be fixed quickly. A difficult draft can consume some of that effort before the editor decides to discard it. The proposed filter acts before that decision. It estimates whether a segment is likely to be worth presenting as a draft for post-editing, the process of revising a machine translation for use. Its value depends on which items it keeps as well as how many it keeps.

The task is called confidence prediction or quality estimation in the paper. The available evidence can include the original text, the translation and information from the system that produced it. The quality judgment concerns the output segment as a whole. It need not identify a troublesome word or offer a corrected translation. This gives the study a relatively focused question: can evidence available around a translation predict the group that human judges would assign it to?

The distinction between estimating quality and choosing a translation explains why the authors build a separate classifier. A statistical decoder assigns scores to alternative translations of a particular input so that it can select one. The resulting scores do useful work within that decision. Comparing the scores attached to outputs for different input sentences is another matter. The authors point out that these are conditional scores and that the decoder cannot carry out the full normalization needed for a properly normalized probability without making its search impractical. A winning candidate comes with evidence about its position among alternatives for that input, but the score alone supplies an inadequate basis for predicting its usefulness across inputs.

A separate classifier also widens the choice of evidence. In the paper’s setting, a phrase-based decoder builds and evaluates hypotheses in a left-to-right beam search, retaining promising partial candidates as it goes. Some features depend on seeing the complete sentence and are awkward to use in that procedure. A post-decoding component already has the complete source and target strings. It can parse them and ask whether their structures resemble structures seen in translations that were easy or difficult to edit. This arrangement leaves the translation search and the quality judgment as distinct operations with distinct objectives.

Where features and labels came from

Earlier work described in the paper drew signals from several places. Some features characterized the source, some characterized the translated text, and some represented the relationship between them. Information about the translation system’s training material provided another source of evidence. For instance, a sentence whose word sequences are well represented in that material may pose a different challenge from a sentence containing unfamiliar combinations. Implementing a broad feature inventory takes work because these clues require different resources and extraction procedures.

The way earlier experiments obtained labels also varied. Blatz and colleagues compared learning techniques and assembled features that later systems adopted. Their labels came from automatic translation evaluation scores based on NIST and WER. Examples in the top 5 or 30 percent by the relevant score were treated as good. That procedure gives the classifier a quality distinction drawn from an automatic measure. Quirk used a similar setup and also tried manual labels on a small collection, with 350 sentences for training and 150 for testing. The paper describes Soricut and Echihabi as using a comparable feature inventory. These experiments show two routes to supervision: derive categories from an evaluation measure, or ask people to judge the translations themselves.

Specia and colleagues provide a particularly close point of comparison. Their work used many of the established features and applied partial least squares regression to data with either human or automatic annotation. A regressor produces a numerical estimate. To turn this into an accept-or-reject decision, another study by the same group used Inductive Confidence Machines to choose a threshold for a desired precision. The closely related work on sentence-level quality sets out the estimation problem with a substantial stock of engineered predictors. Estimating the Sentence-Level Quality of Machine Translation Systems

The choice of an operating point has consequences even when the objective stays the same. Precision asks how often accepted drafts are actually positive. Recall asks how many of all positive drafts the filter manages to accept. Specia and colleagues argued that the priorities of professional post-editors could justify emphasising precision, since repeatedly encountering bad drafts is burdensome. Hardmeier questions how far that policy should go. A filter can protect editors from many bad translations and still make poor use of the translation system if it also discards most helpful drafts. The paper therefore studies the balance between precision and recall, while acknowledging that the preferred balance depends on the workflow.

How earlier work used syntax

There was already a precedent for comparing syntactic trees in translation research. Liu and Gildea investigated candidate evaluation against a human reference, using both a subset tree kernel and a structural metric inspired by the BLEU score. In their tree-kernel experiment, the kernel itself supplied a similarity score between the trees for the candidate and the reference. Their BLEU-inspired subtree measure was more successful for that evaluation setup. Hardmeier’s comparison has different operands and serves a different purpose. It uses similarities between examples with known quality labels to train a classifier, which can then score a new example with no reference. Syntactic Features for Evaluation of Machine Translation

Gamon and colleagues used syntactic information for a reference-free sentence task. Their classifier tried to distinguish human writing from machine translation. The rationale was that origin could serve as a proxy for quality. Hardmeier notes that Specia and colleagues challenged that premise. A system that consistently tells human and machine text apart might still have trouble distinguishing useful drafts from costly ones within the machine output. Gamon and colleagues represented syntax partly through binary features for the presence of particular grammatical productions, and also used some semantic information. Their work establishes a precedent for using grammatical patterns in a supervised classifier, with a different target label and a more explicit structural representation. Sentence-level MT evaluation without reference translations

Hardmeier’s study preserves much of Specia and colleagues’ experimental setup while changing the learner and the representation. It makes the accept-or-reject distinction the direct target of training and uses a support vector machine. The central feature question is whether a parser and a tree comparison can offer a useful range of structural clues with less manual design. Word reordering is a motivating example. It can depend on how phrases or words are organised, yet anticipating all the informative configurations and specifying them as individual features is difficult. The study gives the classifier access to many such configurations and lets the labels determine which similarities prove useful.

The method, step by step

From an editing judgment to a prediction

The starting point is a source segment and the translation produced for it. For training, the pair is accompanied by a human quality rating. Higher ratings describe drafts that are close to usable. Lower ratings describe drafts requiring substantial work or a new translation. The paper turns those grades into a binary target. Grades 3 and 4 are positive, and grades 1 and 2 are negative. Accordingly, an accepted draft may still require editing, and a rejected draft may still be quicker to edit than to translate afresh. The cutoff puts those cases on different sides according to the expected amount of work.

This target is what is learned from the examples. The authors do not ask the classifier to predict exactly how an editor would revise a subtitle. Nor do they substitute the decoder’s candidate score for a human label. The English sentence, the translation and any supplementary features are the inputs to prediction. The rating identifies the class that the training procedure should learn to distinguish. During testing, the withheld rating is used to evaluate the decision.

The approach can be understood as two ways of comparing examples. In one, a feature extractor records measurements that are chosen in advance, such as the length of a translation or the share of unfamiliar words in a sentence. In the other, a parser produces a grammatical tree and the kernel computes similarity from fragments of that tree. Some runs use one route and some use both. The distinction between these routes is about how the evidence is represented. Both use the same basic prediction task, and both can be evaluated by checking their decisions against the same positive and negative grades.

From labelled translations to a quality filter

The steps in order.

From labelled translations to a quality filterStep 1: Collect source segments and their machine translations1. Collect source segments and their machine translationsStep 2: Convert editing grades into positive and negative labels2. Convert editing grades into positive and negative labelsStep 3: Extract explicit measurements for the relevant runs3. Extract explicit measurements for the relevant runsStep 4: Parse the source and any target used4. Parse the source and any target usedStep 5: Compare examples with feature and tree kernels5. Compare examples with feature and tree kernelsStep 6: Train the support vector machine on labelled examples6. Train the support vector machine on labelled examplesStep 7: Classify held-out translations and compare with ratings7. Classify held-out translations and compare with ratings

What the explicit features measure

The explicit-feature baseline follows a subset of features used in the work by Specia and colleagues. Several measurements describe how familiar the text looks according to resources associated with the translation task. The authors use source and target language model scores and their logarithmic forms. They also use versions adjusted for sentence length. Length adjustment gives the classifier a score whose interpretation is less dominated by how much text has been scored, while retaining the unadjusted forms gives it access to the original measurements as well. Counts and percentages of out-of-vocabulary words offer a more direct indication of gaps in lexical coverage.

Another group looks at contiguous sequences of words. An n-gram is a sequence of a specified length. For source 1-, 2-, 3- and 4-grams, the extractor records the percentage occurring in the source part of the translation training corpus. It also records the percentages in each frequency quartile. These features distinguish coverage from frequency. A source phrase can occur in the corpus and still belong to the portion that is seen relatively rarely. They also distinguish the familiarity of individual words from that of longer combinations.

Where a measurement applies separately to the source and target, the authors compute both values and add a feature for their squared difference. This lets the classifier compare the sides without relying only on their separate magnitudes. For instance, two sentence properties can each be common across the data, while an unusually large disparity between their source and target values may be informative. Squaring makes the disparity insensitive to which side has the higher value. The individual measurements remain available and can express that direction where the classifier finds it useful.

The more extensive subtitle configuration adds general surface measurements. These include word counts, a length ratio and the type–token ratio, which describes the number of distinct forms in relation to the number of word occurrences. Other features count tokens with certain forms, among them numbers, categories of punctuation, brackets, quotes and hyphens. The paper also distinguishes short alphabetic tokens of at most 3 letters from long ones of at least 4 letters. These counts are rough clues. A punctuation count can describe the appearance of the text without resolving which words a phrase contains or what a mark does in a particular sentence.

Some added measurements address subtitle conventions directly. The feature extractor can count marks for a change of speaker or for continuation across captions. It also logs whether the translation’s alphabetic token count exceeds triple the source segment’s count. That indicator expresses a condition chosen by the authors. The classifier learns what to do with that condition from the labels, just as it does for the counts. This distinction is important when comparing explicit features to tree fragments. The designers specify which surface condition to expose, but they do not hand-code a rule that every occurrence should cause a rejection.

The full subtitle configuration also measures word alignment. In this context, an alignment records which words or groups of words the translation system relates across the two sides. The extra features include the proportion of unaligned words and proportions associated with different cardinalities, from matches between individual words through relations involving groups on both sides. This information comes from the decoder. It gives the system an indication of how the source and target correspond, which cannot be read directly from a grammatical tree for either sentence by itself. Europarl lacks the decoder alignments used for these features. The authors also judged parts of the extended inventory unsuitable for the genre and tokenization of those datasets. The reduced set is therefore the explicit feature representation shared by both genres, while the full set is tested on the subtitles.

Preparing the tree representations

Parsing assigns a grammatical structure to a sentence. The paper uses constituency and dependency structures. In a constituency tree, phrases group smaller phrases and words under labelled nodes. A node and its immediate children represent a production, the local rule for how a phrase expands. Dependency parsing represents the structure through relationships between words. A word can have several dependents, and their relation to the head is part of what the representation conveys. The same piece of text gives rise to different kinds of fragments in the two representations.

The English source sentences can be analysed either way. The authors use the Stanford parser for constituency structure with the resources that come with it. For Swedish and Spanish, they use dependency structure, a choice motivated by the availability of suitable parsing resources. MaltParser supplies the dependency analyses. Before dependency parsing, the words receive grammatical category labels by part-of-speech tagging. HunPOS tags English and Swedish, and SVMTool tags Spanish using resources from OPUS. The Stanford analysis follows the work of Klein and Manning, and the Spanish tagging tool is the one described by Giménez and Márquez. Accurate Unlexicalized Parsing · SVMTool

The distributed Europarl data are lower-case and already tokenized, meaning that they have been split into textual units for processing. The tagging and parsing pipeline restores mixed case with a Moses-based recaser trained on WMT 2008 training material. The restoration is a preprocessing step for the linguistic analysis. The classifier subsequently receives a tree associated with the sentence, and the experiment evaluates the quality predictions made from those representations. It does not assess how faithfully the recaser recovers the original capitalization of each item.

For constituency analysis, the parsed phrase tree can be passed directly to the corresponding tree kernel. The dependency analysis needs a conversion. Its information must fit a tree with a label at each node and unlabelled edges. The authors follow Johansson and Moschitti in representing words, part-of-speech tags and grammatical relations through sequences of child nodes. The effect is to put information that might otherwise be carried on a link into the labelled structure examined by the kernel. The paper illustrates the conversion with the dependency fragment for Nicole ’s dad. The example concerns how the possessive expression is represented for comparison, rather than a decision about the translation quality of that expression.

The output-side trees are produced with ordinary parsers trained on regular treebank data. Actual machine translations may contain incomplete or malformed constructions. The parser still returns an analysis, which can give the classifier useful evidence even if a linguist would analyse the string differently. A consistent parsing response to a recurring error could make examples containing that error resemble one another. The authors leave this possibility open and treat the parser as a black box. Their experiment asks whether the resulting representation helps predict quality, without requiring a separate verification of the parse for every translation.

How matching fragments become a kernel

A support vector machine, or SVM, learns a decision boundary from labelled examples. The paper uses a kernel-based SVM, which works with pairwise comparisons. For an ordinary feature vector, a natural comparison is the dot product. Corresponding feature values are multiplied and their contributions are added. A kernel lets the learner obtain a comparison of this kind even when the underlying features would be too numerous to enumerate conveniently. The expensive representation is implicit in the definition of the comparison.

For a tree kernel, the features are the possible fragments of the tree. Two examples receive credit for fragments found on both sides of a comparison. A feature can express a broad configuration that occurs in many sentences, or a more specific configuration whose labels identify a particular arrangement of words or tags. The choice of which fragments are allowed belongs to the kernel design. The training procedure then selects and weights support vectors, the training examples that enter the learned decision. Through those weighted examples, similarities in some parts of the fragment space can carry more weight for the prediction than others.

It helps to make the fragment accounting explicit. The paper uses an indicator for whether a fragment is rooted at a given node. In plain notation, its two possible values have the following meaning.

Iᵢ(n) = 1 if fᵢ occurs at n, and 0 otherwise

Here fᵢ denotes the fragment indexed by i, and n denotes a node in a tree. Iᵢ(n) is the indicator for that fragment rooted at that node. The equality assigns the value 1 when the fragment is found there and 0 when it is absent.

The count-based idea behind the comparison can be expressed by first summing the indicators for a tree.

cᵢ(T) = ∑ₙ∈T Iᵢ(n)

T denotes the tree, and cᵢ(T) is the count of places where fragment fᵢ occurs in it. ∑ₙ∈T adds the indicator over nodes n belonging to T, as indicated by ∈. The subscript i holds the fragment fixed while the root node varies.

In terms of those counts, the shared-fragment dot product has the following form.

K(T₁, T₂) = ∑ᵢ cᵢ(T₁) · cᵢ(T₂)

K is the similarity from the fragment-count comparison, and T₁ and T₂ are the trees being compared. The summation runs over fragment indices i. The multiplication sign · combines the occurrence counts for one fragment on the two sides. A fragment absent from one side contributes nothing to this sum. This expression describes the feature-space interpretation of counting common fragments. The implementation uses tree-kernel functions to compute similarities without constructing the full count vector. The allowed fragments depend on which of the paper’s kernel configurations is in use.

The main consequence is that fragments can be discovered through comparisons among examples. Suppose a particular source construction appears repeatedly in translations with low grades. Wherever the same constituent pattern recurs, it can contribute to the similarity of those examples. Other fragments can connect examples with high grades, or be common across the classes and contribute little to distinguishing them. The paper reports classification results for this overall procedure. It does not identify any particular construction whose presence is sufficient to make a draft poor.

Why the two kernels allow different fragments

For constituency trees, the experiments use the Subset Tree Kernel. Its fragments have more than one node. When a fragment expands a node to include one of its children, it must include that child’s siblings as well. Further down, the fragment can stop at a node rather than continue all the way to the words. This gives a set of patterns between isolated labels and complete parses. Where a production is expanded, its immediate structure is preserved. That fits constituency trees because expanding a phrase into its children is a grammatical unit in the representation.

Dependency trees are compared with the Partial Tree Kernel. This permits a fragment to include only some children of a node. The choice is useful because a head and its dependents do not form a constituency production with the same interpretation. A head can have extra dependents in one sentence while still participating in a relevant pattern found in another. The partial kernel lets that shared structure contribute even when the full groups of children differ. The paper’s illustration of subset and partial fragments shows how relaxing the all-siblings requirement changes what can be matched.

The relation between the two settings requires care. They differ in the grammar representation, the fragment rule and, in the combined feature experiments, which language sides are available. The constituency setup operates on the English source alone. The dependency setup makes source-only, target-only and two-sided comparisons possible. Using both sides here means obtaining structural information from each side. It does not mean that the kernel matches a source construction to its translated counterpart inside a single aligned tree.

The natural intuition is that the source can give evidence about the difficulty of translating the input and the target can give evidence about the structure of what was produced. These are possible reasons for the value of the comparison, not separate ratings the classifier is trained to produce. In a source-only run, a prediction can reflect the fact that a kind of input has often been difficult for the system. It cannot distinguish between different outputs for the same source using their grammatical properties. In a target-only run, the tree may represent a fluent-looking result whose relation to the intended message is poor. The two views give the decision procedure different evidence, and the explicit feature inventory can add information beyond either view.

Training and combining the representations

The experiments use SVMlight with tree-kernel extensions. The explicit features are compared with a polynomial kernel of degree 3. A polynomial kernel allows combinations of feature values to influence the similarity, so the explicit-feature baseline can already use interactions among its measurements. The study is consequently a comparison between ways of representing evidence within an SVM setup, with the explicit side receiving a richer comparison than an independent vote by each measurement.

When the authors use a polynomial kernel and a tree kernel together, they combine the two linearly and give them equal weights. The combined comparison can therefore reflect both a pair’s similarity in the hand-designed measurements and its similarity in grammatical structure. The equal weights govern how the kernel values enter the comparison. They are separate from the weights assigned to support vectors during training. A combined run does not train a separate quality rule for every syntactic fragment, nor does it choose between two finished classifications after the fact.

Each reported result comes from randomly dividing the complete dataset for that condition into a training portion of 80 % and a test portion of 20 %. The authors repeat the sub-sampling five times. In each run, the labelled training items determine the classifier, and the test labels are used to score its predictions. The reported precision, recall and F-score are means across the five runs. Averaging across these random divisions gives a view of performance less tied to a single draw of test items. It still measures the ability to classify held-out items within the same dataset and sampling scheme.

Experiments and results

The datasets and the decisions being scored

The public comparison data come from the development and test material for the WMT 2008 translation shared task. The collection described by the paper contains 4,000 randomly selected sentences translated from English into Spanish by four statistical translation systems. Professional translators rate each translated sentence. The lowest rating denotes a draft that has to be retranslated. The next indicates substantial editing that is still quicker than a fresh translation. Higher ratings cover drafts requiring little editing or ready for their intended use.

The reported Europarl comparisons concern systems 1, 2 and 3. System 4 is excluded from the result tables. On that dataset, 93.5 % of the examples belong to the negative class, and the authors find that a trained classifier nearly always rejects everything. This is a different failure mode from the accept-all behaviour encountered in some other runs. In both cases, a decision dominated by class frequency gives little evidence of useful discrimination, even if it can get many individual labels right.

The other dataset contains English-to-Swedish subtitles from 12 episodes of different TV series. A phrase-based system produced the translations, and professionals edited them to broadcasting quality and rated the original drafts. Of 4,442 segments, 1,363 came from 3 files with ratings by three independent post-editors, whose scores were averaged. The other 3,079 came from 9 files with one post-editor per item. The data were gathered in the setting that motivated the research and could not be made public. The authors used the Europarl data to provide a public comparison alongside the subtitle experiments.

The subtitle grades closely follow the Europarl scale, with emphasis on the speed of the editing decision. Grade 2 can apply when editing is quicker than starting over but the editor must think about whether the draft is usable. Grade 3 applies when the needed changes are quickly apparent. For the classifier, grade 3 is positive and grade 2 is negative. This places the boundary near a difference in anticipated effort, rather than merely separating translations that are salvageable from translations that are unusable. The same binary grouping is used for Europarl, even though the explanation given to its raters places slightly different emphasis on grade 3.

How to read precision, recall, F-score and accuracy

A positive prediction is a decision to accept a translation into the higher-quality group. Precision is the share of accepted translations whose human grade places them in that group. Recall is the share of the human-positive translations that are accepted. One describes what an editor can expect among the items retained by the filter, and the other describes how much of the available useful output the filter retains. Both are needed to interpret a screening decision.

The balanced F-score reported by the paper is F1. It combines precision and recall through their harmonic mean.

F₁ = 2 · P · R / (P + R)

F₁ is the balanced F-score, P is precision and R is recall on the same scale. The constant 2 gives the two quantities equal weight in the harmonic mean. The dots denote multiplication, / denotes division and + adds the two rates in the denominator. The paper averages the F-scores from individual runs, so the published mean F-score should be read as its own result alongside the separately averaged precision and recall.

Accuracy measures the proportion of correct decisions over both classes. The paper gives this measure in a separate comparison so that its Europarl results can be read alongside earlier published figures from Specia and colleagues. Accuracy counts a correctly rejected negative and a correctly accepted positive alike. That makes it useful for an overall comparison, while leaving open whether errors are mainly bad drafts getting through or good drafts being discarded. The tree-only variants are reported in the accuracy comparison, so their precision and recall cannot be recovered from those entries.

The paper calls its trivial comparison the majority-class baseline. In the reported datasets it accepts everything. This produces recall of 100.0 in the result tables, since every positive example gets through. Its precision is the prevalence of positive examples, and its accuracy is also determined by that prevalence. Its F-score can be substantial because recall is at its maximum. Beating this rule at F1 requires improving the quality of the accepted set enough to offset the good translations a learned filter rejects. The explicit-feature SVM is the other principal baseline. It asks whether trees improve a learned predictor that already has access to several conventional sources of evidence.

Europarl

The explicit-feature SVM exceeds the accept-all F-score for all three reported Europarl systems. For system 1, the respective F-scores are 83.5 and 83.0. This dataset has a positive-class baseline precision of 71.0, so accepting everything already captures many good drafts with considerable precision. The source constituency combination attains an F-score of 85.1, with precision of 80.2 and recall of 90.7. The explicit-feature system has precision of 73.2 and recall of 96.7. The structural information changes the balance by making the filter more selective. Source and target dependencies also improve the F-score over the explicit-feature setting, reaching 84.8, with precision of 78.0 and recall of 92.9.

System 2 starts from a different balance. The accept-all baseline has precision of 54.6 and an F-score of 70.6. The explicit features raise precision to 67.1 while maintaining recall of 82.7, giving an F-score of 74.0. The source constituency combination takes precision to 74.4 but brings recall to 73.3, and its F-score is 73.9. The dependency combination has precision of 74.1 and recall of 76.2. It gives the strongest F-score on this dataset, 75.1. The distinction matters because the constituency configuration attains the highest precision of these runs, while the dependency configuration retains enough additional positive items to lead on the balanced measure.

Europarl system 2 mean F-score by feature configuration

Source and target dependency trees give the strongest balance when combined with explicit features.

Europarl system 2 mean F-score by feature configurationAccept all: 70.6Accept all70.6Explicit features: 74.0Explicit features74.0Explicit features and source constituency: 73.9Explicit features and sourceconstituency73.9Explicit features and source and target dependencies (this paper): 75.1Explicit features and source and targetdependencies (this paper)75.1
The numbers
System or settingF1
Accept all70.6
Explicit features74.0
Explicit features and source constituency73.9
Explicit features and source and target dependencies (this paper)75.1

For system 3, the accept-all baseline yields precision of 51.8 and an F-score of 68.3. The explicit features produce precision of 74.5, recall of 66.7 and an F-score of 70.4. The benefit from adding syntax takes a different form here. With source constituency, precision is 73.6 and recall is 73.2, producing an F-score of 73.4. With source and target dependencies, precision is 73.8, recall is 74.0 and the F-score is 73.9. In both cases, the tree comparison helps recover good translations while keeping the precision of the accepted set near the level obtained by explicit features.

The separate accuracy comparison gives a consistent picture of the strongest settings within each Europarl dataset, while also allowing a comparison with the published results from Specia and colleagues. For system 1, the explicit feature set gives 72.6 accuracy, and the source constituency combination gives 77.8. The earlier best result listed by the paper is 76.8. For system 2, the dependency combination reaches 72.4, and the earlier figure is 66.0. For system 3, the dependency combination reaches 72.8, and the earlier figure is 69.8. These are comparisons at the level of reported accuracy. The differences involve learning procedures and feature inventories, so the internal comparisons with and without syntax provide the more direct evidence about the contribution of the tree kernels.

Subtitles

The subtitle results expose a weakness of the shared explicit feature set. The reduced inventory, which is the same one used for Europarl, gives an F-score of 57.7. The full subtitle feature set reaches 63.3. The accept-all rule reaches 66.8, so the full set recovers some of the loss but still trails that comparison on F1. Precision tells a different part of the story. The reduced set attains 72.3 precision on subtitle acceptance, while the full set attains 69.5. Recall is 48.1 with the reduced set and 58.3 with the full set. The fuller representation brings more useful drafts through the filter at the cost of a lower positive fraction among accepted drafts.

Adding tree kernels improves F1 for either choice of explicit features. The full set with source constituency reaches 66.8, matching the accept-all F-score. With both source and target dependencies, the full set reaches 68.8. The reduced feature set with source constituency gives 68.0, and the reduced set with source and target dependencies gives 67.9. The subtitle results therefore show that a grammatical comparison can do substantial work even when the explicit feature inventory comes from a setting where that inventory performs poorly by itself.

TV subtitle mean F-score by feature configuration

The strongest balance comes from the full explicit feature set with dependency trees on both sides.

TV subtitle mean F-score by feature configurationAccept all: 66.8Accept all66.8Reduced explicit features: 57.7Reduced explicit features57.7Full explicit features: 63.3Full explicit features63.3Reduced features and source constituency: 68.0Reduced features and source constituency68.0Reduced features and source and target dependencies: 67.9Reduced features and source and targetdependencies67.9Full features and source constituency: 66.8Full features and source constituency66.8Full features and source and target dependencies (this paper): 68.8Full features and source and targetdependencies (this paper)68.8
The numbers
System or settingF1
Accept all66.8
Reduced explicit features57.7
Full explicit features63.3
Reduced features and source constituency68.0
Reduced features and source and target dependencies67.9
Full features and source constituency66.8
Full features and source and target dependencies (this paper)68.8

The full-feature dependency combination has precision of 68.7 and recall of 68.8. The accept-all rule has precision of 50.2 and recall of 100.0. The same subtitle dataset thus supports two different accounts of what the filter does. Its accepted set is more heavily concentrated in drafts that annotators considered positive. It also discards some drafts the raters considered suitable for quick editing or immediate use. The balanced F-score favours the combined system here, but the utility of that decision would depend on the effort involved in the two types of mistake.

Accuracy supplies another view of the subtitle runs. The accept-all rule scores 50.2. The full explicit set reaches 66.4, and the reduced explicit set reaches 64.3. The source dependency tree alone scores 64.0, target dependency alone scores 62.6, and dependency trees from both sides score 65.0. The English constituency tree alone reaches 64.7. The highest reported accuracy is 68.3 for full explicit features with both dependency trees. In this dataset, therefore, several tree-only comparisons perform in the same general range as the engineered predictors, despite the difference in the work required to assemble the inputs.

TV subtitle accuracy for explicit features, tree kernels and their combination

Tree-only settings approach the explicit-feature classifier, while the combined dependency setting leads.

TV subtitle accuracy for explicit features, tree kernels and their combinationAccept all: 50.2Accept all50.2Full explicit features: 66.4Full explicit features66.4Source constituency only: 64.7Source constituency only64.7Source dependency only: 64.0Source dependency only64.0Target dependency only: 62.6Target dependency only62.6Source and target dependencies only: 65.0Source and target dependencies only65.0Full features and source and target dependencies (this paper): 68.3Full features and source and targetdependencies (this paper)68.3
The numbers
System or settingAccuracy %
Accept all50.2
Full explicit features66.4
Source constituency only64.7
Source dependency only64.0
Target dependency only62.6
Source and target dependencies only65.0
Full features and source and target dependencies (this paper)68.3

What the ablations show

Adding syntax to an existing predictor

The clearest controlled comparison holds the explicit feature set fixed and adds a tree kernel. Across the Europarl results, the configuration with the best F-score for each system uses both kinds of evidence. Adding either tree representation also helps both explicit feature sets in the subtitle experiments, when compared with their respective feature-only versions. This supports the claim that structure can provide information beyond the surface statistics and coverage measurements already present. The result is stronger than showing that a tree-only system can be trained, because the tree signal is still useful in the presence of a learned baseline with substantial input.

The individual cases also qualify the broad finding. The source constituency addition slightly lowers F-score relative to explicit features for Europarl system 2, even as it raises precision. On the subtitles, the full-feature constituency combination equals the accept-all F-score, while the dependency combination exceeds it. The evidence is therefore configuration-specific. The measurements support the importance of having structural features available, with the particular gain dependent on which kernel, language sides and explicit signals appear together.

The changes in precision and recall further suggest that the structural data do not serve a single role across datasets. For Europarl system 1, adding syntax makes the classifier more selective and improves precision while giving up some recall. On system 3, it recovers recall with a small reduction in precision. On the subtitles, adding dependencies to the full explicit set increases recall and slightly lowers precision. A single verbal explanation such as “syntax filters out ungrammatical drafts” would fit only part of this behaviour. The classifier can use any recurring correlations in the represented fragments, including source structures that a particular translation system handles relatively well.

Removing the explicit feature inventory

The tree-only runs ask how much of the predictive ability survives when the manually specified measurements are removed. For Europarl system 2, the explicit baseline gives 68.7 accuracy. The best dependency-only result there uses the source side and gives 67.6. For system 3, explicit features reach 70.3, and the two-sided dependency setting reaches 67.8. On the subtitles, two-sided dependency trees give 65.0, against 66.4 for the full explicit features. These results make the paper’s engineering argument concrete. A parser and a kernel supply almost as much accuracy as the more involved feature pipeline in these comparisons, while also providing a route to improvements when the representations are combined.

Europarl system 1 is essential to that interpretation. Its tree-only classifiers settle on accepting every item. The paper omits those accuracy entries because small variations from the accept-all baseline come from sub-sampling. The useful comparison on this dataset is consequently between the explicit baseline and the combined configurations. Their results show that trees can contribute in combination even when the trees alone do not induce useful separation. The ablation distinguishes the incremental value of a representation from its adequacy as the only source of evidence.

The tree-only comparison also puts a boundary around the claim of easier setup. The authors can dispense with designing and extracting the conventional features in these runs, while depending on the availability of a well-formed tree representation and the associated tagging or parsing components. In English constituency, the parser output is already in a usable form. For dependency parsing, the extra conversion puts the needed information into nodes and child sequences. The claimed saving is about designing a new quality predictor once that infrastructure is available. The classification tables measure predictive performance instead of engineering labour.

Moving between source and target trees

The dependency runs isolate whether the grammatical evidence comes from the original or the translation. In the tree-only Europarl experiments for system 2, source-only accuracy is 67.6 and target-only accuracy is 65.5. Using both sides gives 66.4. The source-only view leads among the dependency runs in that dataset. In system 3, the source-only setting gives 66.6 and the target-only setting gives 65.2. Combining the sides reaches 67.8. On the subtitles, source-only gives 64.0, target-only gives 62.6, and both give 65.0. Across these reported comparisons the source is consistently the stronger individual side, and whether the target improves on it varies.

The source-side result is informative because it separates estimating the difficulty of an input from inspecting the structure of a potentially malformed output. Useful prediction is possible without feeding the translation through a parser. A source construction may be associated with low quality because of what it demands of the translator. This is a plausible interpretation of why source-side syntax helps. The experiments do not trace individual errors back to specific source constructions or establish that source difficulty is the only signal involved.

In practice the constituency configurations are interesting for the same reason. They reach useful performance with English parses only. The comparisons do not establish that the Subset Tree Kernel is inherently superior to the Partial Tree Kernel, or the reverse. There is no single contrast in which the grammar representation changes while the kernel’s fragment rule and the input sides are both held fixed. The measured result is about the tested packages. Source constituency can be competitive with a setup that needs target parsing, and the two-sided dependency setup often achieves the best result.

The paired results also illuminate what the paper means by combining the sides. A source-and-target dependency score can benefit from evidence that each tree contributes separately. It need not decide that a particular source dependent appears in the right place in the target, or even that it has a counterpart. A move from source-only to two-sided accuracy therefore tests the incremental value of viewing the translated structure. It does not test whether the method can detect a translation error through a direct structural comparison across languages.

Expanding the subtitle feature set

The full-versus-reduced comparison asks whether features tailored to available subtitle information change the outcome. With no syntax, the extra features improve balanced F-score even though precision falls. The additional measurements seem to make the classifier less restrictive, and the recall improvement is large enough to dominate on F1. With syntax, the value of the extra feature bundle depends on the tree configuration. The full set and dependency combination leads on subtitle F1 and accuracy. With source constituency, the reduced set gives the higher F-score, although the full set gives the higher accuracy. The feature bundle therefore changes which mistakes the classifier makes and interacts with the method used to measure performance.

The authors suggest several reasons why the reduced inventory transfers poorly from Europarl to the subtitle data. Captions are typically shorter and frequently reproduce casual speech, with relatively simple syntax. Counts of punctuation and related proxies for complexity can have less variation to work with. Subtitle vocabulary coverage is generally good. When unfamiliar items occur, they are frequently names for which copying the form is a successful translation, so a coverage feature can be less diagnostic than it would be in another dataset. These observations explain why clues useful for one genre need not have the same meaning in another.

The subtitle system also has a known problem with occasionally dropping content words. The authors suggest that the additional features might partly help identify affected cases. The experiment changes the whole extra bundle together. It therefore cannot say whether alignments, length measurements, subtitle conventions or another group contributes most to the change. Nor does the paper report a separate evaluation for examples with dropped content. The proposed explanation is consistent with the availability of cross-side signals, but the result demonstrated by the ablation is the effect of adding the bundle.

Limitations

Limits the authors identify

The human judgments are an important source of uncertainty. On the subtitle material rated by three people, ordinal Krippendorff’s α is 0.495 for the original 4-class judgments and 0.319 after collapsing the grades into the categories used by the classifier. Krippendorff’s α measures agreement with a correction for the agreement that could arise by chance. The drop matters because the binary task places its boundary at a practical distinction on which raters can disagree. Someone who sees the needed change immediately and someone who first has to work out whether the draft is usable can judge the same output differently.

The authors report substantial variation among subtitle files. They suggest that the episodes differ in genre and in the kinds of challenge they present to the translation system, and that the composition of the rating group also varies. The study does not isolate these causes. Most subtitle segments have a rating from a single person, so the agreement calculation applies to the multiply rated portion. The classification numbers measure correspondence to the available annotation. They cannot turn an uncertain editorial judgment into a uniquely correct category.

The availability of datasets another limit. The subtitle material was collected for the project that motivated the quality filter and cannot be released publicly. Europarl makes it possible to examine the approach using publicly available labelled material, but the genre, target language, annotation details and feature availability differ. Reproducing the Europarl condition would address the result for that setting. It would leave the strongest subtitle result and the hypotheses about the subtitle system’s particular error patterns as separate matters.

The authors also acknowledge that they cannot determine how accurately ordinary parsers analyse many malformed translations or how parse degradation affects prediction. The tree kernel may make use of consistent parser errors, and an effective quality classifier can therefore result even if some trees are poor analyses of the intended sentence. This places a limit on what the classification gains establish about grammar. They show that a structural representation computed by the pipeline carries predictive information. They do not establish that this representation correctly captures the grammatical cause of each translation failure.

The grammatical comparisons also omit relations the authors consider important. Each tree describes a source or a target segment in isolation. The kernels have no direct representation of how the two sentences correspond, or how either relates to the translation training corpus. Explicit features can supply some of that information, through measures such as alignments and source sequence coverage. The authors suggest that a more advanced tree kernel might represent the relationship between source and translation directly. The result of doing so remains an open question in this paper.

Limits of the experimental design

The grade cutoff fixes a particular definition of success. A grade 2 subtitle, for which it can still be faster to edit than to translate afresh, is treated as negative. Changing the cutoff could change how difficult the classification task is and how useful a prediction would be. The experiments establish what happens for the paper’s chosen division of the scale. They do not show what happens if an organisation keeps all drafts expected to save any time, or if it wants to identify only the drafts ready for use immediately.

The protocol evaluates random held-out segments from each available condition. It does not report a split that reserves entire episodes, unseen translation systems or unseen language pairs for testing. For subtitles in particular, a random segment split can train and test on captions drawn from the same pool of episodes. A classifier can perform well under that protocol without having demonstrated the same behaviour for a new programme. Likewise, the Europarl experiments with several systems show that the method can be applied to different outputs, but they do not demonstrate that a classifier trained on the output of one system transfers to another.

The paper reports means over the random splits. The result tables give no corresponding measures of variation or statistical tests for the comparisons. This matters most when interpreting close scores, such as the Europarl system 2 F-scores of 74.0 with explicit features and 73.9 with added source constituency. The ordering can be described as reported. The tables offer insufficient evidence to identify such a small separation as a stable difference, or to conclude that the adjacent settings are equivalent. The absence of tree-only precision and recall also limits what the accuracy comparison can reveal about their possible use as filters.

The selective reporting of class-imbalanced cases narrows the conclusions further. Europarl system 4, where the negative class dominates, produces classifiers that tend to reject all inputs. For system 1, tree-only classifiers tend to accept all inputs. Those observations demonstrate that both directions of trivial behaviour are possible. The paper does not evaluate methods for making the classifiers discriminate better under those class distributions. Its results for the other runs should therefore be read as conditional on the available labels and dataset composition.

A related question is whether gains under the binary metrics produce savings for professional editors. A false acceptance makes an editor consider a draft that may need substantial repair. A false rejection withholds a potentially helpful draft. Precision, recall and F1 record the pattern of these decisions, but they do not assign measured time costs to them. The study does not compare translator productivity with and without the filter, and the annotations supply judgments of expected effort instead of a separate accounting of the time saved through deployment. The best configuration by F1 is the best observed balance on that measure. Its operating value for a real workflow remains contingent on the cost of the errors.

Finally, the genre and feature contrasts are intertwined. Europarl uses English and Spanish, while the subtitles use English and Swedish. The extended surface and alignment bundle is available only for the subtitles, and the outputs come from different translation settings. The paper gives plausible explanations for why specific measurements work differently across the datasets. The design cannot attribute the difference to genre alone. It also cannot settle whether a different target parser or a constituency parser on the target side would change the ordering. The results are most directly evidence about the concrete representations tested and about the possibility that syntax adds value to conventional quality signals.

What came after

Hardmeier returned to the same research question in Tree Kernels for Machine Translation Quality Estimation. The 2012 work directly follows the earlier paper’s pairing of tree kernels and translation quality estimation. Its title identifies the same line of inquiry: using grammatical tree comparisons as evidence about the quality of machine-produced text. The citation establishes continuity with the earlier study. The details of which kernel configurations or datasets the follow-up used, and whether it addressed the earlier paper’s proposed cross-language tree comparison, are unspecified here.

The Findings of the 2012 Workshop on Statistical Machine Translation also cites the paper. Here the connection is to a workshop account of statistical machine translation, as distinct from a follow-up specifically devoted to tree kernels. The citation places the earlier work in that broader research setting. It provides no basis for attributing to the workshop a particular implementation, result or adoption of the tree-kernel classifier as a baseline.

Cite

Cite as Christian Hardmeier. 2011. Improving Machine Translation Quality Prediction with Syntactic Tree Kernels. Proceedings of the 15th Annual Conference of the European Association for Machine Translation.

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

@inproceedings{christian2011improving,
  title = {{Improving Machine Translation Quality Prediction with Syntactic Tree Kernels}},
  author = {Christian Hardmeier},
  booktitle = {Proceedings of the 15th Annual Conference of the European Association for Machine Translation},
  year = {2011},
  url = {https://aclanthology.org/2011.eamt-1.32/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/hardmeier-2011-improving-machine-translation-quality-prediction/