---
title: "Probabilistic Tree-Edit Models with Structured Latent Variables"
description: "A probabilistic method compares sentence trees and learns hidden word alignments for textual entailment and answer selection."
canonical: "https://research.elamur.ai/free/en/papers/wang-2010-probabilistic-tree-edit-models-structured/"
---
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/wang-2010-probabilistic-tree-edit-models-structured/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2010](https://md.research.elamur.ai/free/en/papers/2010/) / Probabilistic Tree-Edit Models with Structured Latent Variables for Textual Entailment and Question Answering

# Probabilistic Tree-Edit Models with Structured Latent Variables for Textual Entailment and Question Answering

Paper · 2010 · Mengqiu Wang and Christopher Manning

**Authors:** [Mengqiu Wang](https://md.research.elamur.ai/free/en/authors/mengqiu-wang/) and Christopher Manning · **Year:** 2010 · **Venue:** Proceedings of the 23rd International Conference on Computational Linguistics (Coling 2010) · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

[**144** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2112729630) · [Cited by **52** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/wang-2010-probabilistic-tree-edit-models-structured/cited-by/) · [Proceedings of the 23rd International Conference on Computational Linguistics (Coling 2010)](https://aclanthology.org/volumes/C10-1/) · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/C10-1131/)
- [PDF](https://aclanthology.org/C10-1131.pdf)
- [OpenAlex](https://openalex.org/W2112729630)

Citations: OpenAlex, 2026-10-14.

## Summary

A sentence can support a conclusion without using the same words, and a sentence can mention the right person without answering a question about them. Both judgments depend on seeing how parts of one sentence correspond to parts of another. Wang and Manning study how to learn those correspondences from examples that supply only the final judgment. Their method uses [dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/) to represent each sentence as a tree of grammatical relations. It then considers ways of turning one tree into the other by inserting, deleting, or substituting nodes.

Each sequence of edits implies an alignment. Substituting a pair of nodes links them, while inserting or deleting a node leaves it without a partner. The authors put these sequences inside a conditional random field, a probability distribution whose scores can combine evidence about words, grammatical relations, and neighboring edits. The same edits are available under either judgment, with separately learned weights. To decide whether a pair is positive or negative, the system adds up the probability of the valid sequences associated with each judgment. During training, it can learn which correspondences support the correct decision even though nobody has labeled the individual links.

The paper tests the same general feature design on recognizing textual entailment and selecting answers for [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/), fitting separate weights for the two tasks. On the RTE2 test set, the system reaches 63.0% accuracy, close to the strongest reported comparison at 63.9%. On RTE3, its 61.1% accuracy leads the syntax-based systems in the comparison. In the answer-ranking test, it has the highest mean reciprocal rank among the systems shown, at 0.6951. Its mean average precision is 0.5951, below the strongest comparison on that metric.

The results show that a single design for scoring hidden tree edits can support both kinds of judgment and perform competitively with methods built around syntax. They also identify a boundary of the approach. The order constraint that makes it practical to sum over many edit sequences makes it difficult to represent phrases that move to a different position. The paper evaluates the resulting judgments and rankings, so the evidence for learned alignment comes through performance on those tasks.

## Deep dive: Probabilistic Tree-Edit Models with Structured Latent Variables for Textual Entailment and Question Answering

A probabilistic method compares sentence trees and learns hidden word alignments for textual entailment and answer selection. · about 34 minutes to read

**In this deep dive**

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

### The problem and its context

#### What a pair of sentences asks the system to decide

Textual entailment asks whether a reader can infer a hypothesis from a supplied text. The roles of the sentences matter. A text might say that Gabriel García Márquez wrote novels and received the Nobel Prize in literature, while the hypothesis concerns only the prize. The text gives enough information for that narrower claim. A system comparing the two has to recognize that material about his occupation can be left aside and that the way the text describes his prize corresponds to the claim in the hypothesis. Counting words in common can capture part of the relationship, including the shared name, without identifying which part of the text supports the conclusion.

In answer selection, one sentence is a question and the other is a candidate drawn from the material being searched. The judgment concerns whether the candidate actually gives a supported answer. In the paper's boxing example, a question asks who took the title from Floyd Patterson. A candidate that describes Ingemar Johansson knocking Patterson down on the way to winning the heavyweight title gives the reader an event that connects the people and the outcome. A general statement that Johansson held a world heavyweight title contains the answer name, but the statement on its own supplies too little context for this particular question. The comparison has to connect the candidate's event to what the question asks.

These tasks ask for different semantic relations. The entailment system determines if the first sentence implies the second. The answer selector judges whether the candidate addresses the question and carries enough support. The authors see a common computational problem beneath those differences. Both tasks take a pair of sentences and attach a judgment to the pair as a whole. Both can benefit from knowing which words or grammatical parts correspond and which have no counterpart. A common way to represent and score those correspondences can make some of the work reusable while leaving the meaning of a positive outcome to each task.

The paper places these tasks in a broader family of pairwise judgments. Paraphrase identification asks whether two formulations convey the same meaning. Work on automatic evaluation of [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/) also compares sentences, though a score can replace a binary decision. These examples motivate the use of sentence pairs as a manageable experimental unit. The inputs and desired outputs can be specified and compared across systems without requiring a common representation of everything a sentence means. The experiments in this paper focus on entailment and answer selection.

#### Why overlap and alignment were both useful

The authors describe early uses of bag-of-words and [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/) measures as surprisingly effective. A bag of words represents the items a sentence contains without keeping their order. An n-gram measure can also register short sequences. In the boxing example, overlap around Patterson or the title can help identify relevant candidates. It takes additional evidence to see whether a candidate connects those expressions to a person who won the title. The paper points to early lexical comparison work in entailment and to the use of surface overlap in automatic translation evaluation. [BLEU](https://md.research.elamur.ai/free/en/papers/papineni-2002-bleu-method-automatic-evaluation-machine/)

The move towards richer features gave systems more ways to recognize relationships. The paper describes work drawing on WordNet for information about the meanings of words, as well as work using particular grammatical constructions. A resource for [lexical semantics](https://md.research.elamur.ai/free/en/concepts/lexical-semantics/) can supply evidence that different words are related. A tree can supply evidence about the roles in which those words occur. The value of the two sources can depend on their combination. A lexical match that looks promising in isolation may carry a different implication if the matching words belong to different grammatical relationships in the two sentences.

An alignment records which parts of the two sentences are being compared. The structure matters as soon as a feature asks a question such as whether a matched word and its grammatical parent have counterparts in the other tree. Aligning a word with one candidate makes a particular set of grammatical comparisons possible. Aligning it elsewhere changes those comparisons. The system needs some account of the correspondence before it can use many of the cues that make a syntax-based approach attractive.

Yet the task labels give the system no direct instructions about which correspondence to choose. An entailment label says whether the hypothesis follows. It gives no marked alignment for the prize expression, the verb, or the subject. A positive answer-selection label similarly gives no map from the wording of the question to the relevant structure in the candidate. Even when a reader finds a correspondence natural, the label alone can be consistent with several accounts of which specific links were needed to make the decision.

Earlier approaches often addressed this by finding an alignment first and then extracting the features for the final classifier from that alignment. The paper describes graph matching between parse trees as one way to carry out the first step. Such a system can use structure to make an informed match, and then take that match as the basis for a judgment. Its vulnerability is that the classifier inherits the consequences of the choice. If an early commitment removes the useful correspondence, the later learner sees the features of the selected alignment. The authors use this possibility of errors propagating through a pipeline to motivate learning the alignment and the judgment together. [Robust Textual Inference via Graph Matching](https://md.research.elamur.ai/free/en/papers/haghighi-2005-robust-textual-inference-graph-matching/)

Alignment was one route through the problem. The authors also describe approaches that translate sentences into forms suitable for theorem proving or other logical inference. Those methods can make a judgment by operating on representations of the statements and their relations. The tree-edit paper pursues a different level of representation, with grammatical structure and lexical evidence extracted from the original sentences. Its comparison systems are chosen with that level in mind.

#### What tree editing already offered

One way to compare two trees is to ask what operations would transform one into the other. If a node appears on only one side, an insertion or deletion can account for it. If two nodes correspond, substituting one for the other can account for their relationship. A tree-edit distance approach typically gives these operations costs and uses a transformation to measure how different the trees are. The value of the operations is that they describe a structural comparison in small, identifiable steps.

The paper describes earlier uses of tree editing for question answering and entailment. It also notes efforts to learn the costs, including Mehdad's use of particle swarm optimization, and a stochastic tree-edit approach tested on digit recognition and small artificial datasets. The authors' question is how to put tree edits into a classification procedure in which several possible transformations can matter and the evidence for them can be learned from the eventual label. A single distance summarizes a transformation in terms of cost. The conditional approach assigns probabilities to alternatives and lets the implications of an edit depend on its features and its place in a sequence.

The paper also identifies an earlier way to keep alignment hidden throughout learning. Quasi-synchronous grammar describes one parse tree as being built under the influence of another. It favors similar tree structures while permitting departures from an exact match. The authors place the answer-selection system of Wang and colleagues and earlier paraphrase work in this line. For their own method, they draw on a discriminatively trained string-edit approach that learned hidden correspondences in tasks such as matching restaurant names. That work supplies the precedent for using separate groups of edit states for the two labels. The tree-edit paper applies the idea to grammatical structure and enriches the edits with linguistic features. [Paraphrase Identification as Probabilistic Quasi-Synchronous Recognition](https://md.research.elamur.ai/free/en/papers/das-2009-paraphrase-identification-as-probabilistic-quasi/)

### The method, step by step

#### From two sentences to possible transformations

Each training example contains two sentences and a binary judgment. In entailment, the first is the text and the second is the hypothesis. In answer selection, the pair contains the question and a candidate sentence. Training supplies the correct judgment for the pair. The intervening transformation is a latent variable, meaning a quantity that the procedure reasons about without observing it in the training data. It is structured because it is a sequence whose steps are related by their order and by the tree positions to which they apply.

Before considering edits, the system turns the sentences into labeled dependency trees. A node represents a word or an item treated as a unit. Its link to a parent records a grammatical relation. The root gives the tree its starting point, and a relation label supplies information beyond the identities of the words linked. This is what makes it possible to distinguish a substitution involving the root from one involving a noun elsewhere, or to ask whether a subject relation in one sentence corresponds to a subject relation in the other.

The preprocessing is shared by the experiments. The standard Penn TreeBank script does the [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/), dividing the input into the units the later stages will process. MXPOST performs [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/), assigning grammatical categories to those units. MST-Parser receives the tagged sentences and produces the dependency trees. The parser was trained on the entire Penn TreeBank. Stanford's tagger then provides [named-entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/), so the features can distinguish entity types such as PERSON. The classifier works from the output of these preprocessing stages. [Online Large-Margin Training of Dependency Parsers](https://md.research.elamur.ai/free/en/papers/mcdonald-2005-online-large-margin-training-dependency/) [Incorporating Non-local Information into Information Extraction Systems by Gibbs Sampling](https://md.research.elamur.ai/free/en/papers/finkel-2005-incorporating-non-local-information-into/)

The authors index nodes in level order, starting with the root at index 0, visiting the root's immediate children, and continuing through successive levels. A tree position in an edit describes where the operation acts. This indexing gives the computation an order in which to track its progress on both trees. Grammatical information is still available at a position, including the node's relation to its parent. Thus, the index can locate an operation while the tree supplies the linguistic description the operation or its features need.

At the basic level there are deletions, insertions, and substitutions. A deletion accounts for a node in the starting tree. An insertion accounts for a node needed in the destination tree. A substitution pairs a node on one side with a node on the other. The name also covers a match between identical words. The relevant property is that the operation establishes a correspondence between the nodes. A sequence is valid when its operations together transform the starting tree into the destination tree.

Validity is a structural condition. The authors illustrate this with a sequence that deletes the entire starting tree and then inserts the entire destination tree. It is a valid transformation that gives the system no paired nodes and therefore little of the correspondence a reader would ordinarily look for. A scoring procedure is needed to distinguish this path from those that preserve recognizable parts of the sentences. The fact that a sequence reaches the destination alone supplies no basis for calling an entailment true.

From sentence pairs to a probabilistic judgment The steps in order.

#### How edits become alignments and paths

To read an alignment from a complete path, follow the substitutions. Each one links the pair of nodes it acts on. A deleted or inserted node is aligned to null, which means it has no partner in the other tree. This interpretation links the formal transformation back to the original problem. An alignment is a set of correspondences the system can use to compare the sentences. A path is an ordered account of how the edits establish those correspondences and account for the remaining nodes.

There can be more than one path for the same alignment. Changing the order in which compatible operations are performed can leave the ultimately paired nodes unchanged. The paper's first figure illustrates a related distinction by showing paths in the positive and negative groups of states and a common alignment below them. The lines joining the trees show the resulting word links. The indices under the words identify tree positions, while the indices on the state transitions refer to the sequence of edits. The two views let a reader distinguish a relation between words from the particular path that establishes it.

The finite-state machine organizes the paths. Its states identify edit types, and a path records transitions among them. Tree positions add the other information needed to interpret each step. A transition into a named-entity substitution state tells the procedure the kind of edit taking place. The positions identify the nodes whose entity information is relevant. Keeping track of both lets the system score the current operation using properties of its input and score a transition using the previous operation as well.

The paper reports 45 edit operations in the experimental inventory, with 12 deletion types, 12 insertion types, and 21 substitution types. The inventory gives names to recurring distinctions that might matter for a judgment. Separate operations can recognize a root, a named entity, a modal expression, a word that expresses likelihood, or a particular grammatical relation. Generic insertion, deletion, and substitution serve as defaults when the relevant specialized conditions are unavailable. At a position where the conditions for several operations hold, the procedure can consider alternatives. A remaining node on the text side can make a deletion possible at a point where material remaining on the hypothesis side also makes an insertion possible.

A surface edit can recognize a part-of-speech category, such as a noun or a verb. A semantic substitution can register synonyms, antonyms, a hypernym relationship, an acronym, or a relation found in NomBank. A hypernym is the more general term in a lexical relation. The numerical substitutions distinguish matching values from mismatching ones. The syntactic edits cover the root and designated relation types such as subject and object. In each case, the operation identifies a condition the scoring procedure can use. It gains its effect on the judgment from the weights learned for that task and branch.

A substitution based on an antonym is a useful example of this distinction. An antonym can give a reason to align words that occupy comparable places in two sentences. Their opposition can then be evidence relevant to the negative judgment. The operation's presence in a path expresses that the pair is recognized and compared under that relationship. The branch scores determine how the comparison contributes to the prediction. The same principle applies to a numerical mismatch or a difference in grammatical labels.

#### How features score an edit

The authors use binary features, each initialized with weight 0. A binary feature records whether a defined condition holds at a step. Many can be active together. Consider a substitution whose nodes are both tagged as names of people. A feature can register the edit state itself, and another can register the more specific fact that the entity type is PERSON. The weighted score can use both facts. The features also operate alongside lexical and grammatical cues wherever their conditions hold.

Zero-order features describe the current step. The state's identity may provide enough detail for one feature. Further tests can pair that state with a property of the matched words. The paper lists tests for a shared [lemma](https://md.research.elamur.ai/free/en/concepts/lemma/), the base form of a word, and for matches between words or between parts of multiword expressions. It also includes tests for entity types. Such a feature can record agreement or disagreement and identify the relevant type. This gives the learner access to a more precise description than a general indication that an edit concerns named entities.

Other zero-order tests look into the input trees. They can recognize that both roots are aligned or examine whether the parents and children at a comparison agree. The labels of the corresponding links may agree, or a feature can record which labels differ. The authors also name cases where the parent and relation label match while the children differ, or where the children and labels match and the parents have a lexical relationship. Features for particular subject, object, and predicative patterns let a grammatical configuration receive a more specific score. These are observations about structure made at a step, with the syntax supplied by the analyzed sentences.

First-order features describe movement between edit states. They take the preceding state and the current state together. For example, when a specialized named-entity substitution is its own state, a transition can distinguish it from a generic substitution. The feature can learn a weight for that particular pair of operation types. This allows the scoring procedure to capture regularities involving successive edits in addition to evidence for each one considered alone.

The distinction between an edit type and a feature affects what the transition can express. Imagine placing all linguistic detail into features and retaining only the basic insertion, deletion, and substitution states. A feature of the current substitution could still recognize a named entity. A transition between those coarse states would register only operation types at that level of detail. At the other extreme, representing every current-step condition with a separate state would let the transition features distinguish more cases. It would also give the computation more states and paths to consider. The paper chooses an inventory of recognizable edit types and leaves finer descriptions to current-step features.

#### Giving each judgment its own branch

The authors make a copy of the edit states so that each label has access to the same inventory. One copy belongs to the positive outcome and one to the negative outcome. A common start state can enter either copy. Once a path enters one group, it stays there until it finishes. A complete path therefore describes both a legal transformation and a candidate judgment, identified by the group the path used.

This layout gives the two judgments separate feature weights. Evidence for a named-entity substitution on the positive branch can receive a different weight from evidence for the same substitution on the negative branch. An exact word match can matter in both kinds of examples, and its contribution can vary with the other evidence the path accumulates. The contrast between the two branches comes from training. They have the same available types of operations, so the designer need not specify a separate grammar of transformations reserved for failed entailments or wrong answers.

For a labeled example, the learner can distribute support across complete paths in the branch corresponding to its observed judgment. Alternatives in the other branch still matter because they compete for probability. This creates a connection between the final decision and the choice of alignments. A correspondence can receive weight when the paths that use it help explain the observed labels. The examples give indirect information about these choices through the distinctions that consistently help or hurt classification.

The system adds support across valid paths within a branch. This matters when several transformations are plausible and none alone dominates. A class can receive support from several moderate-weight paths. Since different paths can yield the same alignment, the events being summed are edit sequences with their state information. The paper's method does not require the set of paths to have a one-to-one correspondence with sets of word links.

#### The probability calculation

The paper writes the input trees as τᵗ and τʰ. In entailment, the superscripts identify the text and hypothesis. An edit sequence e contains the steps from e₁ through eₘ, where m is its length. The sequence of positions is called e.p, and e.a records the corresponding states. These two views of a step tell the scoring procedure where the operation occurs and which edit state it occupies. The branch to which the state belongs is part of the path.

The conditional probability of a particular valid path is the first part of the calculation.

```
P(e ∣ τᵗ, τʰ) = (1/Z) ∏ᵢ₌₁^|e| exp(θ · f(eᵢ₋₁, eᵢ, τᵗ, τʰ))
```

Here P is probability, and the bar means that the trees τᵗ and τʰ are given. The letter e is the complete path and |e| is its number of steps. The product sign ∏ multiplies one contribution for every step, with i running from 1 to |e|. The arguments eᵢ₋₁ and eᵢ refer to the preceding and current step, with the start state providing the preceding state at entry. The function f returns the features of that transition and its input context. The vector θ contains the learned weights, and the dot product θ · f gives the sum of the active feature weights. The exponential function exp turns that sum into a positive factor. Finally, Z is the normalization factor for the particular input trees, and 1/Z scales the product into a probability.

The product gives a path weight before normalization. A feature can raise or lower the contribution of an edit, and all the contributions along the path enter its weight. This is a conditional random field because it gives a conditional distribution over the paths once the two trees are known. It can bring multiple overlapping indicators to bear on the same step, as when the operation, the entity type, and the grammatical role each describe part of what is being compared.

For clarity, the set of valid complete paths across the two branches can be written as E(τᵗ, τʰ). The paper's normalizing sum is then as follows.

```
Z = ∑ₑ ∈ E(τᵗ, τʰ) ∏ᵢ₌₁^|e| exp(θ · f(eᵢ₋₁, eᵢ, τᵗ, τʰ))
```

The symbol ∑ adds one unnormalized weight for each e belonging to E, as indicated by ∈. The set E depends on the two input trees, τᵗ and τʰ, and includes valid paths in both state groups reached from the start. The product, its index i, the length |e|, the function exp, the weights θ, the feature function f, and the neighboring steps eᵢ₋₁ and eᵢ have the same meanings as in the path probability. Z is called the partition function. Using this common denominator makes the path weights in both branches comparable as parts of one probability distribution.

The branch probability follows by marginalization, which means summing over a quantity whose individual value is unobserved. Let E_z(τᵗ, τʰ) be the subset that enters the branch for judgment z.

```
P(z ∣ τᵗ, τʰ) = ∑ₑ ∈ E_z(τᵗ, τʰ) P(e ∣ τᵗ, τʰ)
```

The binary variable z denotes the judgment, with 1 for positive and 0 for negative. The subset E_z contains the valid paths e associated with z, and ∑ adds their conditional probabilities given the same trees. In the paper's description, S₁ is the positive state set, S₀ is the negative state set, and Sₛ is the common start state. The branch restriction in E_z is the requirement that the path start at Sₛ and continue within the specified state set. At test time for entailment, the system chooses the judgment with the higher probability. For answer selection, positive probabilities provide scores with which to order the candidates.

The formulas separate two decisions about the comparison. The first gives a score to one proposed way of relating the trees. The second asks how much of the total support lies in a given judgment branch. A procedure that committed to a single alignment would make its later comparison using one description of the trees. Here the judgment can draw support from paths that make different choices about what to link, what to leave unmatched, and in which order to perform compatible edits.

#### Learning weights without labeled paths

Training rewards probability assigned to the correct judgment on each example. The authors include a penalty for large weights. With each example's two trees written explicitly, the objective has the following form.

```
L = ∑ⱼ₌₁^n log(P(z⁽ʲ⁾ ∣ τᵗ⁽ʲ⁾, τʰ⁽ʲ⁾)) − ‖θ‖²/(2σ²)
```

The objective is L, and n is the number of training examples. The index j visits each example from 1 through n. The superscript ⁽ʲ⁾ identifies that example's observed judgment z⁽ʲ⁾ and trees τᵗ⁽ʲ⁾ and τʰ⁽ʲ⁾. The function log takes the natural logarithm of the probability assigned to the observed judgment, and ∑ adds these contributions. The vector θ again contains the learned weights. Its squared Euclidean norm, ‖θ‖², is the sum of the squared weight values. The subtraction sign introduces the penalty, whose denominator is 2 times the square of σ. The setting σ governs how strongly a given weight magnitude is penalized.

The objective uses the total probability of the labeled branch. For a positive training pair, the procedure knows which branch should get support, while the individual paths within it still compete according to the present weights. The authors use expectation maximization because the objective is non-convex. In the expectation part, the current weights determine how the learner distributes support over the hidden paths compatible with the observed label. In the maximization part, the procedure adjusts the weights using the current expectations. The paper uses L-BFGS to optimize the parameters in that part of training.

Summing paths one at a time would repeatedly process many of the same partial sequences. Instead, the computation uses a forward-backward style of dynamic programming. Its table has an axis for each input and an axis for the edit states. A table location describes the progress made in both trees and the state at that point. A forward calculation aggregates support arriving there from valid prefixes. A backward calculation accounts for the ways a path can continue. Together they allow the method to sum and use contributions that share intermediate positions.

The table can still be large. In the paper’s example, a sentence pair of length 100 and two sets of 45 states yield 900,000 entries. To reduce the work, the implementation prunes partial sequences that cannot complete a valid transformation. It also computes the state transitions and features in advance so they are available during optimization. The order constraint and the finite set of edit states make this tabulation practical. They also determine what kinds of transformations can be represented conveniently.

### Experiments and results

#### Recognizing textual entailment

The entailment experiments use the PASCAL challenge datasets RTE1-3. The authors use RTE1 to select features and tune the regularization setting, choosing σ = 5. They reserve RTE2 and RTE3 for reporting test results, with training on the training portion of each corresponding dataset. Thus, the feature and regularization choices carry over, while the classifier learns from the training portion supplied for the individual challenge. The positive and negative examples are balanced in these datasets, so the paper gives 50% accuracy for a random classifier.

Accuracy measures the share of test pairs whose labels the system predicts correctly. The paper also reports precision and recall for true entailment. Precision asks what share of the predicted entailments are actually positive. Recall asks what share of the actual entailments the system identifies. Looking at both gives a more specific view of errors than accuracy alone. Two systems can be close in total correct decisions while making different tradeoffs in coverage of the positive class.

The comparison is with systems that also draw on dependency syntax and lexical-semantic information. On RTE2, the approaches include Vanderwende and colleagues' heuristic syntactic matching with a lexical fallback, Kouylekov and Magnini's combination of tree-edit costs, and Nielsen and colleagues' classifier using dependency paths and word alignments. Zanzotto and colleagues use a measure of syntactic similarity across sentence pairs. On RTE3, the comparison includes Marsi and colleagues' dependency-based paraphrasing, Harmeling's transformation sequence features, and de Marneffe and colleagues' procedure that finds alignments before classification. The paper explains the change in comparison systems by the availability of results for the individual datasets. [Modeling Semantic Containment and Exclusion in Natural Language Inference](https://md.research.elamur.ai/free/en/papers/maccartney-2008-modeling-semantic-containment-exclusion-natural/)

RTE2 test set classification accuracy The tree-edit CRF is close to the strongest syntactic comparison.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Vanderwende et al. | 60.2 |
| Kouylekov and Magnini | 60.5 |
| Nielsen et al. | 61.1 |
| Zanzotto et al. | 63.9 |
| Tree-edit CRF (this paper) | 63.0 |

On the RTE2 test set, the tree-edit CRF reaches 63.0% accuracy, behind Zanzotto and colleagues at 63.9%. The authors describe the accuracy gap as involving 7 out of 800 examples, and note that Zanzotto and colleagues placed second in the official RTE2 evaluation. This is a competitive result against the selected comparison systems. The table also shows the two systems making different kinds of positive-class decisions.

For true entailment on RTE2, the tree-edit CRF reports 61.7% precision and 68.5% recall. Zanzotto and colleagues report 60.8% precision and 78.0% recall. The tree-edit system's positive calls are somewhat more often correct, while the strongest comparison on accuracy reaches more of the actual entailments. Precision and recall clarify what lies behind the close accuracy figures. The paper connects the lower recall to a tendency it identifies in syntax-based approaches.

RTE3 test set classification accuracy The tree-edit CRF leads the selected syntax-based approaches.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Marsi et al. | 59.1 |
| Harmeling | 59.5 |
| de Marneffe et al. | 60.5 |
| Tree-edit CRF (this paper) | 61.1 |

On the RTE3 test set, the tree-edit CRF reports 61.1% accuracy. The closest comparison in the table is de Marneffe and colleagues' system at 60.5%. The true-entailment precision figures for the two systems are close, at 61.3% for the tree-edit CRF and 61.8% for de Marneffe and colleagues. Recall is 65.3% and 60.2%, respectively. In this comparison, the tree-edit CRF covers more of the positive examples at a similar precision level. The authors point to this balance because reduced recall is a concern for approaches that lean on syntax.

The entailment comparisons address performance against other syntactically informed systems on the reported splits. The paper acknowledges work using theorem proving or logical induction that attains strong entailment performance. The authors select comparisons whose linguistic inputs and aims are closer to their method. The resulting accuracy tables locate the tree-edit classifier among those systems. They also give a more informative account of how it behaves than a claim about its rank across the entire challenge would supply.

#### Ranking candidate answers

The answer-selection experiment uses factoid questions paired with candidate sentences. The target is whether a candidate supplies a correct answer with enough textual support. This makes the negative class meaningful even for sentences that mention an answer string. The classifier has to assign higher scores to candidates whose content addresses the question. Evaluating the scores as a ranking reflects the way the task presents alternatives for each question.

The authors follow the setup used by Wang and colleagues and by Heilman and Smith. The training portion contains 5919 manually judged question-and-answer pairs from the QA tracks of TREC 8–12. The development portion has 1374 pairs, and the test portion has 1866 pairs, both from the TREC 3 evaluation. These figures count pairs, so the test size refers to question and candidate combinations. A question can have a list of candidate sentences. The system fits a separate tree-edit classifier for this dataset with the same general feature design used for entailment.

Mean reciprocal rank, or MRR, looks at where the highest-ranked correct candidate appears. For each question, the contribution is the reciprocal of that first correct rank, and the measure averages those contributions. It rewards a system for bringing at least one good candidate to the top. Mean average precision, or MAP, describes the ranking more broadly. It uses the precision reached at positions where correct candidates appear and averages the resulting scores across questions. With more than one correct candidate, a system can be strong at bringing the first one forward while leaving some of the others lower down.

The comparisons include Punyakanok and colleagues' generalized tree-edit distance and Cui and colleagues' measure of information discrepancy using dependencies. For those approaches, the reported numbers come from replications by Wang and colleagues that use WordNet to augment lexical-semantic evidence. Wang and colleagues' own system uses a quasi-synchronous grammar with hidden alignments in a generative formulation. Heilman and Smith extract tree-edit features through a tree kernel for classification. All of these comparisons use the same dataset. [Tree Edit Models for Recognizing Textual Entailments, Paraphrases, and Answers to Questions](https://md.research.elamur.ai/free/en/papers/heilman-2010-tree-edit-models-recognizing-textual/)

TREC answer selection test set mean reciprocal rank The tree-edit CRF ranks the first correct candidate well and narrowly leads the closest comparison.

**The numbers**

| System or setting | MRR |
| --- | --- |
| Punyakanok et al. | 0.4939 |
| Cui et al. | 0.5569 |
| Wang et al. | 0.6852 |
| Heilman and Smith | 0.6917 |
| Tree-edit CRF (this paper) | 0.6951 |

The order looks different under MAP. On the answer-selection test set, the tree-edit CRF reports 0.5951 MAP. Heilman and Smith report 0.6091 and Wang and colleagues report 0.6029, while Cui and colleagues reach 0.4350 and Punyakanok and colleagues reach 0.4189. The tree-edit CRF therefore leads the table on MRR and trails the two closest alternatives on MAP. The distinction is important because a user who wants any supported answer and an evaluation that values the order of all supported candidates place different demands on the same ranking.

The paper reports a sign test comparing the tree-edit CRF with Wang and colleagues and describes the difference as statistically insignificant. The printed numerical expression for that test is ambiguous, so the qualitative conclusion is the interpretable part of the report. The authors also report a significant advantage for both systems over the earlier generalized tree-edit and information-discrepancy comparisons. The table's ordering between the newer approaches remains an ordering of reported point estimates. In particular, the small MRR lead over Heilman and Smith comes with the lower MAP figure.

### What the ablations show

The paper reports no feature-removal ablations, and instead offers comparisons with other systems, a precision and recall analysis, and a discussion of the tradeoff between edit states and features.

#### What the system comparisons can tell us

The RTE2 result gives an example of why competitive accuracy leaves open the question of how a method errs. The tree-edit system is close to Zanzotto and colleagues on total correct decisions, with higher precision and lower recall for entailment. That pattern is compatible with a method that is more selective in its positive calls. The paper's aggregate measures cannot tell which kinds of sentence pairs account for the pattern. They can show that relative precision is part of the result and that coverage of positives is a separate issue.

The RTE3 comparison adds a different observation. The tree-edit system gains recall relative to the closest comparison while keeping a similar level of precision. De Marneffe and colleagues' system establishes a best alignment before classification, so the comparison is relevant to the authors' motivation for keeping alternatives available. Several parts of the approaches differ, however. The comparison shows the end-to-end behavior of the systems on that dataset. It does not isolate whether the gain comes from summing alignments, from the edit inventory, from the features, or from their combination.

The answer-ranking experiment compares the conditional tree-edit approach with a generative approach that also learns hidden alignments. Their scores are close and the paper reports no significant difference in its test. This supports the narrower conclusion that the conditional transformation approach can reach a similar level of performance on the shared setup. The closest system on MRR, Heilman and Smith's tree-edit classifier, also has stronger MAP. The comparison gives evidence about the utility of several ways of using syntax and tree edits. It gives limited leverage for identifying a single ingredient responsible for the rankings.

Using the same general features across entailment and answer selection is another test of scope. Both tasks benefit from cues such as lexical correspondences and grammatical matches, even though the significance of those cues can differ between a question and an entailment claim. The two fitted systems put the common feature design to work through separately learned weights. Their competitive results support reusing the representation and scoring scheme with task-specific supervision. The experiment leaves open how weights learned for one task would behave on the other.

#### What the design analysis explains

The discussion of edit states and features explains an architectural choice. A detailed named-entity condition can be expressed as a feature of a coarse substitution state, or it can be represented as an edit state used in a transition. Both designs allow the procedure to recognize the condition in the current step. Making it a state gives a first-order feature direct access to the distinction when it observes the next operation. That richer transition description adds to the space of partial paths the procedure must consider.

The authors choose an intermediate design, with a limited set of specialized operations and further details in features. Their explanation connects the inventory to both expressiveness and computational cost. It does not attach benchmark changes to different inventories. For instance, the paper gives no test run with just the basic edit states, so it cannot establish how much the specialized transition distinctions contributed to the published scores. It also reports no comparison in which the current-step conditions are held fixed and only the first-order features are removed.

The path illustration gives a concrete account of what the classifier can represent. A transformation can be associated with either label group, and different paths can correspond to the same cross-sentence links. That example explains why the learned distribution is over paths and why summing them can include several ways of accounting for one alignment. A labeled test set of alignments would be needed to assess the accuracy of those links directly. What the paper measures is whether the combined procedure produces appropriate decisions and rankings.

The same distinction applies to the motivation about early alignment errors. The new procedure has a mechanism for preserving alternatives until the class probabilities are computed. That is a property of the method. The reported comparisons do not hold the rest of the procedure fixed and replace marginalization with a single selected path. They therefore cannot measure how frequently the extra alternatives rescue a particular example. The paper establishes the viability of the joint procedure through the downstream results, and its explanation of the mechanism shows what a controlled comparison would have to vary.

### Limitations

#### Limits the authors identify

The authors single out phrasal reordering as a major limitation. A phrase can express the same relation after moving to a different position, and two sentence trees can represent counterparts whose position in a traversal changes. The procedure depends on an order constraint that allows forward-backward computation to collect and reuse partial paths. Allowing arbitrary reordering would break that constraint. The authors point to work on constrained tree-edit distance as a way to extend the method to some reorderings. Their reported experiments use the original ordered procedure.

This limitation concerns the set of paths available for scoring. A feature can capture information about a word or its grammatical relation whenever the relevant comparison is present in a path. If a useful correspondence needs a transformation that the procedure cannot express in its available order, a highly informative feature cannot give that transformation weight. The system may still reach a decision using other permitted paths. Its ability to align the displaced phrase directly is limited by the representation.

The paper also raises the size of the dynamic programming table. A state-rich inventory gives transition features more detail but increases the space over which the computation runs. Precomputing features and removing paths that cannot finish make the implementation more efficient without resolving the underlying dependence on tree positions and state count. The table example shows the scale that motivates those adjustments. The paper gives no runtime benchmark from which to judge how the procedure scales over a range of input lengths.

The authors mention editing whole treelets as a possible extension. A treelet is a small connected piece of a tree. Operations over such pieces could express a transformation at the level of a grammatical fragment. The implemented inventory uses the node operations described in the method. The paper offers the treelet idea as a direction that could fit an extension of the dynamic program, with no experiment showing its effect on accuracy or computation.

#### Limits apparent from the evaluation

The reported judgments depend on the preprocessing pipeline. The parser, part-of-speech tagger, and entity tagger determine many of the conditions that make a feature or specialized edit available. A mistaken parse relation could change whether a parent-child comparison looks like a match. An incorrect entity tag could affect both the applicable operations and the more detailed features associated with them. Joint learning starts from the analyzed sentences, so its flexibility concerns the alignment and label stages. The evaluation does not compare automatic analyses with corrected ones or estimate how much preprocessing errors contribute to final errors.

The supervision concerns entire sentence pairs. That makes it possible to train without the cost of labeling every correspondence, but it limits what the downstream test results establish about the alignments themselves. A correct judgment can result from several plausible paths. It can also be reached because evidence elsewhere in a path compensates for a link a human reader would find implausible. The evaluation gives neither a direct alignment accuracy measure nor a breakdown of how much probability is assigned to linguistically preferred alignments. The illustrative figure shows how to interpret a path, while the benchmark measures concern different outputs.

The test suites establish reuse across the two tasks in the paper. They use separately fitted weights and fixed preprocessing tools. The entailment experiments draw on particular challenge splits, and the question-answering experiment starts from candidate sentences already paired with questions. The scores in the latter experiment characterize selection from those lists. They do not measure how well a whole answering system would retrieve candidate sentences from a collection or extract the precise answer span from the chosen sentence.

The paper's selected baselines also bound its claims about competitive performance. On entailment, the authors emphasize comparisons with systems using dependencies and lexical semantics. Work using other forms of inference remains outside the accuracy tables. On answer selection, the closest alternatives lead on one metric or the other, and the test against Wang and colleagues is reported as insignificant. Taken together, the results show a method that is viable across the reported tasks. The experiments give no basis for a universal ranking across methods for sentence-pair interpretation.

Finally, the learned weights make it possible to combine conflicting or overlapping observations, but the feature inventory limits what can be observed. The system has access to signs of lexical relationships, entity categories, grammatical relations, and local transition patterns. A judgment that requires background information missing from those observations may still be difficult. The paper motivates the pairwise tasks as a bounded step towards understanding meaning. Its evaluation tests that step through classification and ranking.

### What came after

The later citations span sentence alignment, semantic similarity, question answering, and other tasks with hidden structure. Their titles and citing relationship identify the subjects they pursue. The specific role of the tree-edit method in those works is unspecified, so the connections below concern the problems the titles identify and how those problems relate to Wang and Manning's contribution.

#### Comparing parts to interpret a whole sentence

[Semantic Parsing via Paraphrasing](https://md.research.elamur.ai/free/en/papers/berant-2014-semantic-parsing-paraphrasing/) connects paraphrasing with [semantic parsing](https://md.research.elamur.ai/free/en/concepts/semantic-parsing/), the task of mapping language to a representation of its meaning. That gives sentence comparison a different purpose from an entailment judgment. A relationship between phrasings can be relevant because it helps determine an interpretation. Wang and Manning's paper supplies an example of using evidence about words and grammatical positions jointly when surface forms differ. The citing relationship does not specify which parts of that example enter the later parsing procedure.

[Pairwise Word Interaction Modeling with Deep Neural Networks for Semantic Similarity Measurement](https://md.research.elamur.ai/free/en/papers/he-2016-pairwise-word-interaction-modeling-deep/) places interactions between words inside an approach to [semantic similarity](https://md.research.elamur.ai/free/en/concepts/semantic-similarity/). This shares the tree-edit paper's concern with the evidence that pairs of words supply for an overall sentence comparison. The difference visible in the titles is the form given to that evidence. Wang and Manning encode a pairwise comparison as an operation on nodes, with a score that can use lexical and grammatical information. The later work names neural word interactions and a similarity measurement task. Its title leaves the relationship to tree traversals and latent edit paths open.

[Unbalanced Optimal Transport for Unbalanced Word Alignment](https://md.research.elamur.ai/free/en/papers/arase-2023-unbalanced-optimal-transport-unbalanced-word/) makes word alignment itself the named object of study. The connection is especially clear in the question of words without counterparts. In the tree-edit approach, an insertion or deletion explicitly leaves a node aligned to null. The later title identifies an approach based on unbalanced optimal transport for an alignment problem. It does not establish how that work represents an unmatched word or whether its discussion of tree editing is methodological or comparative.

#### Answering questions and inferring hidden structure

[SemEval-2016 Task 3 on Community Question Answering](https://md.research.elamur.ai/free/en/papers/nakov-2016-semeval-2016-task-3-community/) and [SemEval-2017 Task 3 on Community Question Answering](https://md.research.elamur.ai/free/en/papers/nakov-2017-semeval-2017-task-3-community/) bring the citation into community question answering. Their titles identify shared tasks in that setting. Wang and Manning's question-answering experiment concerns short factoid questions and candidate sentences, with an explicit requirement that a correct candidate offer enough support. The shared-task titles establish a later setting for studying answers to questions. They leave open the role of sentence trees in the evaluated systems and the role of the earlier paper in defining the tasks.

[“I Object!” Modeling Latent Pragmatic Effects in Courtroom Dialogues](https://md.research.elamur.ai/free/en/papers/goldwasser-2014-i-object-modeling-latent-pragmatic/) brings the citation into courtroom dialogue. The connection at the level of the stated problem is the use of hidden structure to account for linguistic behavior. For Wang and Manning, the hidden structure consists of edit paths linking sentence trees. The later title locates the hidden phenomena in pragmatic effects in dialogue. That is a different object of inference, and the citation does not establish that the later work uses paths, dependency alignments, or the same training objective.

Across these subjects, the most direct continuities are the use of relationships between parts of an utterance to assess a larger unit, and the question of how to handle relationships for which no explicit labels are available. The later titles make clear how widely those questions recur. The specific result established by Wang and Manning remains the one their experiments test. A probabilistic comparison of trees, learned from judgments on whole sentence pairs, can support both an entailment classifier and an answer ranker.

## Cite

Cite as Mengqiu Wang and Christopher Manning. 2010. Probabilistic Tree-Edit Models with Structured Latent Variables for Textual Entailment and Question Answering. Proceedings of the 23rd International Conference on Computational Linguistics (Coling 2010).

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

```bibtex
@inproceedings{wang2010probabilistic,
  title = {{Probabilistic Tree-Edit Models with Structured Latent Variables for Textual Entailment and Question Answering}},
  author = {Mengqiu Wang and Christopher Manning},
  booktitle = {Proceedings of the 23rd International Conference on Computational Linguistics (Coling 2010)},
  year = {2010},
  url = {https://aclanthology.org/C10-1131/}
}
```

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