Learning Alignments and Leveraging Natural Logic
Paper · 2007 · Nathanael Chambers, Daniel Cer, Trond Grenager et al.
Summary
A passage can support a claim while expressing it in different words. It can also share most of the claim’s words and still leave a crucial detail open. A system that tests whether a passage supports a claim has to tell these situations apart. In “Learning Alignments and Leveraging Natural Logic,” the authors address this problem by improving how an inference system matches parts of a passage to parts of a hypothesis, then giving it additional ways to interpret the differences. The task is textual entailment. Given a passage and a hypothesis, the system predicts whether the hypothesis follows from the passage. The direction matters because a detailed passage can support a more general claim even when that claim would fail to recover the original detail.
The authors represent sentences as graphs of grammatical relationships. They train the system to align the graphs using human judgments about which words correspond, and they use randomized search to consider mappings beyond the ones suggested by word similarity alone. They also introduce Semgrex, a language for finding patterns in these graphs. A rule can use it to recognize that a possessive phrase naming someone’s spouse and a clause about marriage express the same relationship, provided that the people match. Reference information, such as the connection between a pronoun and the person it refers to, gives the aligner another source of evidence.
A separate component called NatLog examines a proposed alignment as a sequence of edits from the passage to the hypothesis. It asks whether each change preserves what can be inferred in that context. Replacing a specific term with a broader one can preserve a claim in an ordinary affirmative sentence. Under negation, the direction can reverse. NatLog is selective about answering yes. On the RTE3 test set, its positive predictions had 68.06% precision, while it recovered 31.71% of the benchmark’s positive cases. The core system had 61.75% precision and 60.24% recall for the same label.
The authors combine the two systems by letting NatLog raise or lower the core system’s score. With the decision threshold tuned on development data, test accuracy reaches 63.62%, compared with 60.50% for the core system with reference information. The authors attribute much of the gain to NatLog’s care over particular edits, including additions that make a claim stronger than the passage supports. They observe that the benchmark rarely requires the monotonicity inferences that motivate NatLog. The result therefore establishes a benefit from using its judgments alongside the core system on this test, while leaving the specific contribution of monotonicity unresolved.
Deep dive: Learning Alignments and Leveraging Natural Logic
Learning Alignments and Leveraging Natural Logic explains how word matching, graph patterns, and local edits help predict textual entailment. · about 40 minutes to read
The problem and its context
Finding support for a claim
Textual entailment asks a directional question about a pair of texts. The passage is the evidence and the hypothesis is the claim to be checked against it. The evidence may describe more events, name more people, or use more specific expressions than the claim. The hypothesis can follow even when those details disappear. An addition in the other direction needs its own support. If a passage says that someone pioneered a particular kind of facility, an otherwise similar claim that the facility was the first introduces a new commitment. The significance of that change is much greater than its size on the page.
Giving the words the same grammatical roles matters too. Finding a person’s name, a company’s name, and a verb associated with employment gives an inference system some evidence. To use it, the system still needs to establish which person the verb is about and how the company participates in the relationship. The relevant words may occur far apart, and the claim may express the same relationship with a different construction. The paper approaches this problem through dependency parsing. A dependency analysis connects words by grammatical relations, giving the system a way to compare who or what occupies the corresponding roles in each text.
The authors treat alignment as an intermediate task in reasoning. An alignment says which material in the passage corresponds to the hypothesis. That correspondence can be useful evidence even when the final answer is no. An antonym, for example, may be the right expression to match because it occupies the same role and identifies exactly where the texts differ. A term may also entail the word it aligns to in one direction only. Word correspondence and the relation between the completed claims call for separate judgments.
What the earlier approaches left open
The Stanford system’s earlier work already used alignments between dependency graphs as evidence for entailment. The alignment scorer was defined by hand. That left a practical question about how to choose and adjust its weights. If the only feedback comes from whether the system answers an entailment question correctly, several explanations are possible for any error. The chosen alignment may be wrong, the final decision may misuse a sound alignment, or the relevant relationship may be absent from the system’s features altogether.
The paper describes Raina and colleagues as trying to work backward from the final entailment decision to learn alignment weights. The authors follow a different precedent from Hickl and colleagues by collecting human alignments. Direct linguistic annotation makes it possible to compare the predicted correspondence with a human judgment before asking whether the correspondence leads to the right answer. A researcher can then distinguish progress in recovering word matches from progress in using those matches to infer a claim.
Scoring a candidate alignment and finding one are also separate problems. A score can favor a mapping that makes good grammatical sense even when an initial guess based on individual words would miss it. Search has to find that mapping among the many possible assignments. A greedy word matcher has access to strong local clues, such as shared words or close meanings. Evaluating connected words together adds evidence from the sentence structure, while introducing tradeoffs. Reassigning one word can improve its own match and make its relationship with a neighboring word harder to explain.
Even a well-chosen alignment has limited expressive power. The two people in a family relationship can be matched across the passage and hypothesis while the relationship itself appears as an apposition and possessive on one side and a verb phrase on the other. Earlier versions of the authors’ system handled such patterns with custom graph-traversal code. A developer had to specify directly how to navigate from node to node for every construction. Semgrex was intended to make these searches easier to express and maintain, drawing on query languages for syntactic trees and adapting the idea to dependency graphs.
The paper also situates NatLog alongside earlier work that used logical inference selectively. A first-order logic approach needs a translation from the sentences into a formal representation before it can perform a proof there. Natural logic, as used in this paper, works through changes to expressions in the sentences themselves. This places a different demand on the inference procedure. It must decide how the meaning of a word or phrase changes under an edit and how the surrounding expression affects the direction of inference. The authors design NatLog to complement a broad-coverage system because many benchmark cases depend on relationships or paraphrases that these edits capture poorly.
The method, step by step
From a sentence pair to an inference score
The input consists of a passage and a hypothesis. Linguistic analysis identifies words, grammatical dependencies, and other information that can help establish correspondences. These clues include syntactic categories and named entities, which are mentions of people, organizations, or other named things. The paper uses named entity recognition as part of the available analysis. The aligner proposes where each hypothesis word belongs in the passage graph. The core system then uses features from that alignment and the preceding analysis to score the hypothesis. These features can register such evidence as an antonym, a difference in polarity, or a structural relationship.
Several changes in the paper fit into this shared architecture. Supervised training improves the score used to choose an alignment. Randomized search uses that score to explore candidate mappings. Reference information can change how similar individual words appear to the aligner. Semgrex can use the completed alignment to check for particular relations expressed in different grammatical forms. NatLog draws on an alignment as well, but turns it into a series of changes between the passage and the hypothesis before making its own decision. The hybrid uses that decision to adjust the core score.
From a passage and hypothesis to a hybrid decision
The steps in order.
Collecting supervision for the aligner
The authors built a web-based annotation tool that puts the passage words on one axis of a grid and the hypothesis words on the other. A cell denotes a possible connection between the two. An annotator can identify synonymy, antonymy, entailment from passage to hypothesis, or entailment from hypothesis to passage. These labels draw on lexical semantics, the study of word meaning and relationships between words. A specific kind of virus can support a reference to a virus in general, for instance. The annotation can record that direction without treating the expressions as synonyms.
Directional annotation also lets the annotator record a connection when either expression could be the more specific one. This distinction matters regardless of which word the search procedure starts from. The aligner always assigns hypothesis words to passage words. The semantic relationship between a matched pair can point either way. With a hypothesis word that makes a stronger claim, the fact that the word has a plausible counterpart in the passage leaves the entailment question open.
The annotation project covered the complete RTE2 and RTE3 development sets, yielding 1600 aligned passage–hypothesis pairs. The paper reports that the data were made available through the project. The value of this resource is supervision at the level where the aligner operates. The annotations give the learning procedure a target mapping and give evaluation a way to count recoverable matches. The authors leave fuller use of the semantic distinctions between the alignment labels for future work. The experiments on alignment recovery therefore have a narrower purpose than testing whether the system can predict all the relationships that annotators entered.
Representing and scoring a mapping
Each passage or hypothesis is represented as a semantic dependency graph. The nodes correspond to words and the edges have grammatical types. In this setting an alignment supplies an assignment for every hypothesis node. Where the passage offers no suitable counterpart, the assignment can be empty.
a : n(h) → n(t) ∪ {null}
Here a is the alignment, h is the hypothesis graph, and t is the passage graph. The function n returns the set of word nodes in the graph supplied in parentheses. The colon and arrow introduce the domain and the possible outputs of the mapping. The union sign ∪ adds the singleton set {null} to the possible outputs. null stands for the absence of a passage word. The mapping specifies one destination for each hypothesis word and does not require every passage word to have a hypothesis counterpart.
The number of possible alignments grows rapidly even with this simple assignment scheme.
(n + 1)ᵐ
In this expression n counts passage words and m, written as the superscript ᵐ, counts hypothesis words. Here n is a count, while n(…) in the mapping denotes the set of nodes. The + adds 1 to the number of possible destinations for each hypothesis word to account for null. The parentheses group the choices for a single word, and the exponent counts all combinations of those choices across the hypothesis. The count allows separate hypothesis words to choose the same destination.
The score combines evidence at the word level with evidence about the grammatical relations that the matching words participate in. The word term judges a candidate correspondence on its own. The structural term takes a hypothesis dependency and compares it with the path between the mapped endpoints in the passage. The path can be longer than the original edge. This lets the scorer look for a corresponding grammatical connection even when a construction inserts an intervening word.
s(t, h, a) = ∑[hᵢ ∈ n(h)] s_w(hᵢ, a(hᵢ)) + ∑[(hᵢ, hⱼ) ∈ e(h)] s_e((hᵢ, hⱼ), (a(hᵢ), a(hⱼ)))
Here s(t, h, a) is the total score for alignment a between passage graph t and hypothesis graph h. The equality defines that score, and + combines its word and structural terms. Each ∑ sums over the items specified in its brackets, and ∈ indicates membership in a set. In the first sum, hᵢ is a hypothesis word indexed by i, n(h) is the set of hypothesis nodes, and s_w scores the word together with its assigned destination a(hᵢ). In the second sum, e(h) is the set of hypothesis edges, and (hᵢ, hⱼ) gives the endpoints of one such edge, with j indexing the other word. The function s_e scores that hypothesis edge against the passage path identified by the endpoints a(hᵢ) and a(hⱼ). Parentheses group function arguments and endpoint pairs.
At the dataset level, the paper takes the total to be the sum of the pair-level alignment scores. The collection denoted by D in the paper contains the passage–hypothesis pairs. Search for an alignment operates within a pair. Weight learning uses the collection to determine how evidence should contribute across examples. This separation lets the same search procedure work with different weights, including the weights defined by hand in the earlier system.
Learning the weight of each clue
The word scorer and structural scorer use the same basic form. Each represents the evidence as a vector of feature values and computes a weighted sum. A feature might register lexical similarity or another property of a candidate word pair. Structural features concern the edge in the hypothesis and the path in the passage. The dot product multiplies each feature value by its weight and adds the products.
s_w(hᵢ, tⱼ) = θ_w · f(hᵢ, tⱼ)
Here s_w is the word-pair score, hᵢ is the hypothesis word indexed by i, and tⱼ is the passage word indexed by j. The function f produces the word-pair feature vector from those arguments. The vector θ_w contains the weights for those features. The dot · denotes their dot product, and the equality defines the resulting score. The parentheses enclose the word-pair arguments.
s_e((hᵢ, hⱼ), (tₖ, tₗ)) = θ_e · f((hᵢ, hⱼ), (tₖ, tₗ))
Here s_e is the structural score. The pair (hᵢ, hⱼ) identifies an edge between hypothesis words indexed by i and j. The pair (tₖ, tₗ) identifies the passage path by its endpoints, indexed by k and l. The function f takes those pairs and supplies the structural feature vector. The vector θ_e supplies the corresponding structural weights. The dot · takes their dot product, the equality defines the score, and the parentheses group the endpoints and arguments.
The paper compares the structured perceptron with a method it calls MIRA. Both use online learning. The term means that the procedure can revise its weights after processing an individual training example. It first uses its current weights to predict an alignment, then compares the prediction with the annotated one. The important unit is the whole alignment. A change in the assignment of one word can affect the structural evidence associated with its neighbors, so the training signal includes the features of the proposed structure.
The structured perceptron moves the weights toward the feature values of the correct alignment and away from those of the prediction when the two differ. In effect, evidence that favored the annotated structure gains influence relative to evidence that favored the current error. MIRA uses a different criterion for the size of the change. It seeks a minimal adjustment that makes the correct alignment score above the incorrect prediction for the example. Both procedures revisit the training examples so a difference in their updates can accumulate across passes.
Weight learning here depends on the quality of the candidate alignment sent to it for comparison. A search result may represent the best state the procedure found, given its current weights and search path. If a better candidate remains unexplored, the update still responds to the returned prediction. This is one reason to treat the alignment scorer and search as distinct improvements even though they interact during training. The scorer specifies which solution would be preferable, while search decides which solutions the procedure will actually encounter.
Searching over complete alignments
The search starts by making greedy word assignments from the individual word-pair scores. This gives the system a complete state immediately, with a destination or null for each hypothesis word. A complete state is useful because any hypothesis edge can already be evaluated against the assigned passage endpoints. It also gives the search an initial solution with some lexical justification.
A search step considers a change to the destination of a single hypothesis word. It holds the other assignments fixed and evaluates the score for each possible destination, including null. The current destination remains among the possibilities. Because most terms in the score are local, the reassignment chiefly affects the word’s own contribution and the contributions of the edges that touch it. The step can therefore evaluate how the immediate grammatical neighborhood responds to the change.
The procedure interprets the candidate scores as log probabilities, normalizes them into a distribution, and samples a destination. This is a Gibbs-style update, meaning that the next value of one assignment is sampled given the other assignments at their current values. A well-scored change is favored. Other changes still have a chance to be explored. This matters when the current correspondence has emerged from mutually reinforcing but mistaken assignments. An exploratory move can put the search in a state from which a better combination becomes accessible.
The authors use simulated annealing to shift the emphasis over the course of the search. A temperature parameter controls how spread out the sampling distribution is. Early steps can explore several possibilities even when they have different scores. Later steps concentrate more heavily on high-scoring moves. At a fixed temperature the sampling procedure is described in terms of the distribution defined by the score. With a changing temperature the goal becomes finding a maximum. The authors expect the procedure to settle on a locally strong solution and describe the best possible solution as a hope for the search.
Putting references into word matching
A hypothesis may name someone whom the passage mentions by a pronoun at the relevant point. Matching only the two surface expressions would give the aligner a poor clue. For instance, the paper describes a passage that credits Yunus with pioneering microcredit and refers to the founding of the Grameen Bank inside a clause about the bank. Resolving the pronoun in that clause connects Yunus to the founding event. A hypothesis that names him as founder can then draw on the connection.
The paper uses OpenNLP’s maximum-entropy utility for coreference resolution. When multiple mentions refer to the same entity, the relationship among them is called coreference. The utility receives parse trees and named-entity information produced by the system. Discovered relationships are stored as evidence for the aligner’s word-similarity calculation. Their role in this implementation is specific. They can affect the score of a potential correspondence, while the system’s other feature calculations still have their own view of the text.
A change to a word-similarity score can matter even when the best destination remains the same. Suppose the system already assigns the name in a hypothesis to the relevant mention in the passage. Reference information may make the assignment better supported without changing its identity. If evidence from that match contributes to the final inference score, the value presented to the decision threshold can change. This is the route the authors examine when they compare runs with and without the reference information.
Recognizing a relationship with Semgrex
Semgrex treats a node as a collection of named attributes with values. A pattern can specify that a word has a particular form, restrict its grammatical tag by a regular expression, or leave the node unrestricted. The paper illustrates the combination with a pattern for the word run whose tag begins with NN. The word constraint selects the form, while the tag constraint selects a grammatical use. The unconstrained pattern {} can occupy a position where the relationships to other nodes identify the match.
Relations connect those node descriptions. The operator > can specify a typed edge from governor to dependent, and < can specify the dependent’s connection to its governor. A governor is the word on which the dependent grammatically relies in that analysis. The operators >> and << let patterns express connections that involve a longer path with a dependency of the specified type. The @ operator crosses from one graph to the other through a word alignment. Combined patterns can use logical connectives, and a pattern can name a matched node so that the system can look it up after the search.
The paper gives a marriage example to show what a cross-graph rule can check. The passage introduces Hillary through a description that identifies her as Bill Clinton’s wife. The hypothesis expresses the relationship in a clause about Bill Clinton being married to Hillary. A graph query starts with the relevant person in the hypothesis, checks the dependency configuration around married, and uses the alignment to reach the counterpart in the passage. On that side it checks for a possessive relationship involving wife and an apposition, a construction in which a neighboring expression identifies the same person.
Finding the constructions leaves a question about the participants. The rule retrieves the mention that the hypothesis places after the marriage expression and the mention that the passage uses to identify the wife. A further programmatic check asks whether these mentions align or are coreferent. The rule adds a MATCH feature when the check succeeds and a MISMATCH feature when it fails. The important result of the query is therefore a candidate relation with identifiable arguments. The rule can tell the inference stage whether the people it found support the proposed connection.
The authors also included patterns for other family relations and employer–employee relations. The intended application was information extraction, where a relationship may be easy to recognize if its components have been identified, but difficult to infer from a collection of individually plausible word matches. The Semgrex patterns remain part of the feature-based core. A match contributes evidence about the pair and can be considered alongside polarity, alignment quality, and the system’s other clues.
Marking monotonicity before editing
NatLog begins with the idea that a local change can have a predictable effect on what a sentence implies. In an upward-monotone context, replacing an expression with a more general one can preserve truth. The paper illustrates this with activities and places. A statement about doing a tango in Paris can support a claim about dancing in France because each replacement broadens the relevant expression. In a downward-monotone context, a replacement that would broaden an ordinary affirmative claim has the opposite effect on the direction of inference. If someone refrained from singing, it follows that they refrained from yodeling under the lexical relationship used in the paper.
A word can be inside several expressions that affect its direction of inference. Negation and quantifiers are examples of sources of such effects. NatLog relies on a list of monotonicity-affecting expressions and uses Tregex patterns to find where those expressions occur and determine their scopes. The scope determines which words a particular expression affects. The resulting effective monotonicity accounts for the combined effect of the scopes a span falls under. The paper illustrates nested inversions with a phrase in which no applies to a description containing without. A polarity marker for the whole sentence would lose the distinction between the nested positions.
The scope calculation comes before the system classifies edits. This ordering lets the edit classifier distinguish lexical relationships from their effect in a larger expression. A more general term remains more general at the lexical level regardless of where it appears. The question for entailment is what happens to the surrounding claim when the substitution is made. The classifier sees both the lexical evidence and the effective monotonicity.
Turning an alignment into edits
NatLog takes the word alignment from the core system and derives edits that would transform the premise into the hypothesis. The premise is the passage being used as evidence. An aligned pair supplies a substitution. A passage word with no alignment supplies a deletion, and a hypothesis word with no counterpart supplies an insertion. Where the conversion allows it, the system collects contiguous word-level changes into edits over spans. A span is a sequence of adjacent tokens that the classifier can examine as a unit.
This representation makes the burden of an addition explicit. A token present only in the hypothesis needs to be inserted, and the classifier must decide what that insertion does to the claim. In the same way a deletion can remove a limitation or a detail, and a substitution can preserve meaning, widen a category, or reverse an implication. The representation depends on getting the correspondence right first. An alignment that misses a phrase expressing the same relationship as a piece of the hypothesis may leave the converter with deletions and insertions whose separate effects give a poor account of the whole change.
NatLog uses a decision tree to classify the relation associated with each edit. Its features include the operation type, effective monotonicity, grammatical category, similarity of lemmas, and lexical relations derived from WordNet. A lemma is a base form used to group inflected forms of a word. WordNet provides evidence about synonyms, about relationships between specific and general terms, and about antonyms. The tree learned its rules from 69 problems that the authors designed to cover combinations of these features. Examples of the learned behavior include treating a deletion in an upward context as forward entailment and treating an antonym substitution as a possible exclusive relation. These are decisions made by the trained classifier in its feature space.
Combining the directions of inference
The paper defines the elementary outcomes through a directional entailment relation. The notation below uses ⊑ for entailment. The expressions compared at this stage are the input and output of an individual edit, even though the same directional question ultimately applies to the whole premise and hypothesis.
p = h ⇔ p ⊑ h and h ⊑ p
Here p is the expression before the edit and h is the expression after it. The sign = labels equivalence, and ⇔ connects the label with its defining condition. The symbol ⊑ means that the expression on its left entails the expression on its right. The word and requires entailment in both directions.
p < h ⇔ p ⊑ h and h ⋢ p
Here p and h are the expressions before and after the edit. The sign < labels forward entailment, and ⇔ introduces the defining condition. The symbol ⊑ marks entailment from left to right in the expression where it appears, while ⋢ marks failure of entailment in the indicated direction. The word and requires that the premise expression entail its replacement and that the replacement fail to entail the premise expression.
p > h ⇔ h ⊑ p and p ⋢ h
Here p is the expression before the edit and h is the expression after it. The sign > labels reverse entailment, and ⇔ links it to its definition. The symbol ⊑ marks entailment, while ⋢ marks its absence in the indicated direction. The word and joins the two requirements. The paper distinguishes this case from equivalence so the system can tell when an edit preserves support in only the direction opposite to the benchmark question.
p # h ⇔ p ⋢ h and h ⋢ p
Here p and h are again the expressions before and after the edit. The sign # is the independence label, and ⇔ links it to the conditions written on the right. The symbol ⋢ indicates that entailment fails in the direction of the expression where it appears. The word and requires failure of entailment in each direction. The classifier also has a more specific label for an edit whose expressions exclude each other.
p | h ⇔ p ⊑ ¬h and h ⊑ ¬p
Here p and h are the expressions before and after the edit. The vertical bar | is the exclusivity label, and ⇔ links that label to its defining condition. The symbol ⊑ denotes entailment, and ¬ negates the expression immediately following it. The word and joins the requirements that each expression entail the negation of the other.
Equivalence and forward entailment map to yes in the benchmark. A claim can be equivalent to its premise or weaker than it and still be supported. The reverse, independent, and exclusive outcomes map to no. This means that a negative benchmark decision can arise for several reasons. The new claim may be too strong, it may have no established connection to the original, or it may be incompatible with it.
To make a decision for the entire pair, the system composes the edit labels in order. Equivalence acts as an identity in the composition rule the paper gives.
(= ◦ r) ≡ r
Here = is the equivalence relation label, r is an arbitrary edit relation, and ◦ denotes the composition of the preceding edit relation with the following one. The parentheses group the composed expression, and ≡ identifies the relation that results. An equivalent change followed by an edit of type r leaves the combined relation at r.
The system treats a link classified as independent conservatively in its composition procedure.
(# ◦ r) ≡ #
Here # is the independence label, r is an arbitrary following relation, and ◦ composes the labels in their order. The parentheses enclose the composition, and ≡ gives its result. Under this rule the system carries the independence label forward even if a later edit would be acceptable by itself.
The paper also describes the outcome of combining forward and reverse entailment. The two directions alone give insufficient support for a conclusion about the endpoints.
(< ◦ >) ≡ #
Here < labels forward entailment between the first pair of expressions, > labels reverse entailment between the second pair, and ◦ joins the two relations over the shared intermediate expression. The parentheses group the composition, ≡ gives the resulting label, and # means independence in the system’s calculation. The intermediate expression can be supported from either end without establishing that either end supports the other.
The practical consequence is that NatLog reaches a positive decision only when every atomic label is either equivalence or forward entailment. With a long chain, a single problematic change can control the decision. This behavior follows from the way the system combines evidence. It explains how NatLog can use a strong local judgment to catch an unsupported detail, and how an error on a single acceptable change can cause it to reject a supported claim.
Combining NatLog with the core
The core system produces a real-valued inference score. A decision threshold converts that score into a yes or no prediction. The hybrid changes the score by the same magnitude in either direction. A positive NatLog prediction raises the score, while a negative prediction lowers it.
S_hybrid = S_core ± x
Here S_hybrid is the score after the adjustment, S_core is the core inference score, and x is the magnitude of the adjustment. The equality defines the hybrid score. The sign ± means to add x when NatLog says yes and subtract it when NatLog says no. The decision threshold is applied after this change. Consequently NatLog can overturn a decision for a pair whose core score is close enough to the boundary. A sufficiently strong core score can survive disagreement.
The authors choose x using development accuracy while setting a threshold that balances positive and negative predictions. They then try a second setting that keeps the adjustment fixed and chooses the threshold for development accuracy. This allows the prediction rate to depart from balance. The two settings test different choices about how to convert scores into answers while leaving NatLog’s judgments and the magnitude of its contribution fixed in that threshold comparison.
Experiments and results
Evaluating word alignment
The alignment-learning comparison uses 10-fold cross-validation on the RTE2 development set. Cross-validation means that the annotated examples are divided into folds, with a different fold held out for evaluation in each run and the remaining folds available for training. The paper shows results after 10 passes over the training data in these runs. It reports how many individual words were aligned correctly and how many passage–hypothesis pairs were perfectly aligned. The pair measure requires the alignment as a whole to agree with the annotation and can therefore detect errors that an individual-word count would absorb into a large total.
The structured perceptron produced 4675 correctly aligned words and 271 perfectly aligned pairs in this RTE2 development cross-validation comparison. MIRA produced 4775 correctly aligned words and 283 perfectly aligned pairs. The authors report that both approaches improved with repeated passes and that the bulk of the improvement occurred within the first five passes. MIRA led on each of the reported alignment measures after the full run.
Correctly aligned words in RTE2 development cross-validation after 10 passes
MIRA recovers more of the annotated word matches than the structured perceptron.
The numbers
| System or setting | correctly aligned words |
|---|---|
| Structured perceptron | 4675 |
| MIRA (this paper) | 4775 |
The authors give a separate comparison with the previous hand-constructed alignment scorer. They report an absolute improvement of 1.7% for learned alignment scoring. They also say overall performance decreased by 0.87% when they added RTE3 development alignment data. The paper gives those figures as changes in its discussion of alignment learning and does not give the accompanying scores or specify their metric and split as fully as it does for the cross-validation counts. The cross-validation counts are the direct comparison between update rules on the named split.
Measuring the entailment decision
The paper reports the end-to-end comparison on the RTE3 development and test sets, each containing 800 problems. These experiments concern the final judgment for a pair. Accuracy is the share of all questions answered correctly. Precision for yes is the share of positive predictions that are correct. Recall for yes is the share of actual positive cases that the system recovers. The proportion of yes predictions reports how often the system takes the positive side, regardless of whether those predictions are correct.
The core with reference information is the baseline for the hybrid. The authors also show the core with that information removed, NatLog on its own, and the two ways of thresholding the hybrid. This makes the positive prediction rate especially helpful. A system can obtain good precision by making few positive predictions, while a system that answers yes more often can capture more of the positives and also incur more false positives. Looking at their accuracies alone would hide how different the judgments are.
On RTE3 development, the core with coreference answered yes in 50.25% of cases. It had 68.66% precision, 66.99% recall, and 67.25% accuracy. Removing coreference yielded 49.88% yes predictions, 66.42% precision, 64.32% recall, and 64.88% accuracy. On the RTE3 test set, the two core settings each answered yes in 50.00% of cases. With coreference, precision was 61.75%, recall was 60.24%, and accuracy was 60.50%. Without it, the corresponding test metrics were 60.25% precision, 58.78% recall, and 59.00% accuracy.
How selective NatLog was
NatLog made positive predictions in 18.00% of RTE3 development cases. Its precision for yes was 76.39% and its recall for yes was 26.70%. Overall development accuracy was 58.00%. On the RTE3 test set, NatLog predicted yes in 23.88% of cases. Its test precision for yes was 68.06%, its test recall for yes was 31.71%, and its test accuracy was 57.38%.
These results establish the difference in operating behavior that motivated the hybrid. Among the claims it accepted, NatLog got a higher share right than the core did among its own acceptances. It passed over many supported claims the core could recover, producing lower recall and lower overall accuracy. Thus the evidence for using NatLog was the quality of a relatively small set of judgments, along with the possibility that some of its rejections would usefully correct the core.
The paper gives a comparison with the earlier first-order logic system from Bos and Markert as context for this design. That system reported 76% precision on RTE2 and answered yes in 4% of cases. The quoted figures come from a different benchmark edition. They illustrate another selective inference system and how small its positive prediction set was, instead of placing it in the RTE3 ranking.
What the hybrid gained
The balanced hybrid answered yes for 50.00% of the RTE3 development set, with 69.75% precision, 67.72% recall, and 68.25% accuracy. Optimizing the threshold for development accuracy brought the positive decision rate to 55.13%. Its development precision was 69.16%, its recall was 74.03%, and its accuracy was 69.63%. The threshold adjustment accepted more hypotheses, finding more correct positive cases while lowering positive precision relative to the balanced hybrid.
On the RTE3 test set the balanced setting answered yes in 50.00% of cases. It achieved 64.50% precision for yes, 62.93% recall for yes, and 63.25% accuracy. The optimized setting answered yes in 54.13% of cases, with 63.74% precision for yes, 67.32% recall for yes, and 63.62% accuracy. On this test, balancing the decisions preserved the higher positive precision of the hybrid settings, while the optimized threshold delivered the higher recall and accuracy. Both settings surpassed the core with coreference in both precision and recall for yes.
Accuracy of core, NatLog, and hybrid settings on the RTE3 test set
Both hybrids improve on the core, with the development-optimized threshold giving the highest test accuracy.
The numbers
| System or setting | accuracy % |
|---|---|
| Core with coreference | 60.50 |
| Core without coreference | 59.00 |
| NatLog alone | 57.38 |
| Hybrid with balanced predictions | 63.25 |
| Hybrid with optimized threshold (this paper) | 63.62 |
The results section reports an absolute test accuracy gain of 3.12% for the optimized hybrid over the core system. It gives the gain in correct decisions as 25 additional RTE3 test problems and reports p < 0.01 in a two-tailed McNemar test. This paired test uses the cases on which the systems’ correctness differs, which suits a comparison where both answer the same questions. The abstract gives the added RTE3 test accuracy gain as 3.13%. The two figures are printed differently in the paper, and 3.12% is the figure it gives with the detailed comparison.
What the ablations show
Removing coreference
The coreference comparison tests what happens when reference information is available to word similarity. There was reason to expect the feature to matter. The authors counted 135 RTE3 development pairs and 117 test pairs classified as long. They identified 642 personal pronouns on the development set and 504 on the test set. A human evaluator judged that 52 of the first 200 RTE3 development pairs relied on reference information. These counts concern different things. The length figures count pairs, the pronoun figures count occurrences, and the human review counts pairs judged to depend on reference. They describe opportunities for the component to help rather than numbers of cases that it fixed.
The coreference setting improved the reported accuracy on both splits. The development result approached significance at p < 0.1 in a two-tailed McNemar test. The test comparison did not reach significance. The authors also inspected the alignments and their associated weights. They found little difference in the chosen alignments and a difference in the weights, which affected threshold tuning. The result is consistent with reference evidence changing how strongly the system scores relationships it had frequently found already. This is a narrower mechanism than wholesale repair of missed pronoun alignments.
The authors propose distributing reference information more broadly across the feature calculations and lexical resources. In their setup a pronoun resolution can improve a word-similarity feature, while other components may continue to work with the surface mentions. The comparison leaves that wider integration untested. Its observed effect belongs to the particular use of coreference in alignment scoring.
Changing the supervision and the update rule
The perceptron and MIRA comparison isolates a choice about how the scorer’s weights are revised when the predicted structure differs from the annotation. The results favor MIRA on individual words and on completely correct pairs under the stated RTE2 development cross-validation protocol. Agreement between those measures is informative because perfect-pair scoring is stricter. Recovering extra isolated matches could have improved the word count without making more of the complete alignments correct.
Adding annotated RTE3 development data had an adverse reported effect on overall performance. The authors suggest a reason grounded in the kinds of pairs added. Some pair a passage with an unrelated hypothesis. Others require identifying a relation, such as employment, location, or marriage. In an unrelated pair, individual cross-text matches may have little bearing on the answer. In a relation case, agreement between individual words may matter less than recovering the relation and its participants. More examples of these kinds could therefore put pressure on alignment learning without providing proportionate evidence for the final decision. The paper presents this explanation as a hypothesis about the mix of training examples. It gives no separate removal experiment that establishes a causal contribution for either category.
The search discussion supplies a different kind of comparison. The authors say that among the strategies they explored, stochastic local search found better-quality solutions. The paper explains the implementation and its rationale, but does not report numerical search results for the alternatives. This leaves the measured weight-learning comparison stronger as evidence about the training update than as evidence about the size of the search improvement.
Auditing the cases Semgrex could reach
The marriage patterns correctly matched six examples from the RTE3 development set and one from the test set. These counts establish that the pattern could operate on actual benchmark pairs. The paper gives no complete precision and recall comparison for the Semgrex rules and does not report an end-to-end score with the rules disabled. A correct match is a success for relation recognition on that pair. The match may confirm a decision the rest of the system would have reached anyway, or it may provide evidence that changes it.
The authors reviewed 200 development examples to consider where additional patterns could apply. They identified relationships involving jobs, locations, relatives, organizational membership, business ownership or partnership, and places where organizations are based. The identified relations accounted for at least 7% of the data considered in that discussion. This is an applicability estimate from the review. It leaves open how many relationships a rule set would actually recover, how frequently it would make spurious matches, and how often its contribution would change the final answer. It gives a concrete sense of the material that motivated the graph-query approach without treating the audit as an accuracy result.
Looking at gains and losses from NatLog
The standalone comparisons show why NatLog was used as a score adjustment. Its selectivity makes an affirmative decision informative but leaves a large share of the positive benchmark cases uncovered. The hybrid keeps the core’s evidence available on such cases. It also lets NatLog’s negative predictions matter. When the hypothesis includes an addition that NatLog cannot license, the downward adjustment can move a marginally positive core decision to the other side of the threshold.
The paper illustrates the cost with RTE3 test problem 518. The premise identifies SNCF as a French railway company by placing its name next to the description. The hypothesis makes the naming relation explicit with called. NatLog rejects the pair because it cannot support that insertion. The benchmark accepts the claim. The system has noticed a real difference in expression, and its failure is in deciding what the difference contributes. A change that makes an already conveyed relationship explicit can look like an unsupported addition when considered as an isolated edit.
RTE3 test problem 601 shows the other outcome. The premise attributes pioneering work on a large mini-mill to Nucor. The hypothesis adds that the mill was the first. NatLog cannot support the addition of first and rejects the hypothesis, agreeing with the benchmark; the core accepts it. Here the extra word genuinely strengthens the claim. The examples show why a strict edit procedure can generate both a useful correction and a false rejection. The same inability to justify an insertion has different implications depending on what the rest of the passage already conveys.
The balanced and optimized hybrids compare how strongly the decision boundary favors accepting further cases after the adjustment has been set. Holding its magnitude fixed helps distinguish the threshold change from changes to the NatLog rules. The optimized threshold returned more positive decisions on both splits. On the test set it recovered more of the supported hypotheses and attained the higher accuracy of the two settings. The treatment of individual edits was the same in that comparison.
The authors say that the hybrid gain cannot be assigned entirely to monotonicity reasoning because cases requiring it were rare in the benchmark. Their account emphasizes the precision of NatLog’s local decisions. The paper provides examples of that mechanism and a comparison of complete systems. A run that held the edit features, classification, and hybrid tuning constant while varying the use of monotonicity would answer a more specific question about its contribution.
Limitations
Limits the authors identify
The authors present NatLog as a specialist for part of the entailment task. They identify paraphrase and relation extraction as areas where its edit reasoning has limited reach. A passage can convey a relationship through a combination of words that together support a hypothesis, even when its individual differences from the hypothesis look hard to justify. Semgrex’s marriage rule illustrates such cases within the paper’s own architecture. Its success depends on configurations involving several words and on who occupies the relevant roles. A collection of local substitutions alone supplies a different kind of evidence.
The authors also point to the distance between the texts, measured by the changes needed to turn one into the other. Each additional atomic edit adds a classification decision. A false prediction of independence, reverse entailment, or exclusivity can cause a whole-pair rejection under NatLog’s rule for positive answers. Even a series of sensible decisions early in the sequence offers limited protection against a bad decision later. This is a consequence of the proof criterion and helps explain why the system’s standalone recall remains low.
On the alignment side, the authors leave fuller exploitation of the semantic annotation labels to future work. The score comparison is evidence about recovering the correspondence. The resource itself can express more, including which direction of entailment holds or whether matched expressions are antonyms. For coreference, the authors identify an implementation limit in using the resolutions for word similarity. Other feature calculations can still miss the link between two mentions that name the same entity.
The Semgrex work is presented as an initial set of relation patterns and an analysis of where more rules could help. Coverage depends on the relations and constructions that have been described. The marriage example also relies on an alignment or coreference check for one of its arguments. Thus a hand-specified pattern can capture a deeper relationship and still depend on the quality of earlier analyses. The paper’s counts support the demonstrated rules and the estimated scope for expansion.
What the experimental design establishes
The positive result for the hybrid is an end-to-end accuracy result on the RTE3 test set. The comparison combines NatLog’s complete procedure with an adjustment to the core score. That procedure includes lexical features, edit classification, monotonicity marking, and decisions about composing edit labels. The reported significance concerns the disagreement in correctness between the systems. It leaves open which of those components accounts for how many corrected cases. A broad result about the value of natural logic in every entailment setting would require evidence beyond the benchmark and the comparisons reported here.
The alignment and final inference results measure different outcomes on different parts of the experiments. RTE2 development cross-validation establishes how the learned scorers recover annotated word matches on held-out folds from that set. The RTE3 evaluation establishes how the full systems answer entailment questions on its development and test sets. Good alignment can help the later decision, yet a pair may still require knowledge of a relation or a distinction such as the extra commitment introduced by first. Conversely an imperfect alignment can preserve enough evidence for the correct answer. The paper shows why it is useful to measure both, while leaving their item-by-item relationship mostly unexplored.
The 69 NatLog training problems were designed to exercise the edit classifier’s feature space. This shows how a small set of deliberately chosen cases can support the classifier setup the authors describe. It gives no direct estimate of how representative the learned edit rules are across longer or differently constructed passages. The paper reports whole-pair predictions on RTE3, so the benchmark scores cannot identify the error rate of the elementary labels or distinguish reliably between a missed scope, a bad alignment, and a misclassified edit. The detailed examples show possible paths to error and correction, while the quantitative results aggregate their effects.
The search procedure likewise describes an approximation. Annealing encourages the eventual selection of high-scoring assignments, and the greedy start gives it a plausible initial state. A local search can still settle on a mapping that scores below some unexplored alternative. The available comparisons give no measured rate of reaching a global optimum. There is also a separate question of whether the highest-scoring mapping would be the best one for entailment on a particular pair. That depends on how much of the decisive evidence the alignment score captures.
Finally, the benchmark’s no label groups multiple semantic situations. A hypothesis can go beyond its evidence, have an unresolved connection to it, or conflict with it. NatLog’s elementary labels make such distinctions internally, but the yes-or-no evaluation cannot tell whether the system chose the right reason for a rejection. The supported finding is about the accuracy and operating behavior of the final binary decision. Evaluating the finer explanations would require judgments at the level of the relations or edits.
What came after
Extending entailment and alignment
The later work most directly connected by subject is a paper on extending natural logic. The shared question is how to account for what follows from a sentence by tracking changes to the sentence itself. In the earlier system, the answer depends on the kinds of relation the edit classifier can distinguish and the rules used to compose them. The later paper takes an extension of natural logic as its subject. Its title identifies the formal approach as the link, while the particular changes to the relation inventory or proof procedure require that paper’s own account. An extended model of natural logic
Another citing work brings labeled alignment into textual entailment. This follows the part of the 2007 paper that distinguishes a correspondence from its semantic type. Matching two expressions identifies where to look. A label can record whether they agree, support an inference in a particular direction, or express a contrast. The later work’s title places labeled alignment at the center of recognizing entailment, an application that the earlier paper opens up with its annotated data while leaving full use of the labels for future work. Labeled Alignment for Recognizing Textual Entailment
The work on monolingual alignment by Sultan and colleagues addresses the correspondence problem through word similarity and contextual evidence. The link is to the earlier paper’s distinction between the plausibility of an isolated match and the support it receives from the surrounding words and structure. Both questions matter when several occurrences or several related words are plausible destinations. The later paper’s stated emphasis is deciding correspondences within one language. Its title identifies contextual evidence as part of that decision without specifying that it uses the earlier search procedure. Back to Basics for Monolingual Alignment
Baroni and colleagues take entailment beyond individual words as a question in distributional semantics, which connects meaning to patterns of use. The connection to the earlier work lies in the level at which an inference must be established. A lexical relation between two terms supplies a clue. As soon as the claim involves larger expressions, the surrounding material affects what those terms imply together. The later work addresses entailment above the word in a different semantic framework. Its stated scope connects the two papers without implying that the later method uses NatLog’s atomic edits. Entailment above the word level in distributional semantics
Applying structured comparisons to other tasks
Work on grading short answers uses semantic similarity and dependency graph alignments. The application changes from binary support between a passage and a hypothesis to assessing a student’s answer. The shared operation is to identify corresponding pieces of text while taking grammatical structure into account. The connection is particularly close to the earlier system’s division between finding an alignment and making a judgment from the evidence it supplies. The grading paper’s title identifies both similarity and graph alignment as parts of that application. Learning to Grade Short Answer Questions using Semantic Similarity Measures and Dependency Graph Alignments
The paper on enhanced English Universal Dependencies investigates the representation of grammatical structure for natural language understanding. That question arises at the input to systems such as the one in the 2007 paper. The edge scorer and Semgrex rules can use a grammatical connection only in the form in which the graph makes it accessible. The later paper is connected to the representational side of the approach through its focus on enhanced dependencies. The topic is the information available to downstream tasks, while the earlier paper mainly studies what alignment and inference can do with the dependencies they receive. Enhanced English Universal Dependencies
Work on learning spatial knowledge for text-to-scene generation addresses another application where identifying relations in text matters. Its target is a scene, so spatial relationships are part of what has to be extracted or learned from the description for that purpose. The earlier paper identifies location as a type of relationship that can be decisive in entailment and that word matches alone can leave implicit. This is the thematic connection supported by the later work’s subject. It gives no basis by itself for attributing the earlier graph rules or alignment procedure to the scene-generation method. Learning Spatial Knowledge for Text to 3D Scene Generation
Investigating negative evidence
The later paper on contradiction focuses on one outcome that a binary entailment decision groups with several others. Earlier, NatLog’s exclusive relation captures a particular way in which a matched pair of expressions can oppose each other, and its final decision maps that relation to no. A dedicated contradiction task makes conflict the phenomenon to detect. It needs to distinguish genuine incompatibility from a hypothesis that simply requires more evidence. This is the connection visible in the aims of the two papers. Finding Contradictions in Text
NegBio focuses on finding negation and uncertainty in radiology reports. In NatLog, recognizing an expression that affects polarity is the first part of deciding which change can preserve entailment. In a report, the associated issue is what finding lies within the scope of a negative or uncertain expression. The tasks have different outputs, but scope matters to both because the presence of a negation cue alone says too little about which content it affects. The later title establishes the application to radiology, including uncertainty as well as negation. NegBio
The later work by Hosseini and colleagues likewise puts negation at the center of its investigation. The point of contact with the 2007 paper is the difficulty of using an otherwise plausible word or phrase match when a negative context changes the inference it supports. The citation and title establish that shared subject without implying that the later work takes over the Tregex scope patterns or the NatLog decision tree. Across these citing works, the recurring questions concern which expressions correspond, which relationships their grammatical structure makes accessible, and how polarity affects the evidence they provide. Understanding by Understanding Not
Cite
Cite as Nathanael Chambers, Daniel Cer, Trond Grenager, David Hall, Chloe Kiddon, Bill MacCartney, Marie-Catherine de Marneffe, Daniel Ramage, Eric Yeh and Christopher D. Manning. 2007. Learning Alignments and Leveraging Natural Logic. Proceedings of the ACL-PASCAL Workshop on Textual Entailment and Paraphrasing.
@inproceedings{chambers2007learning,
title = {{Learning Alignments and Leveraging Natural Logic}},
author = {Nathanael Chambers, Daniel Cer, Trond Grenager, David Hall, Chloe Kiddon, Bill MacCartney, Marie-Catherine {de Marneffe}, Daniel Ramage, Eric Yeh and Christopher D. Manning},
booktitle = {Proceedings of the ACL-PASCAL Workshop on Textual Entailment and Paraphrasing},
year = {2007},
doi = {10.3115/1654536.1654570},
url = {https://doi.org/10.3115/1654536.1654570}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/chambers-2007-learning-alignments-leveraging-natural-logic/