Agreement Constraints for Statistical Machine Translation into German
Paper · 2011 · Philip Williams and Philipp Koehn
Summary
A translation system can find a plausible German noun and a plausible German adjective and still produce a phrase in which their endings disagree. This can happen when the system assembles a sentence from pieces learned in different contexts. Word sequence statistics help when the resulting combination resembles something in the training data. A grammatical constraint can also evaluate a combination the system has rarely or never seen. The paper asks whether that additional check improves statistical machine translation.
The authors start with a system that translates an English string into a German tree and reads the German words from that tree. They give each German word form the grammatical analyses that a morphological analyser finds for it. They then use patterns in parsed training sentences to identify which parts of a translation rule should share properties such as gender, number and case. When the decoder combines pieces, it checks whether their analyses can be made consistent. It handles agreement within noun phrases and prepositional phrases, covers some subject–verb relations, and separately scores how likely a noun phrase’s case is for its grammatical function. These checks draw on the information carried by German inflection, a part of morphology.
The authors compare a baseline with versions that apply hard and soft constraints. A hard constraint removes a candidate when its pieces cannot agree. A soft constraint permits the candidate to remain in the search and adds a penalty. On the short-sentence subsets, the soft system scores 15.67 on newstest2009-20, 15.98 on newstest2010-20 and 13.11 on newstest2011-20. The corresponding baseline scores are 15.34, 15.65 and 12.90. The hard system improves on the baseline on the first two subsets and falls slightly below it on the last. Translation quality is measured against a single reference using case-sensitive BLEU-4, a version of the BLEU score.
The gains are small, and they favor treating the extracted constraints as preferences. Applying the checks after decoding reveals that agreement conflicts are common enough to affect a substantial share of baseline sentences. The search experiments also show why finding a conflict and fixing a translation are different problems. The heuristic may have linked pieces that do not need to agree, or the search may lack a satisfactory alternative when it rejects a candidate. Allowing a conflict at a cost gives the system some room to handle either situation.
Deep dive: Agreement Constraints for Statistical Machine Translation into German
Williams and Koehn test whether checking German agreement during translation search improves the output of an English-to-German system. · about 36 minutes to read
The problem and its context
Why a plausible word can make an implausible phrase
An inflected word carries grammatical information in its form. In German, determiners and adjectives take forms that depend on the nouns they modify. The words can express properties that have to be compatible across a phrase even when each word, taken individually, is a good translation. A decoder that has learned useful translations for separate English spans can therefore have all the lexical pieces it needs and still combine them badly. The question is how to recognize the bad combination while choosing the German sentence.
Gender, number and case illustrate several different sources of evidence. A noun contributes information about its gender. The singular or plural forms of participating words help express number. Case can reflect the noun phrase’s role in the clause, with the nominative usually indicating the subject, or it can depend on a preposition. The German form at any particular position may fit several interpretations. Agreement is consequently a question about whether the words admit a common interpretation in the structure where they appear.
A score for consecutive words can reward familiar inflections. Its evidence becomes less direct when words involved in an agreement relation are separated, or when an otherwise sensible collection of words is rare in the data. A constraint can check the properties that matter across the pieces that the tree places in a relation. It can use, for example, the gender associated with a noun to evaluate an adjective even when those particular words offer little evidence as a sequence. This is the motivation for augmenting a sequence score based on an n-gram.
The choice of when to check matters as well. The decoder has to consider partial translations before it can produce a sentence. If the incompatibility is already apparent when a phrase is built, the decoder can lower its rank or set it aside immediately. Doing so changes which larger translations it will have available to explore. The authors therefore treat agreement as both a way to assess a translation and a possible aid to search. Those benefits depend on the quality of the checks and on the decoder’s ability to reach good alternatives.
Earlier approaches to inflection
The paper situates the work in a field that had concentrated heavily on translation into English. It describes inflection as a difficulty on either side of a translation system, with different remedies for the source and the target. On the source side, several earlier approaches grouped variants whose differences were redundant for translation. A conventional system could then translate the grouped representation after input preprocessing. The paper cites this line of work through studies including Improving Statistical MT through Morphological Analysis.
The target side poses another problem. Before delivering a German sentence, the system has to commit to the actual forms its reader will see. One earlier approach discussed by the authors first creates output without inflection and then generates the forms in a separate step. The paper describes its application to translation from English into Arabic and Russian. The generation stage decides how to inflect words after the earlier stage has produced their uninflected counterparts. Applying Morphology Generation Models to Machine Translation
Other work brought linguistic information into ordinary statistical translation. A factored representation could give a word several components, including its written form, part of speech or morphological properties. These components could accompany the written form or stand in for it during search. The paper also describes a study that decomposed words into morphemes and used that representation through training, tuning and testing. Both precedents make information below or alongside the full word available while the system learns or translates. Factored Translation Models
Transfer-based work provided a precedent for representing relationships among feature values. The paper describes systems with rich feature structures and attributes limits on their coverage to the non-stochastic parsers they relied on. It also discusses Stat-XFER, which could use rules acquired in different ways. One manually developed Hebrew-to-English grammar had some constraints linking agreement features. Another application used a large grammar acquired automatically and omitted feature constraints. Together these examples show the two ingredients the authors wanted to bring together in their own system. The rules would come from data, and some of the conditions on their use would be written as identities between grammatical properties.
Why build a German tree?
The paper’s design keeps the German forms that the translation rules propose and evaluates the features associated with them. A syntactic tree gives the decoder places to put the features while it assembles a candidate. A complete subtree can carry information about an agreement relation onward to a rule that uses the whole subtree. An adjective or noun can therefore contribute to an agreement check even when a higher rule sees it through a constituent rather than as an individual word.
The translation grammar has a separate job. It describes how English spans correspond to German words and constituents and how those correspondences can be nested. The paper takes its extraction procedure from Hierarchical Phrase-Based Translation and its use of German constituent labels from work such as Syntax Augmented Machine Translation via Chart Parsing. The tree puts linguistic labels on the slots used to build a candidate. The added constraints let those slots exchange information that a label alone would leave unspecified.
A noun-phrase label, for example, makes it possible to ask for a phrase where a rule expects one. It cannot by itself tell an adjoining word which gender or case that particular candidate has. Creating a separate constituent label for every collection of properties would be a different way of organizing the grammar. The authors attach feature structures to translation hypotheses so that a rule can name the property that needs to be shared and the decoder can determine its value from the pieces currently available. This places the checks in the construction of the German tree, an application of syntax and grammar.
The method, step by step
From a compatible word to a compatible constituent
Consider the article die and the noun Katze. Each can be represented by grammatical analyses, and an analysis can have several properties at once. The paper illustrates a reading of die with feminine gender, singular number and accusative case. It also gives this reading a weak declension value. An analysis of Katze has values for gender, number and case. When the relevant values are compatible, the article and the noun contribute to a shared description. If a rule places an adjective phrase between them, its agreement information has to fit that description too.
This is a useful starting point because agreement is often taught as a relation between words, whereas the decoder needs to check it between pieces of many sizes. A rule can directly mention die and Katze and leave a slot for the adjective phrase. The phrase placed in that slot may have been built by another rule. Once the smaller phrase has been evaluated, the agreement information available at its root gives the larger rule what it needs. The larger rule can use that information without examining every word inside the phrase again.
There are two kinds of evidence in this procedure. The lexical analyses say what grammatical readings a written form can have. The constraints say which parts of a tree have to share aspects of those readings. Keeping the two apart lets a word retain its alternative interpretations until its context supplies enough information to narrow them down. A single word form can have several analyses, while a relation may be satisfied by only some combinations of those analyses.
Training establishes the German tree fragments, their English counterparts and the constraints that can accompany them. Decoding applies those rules to a new English sentence. The input to each constraint check comes in part from the lexicon and partly from constituents that the decoder has already built. The checked constituent can then pass its own feature information to the next rule. The process eventually compares candidates for the full sentence using translation scores, a German sequence score and the constraint-related scores.
Learning and applying German agreement constraints
The steps in order.
Learning rules from aligned sentences
The translation rules come from a parallel corpus, a set of English sentences paired with German sentences. The German side is parsed to identify constituents and to label them. The sentences are also aligned at word level to establish correspondences used in extraction. The decoder will later work from English strings, while the German parses supply the structural information needed to learn how to build the output. This gives parsing and word alignment distinct roles in the training procedure.
The rules form a synchronous context-free grammar. A context-free rule expands a category into words, categories or a mixture of the two. A synchronous rule couples an English expansion with a German expansion and specifies which open slots correspond. A slot is called a nonterminal because another rule can expand it. A terminal is a word in the rule itself. The linking of slots tells the decoder how a translation found for an English span can fill part of a German tree. The underlying type of grammar is a context-free grammar.
The authors use the generic label X for source nonterminals. The German side distinguishes part-of-speech and constituent categories taken from the training parse. A German span is eligible for the extraction procedure when a parse constituent covers it. The system therefore learns a translation to a tree fragment whose root is licensed by the parse. It uses the ordinary target categories in this setup. At the smaller end of the tree, the labels for individual words connect the grammar to part-of-speech tagging.
The hierarchy comes from allowing a smaller phrase correspondence to be replaced by a linked pair of slots within a larger rule. In the example with Katze, the source pattern has the and cat around an open slot. The German pattern puts an adjective phrase between die and Katze. The slot’s index connects the English material occupying that position to the German adjective phrase. The source category gives little information about that material. The German category says what sort of subtree can be placed there, and its agreement features say which actual candidates will fit the surrounding words.
Requiring a target constituent narrows the extracted grammar. The authors also argue that German syntactic labels help reduce ambiguity among derivations that would otherwise be difficult to distinguish structurally. On that basis, they relax several of the filters used in the hierarchical approach. The source side may contain up to seven elements, counting both words and slots. They discard rules whose scope, a measure used to limit rule search, is greater than three. The procedure also allows adjacent source slots and permits a single-word lexical phrase to be replaced by a slot during extraction. These choices give the grammar flexibility within the requirement that the German span align with a constituent.
Rule extraction thus determines the kinds of German fragments that the decoder can combine. It also determines where the agreement conditions can be attached. An extracted rule does not need to contain a complete sentence or even all the words of a phrase. It needs to expose the pieces that take part in a relation and provide a way for the relevant information to reach the parent when the phrase is used in a larger construction.
Representing the readings of a German form
A feature structure is a collection of named properties and their values. The paper distinguishes atomic values from structures that can contain other structures. An atomic value such as fem, sg or acc is treated as an indivisible item. A complex structure can contain a field for part of speech and a field for agreement, with the agreement field in turn containing gender, number or case. A missing property leaves that part of the description open.
A nested property can be located through a path. In the paper’s notation, moving through AGR and then GENDER reaches the gender value of the agreement structure. A constraint can refer to a full agreement record or to a specific path inside a record. These paths make it possible to express a check at the appropriate level. A rule can ask two pieces to share a bundle of agreement information, while another can require a constant value in a part-of-speech field.
The implementation represents a complex structure as a rooted, labelled, directed acyclic graph. Following an edge bearing a feature name leads to the feature’s value. A graph can also represent several references to the same value. When parts of a derivation share an agreement record, the record contains the information contributed by the participating pieces. This matters because a later step may use the same agreement relation via a different element of the rule.
Unification is the operation that makes those descriptions consistent. It tries to construct the smallest description that includes the information in both inputs. If one input specifies a feature and the other leaves it open, that value can be carried into the result. If both specify the same value, they are compatible. When both specify conflicting atomic values for the same feature, the attempted combination fails. This is a check on the compatibility of the information in the two structures.
For the illustrated analyses of die and Katze, the gender, number and case values match. The unified agreement record can also contain the weak declension value contributed by the article. The noun’s structure leaves that property unspecified, so including it creates no conflict. The determiner and the noun retain separate parts of speech even though they now share the same agreement information. The rule has linked their agreement fields, leaving the rest of each lexical description available in its own structure.
The paper uses destructive graph-based unification. In the implementation, unifying compatible graph structures makes them share values. This gives the paper’s index notation a practical interpretation. A repeated index denotes a shared structure that several elements reach, rather than separately printed copies of the same values. A condition evaluated elsewhere in the rule can then refer to information that the earlier merging step made available.
The lexicon maps each written word to the set of analyses supplied for it. In the experiment, the authors run Morphisto on the training vocabulary and extract the features from its analyses. The formalism allows a word to be associated with zero or more complex structures. When a word has more than one reading, the decoder can try those readings in combination with the possibilities offered by the other elements. The relevant question is whether at least one joint assignment satisfies the conditions.
Attaching agreement to a translation rule
A target-side constraint has the form of an identity. It can identify values on two rule elements, identify the value on one element with a constant, or associate the value on an element with a random variable for which there is a probability function. The first kind can require two pieces of a phrase to share agreement properties. The second can select the analysis with the part of speech required at a position. The third gives the decoder a score associated with the resulting grammatical value.
In the rule for die and Katze, the agreement identities make the adjective phrase fit the lexical items around it. Additional identities identify the appropriate parts of speech among the lexical readings. A probabilistic condition scores the case that follows from the compatible analyses. Thus the rule can express both a structural requirement and a preference among grammatically possible readings. The former governs how elements share information. The latter gives some readings more support in the overall sentence score.
The constraints are learned with the help of parsed German sentences. The authors start with agreement within base noun phrases and prepositional phrases. A small collection of manually developed patterns specifies which parent and child labels license the sharing of agreement information. In each tree, the procedure starts low down, at the categories immediately above the words, and moves upward. When a child and its parent match a propagation pattern, the two are grouped into an agreement relation. Relations with a common parent are merged, and the grouping is extended to include the words themselves.
This procedure is a way of using syntax to decide which morphological comparisons are worth making. If a determiner and a noun contribute to the same relation, the agreement values of their analyses can be checked together. When a preposition is involved, its lexical readings supply information about the cases it can govern. The procedure can also relate a phrase boundary to the words contained in that phrase. When a later rule sees the phrase as one piece, the information propagated through its root can still take part in a check.
The grouping patterns are broad enough to propose some spurious relations. The authors use two safeguards. They remove relations whose labels match patterns found to be problematic during error analysis, such as a relation containing multiple NN nodes. They also attempt to unify the agreement information from the words associated with a proposed relation. If the corpus example itself has no compatible analyses for those words, they exclude the relation. This screen helps prevent the grammar from inheriting some constraints that the training sentence gives reason to doubt.
The result is a training tree annotated with proposed, filtered agreement relations. During rule extraction, a condition is emitted when target elements used by the rule belong to a common annotated relation. The conditions are collected into sets by relation. This grouping later determines what the soft penalty counts. A failure belongs to a constraint set that represents a relation; several identities may have been involved in evaluating that set. The decoder can also produce feature information for the root, where the next rule can access it.
For subject–verb agreement, the paper adds another set of propagation patterns. Here the grammatical function labels are particularly important. BitPar, trained on the TIGER treebank, attaches these labels to constituents, allowing the extraction procedure to identify a subject. Other propagation patterns ignore these function suffixes. The result is limited subject–verb coverage within the same general mechanism used for phrases. The parser provides the grammatical roles, while the morphological information needed for the checks originates in the lexicon. Treebanks
Estimating a preference for noun-phrase case
Compatible forms can leave case ambiguous. An adjective and noun may have readings in common for more than one case, even after the combined phrase has been checked. The authors draw additional evidence from the grammatical function of the noun phrase. They count case and label together by evaluating the agreement relations in training trees. Only instances with an unambiguous case enter the counts. The resulting frequencies give the score associated with a case for a particular label.
The training data contain 23 distinct noun-phrase labels. The paper reports many observations for most of them and uses the observed conditional frequencies without smoothing. The distribution for SB, the subject label, puts 99.0 percent of its counted instances in the nominative. The distribution for OA puts 91.5 percent in the accusative, and the distribution for DA puts 96.5 percent in the dative. These are training-data frequencies for the case estimation procedure. They show why a syntactic function can contribute useful evidence about case.
Some labels have much less concentrated distributions. Among the counted instances for CJ, the dative frequency is 46.4 percent and the genitive frequency is 32.4 percent. The corresponding nominative and accusative frequencies are 10.9 and 10.3 percent. A case preference can therefore reflect the extent of the evidence for a particular function. A label with a dispersed distribution gives the decoder a different kind of signal from one whose counted examples overwhelmingly support a particular case.
This score serves a different purpose from the identity check. An identity tells the decoder that the pieces in an agreement relation must support compatible values. The case score tells it how well a resulting value fits the noun phrase’s function in the training data. If several case values remain possible for a scored instance, the decoder uses the highest of their probabilities. Both the hard and soft systems use this preference, so their difference concerns what happens when a constraint set fails.
Scoring the German tree
The task is to choose a German tree for an English sentence. The words of the translation are the tree’s yield, meaning the words read in their output order. The search compares alternative trees because each can carry a different derivation and feature state, even when the feature being scored, such as local word sequence fluency, is calculated on the yield. The paper expresses the objective as follows.
t̂ = arg maxₜ p(t ∣ s)
Here s is the source string, t is a proposed target tree and t̂ is the tree selected by the objective. The function p gives the conditional probability of the candidate tree, and ∣ is read as “given.” The operator arg maxₜ returns a tree attaining the largest value as t varies. The equality relates the selected tree to this maximization.
The tree is scored with a weighted combination of features. Some are about the German words and some are about the translation rules or well-formedness of the tree. In normalized log-linear form, the weighted sum supplies the exponent.
p(t ∣ s) = (1/Z) exp(Σᵢ₌₁ⁿ λᵢ hᵢ(s, t))
Here p(t ∣ s) is the conditional probability of target tree t given source string s. The constant Z normalizes the scores for that source, and 1/Z is its reciprocal. The function exp takes the exponential of the value in parentheses. The summation sign Σ adds the feature contributions indexed by i, from 1, the first feature, to n, the total number of features. The function hᵢ is the feature evaluated on s and t, and λᵢ is its weight. The product of that weight and feature value is the contribution of the feature inside the sum.
The feature for German word sequence probability evaluates the yield. Another feature counts the words in it. Several other features score the synchronous rules used to build the tree. The following notation describes the basic translation probability in the direction from the German right-hand side towards the English right-hand side.
p(RHSₛ ∣ RHSₜ, LHS)
Here p is a probability and ∣ introduces the conditioning information. RHSₛ denotes the source sequence on the right-hand side of the rule, while RHSₜ denotes the target material on the right-hand side. LHS is the rule’s left-hand side. The comma indicates that both RHSₜ and LHS are supplied as conditions. The paper calls this the noisy-channel translation probability.
The direct translation probability uses the English side to score the German side.
p(RHSₜ ∣ RHSₛ, LHS)
Here p assigns a probability to the target right-hand side RHSₜ. The bar ∣ introduces the source right-hand side RHSₛ and the rule’s left-hand side LHS as conditions, with the comma separating them. In the paper’s description, the direct probability is further conditioned on the root label of the target fragment. That root label gives the scorer information about the category of the German fragment it is evaluating.
Lexical weights provide word-level evidence in both directions. The direct lexical weight is written as follows.
pₗₑₓ(RHSₜ ∣ RHSₛ)
The subscript lex distinguishes this lexical weight from the rule translation probability. The expression scores the target right-hand side RHSₜ given the source right-hand side RHSₛ, with ∣ marking the conditioning direction. The corresponding weight in the other direction reverses the two sides.
pₗₑₓ(RHSₛ ∣ RHSₜ)
Here pₗₑₓ is the indirect lexical weight, RHSₛ is the source right-hand side and RHSₜ is the target right-hand side. The bar ∣ means that the target side supplies the conditioning information. The use of lexical weights follows Statistical Phrase-Based Translation.
The grammar also gives each target fragment a monolingual structural score. The probabilities are fitted from the parses on the German side of the parallel data. A fragment consists of smaller context-free rules, and its structural probability is formed by multiplying their probabilities.
pₚ꜀ꜰɢ(FRAGₜ) = ∏ᵢ₌₁ⁿ p(rᵢ)
The function pₚ꜀ꜰɢ is the probability under the probabilistic context-free grammar. Its input FRAGₜ denotes the target tree fragment. The product sign ∏ multiplies the probabilities p(rᵢ) of the component rules. Each rᵢ is one context-free rule in the fragment, i indexes the rules, 1 is the starting index and n is the number of component rules for this product. Lexical rules receive probability 1, so their factors leave the product unchanged. The feature is intended to favor syntactically plausible derivations and is related to the grammar score used in SPMT.
A separate feature supplies a constant factor for each rule application.
exp(1)
Here exp is the exponential function and 1 is the constant used for a rule. The weighting of this rule-penalty feature determines its effect on the score of the whole derivation. The translation probabilities, lexical weights and structural probabilities can distinguish rules by their content. This feature lets the score also reflect how many rule applications the derivation uses.
The soft constraint system adds a feature for failed agreement checks.
exp(f)
In this expression exp is the exponential function and f is the number of constraint sets that fail in the derivation. When unification fails within such a set, the count increases and the evaluation produces an empty feature structure so the candidate can continue through decoding. This feature enters with a tuned weight and functions as a penalty. In the hard system a failing candidate instead leaves the search.
The other added feature collects the case probabilities of the derivation.
∏ₙ p꜀ₐₛₑ(cₙ)
The product sign ∏ multiplies over the scored case instances, indexed by n. The function p꜀ₐₛₑ gives the estimated case probability for the grammatical-function label of the associated noun phrase. Its argument cₙ is the case used for instance n. If several cases are compatible with the available readings, the value entering the product is the highest probability among them for that instance. The two constraint systems share this part of the scoring procedure.
Carrying the checks through search
The authors extend decoding in Moses, which builds a chart from the bottom up. A chart cell represents an input span and contains candidate analyses for that span. A rule can combine translations already available for smaller spans with lexical material in the rule. The decoder obtains feature structures for the lexical elements from the lexicon. For a nonterminal, it obtains them from the candidate supplied by the smaller cell. It then tries the permitted combinations of structures in the rule’s constraints.
Each completed hypothesis stores the set of feature structures associated with its root. This is the information the hypothesis exposes to a rule that uses it as a child. If the set has several readings, those possibilities are still available. A later context may be compatible with some of them and fail with others. If a soft failure produces an empty structure, the decoding procedure can still continue scoring larger hypotheses built with that constituent.
Hypothesis recombination lets a decoder merge alternatives that behave alike for the rest of the search. Recombining hypotheses with different agreement states could discard the only reading that fits a later rule. The authors therefore require equality of the root feature-structure sets for recombination, in addition to the conditions already imposed by the baseline. This preserves the information a future agreement check may need. It also means that the feature state can keep hypotheses distinct even when the ordinary decoder would otherwise treat them as equivalent.
Cube pruning controls how many combinations the decoder examines. For a given rule and a particular placement of its smaller spans, the decoder organizes the alternatives in a multidimensional cube. One dimension lists the target-side translation choices for the rule. Each child span contributes a further dimension listing its available candidates. The authors describe the relationship between the number of dimensions and the rule’s rank as follows.
rank = n − 1
Here rank is the rank of the rule, the number of child spans whose candidates have to be combined. The variable n is the total number of cube dimensions for the application context. The minus sign subtracts 1 because the dimension for the rule’s target-side choices belongs to the cube in addition to the child dimensions.
The corner of the cube is the combination reached by taking the first option along each dimension. Cubes are introduced into a priority queue using their corner scores in ordinary cube pruning. Exploring a neighbor changes a choice along one dimension. This lets the decoder look for promising alternatives without fully scoring every combination. The scheme works best when the ordering of individual options gives a reasonable guide to the order of the complete combinations.
Hard agreement makes that guide less reliable. A highly ranked adjective phrase and a highly ranked noun phrase may be incompatible together, while a nearby choice combines successfully. For a cube whose corner fails, the search tries to find the nearest satisfying hypothesis by exploring neighbors in estimated score order. This exploration uses estimates before calculating the full German sequence score. The cube is then ordered using the score of the satisfying hypothesis found, when there is one.
When the decoder removes a candidate from a cube’s queue and generates its neighbors, it keeps failing neighbors in a separate queue. If all the immediate options fail, it can explore neighbors of those failed positions to reach compatible candidates farther away. This is important because the path to a compatible candidate may pass through a position whose translation can never be kept. The implementation discards a cube after a limit of 10 consecutive failing hypotheses. The authors describe that limit as arbitrary and expect incompatibilities to make ordering especially difficult for highly inflected targets.
Experiments and results
Building a common baseline
The baseline was trained for translation from English into German using the Europarl and News Commentary parallel data for the 2010 workshop task. The authors parsed the German side with BitPar and dropped pairs for which the German parse failed. The resulting parallel training set had 1,516,961 sentence pairs. The parse supplies both the constituent restrictions used in the baseline grammar and the structural information used to derive the agreement checks. This gives the baseline German syntax from the outset. Efficient Parsing of Highly Ambiguous Context-Free Grammars with Bit Vectors
The authors aligned the retained pairs using GIZA++ and extracted synchronous rules with Moses. The grammar had just under 140 million synchronous rules. The size matters for the interpretation of the comparison. The constraints operate in a system that already has a large inventory of ways to translate and compose spans. They influence which uses of those rules make it through the search and how strongly a resulting tree is scored.
The baseline also used all of the available German monolingual data. The authors trained three 5-gram scorers, one each on Europarl, News Commentary and News. They interpolated the scores, setting the mixture weights using the development data. The implementation used SRILM with Kneser–Ney smoothing. This scoring component already favors German word sequences supported by the data and is present in every system in the comparison.
The baseline feature weights were fitted using minimum error rate training on the news-test2008 development split, which contained 2,051 sentence pairs. The authors held those weights fixed while fitting the constraint-related features. In the soft system, those features are the count of failed constraint sets and the noun-phrase case score. The hard system rejects candidates on constraint failure and uses the case score along with its modified search. The comparison consequently keeps the ordinary feature weights in place while changing how additional grammatical evidence is used.
What was measured
During decoding, a rule could span no more than 20 tokens. The authors restricted the evaluation to source sentences of 20 tokens or fewer, so a sentence could be covered without the rule used to join independently translated pieces, except where unknown words required it. The resulting newstest2009 subset had 1,025 sentences, newstest2010 had 1,054, and newstest2011 had 1,317. The names ending in -20 identify these short-sentence subsets in the results.
Quality was measured with case-sensitive BLEU-4 using one German reference translation. BLEU rewards sequences of output words that match sequences in the reference. Its sensitivity to word forms gives some consequence to choosing the correct German endings. It also responds to other changes, including which words the system selects and how it orders them. The aggregate score can show whether the new outputs match the reference better, while the constraint failures are examined through a separate diagnostic. Bleu: a Method for Automatic Evaluation of Machine Translation
The p-values come from paired bootstrap resampling. This procedure repeatedly resamples evaluation sentences while keeping the different systems’ outputs paired for the same input. It assesses the score comparison under variation in which sentences enter the sample. The paper gives p-values for each constrained system against the baseline on each subset. Its results do not give a separate paired comparison between the hard and soft systems. Statistical Significance Tests for Machine Translation Evaluation
The results by test set
On newstest2009-20, the baseline scored 15.34 BLEU. The hard system scored 15.49, with a p-value of 0.164 against the baseline. The soft system scored 15.67, with a p-value of 0.006. The measured gain is small, and the paired comparison gives stronger evidence for the soft system’s improvement over the baseline on this subset.
Baseline and agreement systems on newstest2009-20, measured with BLEU-4
The soft constraints produce the highest score on this subset.
The numbers
| System or setting | BLEU |
|---|---|
| Baseline | 15.34 |
| Hard constraints | 15.49 |
| Soft constraints (this paper) | 15.67 |
On newstest2010-20, the baseline scored 15.65 BLEU. The hard system rose to 15.95, with a p-value of 0.065 against the baseline. The soft system scored 15.98, with a p-value of 0.009. The scores of the two constrained systems are close here. The reported p-values describe their respective comparisons with the baseline, so they give evidence about those comparisons rather than a test of the small separation between the constrained outputs.
Baseline and agreement systems on newstest2010-20, measured with BLEU-4
Both constraint systems improve on the baseline, with the soft version slightly ahead.
The numbers
| System or setting | BLEU |
|---|---|
| Baseline | 15.65 |
| Hard constraints | 15.95 |
| Soft constraints (this paper) | 15.98 |
Newstest2011-20 has the lowest scores of the three subsets. The baseline reached 12.90 BLEU, with the hard system at 12.87 and the soft system at 13.11. Their p-values against the baseline were 0.318 and 0.053, respectively. The authors suspect that the newer test material is less well matched to the 2010 training data. That is their interpretation of the lower baseline, while the experiment itself compares systems within the same subset.
Baseline and agreement systems on newstest2011-20, measured with BLEU-4
The soft system scores above the baseline while the hard system falls slightly below it.
The numbers
| System or setting | BLEU |
|---|---|
| Baseline | 12.90 |
| Hard constraints | 12.87 |
| Soft constraints (this paper) | 13.11 |
The soft system leads the BLEU comparison on each subset. The paired evidence for the soft system against the baseline is clearer on the first two subsets than on newstest2011-20. The hard system’s results vary more in direction. Its score rises on two subsets and falls on the third, and its reported p-values against the baseline are higher than the soft system’s throughout. The authors describe the outcome as a small improvement on the restricted translation task.
The aggregate scores also help distinguish the initial motivation from the measured result. The motivation was that constraints can check inflectional relationships on a tree. The experiment asks whether introducing those checks into the decoder produces German text that matches the references better overall. A favorable result measures their combination with the rest of the translation system. The next question is which evidence in the paper helps explain that result and the weaker performance of mandatory enforcement.
What the ablations show
Allowing a failure can preserve the better translation
The hard–soft comparison changes the consequence of a failed check while retaining the shared German grammar, extracted relations and case-scoring feature. In the soft system a conflict adds to the derivation’s penalty and leaves the candidate available. In the hard system the candidate is ineligible, and the decoder has to look elsewhere in the cube. The comparison therefore covers both enforcement and the search changes needed to enforce it. The observed scores show that the two choices can produce different overall translation quality even when they start from the same proposed relations.
The softer treatment does better in the principal comparison. One explanation offered by the authors is that some automatically extracted relations remain spurious after filtering. A hard failure can then eliminate a sentence because the test required an agreement relation that does not hold in the intended grammatical structure. With soft scoring, the other evidence for that candidate can outweigh the failed check. This explanation concerns imperfections in how the constraints were acquired.
A second explanation concerns the translations available to the decoder. A constraint can correctly identify a disagreement, while the best candidate that passes the check is worse on other grounds. The paper notes that the alternatives can differ in more than inflection. Choosing another hypothesis may also mean changing words or parts of the tree. Under those conditions, keeping an imperfect but otherwise stronger candidate can give a better result. The BLEU comparison is compatible with both explanations and gives no count of cases attributable to either one.
The case feature is shared, which helps focus the hard–soft comparison on enforcement, but also defines the scope of what it can establish. The baseline-to-soft comparison adds a case preference as well as a penalty. The paper reports no standalone result for adding the case feature or for enabling each family of agreement relations separately. It consequently provides evidence for the combined configuration and for the choice of soft enforcement under that configuration. The share of the BLEU change attributable to each individual feature remains undetermined.
Finding conflicts in the baseline output
The authors also take the baseline’s highest-ranked derivation for each sentence, associate the constraint rules with that derivation and evaluate its German tree from the bottom up. This diagnostic leaves the chosen output in place and asks what the constraint system would find in it. On the restricted newstest2009 set, 15.5% of the baseline sentences contain at least one failure. The proportions are 14.4% on the restricted newstest2010 set and 15.6% on the restricted newstest2011 set.
These figures count sentences with a detected conflict. A sentence with more than one conflict still contributes to that same category. The checks come from the same extraction procedure used by the competing systems, so the rates measure what that procedure flags in the original outputs. They show that the additional feature has many opportunities to assign a different score. Establishing how frequently a flagged sequence is truly ungrammatical would require a separate judgment about its intended structure and forms.
Examples from the beginning of the newstest2009 diagnostic make the flagged material concrete. One fragment groups der and the adjectives regelmäßigen and täglichen with Handel. Another places amerikanischen with Blutbad. A longer example shows a subject-labelled noun phrase near the finite verb kämpfen. By presenting tree fragments, the paper exposes the local structures in which the procedure found problems. The examples illustrate the kinds of places where a checker looks for agreement, while the percentages report the reach of the checker over entire baseline sentences.
The exercise also helps explain why a failure rate and a BLEU gain answer different questions. The diagnostic inspects a selected tree for a set of feature conflicts. The score comparison measures what happens when the search favors a different set of trees and therefore produces different sentences. A detected disagreement might be repairable by a nearby alternative, but it might also require a combination unavailable through the learned rules. The paper’s results show a benefit in the aggregate without assigning a revision outcome to each detected conflict.
Varying the search budget
The authors repeat the experiments at different cube-pruning pop limits. A pop limit bounds how many candidates the search removes from the queue for consideration. Changing it alters how much of each part of the search space can be explored. This matters particularly for the hard system because a promising corner can fail and a compatible combination may lie beyond neighboring failures. The paper plots mean test-set BLEU against the pop limit.
The soft system generally leads the hard system across the explored limits, with an exception at very low limits. The qualitative ordering shows that the principal comparison was not solely a consequence of the search budget used for the reported test-set scores. It also shows that the relative performance can depend on the amount of exploration. In a severely restricted search, the systems encounter different subsets of the combinations that could be built from the grammar.
Increasing the pop limit can give the decoder access to more alternatives. It cannot make an incorrectly specified identity appropriate for the sentence, and it cannot add a missing word form to a translation rule. The authors use the search comparison and the relatively high hard-system p-values to support their discussion of spurious constraints and unsatisfactory substitutions. The experiment shows how the two policies behave under different search budgets. It leaves the underlying balance between inaccurate checks, translation alternatives and search effects open.
Limitations
Limits identified by the authors
The extraction method depends on simple patterns over parser labels and on the coverage of the lexical analyses. The authors report that the patterns propose spurious relations, which is why they prune certain label configurations and test the proposed relation against the training words. The remaining constraints can still be wrong. Viewed in that light, the weaker result for hard enforcement motivates caution about treating an automatically derived relation as a condition every translation must satisfy.
The authors also emphasize that a rejected candidate may be difficult to replace. The available constraint-satisfying candidates can differ substantially from it, and the search itself is approximate. Their hard-system modifications help reach valid combinations past failing ones, but the decoder eventually abandons a cube after the specified sequence of failures. Their expectation that highly inflected targets will make this search less orderly follows from the increasing opportunity for individually attractive constituents to conflict when combined.
The coverage of the German rules is limited to the relations investigated. The paper implements agreement inside base noun phrases and prepositional phrases, some subject–verb agreement, and a probabilistic preference for noun-phrase case. The authors describe the basic feature formalism as language-independent, while the actual extraction patterns depend on the language and corpus. They identify suitable processing tools and reliable language-specific extraction as prerequisites for extending the approach to languages with more complex inflection.
Generating inflection during decoding is presented as future work. In the reported system, the grammar and its lexical entries provide the written forms that the constraints evaluate. The authors propose exploring a generator accompanied by checks that limit excessive combinations of surface forms. Such a system would have another way to respond to an incompatibility, since it could propose a form specifically to satisfy an agreement relation. The BLEU comparisons apply to the checking system that the paper implements.
Limits of the experimental design
The test sentences are drawn from the short end of the workshop sets to suit the rule-span limit. Longer inputs would bring different opportunities for constraints to help and different demands on the approximate decoder. The experiment directly establishes results for inputs of 20 tokens or fewer under the stated rule-span setting. The near consistency of the detected failure rates across those subsets gives no breakdown for longer sentences or for decoding with more general use of rules that join separate fragments.
The evaluation uses a single reference and a score that pools many aspects of translation. Agreement can improve while the output uses an otherwise valid form or construction different from the reference. A lexical or structural change can also move BLEU even when its effect on agreement is unclear. The baseline check gives a direct count of sentences flagged by the system’s own rules. The reported test results contain no independently judged error rate for the outputs of all three systems that would measure which errors their changes resolve.
The case estimates describe unambiguous training instances that survive the annotation and filtering process. Cases that remain ambiguous do not contribute to the training counts, and a test phrase with several possible cases is scored by its best compatible case. The high concentrations reported for some labels therefore describe the counted subset. They are evidence for using grammatical function as a preference. Their usefulness on ambiguous phrases is assessed only as part of the combined experiments.
Keeping the baseline weights fixed limits one source of variation between systems. It also leaves open how the baseline features would interact with the new features if all their weights were re-estimated together. The reported comparison is about adding the constraints with the ordinary scores held fixed. It does not isolate the separate contribution of phase-by-phase heuristic filtering, the case preference or the limited subject–verb rules. Similarly, the pop-limit figure describes the quality response to a search setting. The reported analysis supplies no measurements of running time or memory that would establish the cost of the altered decoding procedure.
The lower scores for newstest2011-20 illustrate another limit on interpretation. The authors suggest a mismatch in recency between training and test material, but the experiment uses the same training configuration across the subsets. It therefore cannot distinguish that explanation from other differences among the test sets. The clearest empirical statement is about the ordering within each subset. Soft constraints lead across the reported BLEU comparisons, with stronger paired evidence against the baseline on the earlier two subsets.
What came after
A later statistical translation study pursued a related question through syntactic n-grams. An ordinary word n-gram follows the order of words in the output, while the later study’s title places the n-grams in a syntactic representation and makes them a subject of scoring and optimization. That research direction shares the earlier paper’s premise that relations in a translation’s structure can supply evidence beyond the sequential score of its yield. The earlier paper uses tree structure to decide which inflectional features have to be compatible. The later work puts syntactic n-grams at the center of the statistical translation problem it studies. Both address how to make structural evidence participate in evaluating a candidate. Modelling and Optimizing on Syntactic N-Grams
The other citing study takes the grammaticality question to character-level neural machine translation. Its approach to assessment is to use contrastive translation pairs. Such a comparison focuses attention on whether a system favors the more appropriate member of a pair of alternatives. This connects to the earlier paper at the level of the decision a translation system has to make. Williams and Koehn introduced an explicit check that could favor a compatible combination during decoding. Contrastive assessment makes a system’s preference the object of measurement. It also gives grammaticality a more focused role than it has in an overall reference-matching score. How Grammatical Is Character-level Neural Machine Translation?
These connections concern different uses of grammatical evidence. Syntactic n-grams use structure in the design of statistics for translation. Contrastive pairs use controlled alternatives to investigate grammatical preferences. The agreement study sits between those concerns. It specifies the grammatical relationship the decoder should check and then examines what happens when the resulting judgment changes the search. Its soft and hard variants show why the reliability of a grammatical test, the alternatives a system can produce, and the way the test enters a decision all matter to the outcome.
Cite
Cite as Philip Williams and Philipp Koehn. 2011. Agreement Constraints for Statistical Machine Translation into German. Proceedings of the Sixth Workshop on Statistical Machine Translation.
@inproceedings{williams2011agreement,
title = {{Agreement Constraints for Statistical Machine Translation into German}},
author = {Philip Williams and Philipp Koehn},
booktitle = {Proceedings of the Sixth Workshop on Statistical Machine Translation},
year = {2011},
url = {https://aclanthology.org/W11-2126/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/williams-2011-agreement-constraints-statistical-machine-translation/