---
title: "Learning Semantic Representations for Nonterminals in"
description: "Hierarchical phrase-based translation learns what can fill a rule’s slots from phrase vectors, improving Chinese-to-English translation."
canonical: "https://research.elamur.ai/free/en/papers/wang-2015-learning-semantic-representations-nonterminals-hierarchical/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Shryfti](https://md.shryfti.elamur.ai/free/en/) · [OCR](https://md.ocr.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/wang-2015-learning-semantic-representations-nonterminals-hierarchical/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2015](https://md.research.elamur.ai/free/en/papers/2015/) / Learning Semantic Representations for Nonterminals in Hierarchical Phrase-Based Translation

# Learning Semantic Representations for Nonterminals in Hierarchical Phrase-Based Translation

Paper · 2015 · Xing Wang, Deyi Xiong and Min Zhang

**Authors:** [Xing Wang](https://md.research.elamur.ai/free/en/authors/xing-wang/), [Deyi Xiong](https://md.research.elamur.ai/free/en/authors/deyi-xiong/) and [Min Zhang](https://md.research.elamur.ai/free/en/authors/min-zhang/) · **Year:** 2015 · **Venue:** Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[**4** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2250210685) · [Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing](https://aclanthology.org/volumes/D15-1/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/D15-1164/)
- [PDF](https://aclanthology.org/D15-1164.pdf)
- [DOI 10.18653/v1/d15-1164](https://doi.org/10.18653/v1/d15-1164)
- [OpenAlex](https://openalex.org/W2250210685)

Citations: OpenAlex, 2026-10-14.

## Summary

A translation rule can tell a system where to put a phrase while leaving it largely up to the system to decide what belongs there. In hierarchical phrase-based [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/), rules contain slots that can be filled by the output of other rules. The same symbol, X, ordinarily marks those slots. That simplicity lets the system reuse a rule with many different phrases, but the symbol says little about which substitutions suit a particular rule. The authors give each slot a numerical description based on the phrases that occupied it in the bilingual training data. The decoder, which searches for a translation, can then favor a filling that resembles those examples.

The procedure starts with [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/), vectors learned from text. A recursive autoencoder combines word vectors into a single vector for a phrase by repeatedly joining neighboring pieces. When the system extracts a translation rule, it records the phrases it replaced with X and how often each replacement occurred. The authors try deriving the slot vector by averaging the phrase vectors with those counts as weights, and by finding a point that minimizes the sum of distances to the phrase vectors. Either way, the slot acquires a description specific to its rule. A rule can carry separate descriptions for the source and target sides.

Source-side scoring works with phrases in the input sentence. Target-side scoring faces a larger search problem because the decoder can propose many different output phrases. The authors try predicting a target vector from the corresponding source vector. They also try decoding the sentence in two passes, computing target vectors for phrases found in the baseline’s 100-best translations and using those vectors in the second search. Both approaches supply an additional score to the decoder while keeping the original rules available.

In the experiments on translation from Chinese into [English](https://md.research.elamur.ai/free/en/topics/english/), the source-side configuration that pairs the weighted mean with cosine similarity performs best among the source configurations tested. Two-pass decoding gives the highest scores among the target-only settings. The combined system instead uses nonlinear projection on the target side, together with the strongest source-side configuration. It scores 31.71 on NIST MT06 and 24.72 on NIST MT08 in case-insensitive [BLEU](https://md.research.elamur.ai/free/en/concepts/bleu/). The paper reports an average gain of 1.16 BLEU points over the baseline across those sets. The results show that a decoder can make use of the phrases that gave rise to a rule, even after extraction has replaced those phrases with a generic symbol.

## Deep dive: Learning Semantic Representations for Nonterminals in Hierarchical Phrase-Based Translation

Hierarchical phrase-based translation learns what can fill a rule’s slots from phrase vectors, improving Chinese-to-English translation. · about 35 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What a translation rule leaves open

Phrase-based translation learns how pieces of text in a source language correspond to pieces in a target language. A phrase in this setting is a stretch of words handled as a unit. Hierarchical translation adds rules that can contain both fixed words and slots for other translations. When a rule has a slot, another rule can supply what goes there. That inner rule can in turn contain a slot of its own. A derivation is the arrangement of rule applications that, taken together, accounts for the source sentence and produces a target sentence. The hierarchy is what lets a rule describe a reusable pattern around material whose wording and length can change. [Hierarchical Phrase-Based Translation](https://md.research.elamur.ai/free/en/papers/chiang-2007-hierarchical-phrase-based-translation/)

The formalism is a synchronous [context-free grammar](https://md.research.elamur.ai/free/en/concepts/context-free-grammar/). A rule specifies pieces of the source and target together. When an X on the source side corresponds to an X on the target side, the two positions are filled by the source and target yields of the same subordinate derivation. A rule can therefore describe where a translated piece goes in relation to fixed words on each side. The identities of those words and the alignment of the slots carry information about the pattern. The generic X gives every ordinary slot the same category.

Consider what happens when extraction sees an aligned bilingual phrase pair and finds a smaller aligned phrase pair inside it. Replacing the smaller pair by corresponding placeholders makes the outer rule usable with other fillings. Extraction has learned that the pattern can accommodate the particular phrases that occupied the slot in the corpus. Once it writes the rule with X, however, those phrases are no longer visible in the rule itself. The decoder can see the fixed surroundings and determine which substitutions the grammar permits. It has lost a direct description of the material for which the substitution was observed.

The problem is local to a rule. The question is whether a candidate phrase fits a slot in that particular environment. The same phrase might be quite plausible in one rule and awkward in another. Giving each occurrence of X a representation based on its own extraction history makes that question possible to ask. It also matters that the representation can vary independently on the two sides. A Chinese rule environment and its English counterpart participate in the same bilingual rule, but the distributions of phrases seen on their respective sides can be described separately.

The grammar also has glue rules, which let the decoder concatenate pieces in order. These rules use an S symbol and serve a different purpose from a lexical pattern with a phrase removed. They can start with one translated piece and extend the sequence by adding another. The broad range of pieces that may be joined this way makes glue a special case for a score designed around the characteristic fillings of ordinary rules.

#### How earlier work supplied missing distinctions

One established approach was to give slots more informative names. The syntax-augmented translation work described by the authors extracted target-side categories from parse trees and attached them to hierarchical rules. These categories allow the grammar to state which kinds of constituents can be substituted in a position. A label can turn some of the decoder’s choices into a direct compatibility test. The difficulty, as the paper explains it, is that a large inventory of specific categories leaves relatively little training evidence for individual labels and the combinations in which they occur. [Syntax Augmented Machine Translation via Chart Parsing](https://md.research.elamur.ai/free/en/papers/zollmann-2006-syntax-augmented-machine-translation-chart/)

Earlier work responded by changing either the inventory or the way it was used. Word tags and induced word classes could serve as coarser types. Some work collapsed labels in syntax-augmented grammars. Another line let rules with different labels combine, assigning features or penalties to the resulting matches. The difference matters during search. Collapsing categories changes which distinctions the grammar records. Soft matching preserves more distinctions and gives the decoder room to decide how much they should count for a particular derivation. [Improving Syntax-Augmented Machine Translation by Coarsening the Label Set](https://md.research.elamur.ai/free/en/papers/hanneman-2013-improving-syntax-augmented-machine-translation/) [Learning to Translate with Source and Target Syntax](https://md.research.elamur.ai/free/en/papers/chiang-2010-learning-translate-source-target-syntax/)

The paper also describes work that used source-side categories on some rules while retaining rules that carried fewer or no categories. Other efforts used categories or contexts from Combinatory Categorial Grammar, or took the heads of phrases from source dependency structures. A head is a word treated as structurally central to a phrase, so identifying it gives a system a narrower piece of evidence than describing the phrase by all its words. Still other work used target-side [semantic role labeling](https://md.research.elamur.ai/free/en/concepts/semantic-role-labeling/) to enrich rules with information about the roles that phrases play. These approaches all give the decoder a basis for making distinctions that X alone leaves open. [Improved Translation with Source Syntax Labels](https://md.research.elamur.ai/free/en/papers/hoang-2010-improved-translation-source-syntax-labels/) [CCG Contextual Labels in Hierarchical Phrase-Based SMT](https://md.research.elamur.ai/free/en/papers/almaghout-2011-ccg-contextual-labels-hierarchical-phrase/) [Utilizing Target-Side Semantic Role Labels](https://md.research.elamur.ai/free/en/papers/gao-2011-utilizing-target-side-semantic-role/)

The closest precedents treated compatibility as graded evidence. A preference grammar can record a distribution over categories for a slot. Other work built vectors of latent syntactic preferences and compared them with phrases covering the relevant spans of the input. The paper also describes a dependency-based approach that represented relationships inside rules and between rules and their contexts. One of the precedents supplies the paper’s direct comparison system. It records distributions over the part-of-speech tags of phrase heads, then uses those distributions to score how well a source span fits. [Factored Soft Source Syntactic Constraints](https://md.research.elamur.ai/free/en/papers/huang-2013-factored-soft-source-syntactic-constraints/)

#### What the phrases themselves can supply

For the authors, a restriction of much of this work is the need for a parser or another source of linguistic analyses trained on manually labeled examples. Such resources can give a slot a coherent linguistic description, but the paper notes that they are unavailable for many languages. Text without these labels is easier to obtain. The question is whether that text can supply enough evidence about the kinds of phrases a rule tends to take.

Work on continuous representations supplied a way to ask it. A vector does not need a component reserved for each hand-chosen category. Word and phrase representations can reflect regularities in the text from which they are learned, including regularities associated with both syntax and meaning. The authors draw on that work but change the unit they ultimately want to describe. A phrase is a concrete string for which a representation can be calculated. A slot in a translation rule is an abstraction over strings. Its representation must be inferred from examples of what was removed when the rule was formed. [Word Representations: A Simple and General Method for Semi-Supervised Learning](https://md.research.elamur.ai/free/en/papers/turian-2010-word-representations-simple-general-method/)

This distinction also clarifies what the authors mean by learning from unlabeled data. The representation pipeline does not require the phrases to have been assigned syntactic categories or semantic roles. It does use paired sentences and word alignments to identify the phrases behind each X. The bilingual corpus tells the system which pieces participated in the same translation rule. Text supplies the numerical descriptions of those pieces. The paper’s proposal combines those sources of evidence at the point where a slot acquires its vector.

### The method, step by step

#### From words to a score for a rule application

The method keeps track of two descriptions for an ordinary slot application. One describes the phrase the decoder is considering at that moment. The other describes the fillers associated with the slot during extraction. The score asks how close the descriptions are. To make the comparison meaningful, the authors need a common way to represent individual words, build phrase vectors from them and summarize the phrases associated with a rule. They perform those operations for each language and add a way to approximate or obtain the vectors needed on the target side of decoding.

Consider the information flow from training into search. Word vectors give the phrase encoder its inputs. Rule extraction provides the groups of phrases over which to summarize. During decoding, the current source span and an applicable rule are known, so a source score can compare the span’s vector with the rule’s stored source vector. The corresponding target score needs a description of a proposed translation piece. The paper provides alternative ways to make that description available before the decoder has committed to a final output.

Learning and using vectors for translation rule slots The steps in order.

#### Learning vectors for words and phrases

The procedure starts with continuous bag-of-words training. It uses surrounding words as evidence for the word in a position. After training, the system can represent a vocabulary item by looking up its learned vector. The experiments use word2vec. The word-embedding text comes from the respective language sides of the parallel translation corpus, treated separately for this part of training. The authors set the word-vector dimension to 30 and the context window to 5. [Efficient Estimation of Word Representations in Vector Space](https://md.research.elamur.ai/free/en/papers/mikolov-2013-efficient-estimation-word-representations-vector/)

```
M ∈ ℝᵈˣ|ⱽ|
```

Here `M` is the embedding matrix and `ℝ` denotes real-valued entries. The superscript describes a matrix with `d` rows and `|V|` columns. The quantity `d` is the chosen number of coordinates in each embedding, `V` is the vocabulary, and `|V|` counts its entries. A word `w` in `V` selects its own column, a vector of `d` real values.

A word lookup supplies a vector for a single word. The decoder also needs to compare phrases containing several words and to compare phrases of different lengths. The authors use a recursive autoencoder to give every phrase a vector of the same width. An autoencoder learns a representation by checking whether information about its inputs can be recovered from it. Here the inputs are two child vectors, which may represent words or pieces already composed from words. The new parent vector can in turn serve as a child farther up the phrase’s binary tree. [Recursive Autoencoders for Predicting Sentiment Distributions](https://md.research.elamur.ai/free/en/papers/socher-2011-semi-supervised-recursive-autoencoders-predicting/)

```
p = f⁽¹⁾(W⁽¹⁾ [c₁; c₂] + b⁽¹⁾)
```

The vector `p` represents the parent. The vectors `c₁` and `c₂` represent the two children in order, and `[c₁; c₂]` concatenates them into one input of width `2d`. The matrix `W⁽¹⁾` maps that input to `d` coordinates, the vector `b⁽¹⁾` supplies an additive bias, and `f⁽¹⁾` is applied to each resulting coordinate. The paper gives the hyperbolic tangent, `tanh`, as an example of such an activation. The superscript `⁽¹⁾` identifies the composition layer. Since the parent has the same width as either child, the same operation can take a previously composed piece and join it to another piece.

```
[ĉ₁; ĉ₂] = f⁽²⁾(W⁽²⁾ p + b⁽²⁾)
```

The quantities `ĉ₁` and `ĉ₂` are the reconstructed child vectors. Their concatenation is the reconstruction layer’s output. The matrix `W⁽²⁾` maps the parent `p` back to the width of the concatenated children. The vector `b⁽²⁾` is the reconstruction bias and `f⁽²⁾` is the coordinatewise activation for this layer. The superscript `⁽²⁾` identifies the reconstruction operation.

```
Eᵣₑ꜀([c₁; c₂]) = ½ ‖[c₁; c₂] − [ĉ₁; ĉ₂]‖²
```

The function `Eᵣₑ꜀` is the reconstruction error for a merge. The unmarked child vectors are the inputs and the hatted child vectors are the reconstructions. The subtraction compares the original and reconstructed concatenations coordinate by coordinate. The norm, enclosed by `‖` and `‖`, is Euclidean, its square supplies the error before scaling, and `½` is the factor in front of it. The training criterion adds reconstruction errors at the internal nodes of the phrase tree.

The paper uses the greedy unsupervised version of the recursive autoencoder. It can choose a tree as it encodes a phrase, starting from the words and merging neighboring pieces. The reconstruction criterion gives it a way to evaluate a proposed local combination. Repeating the operation eventually produces a root that covers the entire phrase. The root vector is the one subsequently used to summarize fillers or score a candidate. The internal nodes of this tree belong to the phrase encoder. The X slots whose vectors the paper wants to learn belong to the separate bilingual translation grammar.

In training, the authors randomly select 1M bilingual sentences for learning the phrase representations. They explain the use of bilingual material by the need for paired training examples in the projection stage. The phrase representations for the two languages are obtained on their own sides. The recursive encoder supplies, for instance, a target representation that can be used as the expected output when training a system to predict the target vector from a source vector.

#### Identifying the phrases behind a slot

Nonterminal induction starts from a word-aligned parallel corpus. During hierarchical rule extraction, an aligned subphrase pair can be replaced by linked X positions. The authors keep track of the fillers associated with each such position in a rule. For one source-side slot, write `P` for the collection of distinct source phrases that were replaced by that slot. For each phrase, retain its count in a matching collection `C`. Encode the phrases to obtain their vectors. The same procedure applied to the target-side fillers gives the evidence for the corresponding target slot.

The level at which the system collects the evidence is important. A phrase’s count measures how often it was replaced by the slot *in that rule* during extraction. A common phrase in the corpus can therefore have little influence on a rule for which it was rarely observed. Conversely, recurring examples of a particular filling can strongly shape the representation when the method uses counts. The extraction history gives the procedure a way to associate a single spelling or word sequence with several rule environments without having to learn a different underlying phrase encoder for each one.

The two methods for turning that history into a vector make different choices about what a representative point should mean. The weighted mean, abbreviated MV, combines coordinates linearly and uses the extraction frequencies. The minimum-distance method, MD, defines what it wants to minimize in terms of the distances from the representative point to the collected vectors. Both produce the same kind of output, a vector that can be attached to a slot, so either can supply the stored side of a later phrase-to-slot comparison.

```
vₓ = (∑ᵢ₌₁ᵐ cᵢ pᵢ) / (∑ᵢ₌₁ᵐ cᵢ)
```

In this expression `vₓ` is the representation of the current X slot. The index `i` runs through the `m` phrases in `P`. The quantity `cᵢ` is the extraction count for phrase `i`, taken from `C`, and `pᵢ` is its phrase vector. The numerator is a vector sum, with each phrase vector scaled by its count. The denominator is the total count for this slot. The division acts on each coordinate of the vector sum. Here `cᵢ` denotes a count, while the `c` symbols in the autoencoder equations denote child vectors.

An immediate consequence of this definition is that repeated observations affect the representative through the counts. A frequent filler pulls the weighted mean towards its own coordinates. Several different fillers can collectively lead to a point between the examples. The procedure can calculate that point directly from the vectors and counts. The resulting vector can be used to compare a new phrase that has a representation in the same space, including one whose exact text was absent from the slot’s extraction history.

```
vₓ = argminᵤ ∑ᵢ₌₁ᵐ √(∑ⱼ₌₁ᵈ (pᵢⱼ − uⱼ)²)
```

Here `u` is a candidate representative vector, and `argminᵤ` selects a value of `u` that minimizes the following expression. The result is `vₓ`, the minimum-distance representation of the slot. The outer sum runs over the `m` phrase vectors, indexed by `i`. The inner sum runs over their `d` coordinates, indexed by `j`. The term `pᵢⱼ` is coordinate `j` of phrase vector `pᵢ`, and `uⱼ` is the corresponding coordinate of the candidate point. The square root turns the inner sum of squared coordinate differences into a Euclidean distance. The expression adds those distances. Each vector in the collected set contributes one term, with no count multiplier in the objective as written.

The location favored by a sum of distances can differ from a coordinatewise weighted average. The placement of the square root matters because the objective measures the length of each displacement before adding it to the others. The authors use stochastic gradient descent to search for the representative and specify a learning rate of 10⁻³. Their component update is written as follows.

```
vₓⱼ ← vₓⱼ + λ ∂f/∂vₓⱼ
```

The symbol `vₓⱼ` denotes coordinate `j` of the current slot vector. The arrow denotes assignment of its next value, `λ` is the learning rate, `f` denotes the sum of Euclidean distances in the preceding objective, and `∂f/∂vₓⱼ` is the partial derivative with respect to that coordinate. The paper prints a plus sign in the update and describes the procedure as minimization. For a positive learning rate, descent requires a direction opposite to the ordinary gradient of the stated objective. The minimization objective specifies the intended point.

#### Attaching the vectors without changing the slots

The paper illustrates the ordinary rule with a linked source and target slot. The fixed strings on the two sides can differ in order and content. They give each side its local environment, while the linked slot identifies the piece whose translation is supplied by another application.

```
X → ⟨a Xₛ b, c Xₜ d⟩
```

The left-hand `X` is the category expanded by the rule. The arrow `→` introduces its expansion and the angle brackets enclose its source and target sides, separated by the comma. The symbols `a` and `b` are strings of source terminals, the fixed words around the source slot. The symbols `c` and `d` are their counterparts in the target rule pattern. The subscripts `s` and `t` mark the source and target positions. The two indexed X symbols correspond to each other. In this formula the string name `d` is local to the rule and has no connection to the embedding dimension.

```
X → ⟨a Xₛ b, c Xₜ d, vₓₛ, vₓₜ⟩
```

The grammar symbols, arrow and terminal strings have the same meaning as in the preceding rule. The added terms `vₓₛ` and `vₓₜ` are the stored source and target slot vectors. They summarize different collections of phrase representations. The lexical patterns and slot alignment remain as in the original rule. The decoder reads the vectors when scoring a proposed substitution, so a phrase can receive a weaker score even though it satisfies the grammar’s category and alignment requirements.

Glue rules allow the decoder to build a longer translation by combining already translated material with a further piece. The paper writes the two forms explicitly.

```
S → ⟨S₁ X₂, S₁ X₂⟩
```

The `S` on the left is the glue category. On either side of the bilingual expansion, `S₁` is the preceding sequence and `X₂` is the piece appended to it. The indices `₁` and `₂` identify corresponding positions on the source and target sides. They appear in the same order on both sides, so this construction concatenates the pieces monotonically.

```
S → ⟨X₁, X₁⟩
```

This glue rule expands `S` into a single corresponding translated piece. The subscript `₁` marks that shared constituent position on the two sides. The rule lets an ordinary X supply the initial material that the concatenation rule can extend.

#### Measuring whether a phrase fits

With a stored slot vector and a candidate phrase vector, the decoder has quantities it can compare. The paper tests cosine similarity, abbreviated CS, and Euclidean distance, abbreviated ED. The cosine asks whether the vectors point in similar directions by normalizing the dot product for their lengths. Euclidean distance asks how far apart the two points lie in the space. The two quantities order compatibility in opposite directions. A larger cosine favors a closer directional match, while a smaller distance favors a closer location.

```
cos(p, vₓ) = (p · vₓ) / (‖p‖ ‖vₓ‖)
```

The function `cos` takes a candidate phrase vector `p` and the stored slot vector `vₓ` for the same language side. The centered dot `·` denotes the dot product of their coordinates. The two norms `‖p‖` and `‖vₓ‖` are the vector lengths. Dividing by their product yields the cosine of the angle between the vectors when both have non-zero length.

```
SeSim = { cos(p, vₓ)  for hierarchical rules
        { α           for glue rules
```

Here `SeSim` is the score supplied to the decoder for the application. In the first branch, `cos`, `p` and `vₓ` have the meanings just given. The second branch assigns the constant `α` to a glue application. The paper varies this constant experimentally. It sets the contribution of a glue application without requiring a comparison to a rule-specific phrase prototype.

```
dist(p, vₓ) = √(∑ᵢ₌₁ᵈ (pᵢ − vₓᵢ)²)
```

The function `dist` again compares the current phrase vector `p` with the stored slot vector `vₓ`. The index `i` here ranges over the `d` vector coordinates. The values `pᵢ` and `vₓᵢ` are the corresponding coordinates. The sum accumulates squared differences and the square root yields their Euclidean distance. In this equation `pᵢ` is a scalar component, whereas in the weighted-mean equation it denotes an entire phrase vector.

```
SeSim = { dist(p, vₓ)  for hierarchical rules
        { β            for glue rules
```

Here `SeSim` is the feature value under the distance configuration, `dist(p, vₓ)` is the distance for an ordinary rule, and `β` is the constant assigned to a glue application. This score enters the decoder alongside other features. Its interpretation depends on both the distance convention and the weight learned for the feature.

The source and target features accumulate over an entire derivation. The decoder calculates scores where an applied rule supplies the relevant slot comparison and adds them on the corresponding language side. Accordingly, different arrangements of rule applications can collect different scores even when they cover the same input. A constant for glue also has an effect at the derivation level because each applicable glue contribution enters the sum. The paper’s tuning procedure, Minimum Error Rate Training, or MERT, estimates the weights of the new features together with those already present on a development set. The stored similarities provide evidence, and tuning determines how much influence that evidence has on translation choices.

#### Making target-side scoring practical

For the source feature, the decoder can identify the candidate phrase as a span of the input. On the target side, many different phrases can be generated for a single slot. Composing all their vectors during search would be expensive. The first solution learns a mapping from a known source vector to an approximation of its target counterpart. The second uses a preliminary translation search to find a manageable set of target phrases for which to calculate direct representations.

The mapping takes inspiration from earlier work that projected word representations between languages. The training examples here are multiword phrase pairs drawn from the rule table. The recursive encoder supplies a source vector and a target vector for each pair. Training the mapping means adjusting it so that, given the source vector, it outputs a point close to the phrase’s independently encoded target vector. Once trained, the mapping can provide an approximate vector for target-side scoring without repeatedly encoding all the target phrases proposed during decoding. [Exploiting Similarities among Languages for Machine Translation](https://md.research.elamur.ai/free/en/papers/mikolov-2013-similarities-languages/)

```
p = tanh(W⁽⁴⁾ tanh(W⁽³⁾ src + b⁽³⁾) + b⁽⁴⁾)
```

The input `src` is the source phrase vector and `p` is the projected output in the target vector space. The matrices `W⁽³⁾` and `W⁽⁴⁾` carry the connections into the hidden layer and from that layer to the output, respectively. Their matching bias vectors are `b⁽³⁾` and `b⁽⁴⁾`. The two appearances of `tanh` denote coordinatewise hyperbolic tangents. The superscripts identify the projection layers and are labels rather than powers. The paper also tests a linear version described as the projection with the hidden layer removed.

```
J = argmin_{W⁽³⁾, W⁽⁴⁾} [(1/N) ∑ᵢ₌₁ᴺ ‖trgⁱ − pⁱ‖² + R(θ)]
```

The expression uses `J` for the projection fitting problem. The `argmin` selects parameters that minimize the bracketed criterion, with `W⁽³⁾` and `W⁽⁴⁾` denoting the network’s weight matrices. The index `i` runs over the `N` training pairs. The vector `trgⁱ` is the encoded target phrase for pair `i`, and `pⁱ` is the prediction obtained by passing that pair’s source vector through the network. The norm term measures the squared prediction error and `1/N` gives the average over the examples. The added function `R` is a regularization penalty on the parameter collection `θ`.

```
R(θ) = (λᴸ / 2) ‖W‖²
```

Here `R(θ)` is the penalty in the preceding expression, and `λᴸ` controls its strength. The paper uses `W` collectively here for the parameters in both weight matrices and both bias vectors. The squared norm is applied to that collection and the denominator `2` gives the stated scaling.

The projection network has 30 coordinates at both input and output and 300 hidden units. The authors set the projection learning rate and the regularization coefficient `λᴸ` to 10⁻³. They randomly select 5M phrase-pair examples for training, 10k for development and 10k for testing the projection. Those splits consist of examples from the rule table. The training procedure uses back-propagation and stochastic gradient descent with mini-batches of 5k. In decoding, the predicted vector is compared with the stored target slot vector. The slot vector itself was derived from target phrases observed during rule extraction.

The two-pass alternative obtains target phrase vectors directly. In the first pass, the baseline translates each input sentence and provides a ranked list of its 100-best translations. The system collects candidate target phrases from those translations and encodes them. It then searches again with the target-side feature enabled. When a target phrase is in the collected set, the decoder can compare its directly calculated vector with the target slot vector. When the phrase is absent, it receives a penalty. The second pass is a new decoding run. Its score favors phrases evidenced by the first pass, while its operation still includes a case for other phrases.

The two solutions therefore use different information at decision time. Projection obtains its input from the source phrase and from parameters learned on bilingual phrase pairs. For a given source phrase, the prediction represents what the mapping expects its target counterpart to look like in vector space. In two-pass decoding, the vector describes a particular target phrase that occurred in the initial search. The price of that specificity is the dependence on which candidates the baseline found, along with the additional decoding pass.

### Experiments and results

#### Data, comparison systems and evaluation

The translation experiments use a corpus of 2.9M Chinese–English sentence pairs from LDC data. The training corpus contains 80.9M Chinese words and 86.4M English words. The authors run Giza++ in both translation directions and combine the alignment evidence with the grow-diag-final refinement rule. These alignments support the extraction of the hierarchical rules and identify the phrase pairs removed to form their slots. The monolingual text for learning the initial word vectors is taken from the same parallel training corpus. The experiments thus use aligned training data even though the phrase representations require no manually assigned phrase categories. [Statistical Phrase-Based Translation](https://md.research.elamur.ai/free/en/papers/koehn-2003-statistical-phrase-based-translation/)

NIST MT03 serves as the development set for tuning the translation features. The authors call NIST MT06 the development test set and use NIST MT08 as the final test set. Those roles matter for interpreting the configuration comparisons. The paper uses MT06 to discuss the effects of alternate settings and reports MT08 as the final translation test. The projection examples drawn from the rule table form a separate training and evaluation procedure. A projection test example concerns prediction of a phrase vector, while a NIST test sentence is used to evaluate a complete translation.

The main baseline is the authors’ in-house implementation of hierarchical phrase-based translation. It has a 4-gram English fluency feature trained on the Xinhua portion of English Gigaword and a 3-gram counterpart trained on the English side of the bilingual data. An [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/) is a sequence of adjacent items, here words. The two fluency features score target strings using statistics of sequences in their respective corpora. The SRI Language Modeling Toolkit is used to train them. The baseline also includes translation probabilities and lexical weights in both directions, plus counts of words, phrases and applications of glue rules. The added semantic scores enter a system that already has evidence about lexical correspondence, translation frequency and fluent target wording.

The other comparison system, Syn-Mis, adds a syntactic mismatch feature to the same style of decoder. The authors reimplement the technique from Huang and colleagues. It attaches a distribution over head [part-of-speech tags](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/) to a nonterminal, then uses that distribution to assess a rule’s compatibility with a Chinese span. To obtain the head tags, the authors use the Stanford [dependency parser](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/) on the Chinese training sentences and Chinese inputs from the NIST development and test sets. This comparison asks how a source-side feature based on phrase vectors fares against a source-side feature supplied with explicit syntactic information.

The evaluation metric is case-insensitive BLEU. It gauges how much a system’s output overlaps with reference translations through word sequences, with an adjustment for output length. Higher scores indicate better performance on that metric. To reduce the effects of variation from MERT, the authors run tuning three times and report the mean BLEU over the three runs for each experiment. In their results, marks for `p < 0.01` and `p < 0.05` refer to comparisons with the unmodified baseline. The average column in the results summarizes performance across MT06 and MT08. That cross-set average is distinct from the averaging over tuning runs within each score.

#### Source-side scores

The source-only experiment evaluates weighted means with cosine similarity and minimum-distance representatives with Euclidean distance. In each family the authors vary the score for glue applications. The strongest setting on MT06 is the weighted mean with cosine similarity and a glue score of `α = 0`. Its MT06 result is 31.63, compared with 30.54 for the baseline and 31.23 for Syn-Mis. The paper reports that this best source configuration improves on the baseline by 1.09 BLEU points on MT06 and exceeds Syn-Mis by 0.4 there.

Source-side configurations on NIST MT06, case-insensitive BLEU The weighted mean with cosine similarity and a zero glue score leads the source-side comparison.

**The numbers**

| System or setting | BLEU |
| --- | --- |
| Hierarchical baseline | 30.54 |
| Syn-Mis | 31.23 |
| MV + CS, α = 1.0 | 31.44 |
| MV + CS, α = 0 (this paper) | 31.63 |
| MV + CS, α = -1.0 | 31.13 |
| MD + ED, β = 0 | 31.02 |
| MD + ED, β = 0.5 | 31.35 |
| MD + ED, β = 1.0 | 31.06 |

The same weighted-mean setting is strongest among the source-only systems on MT08, scoring 24.51, with 23.58 for the baseline and 24.38 for Syn-Mis. The authors mark the best weighted-mean setting at `p < 0.01` against the baseline on both test sets. The best setting within the distance family uses `β = 0.5`. It scores 31.35 on MT06 and 24.08 on MT08. The paper reports a gain of 0.81 BLEU points over the baseline on MT06 for this configuration. The authors carry the weighted mean, cosine similarity and zero glue score into subsequent experiments, citing the score comparison and the cost of the iterative calculation for minimum-distance vectors.

#### Target-side scores

The target-only experiment asks whether a score from the English side can improve the baseline on its own. It compares linear projection, nonlinear projection and two-pass decoding. On MT06, linear projection scores 30.70 and nonlinear projection scores 31.16. Two-pass decoding reaches 31.29. The paper reports MT06 gains of 0.62 BLEU points for nonlinear projection and 0.75 for two-pass decoding over the baseline. The two-pass result on that set carries a `p < 0.05` mark against the baseline.

Target-side decoding methods on NIST MT08, case-insensitive BLEU Two-pass decoding leads the target-only comparison, followed by nonlinear projection.

**The numbers**

| System or setting | BLEU |
| --- | --- |
| Hierarchical baseline | 23.58 |
| Linear projection | 23.66 |
| Nonlinear projection | 24.11 |
| Two-pass decoding (this paper) | 24.24 |

On MT08, the paper reports a gain of 0.66 BLEU points for two-pass decoding against the baseline. Both two-pass decoding and nonlinear projection carry a `p < 0.01` mark against the baseline on that set. Linear projection has no significance mark on either set. Averaged across MT06 and MT08, the target-side scores are 27.18 for linear projection, 27.64 for nonlinear projection and 27.77 for two-pass decoding. The target feature can therefore contribute independently in the reported setup. Even the strongest target-only configuration scores below the best source-only configuration on both sets.

#### Combining both sides

The combined experiment uses source-side weighted means and cosine scoring with `α = 0`, along with nonlinear projection for the target feature. The joint configuration achieves 31.71 on MT06 and 24.72 on MT08. The source-only version scores 31.63 and 24.51 on those sets, respectively. The target-only comparison corresponding to the combined system is nonlinear projection, which scores 31.16 on MT06 and 24.11 on MT08. The joint scores carry `p < 0.01` marks against the unmodified baseline on both sets.

Source and target feature combinations, average case-insensitive BLEU on NIST MT06 and MT08 The combined configuration has the highest average and improves on either of its component configurations.

**The numbers**

| System or setting | BLEU |
| --- | --- |
| Hierarchical baseline | 27.06 |
| Syn-Mis | 27.81 |
| Source only, weighted mean and cosine | 28.07 |
| Target only, nonlinear projection | 27.64 |
| Source and target combined (this paper) | 28.22 |

The paper reports that the combined system’s average across the two sets is 1.16 BLEU points above the baseline and 0.41 above Syn-Mis. These are averages over the two named evaluation sets. The reported gains and significance marks answer different questions. The averages describe the size of the improvement in BLEU, and the marks indicate which scores the authors find statistically distinguishable from the baseline under the reported comparisons.

### What the ablations show

#### Choosing a representative and a comparison together

The first comparison holds the source-side application fixed and changes how the slot vector is derived and scored. The authors pair minimum distance with Euclidean distance because both use distances in the vector space. They pair the weighted mean with cosine similarity as their other configuration. This tests each pairing as a decoder feature. It gives a practical answer about which pairing they should carry into later experiments.

The outcome is consistent across the two evaluation sets. The strongest weighted-mean configuration leads the strongest minimum-distance configuration on MT06 and MT08. The efficiency observation also favors it. Once the phrase vectors and counts are available, the weighted mean is a direct calculation. The minimum-distance representative requires iterative optimization. That extra work can recur for many separate slot representations, so the cost is associated with building the rule annotations as well as with the final choice of scoring feature.

Several methodological choices move together in this comparison. The weighted mean uses how often a phrase was observed for that slot. The minimum-distance objective as written uses the collected vectors without those count multipliers. The method also changes from cosine scoring to distance scoring when it changes the representative. As a consequence, the results identify the more successful pair. They leave the individual contribution of extraction frequency, the choice of representative and the choice of scoring geometry unresolved. The experiment contains no cross-pairing that would hold one of those factors fixed while changing another.

That distinction matters for the interpretation of the win. The decoder uses a scalar feature and tunes its weight together with many other influences on search. A representative derived from a particular objective may work especially well with one comparison rule. An improvement in final BLEU says that the complete feature, including its place in the decoder, helped the system. The experiment supplies no independent measurement of which representative better describes the meanings or grammatical properties of the slot on its own.

#### The glue score affects the result

The glue settings give a comparison within each source-side family. With weighted means and cosine, the authors try `α = 1.0`, `α = 0` and `α = -1.0`. MT08 BLEU is 24.23, 24.51 and 24.07 in that order. The zero setting also gives the highest MT06 score within the family. For the distance family, `β = 0.5` gives the best score on both sets, ahead of the alternatives `β = 0` and `β = 1.0`. With those latter settings, MT08 scores are 23.74 and 23.90, respectively.

A glue constant can influence which derivations the decoder prefers. In the feature sum, a rule that concatenates translations contributes the same constant each time it is used. Setting that constant to zero removes this particular contribution for glue, while leaving the compatibility scores for ordinary rules in place. The decoder still has the baseline’s separate glue rule count among its features. A non-zero setting can interact with both the baseline features and the tuned weight on the new score.

The results establish that the choice matters for this implementation and that its best observed value depends on the scoring family. They offer little basis for reading a common scale across the values of `α` and `β`. Cosine and distance have different meanings, and their feature weights are tuned in separate configurations. The useful within-family comparison is whether assigning a different glue value changes translation performance while the ordinary-rule scoring approach stays the same.

#### What changes when the target vector is projected

The linear and nonlinear projections are a more focused comparison. Both learn from source and target phrase vectors and use the projected source representation for target-side slot scoring. The nonlinear version introduces the hidden transformation. It obtains higher BLEU scores on both test sets. The authors interpret this as support for their decision to permit a nonlinear relationship between the source and target spaces.

The final metric measures the projection’s consequences for translation. It does not isolate a geometric property of the languages. Capacity and form change together when the hidden layer is introduced, and the projection’s usefulness is assessed through its contribution to the decoder. The reported BLEU ordering supports using the nonlinear projection among the tested projection configurations. It leaves open how much target-vector prediction improved in its own right and which kinds of bilingual phrase pairs account for the difference.

There is also a distinction between what each projected vector can say and what the target slot vector can say. The slot vector describes the target phrases observed for a particular rule position. The projected vector describes an expected counterpart to the source input phrase. It can still help discriminate between rule applications whose target slots favor different kinds of phrases, since the same projected point can be close to one stored slot vector and far from another. Its input, however, gives it no separate description of each possible target wording for that same source phrase. The two-pass method has access to that wording when the phrase was collected from the baseline search.

#### Comparing target-side information and search together

Two-pass decoding gives the highest target-only BLEU on both sets. It brings two changes to the experiment. The scores for collected phrases use their direct target-space encodings, and membership in the collected set affects what happens in the second pass. These changes mean that a comparison with projection tests more than the quality of two ways of obtaining a vector.

The authors suggest that the initial search can filter out noisy candidates. The experiment is consistent with that possibility. A phrase found among the baseline’s highly ranked translations has passed through the baseline’s full scoring and search procedure. Giving unseen candidates a penalty makes that first set of decisions relevant to the second pass. Direct target encodings may also help because they distinguish among the realized target strings. The paper gives no separate comparison holding the candidate set and penalty fixed while changing only how the vectors are obtained. The reported result belongs to the complete two-pass procedure.

The difference also matters when considering why the combined system uses projection. The experiment with two-pass decoding compares ways to add a target feature *by itself*. The combined experiment adds target projection alongside the best source feature. It establishes how that combination performs and leaves the joint configuration with two-pass target scoring unmeasured. The best target-only method and the best reported joint system are answers to different comparisons.

#### How much the two language sides contribute

The combined experiment includes the source-only and target-only versions that correspond to its features. That makes it possible to see what the joint system adds in this setup. The source feature gives the larger standalone gain. The combined score nevertheless exceeds the source-only score on both sets. This shows that the English-side projection can contribute to the reported system even in the presence of the source score.

There is a specific sense in which the evidence is complementary. The source score checks the candidate Chinese span against the Chinese history of a rule slot. The target score checks a projected description against the English history of the linked target slot. These histories can alter how applications are ranked even though the target projection starts from the source phrase. The comparison supports a contribution from adding that target feature to the full decoder. The significance marks in the paper test each marked setting against the baseline, so they leave the significance of the smaller joint-versus-source increment unspecified.

The Syn-Mis comparison asks a related question about the source-side information. The strongest source vector setting has higher BLEU than the syntactic comparison on both sets. That result shows that phrases drawn from rule extraction can provide useful source-side compatibility evidence without parser-derived labels in this pipeline. Syn-Mis is one implementation of one kind of syntactic feature. The comparison leaves open what would happen if the vector score and the head-tag score were used together, or if the vector score were compared against other syntactic approaches described in the paper.

### Limitations

#### Limits emphasized by the authors

The authors emphasize computational cost on the target side. Numerous target substitutions can be proposed for the same slot during decoding. Applying the phrase encoder to each of them would be expensive. Projection addresses this by approximating the target vector from an available source vector. Two-pass decoding addresses it by calculating direct representations for a set of phrases gathered in advance. Each procedure limits a different part of the work, and each changes what information the final search can use.

The authors also observe that finding a minimum-distance representative is more time-consuming than calculating a weighted mean. They resolve the choice for later experiments by using the weighted mean, which also supplies the better scores in their source-side comparisons. The conclusion about practicality is qualitative. The reported experiments give BLEU scores and describe the operations required, but supply no decoding times or resource measurements with which to compare projection and the extra search pass. The costs of collecting filler histories, building their vectors and carrying the annotations are likewise left unquantified.

Their conclusion identifies additional context and bilingual representations as avenues for extending the method. As implemented, the slot vector is derived from the phrases observed in that slot. The phrase encoder composes the words of the phrase, and the extraction process already conditions which examples are gathered on the rule. There is still surrounding lexical material that could be used more directly to determine what the slot represents. The other proposed extension would learn bilingual representations for the nonterminals. In the reported experiments the two language sides have their own representations, with a separate mapping available to connect source phrases to the target space.

#### Limits visible in the design

The scope of the evaluation is a particular Chinese-to-English translation system and the NIST sets named in the experiments. The argument about the availability of unlabeled text is relevant to languages with few parser resources. The reported translation scores come from a setup with a substantial aligned bilingual corpus. They consequently give no direct estimate of performance with much less parallel data, with a weaker alignment, with the translation direction reversed or with another language pair. The ability to learn without manually supplied parse labels removes that resource dependency while leaving the need for evidence about which phrase pairs formed a rule.

A single vector summarizes each slot on each side. If the extraction history contains several groups of fillers with different properties, a shared representative has to accommodate them together. A weighted mean may lie between such groups, and a point chosen by minimum total distance still represents them with one location. The decoder gets a graded indication of fit without a separate description of each group. The paper does not break down performance by how varied the filler collections are, by how frequently a slot was observed, or by how much its representations change as more data become available.

The intended interpretation also reaches beyond the measured quantity. The authors describe the vectors as semantic and argue that their inputs may capture syntax as well as meaning. BLEU evaluates how system outputs resemble reference translations. It does not distinguish improvements in choosing a meaning-preserving phrase from improvements in grammatical fit, word order or another property that affects overlap. The paper reports no separate assessment of the categories encoded in the slot vectors or a set of human judgments tracing score improvements to particular substitution decisions. The quantitative evidence concerns translation quality under the paper’s automatic evaluation.

The two-pass method depends on the strength and coverage of the baseline’s initial search. Membership in its collected phrase set is used as evidence in the second pass. A suitable phrase can be absent because the first search did not surface a translation containing it. The penalty also makes absence matter independently of how similar the phrase might have been under a direct comparison. The paper evaluates the reported candidate collection size, 100-best, without tracing sensitivity to the size or reporting how frequently the second pass benefits from phrases inside or outside that collection.

Projection has a different information constraint. It predicts one target-space point from the encoding of a source phrase. The comparison in the decoder can use that point against several rule slots, but the mapping has no input identifying the particular target wording that a given application is proposing. Direct target encodings in two-pass decoding can preserve distinctions among those wordings when the phrases were collected. The reported experiments establish a translation tradeoff for the implementations tested. They do not measure prediction error on the stated projection test split in the results, or show how such error relates to final translation choices.

The objective for the minimum-distance representative is explicit, but the printed update leaves a sign discrepancy between the stated minimization and the ordinary meaning of its derivative. That matters for reproducing the iterative step from the equation alone. The weighted-mean configuration, which the authors use for the ensuing experiments, has a closed calculation and avoids that ambiguity.

Finally, the significance notation is anchored to the baseline. It supports the paper’s claim that the strongest configurations improve on the original hierarchical system in this experiment. Comparisons among refined configurations can be read from their scores, but their differences have no reported pairwise significance tests. In particular, the joint system’s lead over Syn-Mis and over the source-only configuration remains a comparison of the reported BLEU values.

### What came after

The authors close with two directions for follow-up. One is to learn bilingual representations for the nonterminals themselves. Their experiments learn descriptions on each side and use projection, when enabled, to move a source phrase vector into the target space. A bilingual representation would change what is learned about the linked slots, rather than only supplying a mapping at scoring time. The other direction is to learn slot descriptions with more of the surrounding words as evidence, extending the information available beyond the phrase fillers and their association with a rule.

Both are proposed extensions. No later citing work is available to establish which subsequent systems adopted the slot representations, changed the way they were learned or carried the comparison into a different translation setting.

## Cite

Cite as Xing Wang, Deyi Xiong and Min Zhang. 2015. Learning Semantic Representations for Nonterminals in Hierarchical Phrase-Based Translation. Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/d15-1164](https://doi.org/10.18653/v1/d15-1164)

```bibtex
@inproceedings{wang2015learning,
  title = {{Learning Semantic Representations for Nonterminals in Hierarchical Phrase-Based Translation}},
  author = {Xing Wang, Deyi Xiong and Min Zhang},
  booktitle = {Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing},
  year = {2015},
  doi = {10.18653/v1/d15-1164},
  url = {https://doi.org/10.18653/v1/d15-1164}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
