Modeling Semantic Containment and Exclusion in Natural Language Inference
Paper · 2008 · Bill MacCartney and Christopher D. Manning
Summary
A small change in wording can have opposite effects on what a sentence claims. If every firm faced rising costs, the claim also holds for every large firm. If some firms faced rising costs, adding large makes a claim that the original sentence leaves open. A system that compares the words in the two sentences can see the same change in both cases. To decide whether the conclusion follows, it needs to know what every and some do with the words in their scope. To make such decisions in natural language inference, where the aim is to determine if a premise entails a hypothesis, the paper devises a method.
The authors call their approach natural logic. It keeps the reasoning close to the structure of the original sentences, a useful middle ground between approximate text matching and translating a sentence into first-order logic before attempting a proof. Earlier natural logic could track when one expression had a broader meaning than another and when the surrounding words reversed the direction of inference. This paper adds relations for meanings that exclude one another, meanings that jointly cover the possibilities, and meanings that provide no usable constraint on each other. It also accounts for some of the inferences carried by verbs such as refuse. Someone who refused to dance did not dance, while a statement that someone did not refuse leaves open what they actually did.
NatLog, the authors’ implementation, starts by analyzing the sentences and aligning parts of the premise with parts of the hypothesis. The alignment defines a path of small edits between them. A classifier predicts the meaning relation introduced by each edit. The surrounding syntax then determines how that local relation affects the sentence as a whole. Finally, the system combines the sentence-level relations along the path. This allows a chain to establish a conclusion even when some individual steps express exclusion.
On the prepared FraCaS evaluation set, NatLog reaches 70.49% accuracy in deciding among entailment, contradiction and an undetermined answer. The authors report a 27% error reduction relative to their earlier system. FraCaS helped guide development, so the result demonstrates the approach on targeted semantic phenomena under favorable conditions. On the RTE3 test split, where the inputs come from newswire and the decision is binary, NatLog’s positive predictions have 70.14% precision, and it predicts entailment on 26.38% of problems. Standalone accuracy is lower than that of the Stanford RTE system. When NatLog’s decisions are used to adjust the Stanford system’s scores, the optimized hybrid raises test accuracy from 60.50% to 64.50%. The improvement is statistically significant. The experiments show how a specialized inference procedure can add useful evidence to a system designed for broader coverage.
Deep dive: Modeling Semantic Containment and Exclusion in Natural Language Inference
How natural logic uses word meanings and sentence structure to recognize entailment and contradiction, and where the approach falls short. · about 39 minutes to read
The problem and its context
Why similar sentences can support different conclusions
A natural language inference problem gives a system a premise to take as true and a hypothesis to assess. The central issue is what the premise commits the reader to. A more specific hypothesis can follow from a broader premise, as when the premise says something about every member of a group and the hypothesis narrows the group. In other circumstances, adding a detail introduces a commitment for which the premise offers no evidence. A conclusion can also conflict with the premise. Recognizing that conflict calls for reasoning about the meanings of both statements, even if almost every word appears in both.
The paper opens with a premise that puts together several kinds of information about firms and rising costs. The proposed conclusion restricts the firms to large ones and drops information about expectations and inflation. These changes perform different semantic jobs. The restriction narrows the group to which the universal claim applies. The deletions turn a detailed description of how costs grew into a more general one. A single measure of similarity gives no account of why both changes preserve truth in their respective positions.
That distinction matters in applications where recognizing the same topic is only the start. A search system may find text about the right people or events while leaving open whether the text supports a particular answer. A question-answering system can encounter a passage that uses the familiar terms in a denial, or that supports a more general assertion than the question asks for. An inference procedure can help identify which information a passage actually licenses. The paper presents this as part of the broader task of language understanding and names practical applications such as semantic search and question answering.
The authors describe several approaches that were already effective in open-domain evaluations. Some measured overlap between words or meanings. Some used patterns to extract relations. Others built approximate representations of predicates and their arguments, then looked for correspondences between them. These methods could work with texts whose meaning was difficult to analyze in full. Their weakness, in the paper’s account, was explaining why a change like the restriction to large firms should preserve the original assertion.
A more explicit approach translated the premise and hypothesis into first-order logic. A theorem prover could then look for a derivation, and a procedure that constructs interpretations could help assess whether the implication is warranted. This approach makes the correctness of the translation consequential. A sentence about a change in costs can raise questions about the time, the description of the change, what was expected and how the background qualification attaches. The authors also mention problems involving modality, causation and other aspects of meaning. They point to earlier first-order systems that achieved high precision when they identified an entailment, with very few positive decisions overall. The challenge was to retain some of that precision while working directly with more ordinary sentences.
What earlier natural logic could explain
The natural logic tradition offered a way to reason about sentences without first expressing everything they say in a separate formal language. In the work the authors credit to van Benthem and Sánchez Valencia, grammatical structure determines how relations between expressions carry over to the phrases or sentences containing them. If a narrower term can be replaced by a broader one while preserving truth, the position is upward monotone. If truth is preserved by the reverse substitution, from broader to narrower, the position is downward monotone.
The restriction of a universal quantifier illustrates downward monotonicity. If a property holds of every vehicle, it holds of every bus. Where the vehicles are mentioned, the move from vehicle to the narrower bus is licensed. An ordinary positive assertion such as saying that a vehicle stopped behaves differently. From a bus stopping, one can infer that a vehicle stopped. From a vehicle stopping, one cannot infer the bus claim. The same containment relation between the nouns supports different directions of inference because the nouns occur in different grammatical positions.
The earlier calculus could also track nested reversals. A word may belong to a phrase that reverses the direction of inference, and that phrase may itself occur in another reversing context. The effective direction depends on the combination. This observation lets the system treat distance from the main clause as a matter of which operators intervene and what they do. The structure that places an expression inside their scope matters more than the number of words between them.
Containment covers only part of the reasoning needed to judge a premise and hypothesis. Distinct descriptions can rule one another out without either being a narrower version of the other. In a FraCaS example, a premise denying that any delegate finished a report contradicts a hypothesis saying some delegate finished it by the deadline. Finishing by the deadline entails finishing, but that containment fact needs to interact with the opposition between the quantified claims. A system restricted to the two directions of containment and equivalence lacks a relation for the opposition itself.
The paper identifies another starting point in earlier work on verbs whose complements carry implications. A clause about forgetting to perform an action can have a different consequence for the action when forget is negated. With nested verbs, an inference about an embedded event may depend on several such operators. Nairn and colleagues characterized these effects through signatures that record what follows from an affirmative use and from a negative use. Their account supplied a way to propagate those implications. The authors’ aim was to make them interact with containment too, as when refusing a broad activity supports a negative conclusion about one of its narrower forms. Computing relative polarity for textual inference
This paper brings both kinds of information into the same reasoning procedure. A comparison between words can say that the first meaning is narrower, that the two meanings are incompatible, or that their relationship is weaker. The surrounding phrases can change that relation. A chain of such changes can then connect the premise and hypothesis. The ambition is to explain inferences for which these local relations and their grammatical environments supply enough information to establish a sentence-level result.
The method, step by step
Establish what each local comparison says
The easiest way to follow NatLog is to imagine writing a series of intermediate sentences between the premise and hypothesis. Each step changes a small part of the current sentence. One step might replace a noun with a broader noun. Another might remove a modifier. A third might introduce a negation. The question at each step is how the starting sentence relates to the resulting sentence. To answer it, the system first assesses the edited expressions by themselves, then asks what the surrounding words do with that assessment. Only after those two operations does it combine the steps.
How NatLog derives a relation between sentences
The steps in order.
The local comparison draws on a fixed inventory of relations. Imagine starting with nouns whose meanings can be represented as sets of things. Equality means that the sets coincide. Forward entailment means the first set is properly contained in the second. Reverse entailment means the second set is properly contained in the first. These distinctions belong to lexical semantics.
The other relations describe cases where inclusion alone tells too little. Negation means that the sets are disjoint and together exhaust the relevant domain. Alternation means there is no overlap, but there are possibilities outside both sets. Cover means their union exhausts the domain even though the sets overlap and neither contains the other. Independence collects the remaining cases, for which the inventory imposes no more specific relationship. The domain matters. In an example using nationality, the claims about disjointness and coverage depend on how the categories are understood for the comparison.
Among the paper’s examples, crow stands in forward entailment to bird, while the comparison from European to French runs in the reverse direction. The relations make a similar distinction for whole statements. A stronger statement entails a weaker one when every situation that makes the stronger statement true also makes the weaker one true. If the weaker statement can also be true in other situations, the relation runs only one way. For contradictory statements that are exact negations, every situation makes one true and the other false. Two incompatible descriptions can instead leave room for both to be false. The distinction between those cases is central when a subsequent edit introduces a negation.
The paper uses the same inventory for expressions of different semantic types. A verb can identify a narrower or broader class of actions. A sentence can be compared by the conditions under which it is true. Quantifiers can also be compared by the effects they have when combined with predicates. In the paper’s treatment, all and every are equivalent. Some and no illustrate negation, because either there is an instance satisfying the relevant condition or there is none. The move from every to some illustrates forward entailment under the assumption that the group quantified over exists. The authors flag this assumption of a nonempty denotation, known as existential import, for examples whose classification depends on it.
The distinction between disjointness and exhaustiveness gives the procedure useful information even when an edit fails to preserve truth. If two categories are disjoint, being in the first puts something outside the second. If they also exhaust the domain, being outside the second suffices to put something in the first. A later operation may need either the weaker incompatibility or the exact complement relation. Retaining the distinction allows composition to make use of what the earlier step established.
Determine how the context changes a relation
The authors call the general rule for passing a relation through a context projectivity. Take the two expressions being compared and imagine placing each in the same grammatical environment. The projectivity of that environment specifies how the relation between the inputs constrains the relation between the resulting expressions. In the paper’s function notation, the dependency can be written as follows.
R(x, y) ↦ R(f(x), f(y))
Here x is the expression before the replacement and y is the proposed replacement. The function f stands for the surrounding operation with the position of the replacement left open. The expressions f(x) and f(y) result from filling that position with x and y, respectively. R(a, b) denotes the entailment relation from its first argument a to its second argument b. The arrow ↦ indicates projection from the input comparison to the comparison after applying f. The parentheses enclose arguments, and the comma separates the two expressions being compared.
Monotonicity describes what happens to containment. A positive context such as saying that someone touched an object can preserve the forward relation from a more specific kind of touch to a more general one. Putting the same predicates under ordinary negation reverses the relation. Denying all touching rules out kissing. Denying kissing leaves open other kinds of touch. A non-monotone position gives no general rule of either direction for such a substitution.
Projectivity gives a fuller account by specifying the treatment of the other relations as well. Ordinary negation preserves equality and exact negation. It swaps the directions of containment, and it interchanges alternation and cover. To see the last result, start with disjoint categories that leave possibilities outside both. Their complements jointly include everything, because nothing belonged to both original categories. They also share the possibilities that fell outside both originals. Each complement can still contain possibilities absent from the other. The two complements therefore stand in the cover relation.
A verb such as refuse has a different pattern. Refusing the broad activity of dancing supports a refusal inference about the narrower activity of tangoing in the paper’s treatment. Here the containment directions reverse, as they do with ordinary negation. But applying refuse to two complementary alternatives can produce alternation. Someone might refuse to stay or refuse to leave, and the descriptions can both fail to apply if the person made neither refusal. The operator reduces what can be inferred about exhaustive coverage. Applying it to alternatives such as tangoing and waltzing can leave even less information. A person may refuse either activity, both, or neither, so the input incompatibility fails to give a corresponding incompatibility between the refusals. Two environments that agree about containment can therefore give different answers for exclusion.
Projection can proceed recursively. The system first compares the expressions in the position where the edit occurs. It then passes the resulting relation through each surrounding operation on the way to the full sentence. The authors illustrate the reversals with a sentence banning entry without a shirt. The term shirt is narrower than clothes. Once the comparison is inside without, the direction reverses. Passing the result through the negative quantifier reverses it again. The resulting claim rules out entry without clothes. Each reversal is local. Their combination accounts for the direction of the inference at sentence level.
This view also explains why the placement of an edit matters. Replacing an activity with one of its subtypes may create a stronger positive assertion, or a weaker assertion if the activity is in the scope of an operator that reverses containment. A modifier deletion may preserve truth in one position and produce a stronger claim in another. The lexical comparison can stay constant in both cases. The grammatical analysis supplies the information needed to turn that comparison into an inference about the sentence.
Bring implications of verbs into the same procedure
An implicative verb constrains the truth of the clause or action it introduces. The paper uses a signature with a position for the implication in affirmative use and a position for the implication in negative use. The symbols are + for an implication that the embedded proposition is true, – for an implication that it is false, and ◦ for a use that leaves its truth open. The slash separates affirmative from negative use. Refuse has the signature –/◦. An affirmative report of a refusal to dance implies that the person did not dance. A denial of the refusal leaves the outcome open.
One way the paper incorporates a signature is to specify what happens when an edit removes the operator itself. Consider a step from reporting a refusal to dance to asserting that the person danced. The statements cannot both be true on the intended reading, while both can be false. The relation is alternation. If the edit occurs inside ordinary negation, the comparison is between denying the refusal and denying the dancing. The negation projects alternation as cover. In this case, either the person did not refuse, or the person did not dance, and both may be true. Neither of those negative claims by itself establishes the other.
The paper contrasts this with attempt, which has signature ◦/–. Saying that someone attempted a dance leaves success open. In the paper’s comparison, removing the operator to leave the assertion that the person danced gives reverse entailment. The stronger assertion is on the resulting side of the edit. Under negation, the same reverse relation becomes forward entailment. This supplies a route from denying that the person attempted the activity to denying that the activity took place, with the projected relation determined from the original operator deletion.
A separate effect of the signature concerns substitutions inside a complement while the operator stays in place. The paper groups +/–, +/◦ and ◦/– as upward monotone. An attempt at tangoing thus entails an attempt at dancing. It groups –/+, –/◦ and ◦/+ as downward monotone, as in the comparison between refusals. The signatures +/+, –/– and ◦/◦ are non-monotone. For example, a belief about how enjoyable dancing is may leave open what a person thinks of tangoing. The grouping governs containment. A full projectivity description can still distinguish operators by what they do with exclusion and cover.
The paper treats factive verbs as a boundary of this account. In an example with forget that, the embedded proposition is taken for granted both when the sentence says the person forgot and when it denies the forgetting. That behavior is characteristic of a presupposition. An ordinary entailment computed for the affirmative sentence and then passed through ordinary negation would give a different relation from the one the authors observe. They set presupposition projection aside. The architecture can use some consequence patterns associated with verbal operators, with the scope of those rules limited by which kinds of implications the representation handles.
Analyze the sentences and mark the scopes
The first implementation stage prepares the two sentences for comparison. It identifies tokens, finds the base forms of words, assigns grammatical categories and builds phrase-structure trees. In such a tree, smaller constituents are grouped into larger ones. The parser was trained on the Penn Treebank. The system uses its analysis to locate patterns that are relevant to inference. Accurate Unlexicalized Parsing
A phrase-structure parse gives the system broad coverage, but its groupings can differ from the groupings that best express how meaning is composed. For this reason, NatLog supplies operator definitions that connect recognizable tree configurations to semantic scopes. Each definition specifies how many arguments an operator has, a tree pattern that finds the operator, and more patterns that identify the sentence regions affected by each argument position. The patterns use Tregex to match positions in the output of parsing.
The paper illustrates the definitions with without and most. The definition of without identifies the preposition and applies its downward behavior to the span associated with the dominating prepositional phrase. The definition of most identifies different scopes for its two arguments. The position that restricts the group under discussion is marked non-monotone. The position that describes the property attributed to most members of that group is upward monotone. For example, a statement that most members of a group took a taxi supports the claim that most members of that group took a vehicle. Changing which group the statement is about has no parallel guarantee. Identifying the operator alone would miss that difference between its arguments.
The marking stage combines any applicable operator effects and records an effective projectivity for a span. Effective projectivity describes what happens to an edit once all enclosing scopes relevant to that edit have been taken into account. In the worked example about a person refusing to move without particular clothing, the person’s name and the refusal expression are in upward positions. The location of the movement predicate is downward because of the refusal. The material describing the clothing is within the scope of both the refusal and without. For containment at that location, the effects reverse the relation twice.
Marking spans in advance is an engineering choice. The semantic procedure describes what should happen in the environment of the edit. The implementation starts from parses of the two given sentences and tries to use those markings even though there may be intermediate forms between them. A later stage can choose a suitable order for edits to make the endpoint markings applicable in more cases.
Align the premise and hypothesis
Alignment decides which pieces of the two sentences correspond. The system represents it as an ordered list of changes to token spans, with operations for deletion, insertion, substitution and matching. A deletion removes material on the premise side. An insertion supplies material on the hypothesis side. A substitution connects a span from the premise with a different span from the hypothesis. A match records material taken to correspond without requiring a change in meaning. The representation can connect spans of different lengths, so a correspondence can involve several words on one side or both.
The representation also allows correspondences to cross in word order. A phrase that appears early in the premise can correspond to one appearing later in the hypothesis. This provides a way to represent movement as part of an alignment. It still leaves the quality of the inference dependent on whether the matching spans capture the right relationship. An incorrect pairing can lead the classifier to reason about a comparison that has little to do with the intended change.
For a single edit, the paper’s notation can be written as follows.
x′ = e(x)
Here x is a compound expression in its current form, e is the edit operation applied to it, and x′ is the resulting expression. The parentheses show that x is the argument of e. The equals sign identifies x′ with the result of applying the edit. The prime marks the changed expression and has no separate operation attached to it.
For a whole problem, the sequence starts at the premise, denoted by P in the paper, and ends at the hypothesis, denoted by H. The ordering defines which intermediate expression each edit changes. A suitable edit order can help preserve the semantic information needed for the next step. Placing an insertion of negation before a substitution can change the substitution’s scope. If the insertion comes after the substitution, the substitution instead takes place in a context without that new negation. Both routes can lead to the same surface wording while creating different comparisons along the way.
The system can reorder edits to make the projectivity markings more useful. The paper focuses on inference after the premise and hypothesis have been aligned. The evaluation uses supplied alignments, with different sources for FraCaS and RTE3. The alignment stage is therefore a prerequisite for the reasoning described here. The test conditions matter when assessing how much of the procedure operates automatically.
Classify the meaning change associated with each edit
The lexical classifier estimates a relation using information about the edited material itself. For example, it sees the replacement of move by dance as reverse entailment because dancing falls under the broader activity of moving. That prediction is meant to hold at the lexical stage whether the full sentence asserts movement, denies it, or places it inside a refusal. Once the classifier has made that prediction, projectivity handles the context.
Many deletions take away a restriction. Removing a color from a description of an item of clothing ordinarily leaves a broader description. The more specific starting phrase stands in forward entailment to the resulting phrase. Insertions can be examined in the inverse direction. A newly added modifier makes the phrase more specific, so the natural local prediction runs from the result back to the original phrase. Some edits carry a different relation. Removing not turns an expression into its complement. Tracking that case explicitly is important because it can turn a highly similar premise and hypothesis into a contradiction.
Features for substitutions include signals from WordNet about synonymy, hyponymy and antonymy. Synonymy can support equivalence. Hyponymy connects a narrower category to a broader one. Antonymy offers evidence of semantic opposition. The classifier also gets other evidence of relatedness, including a WordNet-based measure associated with Jiang and Conrath and a feature drawn from NomBank. Relatedness and entailment have different roles. A strong sign of relatedness can help identify a meaningful comparison, while the predicted relation still has to say what the comparison licenses.
Other features come from the strings and categories of the expressions. NatLog can compare the base forms by Levenshtein distance, which concerns the edits needed to turn one sequence of characters into another. It also distinguishes categories that can behave differently, including auxiliaries, pronouns, proper names and prepositions. Quantifier classes give the classifier information about substitutions between words that quantify in different ways. A separate feature flags unequal numeric expressions. The aim is to give the decision procedure distinctions that ordinary similarity would compress into one value.
The features for deletion are more restricted. They describe the lexical category and consult a resource the authors built that associates implicative and factive operators with signatures. Insertion is treated symmetrically. This design allows the classifier to predict a usual containment relation for modifier deletions while recognizing special cases such as an edit to a negation or to an implicative expression.
The classifier is a decision tree fitted to 2,449 manually labeled edit examples. The set has 1,525 substitution examples and 924 examples of deletion or insertion. These are training cases for relations attached to edits. The tree is minimally pruned and has about 180 leaves. Evaluated on those same training examples, it achieves >99% accuracy. This indicates that the feature representation and fitted tree can distinguish nearly all the labeled training cases. The end-to-end evaluations measure something further, since an edit in an evaluation sentence must also be aligned and assigned the right scope, and its relation must be combined with the rest of the path.
Project the edit at the place where it occurs
After assigning a lexical relation, NatLog needs to determine the relation between the two intermediate sentences on either side of the edit. In principle, this requires knowing the context in the intermediate form just before the edit. A preceding operation could have removed the very verb responsible for reversing the direction of entailment. A different preceding operation could have added negation. The correct projection depends on the scopes at that point in the sequence.
The implementation tries to reuse the markings computed for the original premise and final hypothesis. It can choose an edit order that keeps the relevant contexts close enough to one endpoint or the other. This reduces the need to compute a new analysis for each intermediate expression. The paper describes this as an approximation that works in most cases. It explains why the alignment consists of an ordered path and why projection still needs to pay attention to ordering after all the span correspondences have been found.
The worked example makes the distinction concrete. The premise describes Jimmy Dean refusing to move without blue jeans. The hypothesis uses James Dean and denies that he danced without pants. The name substitution is assigned equivalence. Deleting the refusal expression creates an exclusion relation with the unqualified assertion of movement. The auxiliary inserted for the hypothesis leaves the relation unchanged, and insertion of the negative marker creates exact negation. These operations allow the refusal to be converted into a denial through composition.
The change from move to dance then illustrates projection of containment. Taken alone, move to dance gives reverse entailment. In the negative context used for this step, the direction flips to forward entailment. The edit to the clothing description has a different context. Removing the color and broadening jeans to pants give local forward relations. For the relevant clothing spans, the combined context preserves that direction. The word without is matched. This route connects the two statements by using equality, exclusion and both directions of containment at different stages.
Compose the sentence relations across the path
The last stage combines the relations in sequence. If an earlier form entails a middle form, and the middle form entails a later form, the earlier form entails the later one. The reverse relation composes with itself in the reverse direction. An equality step preserves the other relation because the equal expressions can be interchanged for the comparison. Independence generally leaves the procedure with no usable constraint to pass forward.
For exclusion, the paper gives a composition rule that establishes entailment through a step that is incompatible with its predecessor and another that replaces a proposition with its complement.
| ∘ ˆ → @
Here | is alternation, the relation in which both expressions cannot hold together but may both fail. The symbol ˆ denotes exact negation, so the expression after that step holds exactly when the expression before it fails. The composition sign ∘ joins the first relation along the path to the second. The arrow → indicates the relation licensed by that combination. The output @ stands for forward entailment from the beginning of the path to its end.
The reason is that the first expression rules out the middle one. The last expression covers exactly the possibilities left by ruling out that middle expression. As a result, a situation that satisfies the first expression also satisfies the last. In the running example, the exclusion produced by deleting the refusal and the exact negation produced by inserting the negative marker yield that pattern. The subsequent sentence-level forward relations preserve the result. NatLog ends with a prediction that the premise entails the hypothesis.
In the theoretical account, composition can produce a union of basic relations rather than identifying a single one. This records that more than one relationship is consistent with what the edits establish. A larger set of possibilities supplies a weaker constraint. The authors also note that longer chains of arbitrary relations tend to lose information and reach independence. A chain can therefore fail because its intermediate steps supply insufficient information, even when a person sees a valid connection between the endpoints. The proof procedure is only as informative as the available path and the relations the system can assign to it.
Experiments and results
FraCaS tests particular semantic phenomena
FraCaS contains 346 problems organized into nine sections. Each problem has premises, a question and a labeled answer. The authors evaluate a prepared version from their earlier work. It excludes the multiple-premise problems, which account for 44% of the full set, as well as the problems without a usable hypothesis or a well-defined answer, reported as 3% of the full set. The preparation converts questions into declarative hypotheses and provides automatically generated alignments that have been corrected by hand. The reported comparison covers 183 problems.
The answer choices distinguish what it means for a hypothesis to fail. Equivalence and forward entailment count as yes. Negation and alternation count as no because the hypothesis is incompatible with the premise. Reverse entailment, cover and independence count as unknown. For instance, the fact that a hypothesis would entail the given premise does not settle whether the hypothesis is true. Grouping that case with the other undetermined relations keeps it separate from a contradiction.
Accuracy measures the proportion of all answers that match the three-way labels. The table also reports precision and recall for yes. Precision asks how frequently a positive prediction is correct. Recall asks how frequently the system finds a problem whose correct answer is positive. A system that guesses the majority class on every problem has 100.00% positive recall, alongside 55.74% positive precision and 55.74% accuracy. The earlier natural logic system has 68.89% positive precision and 60.78% positive recall. NatLog reaches 89.33% positive precision and 65.69% positive recall.
Three-way accuracy on the prepared FraCaS evaluation set
NatLog achieves higher accuracy than both the earlier natural logic system and the majority-class baseline.
The numbers
| System or setting | accuracy % |
|---|---|
| Most common class | 55.74 |
| Earlier natural logic system | 59.56 |
| NatLog (this paper) | 70.49 |
The paper reports the overall accuracy gain as a 27% reduction in error relative to the earlier natural logic system. This comparison uses the same prepared problems. The improvement occurs alongside higher precision and recall on entailment, although positive-class metrics account for only part of a three-way evaluation. Exclusion also gives NatLog a way to predict genuine contradictions. An example with a delegate and a report calls for distinguishing a claim that there was no completion from a claim that at least one completion happened on time. The conclusion is ruled out, which calls for a no answer. An example about a person believing a company won a contract leaves the actual outcome open, which calls for unknown.
Performance varies substantially across the benchmark’s sections. On the 44 quantifier problems, NatLog achieves 97.73% accuracy, with 95.24% positive precision and 100.00% positive recall. On the attitudes section, with 9 problems, accuracy is 88.89%. The authors group the sections on quantifiers, plurals, adjectives, comparatives and attitudes because their phenomena are more relevant to the system’s reasoning. This group contains 108 problems. NatLog achieves 87.04% accuracy on the group, and the paper reports a 61% reduction in error from the previous system on that selection. The reported positive precision and recall for the group are 90.38% and 85.45%, respectively.
The remaining sections show the consequences of limited semantic coverage. Ellipsis, which can require recovering material that the sentence omits, is especially difficult. On that section’s 25 problems, positive precision is 100.00%, positive recall is 5.26%, and overall accuracy is 24.00%. Taken together, these metrics say that endorsing the few cases the system could recognize was a different achievement from resolving the majority of the section.
RTE3 tests the system on newswire
The Recognizing Textual Entailment Challenge provides a setting closer to the open-domain task the authors want to address. The premises were drawn from newswire and average 35 words, compared with 11 words in FraCaS. A premise can contain appositives, background clauses and details that are incidental to the hypothesis. An aligned hypothesis can also express something in a different way or require recovering a relation from a longer description. These differences affect both the number of edits and the types of inference required.
The RTE3 development and test sets contain 800 problems each. The task has two labels. Yes still marks entailment, while no covers cases corresponding to either contradiction or an undetermined answer in FraCaS. The Stanford RTE system provides the alignments for NatLog in this evaluation and serves as the comparison system for standalone results. A negative answer from NatLog can therefore be correct for either of two reasons under the scoring scheme. The system may have found that the hypothesis conflicts with the premise, or it may have failed to establish the hypothesis.
On the development split, standalone NatLog predicts yes on 22.50% of problems and attains 73.89% precision and 32.38% recall on those positive answers. Its overall development accuracy is 59.25%. On the test split, it predicts yes on 26.38% of problems, with 70.14% positive precision and 36.10% positive recall. Its test accuracy is 59.38%. The Stanford RTE system has test accuracy of 60.50%, with 61.75% positive precision and 60.24% positive recall, and makes positive predictions on 50.00% of the test problems. NatLog’s positive decisions are more reliable on this split, and it misses substantially more of the cases labeled as entailments.
The paper places these results alongside an earlier first-order logic system that reported 76% positive precision on RTE2 and made a positive prediction on about 4% of problems. This gives a point of comparison for what the authors were looking for, namely a source of relatively precise predictions that applies to a substantial portion of problems. The measurements come from different editions of the challenge, so the comparison is descriptive. The Stanford and NatLog scores on RTE3 come from the same splits.
Combine NatLog with the Stanford inference score
The Stanford RTE system makes its decision by comparing a real-valued inference score with a threshold. The authors use NatLog to shift this score. A yes prediction raises it by a fixed amount, and any other prediction lowers it by the same amount. The adjustment can be written using the paper’s delta notation.
s′ = s + Δ if NatLog predicts yes, s − Δ otherwise
Here s is the Stanford inference score before adjustment and s′ is the score afterwards. The prime distinguishes the adjusted score. The symbol Δ denotes the magnitude of the adjustment, + adds it and − subtracts it. The equals sign defines the adjusted score. The comma separates the two cases, and yes is NatLog’s positive entailment decision. The adjusted score is then used in the threshold decision.
The authors choose the adjustment size to optimize accuracy on the development set while requiring the threshold to give equal numbers of positive and negative predictions. They then try a second condition. They keep the adjustment size fixed and optimize the threshold for development accuracy without the balance requirement. The selected threshold produces more positive predictions. Both versions use settings chosen on the development split when evaluated on the test split.
Binary accuracy of standalone and hybrid systems on the RTE3 test split
Both hybrids improve on the Stanford system, with the optimized threshold giving the highest test accuracy.
The numbers
| System or setting | accuracy % |
|---|---|
| NatLog alone | 59.38 |
| Stanford RTE system | 60.50 |
| Balanced hybrid | 64.25 |
| Optimized hybrid (this paper) | 64.50 |
The balanced hybrid scores 68.75% accuracy on the development split. Its test results include 65.50% positive precision and 63.90% positive recall, with 50.00% positive predictions. The optimized hybrid reaches 70.00% accuracy on the development split. On the test split it predicts yes on 54.50% of problems, with 64.45% positive precision and 68.54% positive recall. The change in threshold allows more correctly recognized positive cases while accepting more wrong positive predictions among the cases it endorses.
The authors report the optimized hybrid’s test improvement over Stanford as an absolute accuracy gain of 4% and give the practical scale of that improvement as 32 additional correct answers. They report p < 0.05 under a two-tailed McNemar test. That paired comparison uses the outcomes on the same problems and assesses the balance of cases in which one system is right and the other is wrong. The significance claim concerns the optimized hybrid compared with Stanford on the RTE3 test problems.
What the ablations show
The paper reports no component-removal ablation. Its analyses compare the full systems and hybrid thresholds, break down performance by semantic phenomenon, examine the directions of errors and trace individual decisions. These analyses show which conditions suit NatLog and how its output can affect a broader system’s decisions. They leave the separate contributions of the relation inventory, implicative rules and lexical features unmeasured.
Differences among the FraCaS sections
The quantifier section provides the strongest evidence that the approach handles the kind of inference it was designed around. The system can identify particular scopes and derive what happens when a term gets narrower or broader within them. Accuracy of 97.73% on that section is accompanied by 100.00% recall on entailments, showing that the system successfully covered the positive problems there under the prepared setup. The authors identify the exceptional problem as a dispute over the interpretation of many. The intended answer depends on whether the word describes a proportion or an absolute quantity. This matters because different readings can assign different behavior to a change in the expression being quantified over.
The attitudes section gives some evidence that the treatment of verbal operators handles useful cases. Its 88.89% accuracy is based on 9 problems, so the result is a demonstration on a small set of targeted examples. Attitude predicates can leave their complements open, as when a statement that someone believed a contract had been won leaves open whether it was won. Implicative verbs can instead constrain the outcomes of the actions they introduce. Resolving examples from the section shows that the relation inventory can express differences among these behaviors. The experiment does not assign an independent performance effect to the operator signatures or establish a general treatment of attitudes.
The ellipsis results show how success can depend on whether the benchmark asks for an operation the system can express. Where a conclusion depends on recovering omitted meaning, a chain of edits over visible expressions may supply little evidence. High precision on the few positive guesses is compatible with very low coverage of entailment in the section. Conversely, results for the group of sections selected as relevant to natural logic summarize performance where the method has a better match to the phenomena. The overall score retains the difficult cases and reflects the broader mix of the prepared evaluation.
What the FraCaS confusion counts reveal
The most frequent error in the FraCaS confusion matrix is an unknown prediction for a problem labeled yes. The table counts 31 such cases across the 183 problems. It records 67 correct positive predictions out of 75 positive guesses. The distribution reflects a benchmark with many entailments and a system whose evidence can become inconclusive as it moves through the edit chain.
A local loss of information can explain this kind of failure. Even with a correct correspondence between spans, the lexical classifier may assign an uninformative relation, or a context may weaken a pair of well-understood local meanings to independence. The composition rules then have little information from that step to carry forward. This is different from making a confident claim that the hypothesis conflicts with the premise. The three-way labels allow the confusion analysis to distinguish those outcomes.
The paper’s discussion of the confusion matrix emphasizes chains of equivalence and forward entailment as the direct route to yes. Its worked derivation also illustrates a route through exclusion and negation. Those relations can yield forward entailment when composed in the right order. The common feature is that enough information survives the full path to establish a forward relation. An undetermined link can defeat that derivation, while an exclusion link can contribute to it when the next edit gives it a usable interpretation. The error counts show the frequency of missed entailments without identifying a failed stage for every case.
What the hybrid and individual decisions reveal
The balanced hybrid offers a useful comparison with Stanford on the test split because both predict yes on 50.00% of problems. With the same overall frequency of positive predictions, the hybrid reaches higher positive precision and recall. Thus the advantage already appears in which problems get positive answers. Allowing the threshold to favor positive answers changes the operating point further. The optimized hybrid obtains higher positive recall than the balanced hybrid with a corresponding reduction in positive precision. The adjustment experiment shows the effect of incorporating the full NatLog decision and then changing the threshold, with the strength of the adjustment held fixed for the latter comparison.
The authors show what a useful NatLog decision can look like in an RTE3 development problem about members of a congressional committee. The premise denies that the members have strong voting records on small-business issues. The hypothesis attributes strong records to them. The derivation discards material about the committee and a restrictive modifier, and tracks the effect of deleting the negation. Identifying that last operation as a contradiction gives a reason to answer no even when much of the wording supports a close alignment.
Another development example, problem 71, has the opposite lesson. The premise describes Hugo Chávez as Venezuela’s president in a news passage. The hypothesis says that he acts as the country’s president. NatLog answers no because its path does not license adding acts as. The Stanford system and the hybrid both answer correctly. The case illustrates why the contribution of the specialist is useful as a score adjustment. A failure to establish a positive answer can still be outweighed by the other system’s evidence. The authors give these cases as illustrations of the systems’ behavior, and the aggregate results measure how frequently the combined decisions are correct.
Limitations
Limits identified by the authors
The authors deliberately leave several kinds of inference outside the system’s scope. A paraphrase can express the same event through constructions that are difficult to connect by substituting comparable spans. Someone losing a job and someone being let go can describe the same event through substantially different wording. A verb alternation can change the grammatical positions of the participants in an event. Recognizing that an action drained the oil and that the oil drained requires relating those constructions. A phrase that introduces a person as a trader at a firm can supply evidence about where they work, but extracting that affiliation calls for another kind of relation. Everyday knowledge can also support an inference such as expecting water on a floor after a sink overflows. The natural logic rules in the paper give limited help with these cases.
Some limits involve deductions that are logical even in a narrow sense. The paper points to the equivalence between denying that all birds fly and asserting that some birds fail to fly. Deriving it involves redistributing negation and changing the quantifier together. The desired output is logically connected to the input, but the authors’ edit procedure lacks a way to establish the equivalence from the available local relations. A richer proof procedure could express a transformation whose justification depends on the structure as a whole. This system derives its answer from the path of local edits available to it.
The need for a suitable path introduces a separate constraint. A sequence can lose useful information through an intermediate comparison. The endpoints may support a valid inference even if a particular path yields only a large union of possible relations. The paper’s treatment also calls attention to long edit chains in RTE3. More steps supply more places for a wrong lexical prediction or scope assignment to affect the answer. An otherwise reliable classifier may do poorly on complete problems if their paths regularly demand difficult comparisons.
The authors also identify presupposition as a limit of their account of verbal operators. Certain embedded propositions are treated as given whether the containing statement is affirmed or denied. Passing an affirmative entailment through an ordinary negation rule does not reproduce that behavior. As a consequence, the general signature classification provides a partial connection between implicative reasoning and natural logic. Its success with a signature such as that of refuse does not supply a complete semantics for factive verbs.
For FraCaS, the authors explicitly say that the evaluation is unsuitable as a proper test on unseen problems. They developed NatLog with FraCaS in mind. They also say they did not train the system on FraCaS, a distinction that matters for interpreting the result. The edit classifier was fitted to annotated edit examples, while knowledge of the benchmark could still affect which phenomena and operator behaviors received attention. The stated goal for that experiment was to show that the representation and inference procedure can account for the targeted phenomena.
Limits visible in the evaluation setup
The FraCaS experiment starts from manually corrected alignments and prepared declarative hypotheses. This makes it possible to study reasoning after the sentence correspondence has been supplied. It leaves open how well NatLog would do on the same questions with automatically inferred correspondences or without the conversion from questions to statements. It also leaves multiple-premise reasoning unevaluated on the excluded portion of FraCaS. An inference that requires facts from several premise sentences can pose a different problem from finding an edit path between a premise and a hypothesis.
The training accuracy of the lexical classifier is measured on the examples used to fit the tree. Since it is minimally pruned and allowed to distinguish many feature combinations, near-perfect training accuracy shows that the fitted classifier can represent the labeled distinctions. The number offers no separate estimate of how often the system assigns the right basic relation to an unseen edit. Since the benchmark scores are for complete problems, they mix the effects of classification, alignment, scope marking and composition. The paper gives no held-out component comparison that could locate the principal source of those errors.
The grammatical approximation also matters. Recognizable tree configurations supply the extents of operator scopes, and those configurations may diverge from the structure needed for a particular semantic analysis. Reusing marks from the endpoints adds a further dependency on edit order and on whether the marked scope accurately describes the intermediate form. The running example is deliberately constructed to illustrate the rules working together. It establishes that the implementation can make the intended derivation in that case. It gives limited evidence about scope assignment when naturally occurring sentences are harder to parse or their edits interact in unfamiliar ways.
RTE3 supplies a separate test split for evaluating the hybrid after choosing its settings on development data. It also collapses contradiction and indeterminacy into a single negative answer. A gain in binary accuracy therefore cannot establish how much the hybrid improves explicit contradiction recognition. The qualitative committee example shows that detecting contradiction can help on a particular case, while the aggregate results combine this outcome with other ways of making the correct binary decision. The tested hybrid uses the Stanford system both as the source of alignments and as the system whose scores are shifted. Its measured improvement applies to that pairing and those test problems.
Taken together, the evaluations establish two kinds of result under different conditions. FraCaS tests whether the rules can express and derive targeted semantic relationships when the input pairs are carefully prepared. RTE3 tests whether the decisions produced by that procedure can help with naturally occurring newswire problems when combined with a broader system. Estimating the effect of the exclusion rules on their own, or assessing the procedure with independently varied alignments, would require comparisons outside these experiments.
What came after
Further work on natural logic and edit-based inference
MacCartney and Manning returned to natural logic in a later paper whose stated subject is extending the approach. It sits closest to the present paper’s formal question. Once a system goes beyond containment, it needs ways to represent exclusion, determine what survives a change in context and combine the evidence across statements. The later title identifies a continuation of work on that general account. The citation and title establish the continuity, while the specific extensions cannot be identified from the title alone. An extended model of natural logic
A related line of work considers how to edit structured representations when comparing texts. The paper by Heilman and colleagues concerns tree edits for recognizing textual entailment, paraphrases and answers to questions. This connects to NatLog’s use of an alignment as a path of changes and broadens the range of recognition tasks named in the later work. The common question is what an edit to a structured expression can tell a system about the relationship between the complete texts. The title establishes that shared emphasis on edits without showing that the later system uses NatLog’s inventory or composition rules. Tree Edit Models for Recognizing Textual Entailments, Paraphrases, and Answers to Questions
NaturalLI puts natural logic in the setting of commonsense reasoning. That application bears directly on an issue the earlier paper raises. NatLog can reason from the relations supplied by an aligned pair of sentences, while an inference about a wet floor may depend on knowledge about what happens when a sink overflows. The later work’s title identifies commonsense reasoning as the setting in which it takes up natural logic. It does not specify which pieces of the earlier implementation it uses. NaturalLI: Natural Logic Inference for Common Sense Reasoning
Work on question answering takes up the idea of combining natural logic with a shallower reasoning procedure. NatLog’s hybrid experiment had used its positive decisions to adjust a broad-coverage inference score on RTE3. The later question-answering work places a combination of reasoning approaches in the setting of assessing answers. The connection is at the level of how a specialized form of inference can be used alongside other evidence. The stated scope of the later study leaves its precise integration mechanism open. Combining Natural Logic and Shallow Reasoning for Question Answering
Work focused on individual semantic phenomena
A later study addresses monotonicity directly in natural language inference. This isolates a distinction the earlier paper uses throughout its account of projection. The direction of lexical entailment is only part of the answer. What happens after substitution depends on the context supplied by quantifiers, negation and other operators. Making monotonicity the explicit subject of an inference study focuses attention on the relation between lexical ordering and grammatical scope. Natural Language Inference with Monotonicity
The study by Geiger and colleagues asks whether neural inference systems show behavior corresponding to theories of lexical entailment and negation. Its title reports partial correspondence, without specifying the extent or identifying the particular behaviors that account for it. This changes the role of the linguistic theory. NatLog uses the distinctions to construct an inference procedure, while the later study uses the subject of those theories to characterize another kind of system. The comparison matters especially when a system gets the right sentence-level answer and the question is whether it can handle the relevant lexical relation or scope change reliably. Lexical Entailment and Negation in Neural Natural Language Inference
Another citing work makes presupposed content a central subject. This follows a boundary the earlier paper identifies when discussing factive verbs. An embedded claim can be taken for granted despite negation of the sentence that contains it. That persistence is precisely what makes it hard to treat the embedded content as an ordinary entailment and project it with the same rules. The later title brings presuppositions and entailments together as an inference problem in its own right. Presupposed Content and Entailments in Natural Language Inference
The later studies thus take up several different parts of the original problem. Edit-based work concerns how to connect the texts, and monotonicity and presupposition work concern what happens to a local meaning inside a larger expression. Work on commonsense reasoning and question answering places natural logic in tasks where other evidence may be needed. Across these settings, the original paper supplies a concrete distinction between recognizing a relation between expressions and deciding what that relation licenses once the expressions become part of full statements.
Cite
Cite as Bill MacCartney and Christopher D. Manning. 2008. Modeling Semantic Containment and Exclusion in Natural Language Inference. Proceedings of the 22nd International Conference on Computational Linguistics (Coling 2008).
@inproceedings{maccartney2008modeling,
title = {{Modeling Semantic Containment and Exclusion in Natural Language Inference}},
author = {Bill MacCartney and Christopher D. Manning},
booktitle = {Proceedings of the 22nd International Conference on Computational Linguistics (Coling 2008)},
year = {2008},
doi = {10.3115/1599081.1599147},
url = {https://doi.org/10.3115/1599081.1599147}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/maccartney-2008-modeling-semantic-containment-exclusion-natural/