---
title: "Hierarchical Phrase-based Translation Representations (2011)"
description: "Hierarchical Phrase-based Translation Representations shows how stacks make large translation searches more compact and how rescoring…"
canonical: "https://research.elamur.ai/free/en/papers/iglesias-2011-hierarchical-phrase-based-translation-representations/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **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/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/iglesias-2011-hierarchical-phrase-based-translation-representations/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2011](https://md.research.elamur.ai/free/en/papers/2011/) / Hierarchical Phrase-based Translation Representations

# Hierarchical Phrase-based Translation Representations

Paper · 2011 · Gonzalo Iglesias, Cyril Allauzen, William Byrne et al.

**Authors:** [Gonzalo Iglesias](https://md.research.elamur.ai/free/en/authors/gonzalo-iglesias/), [Cyril Allauzen](https://md.research.elamur.ai/free/en/authors/cyril-allauzen/), [William Byrne](https://md.research.elamur.ai/free/en/authors/william-byrne/), [Adrià de Gispert](https://md.research.elamur.ai/free/en/authors/adria-de-gispert/) and [Michael Riley](https://md.research.elamur.ai/free/en/authors/michael-riley/) · **Year:** 2011 · **Venue:** Proceedings of the 2011 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/)

[**22** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W1818782312) · Cited by **6** papers in our library of more than 163,000 papers whose bibliographies we read · [Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing](https://aclanthology.org/volumes/D11-1/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/D11-1127/)
- [PDF](https://aclanthology.org/D11-1127.pdf)
- [OpenAlex](https://openalex.org/W1818782312)

Citations: OpenAlex, 2026-10-14.

## Summary

A translation system may be able to describe many ways of translating a sentence and still run out of memory when it tries to choose among them. This paper studies that problem in hierarchical phrase-based [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/), where a grammar builds candidates by putting translations of smaller spans inside larger patterns. The authors compare different ways of storing the same candidates. Their main question is when a decoder should turn the grammar’s compact description into the explicit states needed to search it.

The paper’s alternative uses a pushdown automaton, a network whose paths can open and close matching parentheses. These marks act as stack operations. They let the network store a fragment once, enter it from several places, and keep track of where each use should return. The authors show how to combine this representation with an [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/) target-language scorer and find the lowest-cost complete path while retaining the stack. An ordinary finite-state decoder expands the recursive structure earlier. That can work well when the grammar gives rise to a manageable set of candidates, particularly when the target-language scorer is large.

The Chinese-to-English experiments examine what happens when both parts of the search are large. The authors first decode with the full grammar and a compact target-language scorer. They keep a lattice, a network of alternative translations, then replace its first-pass scores with scores from a larger scorer. With the restricted grammar, this procedure can recover the baseline [BLEU score](https://md.research.elamur.ai/free/en/concepts/bleu/) while returning different top translations on some sentences. With the unrestricted grammar and the most compact first-pass scorer tested, the stack-based decoder completes exact first-pass search on 99.8% of the development sentences under a 10 GB memory limit. The finite-state decoder completes 18% under the same setting.

The unrestricted grammar also gives the stack-based system room to improve translation quality after rescoring. With the larger scorer applied to the retained lattices, it reaches 36.1 BLEU on test-nw, compared with 35.6 for the rescored restricted-grammar baseline. The two results answer different questions. The completion figures measure whether a decoder can search the full space under its first-pass scoring function within the memory cap. The BLEU scores measure the resulting translations against references after rescoring, when the second pass can choose only among candidates that survived the first.

## Deep dive: Hierarchical Phrase-based Translation Representations

Hierarchical Phrase-based Translation Representations shows how stacks make large translation searches more compact and how rescoring affects accuracy. · about 36 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

#### From a source sentence to a ranked set of translations

Hierarchical phrase-based translation uses rules that pair source expressions with target expressions. Some rules pair strings of words directly. Other rules also contain slots for smaller translations. A source-side match tells the decoder which parts of the input can fill those slots, and the target side tells it where to put the results. A rule can arrange the slots in a different order on the target side. The paper takes this translation framework as given and asks how to run the search efficiently once the grammar and its scores have been learned.

The rules form a synchronous [context-free grammar](https://md.research.elamur.ai/free/en/concepts/context-free-grammar/). The two sides are synchronous because the source and target uses of a slot refer to the same underlying choice of subtranslation. Once a source sentence has been parsed, the decoder can represent the target choices alone. A group of rules that is useful for one source span may also contribute to several larger derivations. A compact representation records that group once and describes where it can be used. The complete translations are obtained by following the choices through to the words they produce.

The grammar brings one kind of evidence to the search. It says which pieces of the source can be translated together and how those pieces can be arranged. A target [language model](https://md.research.elamur.ai/free/en/concepts/language-model/) adds evidence about the sequence those choices produce. Its n-gram scores depend on neighbouring target words, including words on opposite sides of a grammar-rule boundary. A target fragment that fits neatly inside a larger rule can therefore have a different effect on the score depending on what has already been generated. The decoder has to preserve enough information about that context to evaluate a complete candidate correctly.

The authors distinguish generating candidates, applying target-language scores, and finding the best result. This distinction makes it possible to ask where a decoder spends its time and memory. A representation can store the unscored candidates compactly yet require a large construction when the scores are brought in. Another can make scoring straightforward after an expensive initial expansion. The last step has its own costs as well. A shortest-path algorithm for a network with a stack needs to keep track of which returns are legal before it can compare complete paths.

#### Why equivalent representations can have different costs

For a fixed source sentence, under the paper’s assumption that the grammar cannot make unbounded insertions, the relevant target language is regular. It has a finite-state representation. The authors retain context-free rules, hypergraphs, or a stack because these can express the same choices more compactly. In this setting, the ability of a pushdown automaton to describe some nonregular languages is incidental. Its practical role is to avoid duplicating shared parts of the search space before the decoder knows which parts it needs.

Consider a target fragment that can occur in several larger patterns. A grammar can name the fragment and refer to its name wherever it is needed. In a finite-state network, a path through the fragment has to be able to continue in the right place. If the continuation depends on the route by which the path entered, a state may need to encode that information. Nested uses can require it to encode several pending continuations. The network can still be built, but the number of distinct states can grow much faster than the size of the original description.

A hypergraph represents sharing through a different operation. An ordinary edge links a source state to a destination, whereas a hyperedge can encode a rule with several constituent pieces. One hyperedge can therefore stand for a grammar production whose applications depend on multiple smaller results. This fits the structure of a parse directly. Applying a target-language scorer to the hypergraph requires connecting the scorer’s states across the constituent pieces, including the boundaries between them. The shape of the representation determines how many such combinations the decoder has to store.

A pushdown automaton keeps ordinary transitions and supplements them with a stack. The stack holds pending returns in the order in which they must be completed. In the translation setting, the useful comparison is with a finite-state decoder that has already incorporated those pending returns into its states. The stack representation can defer that incorporation and still let the target-language scorer move forward as words are encountered. Later stages can expand the portions of the search space required for the output.

#### Search efficiency and exactness in earlier work

The paper takes the grammar and target-scoring framework from Chiang’s [Hierarchical Phrase-Based Translation](https://md.research.elamur.ai/free/en/papers/chiang-2007-hierarchical-phrase-based-translation/). It describes Chiang’s approach as using a context-free or hypergraph-style representation for the target candidates. It also contrasts this with the finite-state line of work represented by [Hierarchical Phrase-Based Translation with Weighted Finite State Transducers](https://md.research.elamur.ai/free/en/papers/iglesias-2009-hierarchical-phrase-based-translation-weighted/). Both give a way to combine a hierarchical grammar with a word-sequence score. They put the boundary between compact structure and explicit search states in different places.

The related work also addresses the cost of searching existing representations. The paper associates cube growing with [Forest Rescoring](https://md.research.elamur.ai/free/en/papers/huang-2007-forest-rescoring-faster-decoding-integrated/). It describes [Efficient Incremental Decoding for Tree-to-String Translation](https://md.research.elamur.ai/free/en/papers/huang-2010-efficient-incremental-decoding-tree-string/) as exploiting the fact that the target-language history can be advanced from left to right. These approaches belong to the effort to make decoding practical when many grammar and target-context combinations are possible. The comparison in this paper deliberately isolates representation and shortest-path costs by keeping inadmissible pruning out of the shortest-path procedure itself.

The authors point out a difficulty in studying search errors. To know whether an approximate search overlooked a better candidate, a researcher needs an exact search for comparison. The paper cites prior comparisons between cube pruning and exact finite-state search for a simpler phrase-based grammar, and earlier comparisons for hierarchical translation. It also discusses exact solutions obtained through relaxation in [Dual Decomposition for Parsing with Non-Projective Head Automata](https://md.research.elamur.ai/free/en/papers/koo-2010-dual-decomposition-parsing-non-projective/) and [Exact Decoding of Syntactic Translation Models through Lagrangian Relaxation](https://md.research.elamur.ai/free/en/papers/rush-2011-exact-decoding-syntactic-translation-models/). The translation setting in the latter work uses tree-to-string rules and trigram scoring, a smaller setting than the one the authors seek to handle here.

The rescoring strategy has a separate precedent. The paper describes lattice generation and rescoring as established in speech recognition. It also notes earlier use of entropy pruning to make translation fast enough for real-time systems. The authors’ proposal is to use an entropy-pruned target-language scorer to generate a network of alternatives under a hierarchical grammar, then score those alternatives again with richer target-language information. For that plan to be practical, the first pass has to preserve enough candidates for rescoring without making the network too large to produce.

### The method, step by step

#### Parse once and keep a network of choices

The decoder starts with one source sentence and a synchronous grammar. All the approaches in the paper use CYK [parsing](https://md.research.elamur.ai/free/en/concepts/parsing/) at this stage. The parser works with spans of the source sentence and records applicable rules and their dependencies. Because a rule can refer to results for smaller spans, the parser can keep the shared structure of the derivations without writing out every target sentence. The output represents the target strings the source sentence can generate and the costs of the derivations that produce them.

The paper expresses this generation step as composition.

```
T = {s} ∘ G
```

Here `s` is the source sentence, `{s}` is the language containing just that sentence, `G` is the weighted relation defined by the synchronous grammar, and `∘` composes the singleton source language with that relation. `T` is the weighted language of target candidates. The weights allow the decoder to distinguish derivations even when several lead to the same surface string.

The paper illustrates the shared structure with a small target grammar.

```
S → abXdg | acXfg
```

`S` is the root symbol, `X` is a reference to another grammar component, and `a`, `b`, `c`, `d`, `f`, and `g` are terminal symbols. `→` introduces the possible expansions of `S`, and `|` separates the alternatives. Both alternatives use the same component `X` but specify different surrounding terminals.

```
X → bc
```

`X` is the referenced component, `→` gives its expansion, and `b` and `c` are the terminals it emits in order. A hypergraph can represent each such production with a hyperedge. A recursive transition network can represent each production by a path whose labels are either terminals or references to other components. In the example, both root paths call `X`, and each needs to resume at its own position once `X` has emitted its terminals.

The figure sequence in the paper follows these choices through the hypergraph, the recursive transition network, the pushdown automaton, and the expanded finite-state automaton. The sequence is a way to see what information moves where. A reference in the recursive network names a reusable component. The pushdown network turns that reference into an entry and a matching return. The finite-state expansion records the pending returns in the identities of its states. These constructions preserve the weighted language while changing the work needed to represent and search it.

Two-pass decoding with the pushdown representation The steps in order.

#### Turn calls and returns into a stack

A weighted finite-state automaton is a network with labelled, weighted transitions, an initial state, and final states. A path emits the input symbols it encounters, skipping empty labels. It can contribute a complete candidate when it goes from the initial state to a final state. The authors use a pushdown automaton with much the same transition structure. Some labels are parentheses which change the stack rather than emitting a target symbol. This convention lets the authors reuse parts of finite-state algorithms, since the main difference is in how those particular labels are interpreted.

An opening parenthesis pushes a symbol onto the stack. A closing parenthesis can remove it if the matching opening symbol is on top. This makes the most recent pending return the first that can be completed. A balanced string of parentheses can be empty, can join already balanced strings, or can put a matching pair around a balanced string. The paper describes those possibilities with a [context-free grammar](https://md.research.elamur.ai/free/en/concepts/context-free-grammar/) for a Dyck language, the language of correctly nested parentheses.

```
S → ε | SS | aSā
```

`S` denotes a balanced parenthesis string in this formula. `→` introduces a production and `|` separates alternatives. `ε` is the empty string. `SS` means that two balanced strings are concatenated. `a` ranges over opening symbols, and `ā` is the matching closing symbol given by a one-to-one correspondence between the opening and closing alphabets.

The formal definition separates the parentheses of a path from its target words. For an alphabet `B`, the projection `r_B` keeps each symbol belonging to `B` and erases everything else. The star on an alphabet denotes all finite strings over it, including the empty string. With the opening and closing alphabets named separately, the paper’s balance test can be written as follows.

```
r_{Π ∪ Π̄}(i[π]) ∈ D_Π
```

`π` is a path, `i[π]` is its sequence of labels, and `r_{Π ∪ Π̄}` projects that sequence onto the union `∪` of the opening alphabet `Π` and closing alphabet `Π̄`. `D_Π` is the corresponding Dyck language. The membership sign `∈` requires the projected sequence to be correctly nested. A separate projection onto the ordinary alphabet keeps the words that the path accepts.

The paper gives another characterization of balance that is useful for stating its bounded-stack condition.

```
D_A = c_A⁻¹(ε)
```

`A` is an opening-parenthesis alphabet, `D_A` is the Dyck language for it and its matching closes, and `c_A` is the operation that repeatedly removes adjacent matched opening and closing symbols. `ε` is the empty string. The inverse-image notation `c_A⁻¹` collects all inputs that the deletion procedure reduces to that string. A fragment taken from the middle of a balanced path can still have unmatched marks after this reduction.

```
|c_Π(r_{Π ∪ Π̄}(i[π]))| ≤ K
```

Here `π` ranges over subpaths of balanced paths, `i[π]` gives its labels, and `r_{Π ∪ Π̄}` retains only the parentheses. `c_Π` removes the adjacent matching pairs until there are no more to remove. The bars give the length of what is left. `K` is a fixed bound, and `≤` says the bound holds for every such subpath. For a prefix of a balanced path, the remaining opening symbols are the ones still waiting on the stack. The paper illustrates both a regular language with an unbounded-stack representation and a bounded-stack representation for the same language. Regularity concerns the language, while the stack bound concerns the particular network used to represent it.

A transition `e` has an origin `p[e]`, a label `i[e]`, a weight `w[e]`, and a destination `n[e]`. A path is a sequence of transitions in which each destination is the next transition’s origin. The accepting paths start at the initial state and finish in a final state. The path must also be balanced to accept the target string in the pushdown automaton. Balance and the ordinary target labels can therefore be checked independently on the same sequence of transitions.

```
T(x) = min_{π ∈ P(x)} (w[π] + ρ(n[π]))
```

In this formula `T` is the weighted pushdown automaton and `x` is a string over its ordinary input alphabet. `P(x)` is the collection of balanced accepting paths whose ordinary labels spell `x`. `w[π]` sums the transition weights of path `π`, `n[π]` is its last state, and `ρ` assigns that state its final weight. The plus sign adds that final cost, and `min` chooses the lowest total cost over the paths that accept `x`. This is the tropical weighting convention used in the paper. Costs on a path add, alternatives are compared by minimum, an unavailable path has cost `∞`, and `0` is the neutral cost for addition.

#### Build the pushdown network from the parse

The recursive transition network gives the decoder a direct route from the parse to the pushdown representation. It has an alphabet of nonterminal names and a finite automaton for each name. In a component, a terminal transition contributes an ordinary target symbol. A nonterminal transition stands for an accepting path through the component it names. A candidate is the terminal string that remains after the calls have been followed from the root and all the component paths have been inserted.

The replacement algorithm retains the component states and the ordinary transitions. At a call, it puts an opening transition from the caller into the called component. The call’s cost is paid on entry. A closing transition leaves a final state of the called component, pays its final cost, and leads to the continuation in the caller. Pairing the entry and return labels prevents a path from returning to an incompatible destination. The initial and final states for the whole network come from the root component. These rules turn a recursive interpretation of a transition into a condition on an ordinary path through a larger network.

The same subnetwork can now be shared by several calling paths. A state in that subnetwork records the local position in it, while the parentheses account for the caller. There is no need to copy the states of the subnetwork for each sequence of callers. The paper gives the construction time as linear in the size of the resulting pushdown automaton. It also explains how to give a component a common final state so that the resulting size is linear in the recursive network. With a single exit for each component, a call need not introduce return transitions from each of several component finals.

The recursive network also matters in the finite-state decoder. HiFST begins with that representation and expands it by a procedure equivalent to making the pushdown automaton and then eliminating its stack. HiPDT keeps the stack through scoring and shortest-path search. Both can optimize their networks. The paper describes removal of empty transitions, determinization, and minimization applied to individual recursive or pushdown components, or to a finite-state network as a whole. The authors implement the pushdown algorithms in the PDT extension of OpenFst.

#### Intersect the translation network with target-language scores

The decoder has to accumulate the target-language cost for exactly the words chosen by a translation path. The paper represents the target scorer as a finite automaton. Its state carries the history needed to assign the next n-gram cost. Intersection makes a network whose paths perform the translation and target scoring together.

```
L = T ∩ M
```

`T` is the weighted language of grammar-generated candidates, `M` is the weighted regular language supplied by the target-language scorer, `∩` is weighted intersection, and `L` is the resulting weighted language. A string in the result has to be supported by both sides, and the operation combines their costs.

```
(T₁ ∩ T₂)(x) = T₁(x) + T₂(x)
```

`T₁` is a weighted pushdown automaton, `T₂` is a weighted finite-state automaton, and `x` is a string over their shared ordinary alphabet. The left side gives the cost assigned to `x` by the intersection, and the right side adds the costs assigned separately to it by the two automata. An unavailable string has infinite cost on the side that lacks it.

A state of the product records the current pushdown state and the current target-scorer state. On an ordinary word transition the product advances both sides on the same word and adds their weights. On a pushdown transition labelled with an empty symbol or a parenthesis, only the pushdown side advances in the basic construction. This ensures that entering or leaving a component has no effect on the word history unless the path emits a word. The product starts in the pair of initial states and can end where both sides are final, in which case their final costs are added.

The construction presented without a filter assumes the finite-state side has no empty-input transitions. The paper describes using a generalized epsilon filter when that side has such transitions. The filter coordinates the empty moves so the product handles them correctly alongside the parentheses. The product keeps the stack structure of the translation network. With the state-and-transition sizes used in the paper, its time and space cost is bounded by the product of the input sizes.

#### Find the cheapest balanced path

Once the network carries both sets of costs, the decoder seeks the highest-scoring complete translation under the combined scoring function. The paper formulates this as maximizing the score over candidates, then implements it as a shortest-path calculation with negative log probabilities. Under that cost convention, greater probability gives lower cost.

```
l̂ = argmax_{l ∈ L} L(l)
```

`L` here is understood in its score form, before conversion to costs. `l` is a candidate in that weighted language, `L(l)` is its combined score, and `argmax` returns a candidate attaining the greatest score. The hat on `l̂` marks the selected result. In the automaton used for search, the equivalent operation minimizes the cost of a balanced accepting path.

An ordinary shortest-path search can extend a path by examining outgoing transitions and updating the best distance to each destination. A pushdown search cannot treat a return in that way without checking which call it closes. The paper’s solution is to work with balanced segments. For a state entered through an opening transition, the algorithm finds shortest distances along balanced paths beginning at that state. Any such segment has no net effect on the stack. A matching closing transition after it can therefore bring the path back to the level at which it began.

The algorithm caches the distances for each relevant starting state. The same component entry can be reached by different opening transitions or be part of several possible derivations. Reusing its internal distances saves the work of finding the same balanced subpaths for each use. The cache records a distance `d[q,s]` from an entry `s` to a state `q` along a balanced path. It also records reachable closing transitions by entry state and parenthesis label. These allow an outer search to extend a path across a whole matched call and return at once.

An ordinary word or empty transition can update a distance directly. A closing transition is recorded as a possible return. When the search encounters an opening transition, it starts the distance calculation from the transition’s destination if needed, then looks up the closes that match it. The relaxation step for such a pair considers the total cost of getting to the call, entering, following the cheapest balanced interior, and leaving.

```
w = d[q,s] + w[e] + d[p[e′],n[e]] + w[e′]
```

`w` is the proposed distance for the state after the return, starting from `s`. `d[q,s]` is the current cost to reach the state `q` before the call. `e` is the opening transition, `n[e]` is its destination, `e′` is a matching closing transition, and `p[e′]` is that transition’s origin. The middle distance is the cheapest balanced interior between those two states. `w[e]` and `w[e′]` are the entry and return costs, and all four costs are added. The relaxation keeps the cheaper of the proposed distance and the one already known. Saving the choices that produced the final distances lets the decoder recover the path as well as its cost.

The paper presents the algorithm with a single final state of cost `0` to simplify the description. Its answer for the shortest distance is then the cached distance from the initial state to that final state. The same balanced-subpath principle also supports the lattice-generating version used in the experiments. In that version the output keeps alternatives for later scoring. Each retained path has a correctly evaluated first-pass cost. Which paths are retained is a separate choice from how their costs are computed.

#### Expand only when a finite-state network is needed

Expansion replaces each reachable state and stack configuration with a finite-state state. The paper gives explicit rules for this conversion in the bounded-stack case.

```
q′ = (q,z)
```

`q′` here names a state in the expanded automaton, `q` is its underlying pushdown state, and `z` is the string of opening symbols currently on the stack. The ordered pair identifies the same local state separately when its pending returns are different.

An ordinary symbol or an empty transition changes the local state and leaves `z` alone. An opening transition appends its symbol to `z` and becomes an empty transition in the expanded network. A closing transition is available only when the last symbol of `z` is its matching opening symbol. It removes that symbol and also becomes an empty transition. The original transition costs are carried over. The expanded initial state pairs the original initial state with an empty stack, and an expanded state is final only when its local state is final and its stack is empty. In that case it inherits the local state’s final cost.

Expansion is linear in the size of the expanded network. That size can be exponential in the size of the pushdown network because a local state may occur with many stack contents. This is the operation HiFST performs directly after building its recursive translation network. HiPDT can defer it until the output of shortest-path search. The paper also considers expansion just after intersection, before shortest-path search. The authors report that this intermediate placement behaves much like HiFST in practice.

The distinction becomes concrete when a lattice is needed. The lattice is itself a finite-state network, so HiPDT still has to materialize states for pending-return configurations in the part it outputs. Its advantage comes from bringing in first-pass costs and searching before that conversion. The advantage depends on how much structure can be kept implicit until then, and on how many alternatives the lattice needs to preserve for the rescoring pass.

#### Compare where each representation spends its resources

The complexity discussion uses the count of states plus the count of transitions as the size of an automaton. It separates the cost of parsing from the cost of the target-language product and the cost of finding a best path. The starting bound for producing the shared grammar, hypergraph, recursive network, or pushdown representation is as follows.

```
O(|s|³ |G|)
```

`O` denotes an asymptotic upper bound. `|s|` is the length of the source sentence, the superscript `³` cubes that length, and `|G|` is the size of the synchronous grammar. The adjacent factors are multiplied. The paper gives this bound for time and space under CYK. The finite-state form can require exponential time and space in addition, because it expands the shared representation.

For hypergraph intersection, the paper gives the classical construction’s bound in terms of the size of the target hypergraph and the size of the finite-state target scorer.

```
O(|Tʰ| |M|³)
```

`Tʰ` is the hypergraph or corresponding context-free representation of the target candidates, `M` is the finite-state target scorer, and the bars denote sizes. `O` is an upper bound, and `³` is the power on the scorer’s size. These are time and space bounds for the intersection. The paper also mentions a modified construction from Chiang’s decoder with a fourth power of the scorer’s size. Once the scored hypergraph is available, the shortest-path calculation is linear if the underlying structure is acyclic.

```
O(|Tᵖ| |M|)
```

`Tᵖ` is the pushdown representation of the target candidates, `M` is the finite-state scorer, and the bars again give sizes. `O` is an upper bound for the intersection’s time and space. The product can be formed without unfolding the stack because its paired states track the local pushdown position and scorer position. The finite-state intersection has the analogous bound with `Tᶠ`, the already expanded finite-state representation, in place of `Tᵖ`. Its shortest-path search is linear under the paper’s acyclicity assumption. The cost of obtaining `Tᶠ` can dominate both operations.

The pushdown representation moves some of the work to shortest-path search. In a general bounded-stack network, the algorithm may need distances for many pairs of states and lists with many possible returns. The paper expresses the general running-time bound in terms of the queue discipline.

```
O(N |T|³ Γ(|T|))
```

`N` is the maximum number of times a state is put on the queue during one distance calculation. `|T|` is the size of the pushdown network, `³` is the power on that size, and `Γ(|T|)` bounds the cost of a queue operation at that scale. `O` is the asymptotic upper bound. The multiplicative factors account for repeated state processing, matching transitions, and operations on the queue.

```
O(|T|³ log |T|)
```

This is the paper’s time bound for the general bounded-stack shortest-path procedure with non-negative weights and a shortest-first queue. `|T|` is network size, `³` cubes it, `log |T|` is its logarithm, and `O` denotes the upper bound. With acyclic sets of states reachable along balanced paths from each entry, a topological order removes the logarithmic factor. The generic space bound is quadratic in `|T|`, since the distance entries and the records of possible closes can each have quadratic size.

The translation networks have more structure than an arbitrary pushdown automaton. Before target-language intersection, the paper identifies a unique component entry for the balanced-distance calculation associated with a given state. With acyclic recursive components, shortest path on the converted, unscored network is linear in its size. After intersection, the same translation state can be paired with different target histories. The state still belongs to the same translation component, so only the target-language part of an entry can vary. That restriction explains why the shortest-path cost for these translation products does not have a cubic dependence on the entire product size.

```
O(|s|³ |G| |M|³)
```

This is the total time bound the paper summarizes for both the hypergraph and pushdown approaches. `O` is an upper bound, `|s|` is source sentence length, `|G|` is grammar size, and `|M|` is scorer size. The powers apply to sentence length and scorer size separately. The hypergraph construction pays the cubic scorer factor when building the intersection. The pushdown approach can pay it in shared shortest-path calculations after an intersection that is itself linear in scorer size.

```
O(|s|³ |G| |M|²)
```

This is the corresponding total space bound for the pushdown approach. The symbols again give the source length, grammar size, and scorer size. The superscript `²` squares scorer size and `³` cubes sentence length. In the hypergraph approach the space bound retains the cubic dependence on scorer size. In the finite-state approach the paper’s total bounds multiply the possible exponential cost of expansion by the scorer size. These are comparative upper bounds before the component optimizations used in the actual decoders.

#### Train the grammar and the target scorers

The translation grammar comes from parallel Chinese and English text. The authors draw on part of the parallel data from the 2008 GALE evaluation, with 2.1M sentences and roughly 45M words per language. They align words with MTTK in each translation direction and take the union of the directional alignments. They apply the hierarchical phrase extraction heuristics and rule filtering described in the earlier work. The extracted weighted rules are the material the decoder uses to generate candidates for each source sentence.

The experiments use two versions of that grammar. The restricted one keeps rules whose forward translation probability passes the additional threshold written below.

```
p > 0.01
```

`p` is the rule’s forward translation probability, `>` is the strict greater-than comparison, and `0.01` is the cutoff. The authors call this grammar `G₁`. `G₂` omits the additional filter and contains the rules of `G₁` as well as the rules excluded by that threshold. Using these two grammars lets the authors establish a full-search reference in one setting and examine the consequences of a larger search space in the other.

The main target-language scorer, `M₁`, is a Kneser-Ney 4-gram trained on 1.3B English words. Its training text includes the target side of the parallel data and the AFP and Xinhua portions of the English Gigaword Fourth Edition. A separate 5-gram is estimated from 6.6B words of English newswire with zero-cutoff stupid backoff, a scoring approach drawn from [Large Language Models in Machine Translation](https://md.research.elamur.ai/free/en/papers/brants-2007-large-language-models-machine-translation/). The authors interpolate the 5-gram with `M₁` to make `M₂`, which they use for larger-scale rescoring.

The baseline HiFST system uses `M₁` and tunes its weights on the development set with minimum error rate training, or MERT. This is the iterative parameter estimation process used to optimize IBM BLEU in the experiment. The researchers retain those weights for compact first-pass decoding, with a change for the word penalty, which they tune on the lattices. The word penalty is a score contribution associated with target length. Restoring its baseline value when rescoring with `M₁` allows the reference and the rescored lattices to be evaluated under the same final parameters.

#### Use a compact first pass and a richer second pass

Entropy pruning reduces the number of n-grams used in the first pass. The procedure uses a relative perplexity threshold, `θ`, to control pruning. The modified scorer is written `M₁^θ`, with `θ` as a setting instead of an exponent to be evaluated. A higher threshold in the tested settings yields a smaller scorer. The grammar stays fixed for a given run, so reducing scorer size changes how the same grammar candidates are ranked and how many target-history states the network must accommodate.

The first pass scores the target candidates with `M₁^θ` and generates a lattice. The decoder prunes the lattice according to a likelihood beam with width `β`. A wide beam can keep candidates whose first-pass scores are well behind the preferred ones, giving the stronger scorer more room to change the ranking. A narrow beam produces a smaller network but can remove a path that would have done well under `M₁` or `M₂`. The appropriateness of a beam therefore depends on how much the first-pass rankings change under the final scoring function.

In the standard second pass, the decoder removes the contributions from `M₁^θ`, restores the original word penalty, and applies `M₁`. It can also use the larger `M₂` for rescoring. The paper carries out these operations on finite-state lattices, including those generated by HiPDT. The stack is used to construct and search a compact representation earlier, and the same kind of lattice can serve as the interface to the final scoring operation.

The exactness argument has a condition. If the lattice contains all paths that could win under the final scoring function, exact search on that lattice recovers the full-search result. An unlimited beam preserves all paths in the idealized procedure. If the first-pass scorer is already `M₁`, it also removes the mismatch in ranking that motivates the approximation. With a compact first-pass scorer and a finite beam, exact costs and exact shortest paths in each stage coexist with the possibility of a search error across the pipeline. The second pass has access only to paths the first pass allows to survive.

### Experiments and results

#### The evaluation setup

The paper reports Chinese-to-English results on tune-nw, the development set of 1,755 sentences, and test-nw, the test set of 1,671 sentences. These contain GALE translations and parts of the newswire material from MT02 through MT06. The table of translation results uses lower-case IBM BLEU, which evaluates the chosen outputs against reference translations. The implementation comparison also reports first-pass time in seconds per word on test-nw and the proportion of tune-nw sentences completed under a memory cap. Each metric captures a different part of decoder behaviour.

HiFST provides the unrestricted-search reference when the grammar is `G₁`. It can construct the complete finite-state candidate space in this setting and score it with unpruned `M₁`. The paper reports that HiPDT and HiFST yield identical performance under this grammar when their complete search spaces are used. The methods preserve the same candidates and can use the same final scoring function. That property makes `G₁` useful for checking how much of the full search a compact-first-pass configuration recovers.

The larger grammar, `G₂`, serves a different purpose. The paper evaluates whether the decoders can get through exact first-pass search under a 10 GB cap with that grammar. When a process reaches the cap, it is stopped and the operation underway is recorded. Final BLEU with `G₂` is reported for the HiPDT configuration using the most compact first-pass scorer in the comparison, followed by rescoring. The unrestricted grammar has a larger set of rules, so this comparison tests what becomes feasible when the representation can retain more of the grammar.

#### Compact first passes under the restricted grammar

With unpruned `M₁` and `G₁`, HiFST reports 34.3 BLEU on tune-nw and 34.5 on test-nw. The first pass takes 0.68 seconds per word on test-nw. Rescoring the baseline lattice with `M₂` gives 34.8 BLEU on tune-nw and 35.6 on test-nw. The unpruned `M₁` scorer contains 207.5 million n-grams. It provides both the quality reference for the compact versions and the same-grammar reference for detecting changes to the top translation.

First-pass HiFST BLEU on test-nw with the restricted grammar Stronger entropy pruning lowers first-pass translation quality before lattice rescoring.

**The numbers**

| System or setting | BLEU |
| --- | --- |
| Unpruned M₁ (this paper) | 34.5 |
| θ = 7.5 × 10⁻⁹ | 32.8 |
| θ = 7.5 × 10⁻⁸ | 30.0 |
| θ = 7.5 × 10⁻⁷ | 26.4 |

At `θ = 7.5 × 10⁻⁹`, entropy pruning leaves 20.2 million n-grams. With `G₁`, this setting produces 32.0 first-pass BLEU on tune-nw and 32.8 on test-nw. Its first-pass time on test-nw is 0.38 seconds per word. At beam `β = 10`, rescoring with `M₁` gives 34.3 BLEU on tune-nw and 34.5 on test-nw, the reported baseline scores. The gain in speed is in the first pass. The BLEU recovery comes after the original scoring function is reapplied to the retained candidates.

At `θ = 7.5 × 10⁻⁸`, the scorer contains 4.1 million n-grams. Using `G₁`, the first pass takes 0.28 seconds per test-nw word and scores 29.5 BLEU on tune-nw and 30.0 on test-nw. At `θ = 7.5 × 10⁻⁷`, it contains 0.9 million n-grams and takes 0.20 seconds per test-nw word, with first-pass BLEU of 26.0 on tune-nw and 26.4 on test-nw. The authors report that the wider beams used to recover strong candidates in these settings reach `12` and `15`, respectively.

The paper reports a similar pattern when the lattices are rescored with `M₂`. The richer scorer can attain the reported baseline performance when the first-pass lattice has been pruned with a sufficiently wide beam. The authors observe that the required beam is similar for rescoring with `M₁` and with `M₂` at a given first-pass size. Though the compact scorer chooses worse outputs by itself, its ranking still retains enough strong alternatives within the tested beams for high corpus-level scores after rescoring.

The time measurements and BLEU measurements refer to different stages. The reported reductions in seconds per word, from 0.68 for the baseline first pass to 0.38, 0.28, and 0.20 for the compact first passes, do not include rescoring. A lattice can contain a candidate that restores BLEU even when the compact scorer put that candidate well below its own best path. That is why first-pass quality and final quality can move differently as the pruning threshold increases.

#### Exact first-pass completion under the unrestricted grammar

The memory-cap comparison holds `G₂` and the first-pass scorer fixed within each pair of runs. At `θ = 7.5 × 10⁻⁹`, the paper reports that HiFST completes exact search on 218 development sentences and HiPDT on 703. The reported success percentages on tune-nw are 12 for HiFST and 40 for HiPDT. HiPDT also retains a completion advantage when the first-pass scorer is reduced further.

Exact first-pass completion on tune-nw with G₂ under the memory cap HiPDT completes more sentences at every pruning setting and approaches full completion with the smallest scorer.

**The numbers**

| System or setting | sentences completed % |
| --- | --- |
| HiFST, θ = 7.5 × 10⁻⁹ | 12 |
| HiPDT, θ = 7.5 × 10⁻⁹ | 40 |
| HiFST, θ = 7.5 × 10⁻⁸ | 16 |
| HiPDT, θ = 7.5 × 10⁻⁸ | 76 |
| HiFST, θ = 7.5 × 10⁻⁷ | 18 |
| HiPDT, θ = 7.5 × 10⁻⁷ (this paper) | 99.8 |

At `θ = 7.5 × 10⁻⁸`, HiFST completes 16% of tune-nw and HiPDT completes 76% under the cap. At `θ = 7.5 × 10⁻⁷`, the completion rates are 18% and 99.8%, respectively. The paper describes the last HiPDT setting as completing exact search on all but three development sentences. The score being optimized in this comparison is that of the compact first-pass scorer combined with `G₂`. A completion shows that the decoder could find a best path for those scores under the stated resource constraint.

The operation being performed at the memory limit helps account for the different completion curves. HiFST can exceed the cap while expanding the unscored candidate space or while intersecting the expanded network with the first-pass scorer. HiPDT can exceed it while intersecting the pushdown representation or while expanding the result for finite-state output. The runs therefore put the pressure of finite-state expansion at different points. The memory-cap comparison measures the effect of scheduling that operation along with the other differences inherent in the two representations.

#### Rescoring translations from the larger grammar

With `G₂` and `θ = 7.5 × 10⁻⁷`, the HiPDT first pass gives 25.7 BLEU on tune-nw and 26.3 on test-nw. Rescoring with `M₁` raises the results to 34.6 BLEU on tune-nw and 34.8 on test-nw. With `M₂`, the reported scores are 35.2 and 36.1. These are the results from the larger grammar with a compact first pass and richer final scoring, so the comparison includes the practical consequences of retaining only part of the first-pass space for rescoring.

Test-nw BLEU after M₂ rescoring with restricted and unrestricted grammars The stack-based run with the larger grammar achieves the higher rescored test result.

**The numbers**

| System or setting | BLEU |
| --- | --- |
| HiFST, restricted grammar G₁ | 35.6 |
| HiPDT, unrestricted grammar G₂ (this paper) | 36.1 |

The paper reports the test-set improvement over the rescored `G₁` baseline as 0.5 BLEU. That comparison illustrates the translation-quality benefit available in the larger-grammar run. It does not isolate a scoring benefit from using a stack. When the representations encode the same complete candidate set and the costs are the same, they implement the same search objective. What HiPDT makes feasible here is a search under the bigger grammar within the experimental memory budget, using the compact scorer to build candidates for the second pass.

### What the ablations show

#### Pruning the scorer changes ranking more than it changes candidate availability

The restricted-grammar experiments vary the entropy threshold while holding the grammar fixed. They also evaluate the lattices at different likelihood beams. This is the closest the paper comes to varying the two controls of the rescoring strategy separately. `θ` determines the size of the scorer used to rank paths in the first pass. `β` determines how far the decoder can reach down that ranking when it preserves candidates for the second. Keeping the grammar fixed makes it possible to relate losses after rescoring to the scorer and beam rather than to rules excluded from the search space.

The first-pass BLEU results establish that scorer compression materially changes what the decoder would output if it stopped there. At the same time, recovery after rescoring establishes that many useful paths are still present in the lattice. A candidate can have a weak first-pass rank and still be available to `M₁` or `M₂`. The larger beams used with stronger entropy pruning show how the two controls trade off. Reducing the size of the scorer makes its application easier, and retaining alternatives further down its ranking makes the rescoring problem larger.

The comparison between `M₁` and `M₂` gives another perspective on candidate availability. The same lattice is reused for both richer scorers, and the paper reports similar beam requirements to recover the respective baseline performance. This means the retained paths serve both scoring functions reasonably well at the corpus level in this setup. It leaves open whether the same individual sentences or the same lattice paths account for recovery under each scorer.

#### Matching BLEU can conceal search differences

The paper compares the actual top translations from the exact `G₁` baseline and from the compact-first-pass systems. At `θ = 7.5 × 10⁻⁹` and `β = 10`, it reports 45 differing top hypotheses even though BLEU is identical. The authors interpret these differences as cases where the first-pass beam discarded the baseline output. They report 101 failures to recover it at `θ = 7.5 × 10⁻⁸` with `β = 12`, and 95 for the most aggressively pruned setting in the corresponding comparison. These counts compare particular tested configurations whose beam widths are allowed to differ.

BLEU pools evidence about how outputs match reference translations. A candidate preferred by the full scoring function can be replaced by another that makes a similar contribution to the aggregate score. The output comparison detects this even where the aggregate score stays constant. It also shows why measuring exactness through BLEU alone would give an incomplete picture of the two-pass method. The paper can observe these changes because, with `G₁`, it can search under the full scoring function and obtain a reference output for each sentence.

Some baseline outputs would require what the authors consider impractically wide beams to preserve. The paper suggests the interaction between Kneser-Ney smoothing and entropy pruning as a possible explanation. This is a hypothesis about the cases where first-pass rankings change substantially. The comparison varies the entropy threshold and beam, while keeping the smoothing method within that family of scorers. It therefore exposes a ranking problem without identifying smoothing as its cause.

#### Delayed expansion changes where the memory cap is reached

The `G₂` comparison changes the representation while keeping the grammar, pruning threshold, and memory cap the same within a run pairing. The failure breakdown shows how the representation affects memory usage at different stages. At `θ = 7.5 × 10⁻⁸`, the paper records 938 HiFST failures during expansion and 536 during composition with the first-pass scorer. At the same threshold, it records 403 HiPDT failures during expansion. The authors report these as counts of the operation in progress when decoding is stopped.

The percentages at that threshold tell a complementary story. For HiFST on tune-nw, 53% of sentences encounter the limit during expansion and 31% during composition. For HiPDT, 1% encounter it during composition and 23% during expansion. In HiFST the original translation space is made explicit before target-language scoring, and the expansion step is the most frequent failure point. In HiPDT the pushdown product is built first, and expansion remains the more common failure point of its operations once the scorer is moderately compact.

Reducing the first-pass scorer has comparatively little effect on the expansion bottleneck of HiFST, since that expansion happens before the scorer is applied. The reported expansion-failure percentages on tune-nw are 51, 53, and 53 across the tested settings. For HiPDT, with the scorer already incorporated before expansion, the expansion-failure percentages are 52, 23, and 0.2. The counts are from runs under the stated memory cap. Together with the operation order, they provide direct evidence about which part of each decoder is sensitive to scorer size.

The authors also report that HiFST can match the larger-grammar BLEU performance of HiPDT with carefully designed pruning. Those settings and their search-error rates are not detailed in the comparison. The controlled result is the difference in feasibility of the exact first-pass search under the common cap. The matching-BLEU observation supports the paper’s distinction between output quality and the search decisions taken to obtain it.

### Limitations

#### Limits stated by the authors

The authors qualify the memory experiment because it ran on machines with different configurations and loads. They regard the reported values as approximate. A run stopped at the cap establishes that the implementation reached the limit while performing a particular operation under the test conditions. It does not measure how much memory a completed run would have needed, or how much time it would have taken with a higher cap.

HiPDT remains sensitive to the size of the target-language scorer. The paper identifies the finite-state expansion of the scored output as a particular problem, even after intersection has benefited from the stack representation. Using a compact scorer makes exact first-pass search practical on nearly all development sentences in the strongest reported setting. It comes at the cost of relying on simpler target-language scores during candidate selection. A richer scorer can change that decision only when the candidates it prefers have survived in the lattice.

The authors also describe settings where the finite-state approach can be efficient. With a restricted enough grammar, early expansion is feasible and leaves a representation suited to applying a large scorer. When both approaches can search the same space under the same scoring function, the paper expects them to reach the same translation performance. The authors propose a hybrid choice of representation, potentially informed by the size of the expanded finite-state space. They present it as a possible direction following from the tradeoff, with no hybrid evaluation.

The asymptotic comparison is based on the algorithms and structural assumptions in the paper. In particular, acyclicity matters for the linear shortest-path bounds, and the general shortest-first bound for the pushdown algorithm uses non-negative weights. The authors note that a better pushdown shortest-path algorithm could change the comparison. They also report substantial practical savings from finite-state optimizations that the asymptotic comparison sets aside. Actual decoder efficiency depends on how much sharing and simplification the networks admit, alongside their theoretical worst-case sizes.

#### Limits visible in the design

The restricted grammar serves as the exact-search reference because the full space is tractable there. The larger grammar is the setting where the representation matters most, and it is also the setting where the paper lacks an exact final benchmark with the full target-language scorer. As a consequence, the reader can assess search differences directly under `G₁` and see completion rates for compact first-pass search under `G₂`. The experiments do not determine how frequently the final output under `G₂` differs from a hypothetical exact search with the full scorer on the unpruned candidate space.

The design also gives different roles to the grammar comparison and the decoder comparison. The memory-cap experiment matches the grammar and compact scorer across implementations. The reported BLEU improvement uses the unrestricted grammar with HiPDT and the restricted grammar with the HiFST baseline. Its interpretation is that the larger-grammar pipeline produces the better measured output under those conditions. A claim that the representation by itself improves translation quality would require a different comparison.

Likewise, the first-pass timing data are specific to HiFST with `G₁` on test-nw. They show how first-pass speed changes as the scorer shrinks. The memory experiment gives completion and failure statistics for both decoders with `G₂`, on tune-nw. There is no full runtime comparison of the finished rescoring pipelines under the larger grammar. Wider beams can retain more lattice material and shift the work downstream. The reported first-pass speeds therefore leave the end-to-end timing tradeoff unresolved.

The empirical scope is Chinese-to-English newswire under the reported training, tuning, and test setup. The results show how the compared implementations behave with these grammars and these target scores. They do not establish where the crossover between representations would fall in other language pairs, domains, or resource conditions. The unrestricted grammar that succeeds in most compact first-pass runs is evidence for feasibility at the scale tested. The more general claim in the discussion about using a pushdown representation with large grammars and entropy-pruned scorers extends beyond what the experiments directly verify.

Finally, the BLEU comparisons and top-hypothesis counts leave some aspects of search quality unresolved. A differing output shows that the full-search choice was not recovered in that case, under the paper’s interpretation. The count alone gives no distribution of score losses and does not indicate how consequential each change is for a human reader. Conversely, recovering BLEU on a corpus says little about which alternatives would survive for another downstream scoring function. The experiments establish both aggregate quality and individual output differences, with each measurement answering its own question.

### What came after

The paper closes by proposing a decoder that could choose between finite-state and pushdown representations according to the size of the expanded search space or other properties of the input. That is a direction proposed by the authors. No later citing work is documented here from which to trace its implementation or evaluation.

## Cite

Cite as Gonzalo Iglesias, Cyril Allauzen, William Byrne, Adrià de Gispert and Michael Riley. 2011. Hierarchical Phrase-based Translation Representations. Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing.

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

```bibtex
@inproceedings{iglesias2011hierarchical,
  title = {{Hierarchical Phrase-based Translation Representations}},
  author = {Gonzalo Iglesias, Cyril Allauzen, William Byrne, Adrià {de Gispert} and Michael Riley},
  booktitle = {Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing},
  year = {2011},
  url = {https://aclanthology.org/D11-1127/}
}
```

> 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)
