---
title: "Approximate Factoring for A* Search — Haghighi 2007"
description: "Approximate Factoring for A* Search shows how simpler views of a parsing problem can guide the search for its lowest-cost tree."
canonical: "https://research.elamur.ai/free/en/papers/haghighi-2007-approximate-factoring-search/"
---
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/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/haghighi-2007-approximate-factoring-search/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2007](https://md.research.elamur.ai/free/en/papers/2007/) / Approximate Factoring for A* Search

# Approximate Factoring for A* Search

Paper · 2007 · Aria Haghighi, John DeNero and Dan Klein

**Authors:** [Aria Haghighi](https://md.research.elamur.ai/free/en/authors/aria-haghighi/), [John DeNero](https://md.research.elamur.ai/free/en/authors/john-denero/) and [Dan Klein](https://md.research.elamur.ai/free/en/authors/dan-klein/) · **Year:** 2007 · **Venue:** Human Language Technologies 2007: The Conference of the North American Chapter of the Association for Computational Linguistics; Proceedings of the Main Conference · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[**8** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W206380417) · [Cited by **5** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/haghighi-2007-approximate-factoring-search/cited-by/) · [Human Language Technologies 2007: The Conference of the North American Chapter of the Association for Computational Linguistics; Proceedings of the Main Conference](https://aclanthology.org/volumes/N07-1/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/N07-1052/)
- [PDF](https://aclanthology.org/N07-1052.pdf)
- [OpenAlex](https://openalex.org/W206380417)

Citations: OpenAlex, 2026-10-14.

## Summary

A parser can know how to score a tree and still have trouble finding the tree with the best score. The difficulty comes from the number of ways to combine partial analyses. A search procedure can save work by asking how much it would cost to finish each partial analysis, then considering the most promising ones first. A* search makes this strategy exact when its estimates of the remaining cost are lower bounds. The challenge is to obtain a bound that is cheap to compute and close enough to the real cost to change the order of search. Approximate Factoring for A* Search develops a way to build such estimates for [parsing](https://md.research.elamur.ai/free/en/concepts/parsing/) problems that have several simpler views.

The authors start from a distinction between the structure of a problem and the way it is scored. A tree for a sentence and its translation can be split into a tree for each language. A tree that records the head word of each phrase can be viewed through its phrase structure and through its word-to-word attachments. Those views are easy to define even when the full score depends on interactions between them. The paper fits a separate set of costs for each view. If the fitted costs for every local rule add up to at most its full cost, the cheapest completions in the simpler views can be added to give a lower bound for the joint problem. A softer fitting objective allows some local overestimates when strict bounds are difficult to obtain or when accepting errors can make search more efficient.

For English–Spanish bitext parsing, the authors enforce the lower-bound condition on the rules of their synchronous grammar. Using both monolingual views cuts the number of hypotheses expanded relative to exhaustive search, while retaining the minimum-cost synchronous parse. In a separate experiment that adds word-alignment costs, combining the authors’ estimate with a lexical estimate reduces search work further. For English lexicalized parsing, there are too many possible rules to fit a bound against all of them. A heuristic learned from observed and sampled configurations still reduces search work. When an exact factored heuristic supplies the reference answer, the approximate search misses the minimum-cost parse in less than 1% of test sentences. For the scoring setup that couples phrase structure and lexical choices, exhaustive checks find no search errors through sentence length 15. On English Penn Treebank test sentences of length up to 40, the approximate search yields EVALB F1 scores of 82.2 with factored scoring and 83.8 with coupled scoring. The reliability of the search and the accuracy of its trees against human annotations are separate findings.

## Deep dive: Approximate Factoring for A* Search

Approximate Factoring for A* Search shows how simpler views of a parsing problem can guide the search for its lowest-cost tree. · 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

#### Scoring a tree and finding it

In the problems the paper studies, the input is given and the output has to be assembled. A parser looking at a sentence can construct an analysis for a short stretch of words, combine it with an adjacent analysis, and keep building until it has a tree covering the input. Each local choice contributes to the cost of the tree. In the probabilistic settings considered in the paper, the cost is typically a negative log probability, so finding the most probable analysis is equivalent to finding the one with the least total cost.

The ingredients of a partial analysis matter to subsequent choices. If a phrase carries a head word, a combination farther up the tree can depend on that word. If the input contains aligned sentences in different languages, a fragment on one side has a counterpart on the other. Such information can make the full scoring scheme sensitive to choices that a simpler parser could ignore. It also gives search more distinctions to retain. Two hypotheses that cover the same words can have different prospects because they encode different structural or lexical information.

The paper describes these procedures as agenda-based. The agenda holds hypotheses waiting to be expanded, and a priority determines which is taken next. Expansion makes a hypothesis available for combinations that produce larger ones. The path terminology in the general presentation captures the sequence of choices leading to a goal. In parsing, a single combination can require several partial trees at once, so the authors note that the more literal representation is a hypergraph, where a connection can join several antecedents. The argument about costs works with the local contributions in the resulting derivation.

A search priority can use the cost already incurred to build a hypothesis. That cost says little about how easily the hypothesis can fit into a whole tree. A cheap fragment may need an expensive continuation, while a more expensive fragment may fit naturally into the best tree. A* brings the cost of completion into the priority. For a partial tree, completion means the structure needed around it to reach a legal full analysis, including whatever other subtrees and combinations that requires. An estimate of this cost helps search delay hypotheses whose cheapest possible full analysis is already unattractive.

In the cost convention used by the paper, an admissible estimate is at most the true minimum completion cost. The direction of that inequality matters. A lower bound leaves open the possibility that a promising partial analysis will turn out to be expensive. It allows search to postpone a competing analysis only when even the optimistic estimate gives sufficient grounds to do so. An overestimate can obscure a route to the best full tree. On the other hand, a very low estimate might place almost every hypothesis within reach of the optimum, requiring a large agenda and many expansions before the goal is settled.

#### What earlier search methods supplied

The authors trace A* to Hart and colleagues. They describe the difficulty in language applications as a practical one. The guarantee depends on a suitable estimate, and inventing an estimate that is both informative and economical is hard. The paper points to beam search and pruning based on simpler scoring schemes as common alternatives. These procedures can reduce the hypotheses under consideration, at the risk of discarding a hypothesis needed for the minimum-cost output. The authors also cite examples of admissible estimates for particular problems, including work on alignment and on efficient parsing with inversion transduction grammars.

The closest precedent is Klein and Manning’s projection-based A* search. A projection retains some of the information in a hypothesis and omits the rest. In a lexicalized tree, a phrase-structure projection can keep the category and bracketing information, while a dependency projection keeps the lexical attachments. Each projected search is simpler. If the original costs already split into a contribution from each view, the cheapest completions in the views give an additive bound on the cheapest completion in the full problem. The paper relates this principle to earlier work on additive search heuristics.

That starting point requires more than the ability to draw two simplified versions of a tree. It requires the score of every local choice to have an additive form across those versions. The paper illustrates the distinction with joint [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/) and [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/). A search state can carry both types of label, so it is straightforward to define a view for each. Exact independence in the costs would impose a strong restriction on how the joint transitions and observations are scored. The reason for using joint information in the first place may be that the appropriateness of one decision depends on the other.

The research question is whether a scoring scheme can retain those interactions while the search heuristic takes advantage of the separate views. The paper’s answer is to make the separation in the estimate. The original costs still determine how to rank full analyses. The projected costs have a different job. They are fitted to make efficient searches in the projected spaces useful to the full search, with a choice about how strictly they must respect the original costs.

### The method, step by step

#### Decide what each simpler search can see

The first step is to identify projections that can actually be searched. A projection maps a full state to a coarser one. It must also give a well-defined image of each local scoring configuration. In parsing, an anchored rule application identifies where a construction occurs in the sentence. Its cost can depend on the type of rule without depending on the positions of those words. The method therefore distinguishes the many applications the search encounters from the rule types to which it assigns costs.

The paper uses a grid to make the fitting problem concrete. Think of one view as the row of a grid and the other as the column. A cell stands for a joint configuration. Its cost is known. Assign a cost to each row and to each column, and use their sum as the projected estimate for the cell. If all the sums can equal the original costs simultaneously, there is an exact factorization. The other case illustrated in the paper is a grid where the sums fit beneath the original cell values but leave some gaps. A row’s fitted value has to work with every column in which that projected configuration occurs. There is no separate row value for each cell.

A usable projection must also take a valid full completion to a valid projected completion. This is what makes a comparison of optima possible. A monolingual parser may admit a completion that has no counterpart compatible with the other language, but it can also express the monolingual part of any valid synchronous completion. Viewed this way, the extra freedom of the simpler search is what keeps its best possible cost low. Its value would be harder to justify if a valid full completion could disappear altogether on projection.

Building and using an approximate factoring heuristic The steps in order.

#### Fit costs that can be added

The paper begins with the case where exact factoring is already possible. Its condition can be written as follows.

```
c(a) = ∑ᵢ cᵢ(a)    for every a ∈ A
```

Here `a` is a local configuration and `A` is the set of possible configurations. The symbol `∈` denotes membership. The function `c` gives the original cost, and `cᵢ(a)` is the cost of the image of `a` in projection `i`. The sum `∑ᵢ` runs over the projections. The relevant restriction on each term is that it can depend only on what its projection retains. All full configurations with the same image in that view share the same projected cost in that view.

Approximate factoring replaces equality by a condition on fitted costs.

```
∑ᵢ φᵢ(a) ≤ c(a)    for every a ∈ A
```

The symbol `φᵢ(a)` denotes the fitted cost of configuration `a` as represented in projection `i`. The sum runs across the views and `≤` allows the sum to equal or fall below the original cost `c(a)`. The condition is imposed for each member of `A`, the full set of possible configurations. The authors call this pointwise admissibility. It refers to individual local costs, before a search has assembled a partial or complete tree.

A feasible set of costs may give very loose estimates. To express what the fit should improve, the authors record a gap for every full configuration.

```
γₐ = c(a) − ∑ᵢ φᵢ(a)    for every a ∈ A
```

The subscript `a` identifies the entry `γₐ` for that configuration. Subtraction gives the original cost minus the sum of its fitted costs. Under the hard condition, each gap is non-negative. It is zero where the views reproduce the original cost and positive where they underestimate it. Using gaps also gives a way to compare feasible fits that distribute the underestimation differently across rule types.

```
minimize over φ: ‖γ‖    subject to γₐ ≥ 0 for every a ∈ A
```

Here `φ` collects the projected costs for all views and `γ` is the vector made up of the gaps just defined. The double bars indicate a norm, a measure of the size of that vector. The constraint uses `≥` to require every component to be at least zero. The gap equalities continue to apply. A fit with zero norm recovers exact factoring of the local costs, since each component then vanishes.

The choice of norm determines what counts as a preferable fit. With the 1-norm and non-negative gaps, the objective charges for the total gap across the listed configurations. The ∞-norm focuses on the largest gap. The paper notes that these choices give linear programs and reports using MOSEK for optimization. The important distinction is between the objective and the constraints. The constraints establish the direction of the bound, while the objective encourages a useful bound within that feasible set. A different objective could yield different estimates without changing the admissibility argument.

#### Solve the projected completion problems

Once the costs are fitted, each view has its own search problem. The algorithm finds the projected state corresponding to a full hypothesis and looks up or computes the cheapest completion of that projected state. The estimate used by the full search is additive.

```
h(s) = ∑ᵢ hᵢ*(s)
```

The argument `s` denotes a state in the full search, and `h(s)` is its estimated cost to finish. The term `hᵢ*(s)` means the optimal completion cost in view `i`, starting at the image of `s` under that projection. The star marks an optimum. The sum takes one such cost from every view. The projected costs used to compute these optima are the fitted costs, so the projected parser may rank its own alternatives differently from a parser trained or scored independently for another task.

To see why the estimate is safe under the hard constraints, consider a minimum-cost full completion of the state. Every local choice in that completion has an original cost at least as large as the sum of its fitted costs. Add the comparisons over the completion. Because costs add along a derivation, the full completion is at least as expensive as the combined cost of its particular projected completions. Each view is free to optimize over all of its own completions, so its optimum can only be as expensive as or cheaper than that particular projected completion.

```
h*(s) = ∑ⱼ c(aⱼ) ≥ ∑ᵢ ∑ⱼ φᵢ(aⱼ) ≥ ∑ᵢ hᵢ*(s) = h(s)
```

Here `h*(s)` is the true optimal completion cost at `s`. The symbol `aⱼ` is the local configuration at step `j` of one optimal full completion, and `∑ⱼ` covers all its local steps. The index `i` ranges over projections. The original costs `c(aⱼ)` generate the first sum, and `φᵢ(aⱼ)` supplies the projected cost of the same step. The first `≥` follows from the local constraints. The second follows because the inner sum for each view is the cost of a projected completion that the projected optimum `hᵢ*(s)` can match or improve on. The right end is the definition of the heuristic.

These comparisons explain two different sources of optimism. A rule’s fitted costs can leave a gap even when the same completion is used throughout. Then the independently chosen best completions can make the estimate cheaper still. In a lexicalized tree the cheapest phrase-structure completion and the cheapest attachment completion may favor different constructions. Improving the fit at the rule level can shrink the first gap. The independence of the projected searches still permits the second gap even when the rule costs factor exactly.

#### Allow local overestimates when the problem calls for it

The hard program puts a constraint on each configuration type. The number of types can make that approach impractical, especially when rules contain words as well as tags and categories. The authors also consider the more general possibility that a search can benefit from a tighter estimate even if the estimate occasionally overstates the remaining cost. They keep the gap definition and distinguish its positive and negative parts.

```
γ⁺ = max{0, γ}
```

The vector `γ` contains the original-minus-fitted gaps. The superscript `+` denotes the vector of their positive parts. The operation `max` takes the larger of zero and the corresponding entry of `γ`, separately for every configuration. A positive entry of `γ⁺` measures an underestimate.

```
γ⁻ = max{0, −γ}
```

The superscript `−` denotes the magnitudes of the negative gaps. The expression `−γ` negates each entry before the componentwise maximum with zero. A positive entry of `γ⁻` means the fitted sum exceeded the original cost. Expressing both kinds of error as non-negative magnitudes lets the fitting objective charge different prices for them.

```
minimize over φ: ‖γ⁺‖ + C‖γ⁻‖
```

Here `φ` again contains the fitted projection costs, with the original gap equalities defining `γ`. The bars denote the chosen norm, and `C` is the multiplier on the overestimation term. A larger penalty makes a fit pay more for overestimates under the objective. The hard inequality has been removed. The resulting program can therefore choose a fit that has a positive `γ⁻` on some configurations.

The paper also gives an error bound for the setting where the largest possible local overestimate is known. Define that largest amount over the entire configuration space.

```
γₘₐₓ⁻ = maxₐ∈A γₐ⁻
```

The subscript `max` identifies the largest overestimate, and the maximum ranges over all configurations `a` in `A`. The entry `γₐ⁻` is the overestimate magnitude for `a`. A maximum over the fitted subset alone can miss violations elsewhere and cannot serve as this quantity.

```
h(s) ≤ h*(s) + L*γₘₐₓ⁻    for every s ∈ S
```

Here `S` is the state space, `s` is one of its states, and `h` and `h*` are the estimated and true minimum completion costs. The quantity `L*` is the paper’s length bound, expressed as the length of the longest optimal solution, and `γₘₐₓ⁻` is the maximum local overestimate. Their product bounds the extra cost allowed by the near-admissibility argument. Along an optimal completion covered by the length bound, each step can add at most the maximum local excess. The independent minimizations in the projected problems can only bring the estimate down from the cost of the projected optimal completion. The paper states the same additive bound for search error and notes that it can be loose when the length bound is large.

#### Apply the hard constraints to bitext parsing

Bitext parsing asks for a synchronous tree for a source sentence and its translation. The tree describes phrase structure on both sides and couples the two analyses through a synchronous grammar. A state of the parser is a rooted bispan. It consists of a continuous part of the source sentence with a category at its root, paired with a continuous part of the target sentence and its root category. One projection keeps the source span and its category. The other keeps the target span and its category.

The authors work with a weighted tree-to-tree transducer. A rule expands an aligned pair of nonterminals into an ordered list of children on each side. Nonterminals stand for categories or phrases that can expand farther. Their occurrences are paired one-to-one across the lists, while the terminal items can occur at different positions in the two lists. A source projection of a synchronous rule keeps its source expansion. A target projection keeps its target expansion. Each resulting grammar is a weighted [context-free grammar](https://md.research.elamur.ai/free/en/concepts/context-free-grammar/) for one side of the bitext.

For a simple binary example of that projection, the paper writes the source rule as `X → αβ` and the target rule as `Y → γδ`. The letters `X` and `Y` name the parent categories on the two sides. The symbols next to each other on the right name the ordered children and the arrow denotes expansion. The child symbol `γ` in this rule example is unrelated to the vector of fitting gaps. When two synchronous rules have the same expansion on the source side, that expansion receives the same source cost in both. The corresponding requirement holds on the target side.

The fitting procedure uses the original synchronous rule costs as targets and estimates costs for the monolingual rules jointly.

```
γᵣ = c(r) − [φₛ(r) + φₜ(r)]    for every r ∈ G
```

The variable `r` is a synchronous rule and `G` is the synchronous grammar, used here as the set of its rules. The function `c` gives a rule’s full cost. The terms `φₛ(r)` and `φₜ(r)` are the costs of its source and target projections, respectively. The brackets group their sum, and `γᵣ` is the remaining gap for that rule.

```
minimize over γ, φₛ, φₜ: ‖γ‖₁    subject to φₛ ≥ 0, φₜ ≥ 0, γ ≥ 0
```

The optimization varies the rule gap vector `γ` and the source and target cost vectors `φₛ` and `φₜ` under the gap definitions. The subscript `₁` on the norm denotes the 1-norm. Each vector inequality applies componentwise. Non-negative projected costs are part of this bitext formulation, and non-negative gaps establish the desired lower bound for every synchronous rule in the grammar. The paper treats this objective as one possible way to encourage tightness.

The parser’s priority combines a cost for building the bispan with a cost estimate for completing it.

```
priority(e) = β_G(e) + h(e)
```

Here `e` is a rooted bispan, `G` denotes the full synchronous grammar, and `β_G(e)` is its inside cost under that grammar. Inside cost concerns the best analysis of the words already covered by the item. The term `h(e)` estimates its outside cost, the cheapest cost of surrounding the item with the rest of a full analysis. The paper uses Viterbi costs, which refer to the best individual derivations. The probability mass of alternative derivations is outside this calculation.

```
h(e) = αₛ(X[i, j]) + αₜ(Y[k, l])
```

The category `X` roots the source span with endpoints `i` and `j`, and `Y` roots the target span with endpoints `k` and `l`. The functions `αₛ` and `αₜ` give the minimum outside costs for those monolingual items under the fitted source and target grammars. The source and target outside costs are added to produce the completion estimate for the bispan `e`. The corresponding full outside cost, denoted `α_G(e)` in the paper, comes from the best synchronous completion.

For any particular best synchronous completion, the grammar on each side can represent that side’s share of the surrounding tree. Its fitted cost contributes to the first inequality in the proof. A cheaper way to surround the span in one monolingual grammar may fail to agree with the choices on the other side. Allowing those separate choices gives the second inequality. One monolingual parse of each sentence suffices to obtain the outside costs for the spans that the joint search will query.

The allowed savings are substantial in principle because the projected dynamic programs have a lower asymptotic cost. The paper gives the synchronous exhaustive bound as follows.

```
O(n⁶)
```

The symbol `O` describes an asymptotic upper bound and `n` is sentence length. The exponent `⁶` gives the sixth-power time bound cited for exhaustive synchronous parsing. The authors use this bound to motivate alternatives to filling out the joint search space on longer inputs.

```
O(n³)
```

The same notation here describes the cubic time bound for monolingual context-free parsing, with `n` again denoting sentence length on the side being parsed. This is the complexity of the projected parsing problem used to compute outside costs. The full synchronous search still has to assemble a compatible bilingual tree. The projection is worthwhile when the work it saves in that search compensates for computing the estimates.

To obtain the synchronous rules, the authors use sentence pairs with fixed English parses and word-level alignments. The alignments carry information from the English tree across to the Spanish side and determine the rule fragments available for extraction. Relative frequencies supply the original rule scores. Rare words are replaced by their parts of speech to reduce memory use. This corpus-based rule extraction and scoring happens before the factoring step, which takes the resulting grammar and assigns costs to its monolingual projections.

A separate bitext setup also scores the words through a lexical alignment component. The tree-to-tree grammar first produces trees with parts of speech at their leaves. The words are then generated jointly where the parts of speech are aligned, or independently where there is a null alignment. In this setup the complete parse cost has a tree contribution and a word-generation contribution. The authors compute their structural estimate for the first and use Zhang and Gildea’s lexical estimate for the second. Since each estimate covers a separate component of the full cost, the sum is admissible under this construction.

#### Fit shared features for lexicalized parsing

The second application is monolingual parsing in which phrase labels also carry lexical heads. A headed phrase has a head word and its tag. In a binary expansion, one child carries the same head as the parent. The other contributes an argument with a head word and tag of its own. The bare expansion of the categories gives one projection. The tuple of head and argument information gives the other, a view based on [dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/). Direction can distinguish an attachment on one side of the head from an attachment on the other. The experimental dependency component uses direction and leaves distance and valence out of its scoring distinctions.

The paper compares two ways of scoring the same general kind of lexicalized expansion. Under the earlier factored construction, the category choice and lexical attachment contribute separate probability terms, with compatible bracketing required for the resulting tree.

```
P(Y[h, t] Z[h′, t′] | X[h, t]) = P(Y Z | X) P(h′, t′ | t, h)
```

The function `P` denotes probability and the vertical bar separates the outcome from its conditioning information. `X`, `Y`, and `Z` are phrase categories. Brackets record a head word and tag. The parent `X` and the head child `Y` carry `h` and `t`, the head word and its tag. The child `Z` carries `h′` and `t′`, the argument word and tag. The juxtaposition of the terms on the right means multiplication. The first term gives the bare category expansion conditional on the parent category, and the second gives the argument word and tag conditional on the head information. This probability factorization gives additive costs under the negative logarithm.

The coupled construction changes which information can influence these choices. Its category expansion term is the following.

```
P(Y Z | X, t, h)
```

Here `P` again means conditional probability, `Y Z` is the pair of child categories, and the parent category `X`, head tag `t`, and head word `h` form the conditioning context after the bar. The lexical attachment terms in the paper’s coupled expression also use the child category `Z`. This is the interaction relevant to the experiment. Category expansion can depend on the lexical head, and attachment scoring can depend on a category in the expansion. In the displayed expression for the coupled score, the last conditional shows the argument word on both sides of the conditioning bar. The scoring distinction between the two experiments is clear from the category term and the attachment’s use of the child category. The full condition for the last term is ambiguous as written. The paper specifies Witten–Bell smoothing for the coupled scoring distributions, with lexical conditioning items backed off first.

The full lexicalized configuration space is too large to list for the optimizer. The authors include every configuration that appears in the gold training trees. They then sample novel configurations, starting with a parent category, head word and head tag drawn from the training distribution, and generating the remaining choices with the parser’s scoring distributions. There are 434,329 observed configurations and the same number of sampled novel configurations. They use the soft fitting objective, with `C` set to 10. Thus even a configuration included in the fitting sample can have an overestimate if the objective prefers that fit.

The optimizer also needs a way to assign costs to dependency tuples absent from the sample. A separate parameter for each tuple would give no estimate from related tuples. The paper instead defines features for the projected configurations. A phrase-structure rule gets an indicator for the rule itself. The dependency view has an indicator for the lexical tuple with direction, one for the pair of tags with direction, and a bias feature that supplies a common contribution. An indicator contributes when the corresponding property holds. A tuple that lacks a learned lexical indicator can still receive a cost from its tag pair and the bias, when those features apply.

```
γ_ℓ = c(ℓ) − [w꜀ᵀ f꜀(r) + w_dᵀ f_d(h, t, h′, t′)]    for every ℓ ∈ A′
```

Here `ℓ` is a full lexicalized rule, `r` is its bare category expansion, and `A′` is the selected subset of configurations. The function `c` gives the full rule cost, and `γ_ℓ` is the gap for that rule. The vectors `f꜀` and `f_d` contain the phrase-structure and dependency features. The vectors `w꜀` and `w_d` are their corresponding weights. The superscript `ᵀ` denotes a transpose, so each weight-feature product is a dot product that adds the weights of active features. The inputs `h`, `t`, `h′`, and `t′` describe the head and argument, with direction included in the experimental dependency features.

```
minimize over γ, w꜀, w_d: ‖γ⁺‖₂ + C‖γ⁻‖₂    subject to w꜀ ≥ 0, w_d ≥ 0
```

The variables are the gap vector and the weight vectors for the two views, subject to the gap definitions for configurations in `A′`. The superscripts `+` and `−` identify the positive and negative parts of the gaps and the subscript `₂` denotes the 2-norm. The penalty `C` applies to the size of the overestimates. Each weight vector is constrained to be non-negative componentwise. Generalization to unseen dependencies occurs through the features, while the full parser continues to score its edges using the original lexicalized rule costs.

### Experiments and results

#### Bilingual trees with a certified minimum cost

For the bitext experiment, the authors report parsing 1200 English–Spanish sentences with a grammar learned from 40,000 sentence pairs in English–Spanish Europarl. The grammar provides the fixed reference for the comparison. The experiment asks how much of the search space the parser has to explore to obtain its best synchronous tree under that grammar. It does not evaluate whether the best synchronous tree matches a human annotation or whether a translation produced from it is better.

The exhaustive baseline uses a null heuristic. Its agenda therefore receives no information about the cost of finishing a bispan from a projected parse. An intermediate condition uses only the English outside costs produced by the factoring procedure. The full structural heuristic adds the English and Spanish costs. The authors also report that using Spanish alone gives results similar to using English alone. Because the bitext fit constrains the sum and keeps the individual projected costs non-negative, dropping a component leaves a lower estimate. All these conditions seek the minimum-cost parse under the same synchronous grammar.

The reported curves measure search work through expansions, with the comparisons organized by sentence length. The full heuristic expands substantially fewer states than the null baseline. The single-language condition lies between them. This is a result about the hypotheses the bilingual parser needs to process. The outside tables used to derive the priorities are additional computation, and the paper’s comparison emphasizes the savings in the joint search.

The augmented grammar has separate costs for generating the synchronized trees over tags and for generating the words. In that experiment the authors compare the optimization heuristic, the lexical heuristic, and their sum. Each heuristic on its own improves search efficiency. The combination substantially improves on either alone. Because the scoring setup includes a lexical component, this comparison is internal to the augmented grammar. Its purpose is to show what happens when the two estimates cover different components of the same full cost.

#### English trees with headed phrases

In the lexicalized experiments, section 23 of the English Penn Treebank serves as the test set, while sections 2–21 serve as the training set. The two scoring setups use the same parent-annotated, head-binarized phrase-structure backbone. Parent annotation retains information about a category’s surrounding tree context, while head binarization expresses expansions through binary combinations organized around their head. The dependency views use the same basic distinctions. Keeping these pieces similar makes the differences in the full scoring dependencies easier to interpret.

The main efficiency measure is the number of hypotheses expanded, also reported as edges popped from the agenda. A smaller count means that the search committed work to fewer partial analyses. The metric is especially useful here because the main intervention is a change in priorities. A comparison of output trees alone would miss a large efficiency improvement if both procedures reached the same answer. Conversely, an expansion count does not reveal the time spent fitting the projections, preparing sentence-specific tables, or managing the agenda.

For the factored scoring setup, there are three search conditions. The exhaustive condition gives a baseline with no projected guidance. The learned approximate heuristic applies the feature-based fitting procedure even though an exact decomposition exists. The exact factored heuristic uses that known decomposition directly. Both projected heuristics improve on exhaustive search in edges popped. The exact factored estimate improves on the learned approximate one. According to the authors, much of the gap arises because the approximate method must rely on broader features to produce looser estimates for lexical dependencies it has never seen.

For the coupled scoring setup, there is no corresponding exact decomposition to use as an efficiency reference. The stronger alternative baseline uses a phrase-structure bound alone. Its score for a bare rule is built by taking the smallest cost among full lexicalized rules with that projection.

```
φ꜀(r) = min_{ℓ ∈ A, π꜀(ℓ) = r} c(ℓ)
```

Here `φ꜀(r)` denotes the fitted lower cost assigned to the bare rule `r` by the phrase-structure baseline. The minimum, written `min`, ranges over full lexicalized rules `ℓ` from `A` whose phrase-structure projection `π꜀(ℓ)` is `r`. The function `c` gives the original rule cost. The formula uses the least expensive compatible lexical configuration as an optimistic representative for the bare rule. The comparison in the paper shows that the two-view approximate heuristic expands substantially fewer hypotheses than this phrase-structure-only estimate. It also reduces expansions relative to exhaustive search.

#### How often the search misses

The authors check search quality against the best parse under each original scoring scheme where that reference can be established. For factored scoring, the exact factored heuristic makes it possible to find the optimum and use it to check the output of the approximate search. On the test set the approximate heuristic fails to return the optimum for less than 1% of sentences. Among those failures, no returned cost exceeds the optimal negative-log-likelihood cost by more than 0.1%. The former number measures the incidence of search errors across test sentences. The latter describes their size under the scoring criterion.

For coupled scoring, the authors use exhaustive search as the reference on sentences short enough for that comparison. For test sentences through length 15, they find no search errors. The evidence covers a narrower set of sentences than the check with the exact factored heuristic. It matters because the main reason for fitting a surrogate in this setting is precisely that the full costs interact across the views, so no known additive decomposition supplies a convenient way to establish the optimum across the broader evaluation.

The paper separately counts local violations during search. Across all scoring setups, the share of configurations that the heuristic scores during search and that violate pointwise admissibility stays below 2% in each setup. This figure has a different denominator from the percentage of sentences with search errors. A local violation is a comparison between a full rule cost and the sum of its fitted projection costs. A search error is a comparison between the returned full parse and the optimum. Local overestimates can occur on routes that would never supply the best tree, or their effects can be offset by other underestimates. The observed rarity of search errors is therefore an empirical result alongside the local violation count.

#### Accuracy against annotated trees

The authors use EVALB to measure parsing accuracy on English Penn Treebank test sentences of length up to 40. EVALB compares the predicted phrase structure with the reference annotation. F1 combines precision and recall for the evaluated constituents. In the factored scoring condition, the approximate heuristic achieves 82.2 and matches the F1 obtained with the exact factored heuristic. For the coupled scoring condition with approximate search, EVALB F1 is 83.8.

English Penn Treebank test F1 by scoring and search setting The factored settings tie, and coupled scoring with approximate search has the highest F1.

**The numbers**

| System or setting | F1 |
| --- | --- |
| Factored scoring, exact heuristic | 82.2 |
| Factored scoring, approximate heuristic | 82.2 |
| Coupled scoring, approximate heuristic (this paper) | 83.8 |

The equal factored scores are consistent with the authors finding few and small search errors under the original scoring criterion. Equal aggregate accuracy leaves room for changes to individual parses. The higher score of the coupled setting concerns agreement with the reference trees under a different scoring scheme. The authors suggest that allowing phrase structure and dependency choices to interact probably accounts for part of the gain because the two setups otherwise use closely matched projections. There is no exact-search F1 comparison for coupled scoring on the test sentences of length up to 40. The accuracy result measures the parser as run with its learned heuristic.

### What the ablations show

#### The two languages contribute separate evidence

The most direct component comparison uses the base bitext grammar. The null priority reflects the cost of building a partial tree, and the English-only priority adds an estimate of the cost of finishing its English span. Adding the Spanish outside cost improves efficiency further. The similar outcome when keeping Spanish alone supports the interpretation that the full heuristic benefits from constraints on both sides of the bitext. The two monolingual parsers are looking at different pieces of each joint hypothesis, so either can expose an expensive continuation that is invisible in the other view.

This is an unusually clean comparison for a search heuristic because the original grammar, sentence and cost of a complete tree stay fixed. All versions remain admissible, so the efficiency differences do not depend on relaxing the requirement to find the best tree. The comparison varies how much information is exposed to the priority. It gives evidence for the value of the second projection given the fitted costs. The experiment does not isolate a separate training objective for the English-only condition. Its interpretation is about omitting a component of the existing bound.

The augmented experiment varies structural and lexical information. A structural estimate can identify a bispan that looks cheap inside but fits poorly into the rest of either tree. A lexical estimate can identify expensive remaining word choices through its alignment information. The sum improves the expansion curves compared with either piece alone. That comparison relies on the explicit split in the augmented scoring scheme. The conclusion applies to two bounds on separate cost components. If estimates charged for overlapping costs, their sum would require a separate justification.

#### A feature-based fit has a visible cost in tightness

For factored lexicalized parsing, the exact heuristic serves as a useful reference because it works with the same structural and dependency views. The comparison therefore shows what is lost when the projected costs have to be recovered by fitting on observed and sampled rules and backed off for unfamiliar configurations. The learned approximation still eliminates substantial search work. Its gap to the exact heuristic establishes that the benefits of the views can be retained even with imperfect costs, and that how those costs are obtained still matters.

The paper’s explanation focuses on the dependency tuples, where lexical combinations are sparse enough that the heuristic often has to use broader features. A direction-sensitive tag pair can be shared by many head–argument pairs, whose actual costs can differ. The resulting shared estimate is usable across more of the search but need not be close to the appropriate lexical cost for every tuple. The comparison is between complete heuristics. It does not measure the effect of deleting the tag-pair feature, the bias, or the sampled novel configurations one at a time.

The coupled lexicalized comparison addresses a different question. A bound that sees the category expansion can rule out some expensive ways to complete a phrase, even when it knows nothing about the particular lexical attachments. Adding the dependency view gives the search information about expensive attachments that can remain hidden by the minimum over lexical rules. The two-view heuristic has a clear expansion advantage over the phrase-structure bound on that scoring scheme. These two heuristics also differ in how the phrase-structure scores are obtained and in the guarantees their fitting procedures supply. The experiment shows the effectiveness of the full two-view construction against that baseline, with those differences part of the comparison.

#### The figures and the error checks answer different questions

The paper depicts a lexicalized sentence where the cheapest phrase-structure solution, the cheapest dependency solution and the cheapest full solution are shown separately. The projected optima illustrate why the sum can be optimistic. A phrase structure chosen solely for its category cost is free to differ from the structure that would realize the cheapest set of attachments, and the full solution must obey both kinds of decisions together. This illustration connects the search behavior to the proof’s second inequality. It is an example of decoupling, without a measurement of how much of the observed efficiency comes from the fit’s local gaps versus the independence of the completion searches.

The violation count and the checks against exact answers complement the expansion comparisons. One asks whether the rule-level lower-bound condition held at the configurations examined during search. The other asks whether the final decision changed. Their joint interpretation is that the approximate lexicalized heuristic was fast in expansion terms and usually preserved the scoring scheme’s choice where the authors could check it. Neither the expansion curves alone nor the EVALB scores could establish that. A parser can agree better with a treebank while occasionally missing its own optimum, and an exact search can reliably find an optimum whose tree is a poor match for the annotation.

### Limitations

#### Limits identified by the authors

The hard admissibility argument is conditional on the projected searches and the fitted costs. Each local rule in an optimal full completion has to be covered by the bound, and projecting that completion must leave a legal completion in each view. The authors can enforce the rule condition for their finite synchronous grammar. Lexicalized rules create too many constraints to list, so the fit covers a subset and the loss allows penalties for overestimates. The authors accordingly evaluate that heuristic empirically. The guarantee demonstrated in the bitext application does not carry over to the lexicalized experiment.

The paper’s near-admissibility result relates worst-case search error to the maximum possible local overestimate and the optimal-solution length bound. The authors note that the latter can make the bound loose. Their lexicalized violation measurement concerns configurations the search actually encountered, so the number describes the observed runs. It cannot certify the maximum over the space of possible rules. Likewise, the multiplier of 10 in the lexicalized objective controls how the optimizer trades the terms of its loss. It does not impose a numerical cap on the size of individual violations.

Another limit concerns what the objective actually minimizes. The authors fit the gaps for local configurations because those quantities can be defined and optimized directly. In use, they care how close the heuristic gets to the true completion costs of whole structures. Those gaps can depend on which configurations occur together and on how the views disagree about the best completion. Pointwise admissibility is sufficient for the additive bound, and the authors observe that sound whole-structure estimates can exist without that strong local property. They leave systematic comparison of alternative objectives and error-driven ways to learn bounds for future work.

The original tree transducer provides no lexical alignment component to which the other lexical estimate can be applied directly. The authors obtain that comparison by augmenting the grammar and separating the costs. This limits the scope of the result for the combined heuristic to the setup where that separation is available. The final experimental limitation the authors emphasize is the absence of an exact-search accuracy score for coupled lexicalized parsing across the evaluated range. Exhaustive search supplies reference answers on the shorter sentences, while the broader F1 figure comes from the approximate parser.

#### Limits visible in the evaluation

The results distinguish configurations, hypotheses and sentences, and their denominators matter. A small fraction of local violations during a search says how frequently it scored a configuration that broke the desired inequality. It leaves open where those violations fall in relation to the best derivation or how large they are. The sentence-level audit answers some of those questions for the tested inputs. Its strongest coverage is in the factored setting, where the exact heuristic remains practical. In the coupled setting there is still uncertainty about longer sentences, both about the incidence of search errors and about how their costs might differ from those observed on short inputs.

The efficiency figures concentrate on operations within the full search. The method also requires fitting projections, solving completion problems for each input, and using their answers in agenda priorities. The contrasting dynamic program complexities explain why the authors expect the added work to pay off in bitext parsing, and the expansions document the benefit to the joint search. The experiments leave open how the total costs balance under different implementations, input distributions, or grammars. In particular, the reduced number of expansions under a heuristic gives no direct numerical conversion to elapsed time or memory use.

Each application demonstrates a particular way to exploit an existing structural decomposition. The bitext experiment uses English–Spanish Europarl, with a grammar induced from alignments and with rare words represented by tags. The lexicalized comparison uses a fixed English Penn Treebank split and a specific phrase and dependency representation. These settings substantiate the claim that approximate factoring can work when the views are available and efficient to solve. They leave open how tight the bounds would be with other choices of projections or scoring configurations. The paper’s own proof identifies one reason the answer can vary. A projection that forgets more information may be faster, yet permit much cheaper completions that could never be put together in the full analysis.

Finally, the higher EVALB F1 under coupled scoring is evidence about the actual combination of scoring and approximate search on the test set. The shared backbone and similar dependency views make the coupling a plausible contributor, as the authors suggest. A comparison against exact search with the coupled score over the same sentence range would be needed to separate the effect of search errors on F1 from the effect of the changed scoring decisions. The available experiment supports both an efficiency claim for the search heuristic and an accuracy result for the parser as evaluated, with different evidence for each.

### What came after

The later papers cite approximate factoring in work on parsing and constrained decoding. Their titles identify the search problem each investigates. The citation relationship establishes a connection to this paper, while the method names support comparisons at the level of search design. They leave the later papers’ use of the specific fitting objective, bounds and projections unspecified.

In 2009, K-Best A* Parsing took up the problem of obtaining a ranked set of parses. Approximate factoring studies how to guide search to the cheapest complete tree. A ranked-output problem asks search to keep distinguishing among alternatives after the first result. Completion estimates have the same basic relevance because a partial tree can still lead to an unseen high-ranking analysis. The later paper’s stated task extends the output of A* parsing from a single optimum to a list. [K-Best A* Parsing](https://md.research.elamur.ai/free/en/papers/pauls-2009-k-best-parsing/)

Hierarchical Search for Parsing, also from 2009, concerns the organization of search through a hierarchy. The connection is the use of simpler representations to reason about a more detailed parsing problem. In approximate factoring, the views are complementary and the completion costs from them are added. A hierarchy raises the question of how levels of representation can guide the search. These are related ways of reducing the work required at full detail, with the titles identifying different organizations of that work. [Hierarchical Search for Parsing](https://md.research.elamur.ai/free/en/papers/pauls-2009-hierarchical-search-parsing/)

NeuroLogic A*esque Decoding applies lookahead heuristics to constrained [text generation](https://md.research.elamur.ai/free/en/topics/text-generation/). In the parsing paper, lookahead estimates how costly it will be to complete a fragment of a tree. In constrained decoding, the corresponding search question is how a partial output can be continued while satisfying the constraints. The later title points to the transfer of the general lookahead idea from parse construction to generated text. Its description as A*esque leaves the exact status of its estimates and guarantees to the later paper. [NeuroLogic A*esque Decoding](https://md.research.elamur.ai/free/en/papers/lu-2022-neurologic-esque-decoding-constrained-text/)

DeAL takes up alignment at decoding time. Its connection to approximate factoring lies in the role of search decisions between partial and complete outputs. The parsing paper fits estimates to steer an agenda towards the output favored by an existing scoring scheme. Decoding-time alignment places the alignment objective at the stage when continuations are being chosen. The topic thus extends the range of purposes for which guided decoding is studied, from recovering a favored structured analysis to selecting text under an alignment objective. [DeAL](https://md.research.elamur.ai/free/en/papers/huang-2025-deal-decoding-time-alignment-large/)

## Cite

Cite as Aria Haghighi, John DeNero and Dan Klein. 2007. Approximate Factoring for A* Search. Human Language Technologies 2007: The Conference of the North American Chapter of the Association for Computational Linguistics; Proceedings of the Main Conference.

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

```bibtex
@inproceedings{haghighi2007approximate,
  title = {{Approximate Factoring for A* Search}},
  author = {Aria Haghighi, John DeNero and Dan Klein},
  booktitle = {Human Language Technologies 2007: The Conference of the North American Chapter of the Association for Computational Linguistics; Proceedings of the Main Conference},
  year = {2007},
  url = {https://aclanthology.org/N07-1052/}
}
```

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