Combining Natural Logic and Shallow Reasoning for Question Answering
Paper · 2016 · Gabor Angeli, Neha Nayak Kennard and Christopher D. Manning
Summary
A science question can be easy to answer once someone points out the right sentence. Finding that sentence is a separate problem, and the best evidence may use different words from the question or express the relevant fact only indirectly. This paper treats each multiple-choice answer as a statement to be checked against a large collection of text. The aim is to make the system selective about what counts as evidence while giving it a way to use promising passages when a formal derivation falls short. That tension between precision and coverage is central to question answering.
The authors extend NaturalLI, an inference engine that searches backward from a proposed answer. Natural logic lets it track whether a change in wording preserves an inference in context. Replacing a specific term with a more general one can work inside an existential claim and fail inside a negative one. The paper moves this search onto grammatical trees, adds rules for relations between verbs and for certain geographic part–whole relations, and prepares shorter versions of supporting sentences in advance. These changes let NaturalLI reach evidence that differs from the proposed answer in structure as well as vocabulary.
The paper also trains a classifier to judge how well the words and phrases in two statements line up. A version of that classifier scores intermediate statements during the search. It can give credit to a candidate that comes close to an actual sentence in the corpus, with grammatical polarity helping distinguish similar wording used in opposing claims. When the search reaches a premise that directly contradicts an answer, the system gives the answer a score of zero. A probable contradiction based on lexical alignment receives a smaller penalty under the conditions specified by the authors.
On the Aristo Regents science questions, the best reported test accuracy with the larger SCITEXT collection was 67 on the paper’s percentage scale, for NaturalLI combined with retrieval and the standalone classifier. Retrieval alone scored 58 on the same test split. With only the Barron’s guide, the strongest test result came from the search’s scoring function applied directly, at 54. On an additional test set of 250 questions, NaturalLI with retrieval scored 48.0, ahead of retrieval alone at 46.8 in that comparison. The results show where formal search and approximate matching can complement each other. They also show how much the outcome depends on the supporting corpus and whether a question can be answered from a single sentence.
Deep dive: Combining Natural Logic and Shallow Reasoning for Question Answering
How NaturalLI combines natural-logic proofs with lexical matching to answer multiple-choice science questions from a collection of text. · about 37 minutes to read
The problem and its context
Finding evidence and deciding what it supports
The paper starts from a setting in which the material needed to answer a question is scattered through ordinary text. A study guide may describe a process, a dictionary may define a relevant term, and an encyclopedia sentence may state a useful generalization. To use those sources, an answering system needs to turn a candidate answer into a claim it can check. It then needs both to locate plausible evidence and to decide whether any of that evidence supports the claim. Matching a passage to a query addresses the first task. The second asks a question about meaning.
The authors frame that second task as textual entailment. A premise is a statement offered as evidence, and a hypothesis is the statement whose status the system is asked to judge. In an entailment, accepting the premise gives grounds to accept the hypothesis. The paper’s science questions motivate a practical complication. The sentences that make an answer reasonable for a reader can leave important connections implicit. An overlap in subject matter may be the first evidence that a passage is useful, even when a complete chain from passage to answer would require additional facts.
Consider the paper’s example about which part of a plant produces seeds. A relevant sentence identifies ovaries as part of the flower and connects the eggs they produce to the formation of seeds. The proposed answer assigns seed production to the flower. A reader can follow the connection through the anatomy and the process. For a system with local inference rules, there is a gap between identifying what directly produces eggs and attributing seed production to the larger structure. The same sentence offers plenty of vocabulary that a shallow matcher can use to recognize its relevance.
The opposite difficulty arises when similar words express opposing judgments. In the authors’ example about candy at dinner, the premise calls the practice a poor health habit, while the hypothesis describes eating candy as a good one. Most of the words concern the same action and its evaluation. A classifier that mainly counts shared terms has abundant evidence of topical similarity. The distinction that matters is which judgment the sentence makes. This is the kind of difference that the paper’s logical treatment can track through relations between words and the construction in which they occur.
Taken together, the examples give a reason for interleaving search and scoring. If an inference engine had to reach a stored premise exactly before it could value any path, the plant example would give it little to work with beyond what its rules can already express. If a lexical classifier saw only the original question and the retrieved passage, a high score in the candy example might hide the conflict. By scoring statements produced along an inference path, NaturalLI can bring an initially distant answer closer to evidence while keeping track of the logical relation it has accumulated along the way.
How earlier approaches represented the problem
In the Recognizing Textual Entailment challenges, a system normally receives a specific premise and hypothesis. It classifies the relation between those statements. The paper describes later versions of the task as distinguishing contradiction from independence within the broader category of nonentailment. This distinction matters in question answering because a passage can be irrelevant to an answer, or it can give a reason to reject the answer. Both outcomes can prevent the passage from serving as support, but the latter carries additional evidence. The paper uses a benchmark from this line of work to assess its standalone classifier. The Third PASCAL Recognizing Textual Entailment Challenge
Alignment features from textual entailment carry over readily when a promising premise has already been identified. The corpus setting adds the burden of locating one. A classifier for a supplied pair can spend its effort comparing the two texts. An answering system starts with the hypothesis and a collection containing many possible premises. NaturalLI approaches that problem by asking which sentences would settle the hypothesis and checking whether any of them occur in the collection. The paper also takes advantage of earlier work on discourse commitments, which it compares to the practice of making entailed statements available separately from their original sentences. A Discourse Commitment-Based Framework for Recognizing Textual Entailment
The paper places this approach alongside systems that use structured knowledge. With a curated knowledge base, a question can be converted into a logical representation and answered through the named relations in that base. This makes the design of the representation and the coverage of the stored facts important to which questions are answerable. The authors cite work on learning to map sentences to logical forms as an example of semantic parsing. Learning to Map Sentences to Logical Form
Open information extraction starts with ordinary sentences and extracts structured assertions from them. An answering system can then work with those assertions. The present paper also starts with unstructured text, but its proof steps and lexical comparisons operate on the language of sentences. A dependency tree gives the search access to grammatical structure while retaining the sentence’s words and operators. The paper situates this choice near work on answering questions over extracted facts, including the line of research represented by Open Information Extraction Using Wikipedia.
Other work already combined precise inference with softer evidence. The authors discuss a system that uses distributional similarity to assess intermediate states in a theorem prover based on Dependency Compositional Semantics. That approach moves between its compositional representation and language to obtain the similarity signal. Another approach puts distributional information into entailment rules in a Markov Logic Network. The comparison helps explain the attraction of NaturalLI’s interface. Since an intermediate state is already expressed in words, the lexical scorer can evaluate it directly. Representing Meaning with a Combination of Logical and Distributional Models
The authors also cite question-answering systems that incorporate theorem proving and systems that use logical reasoning alongside shallow components. On the science questions used in this paper, a different approach enriches a knowledge graph through conversations with people. The extra facts can be used for the question that prompted the dialogue or carried over to other questions. This provides a comparison with a system whose source of support can be enlarged by asking a person. NaturalLI’s evidence is drawn from the text collections made available to the search and retrieval components.
The immediate predecessor is the original NaturalLI. It establishes the search formulation and provides the natural-logic machinery that the paper extends. The new work changes which transformations are feasible, how they use grammatical structure, what can be prepared in advance, and what signal remains when a search stops without an exact premise. Its contribution is therefore tied to an existing inference procedure whose states already have interpretations in natural language. NaturalLI: Natural Logic Inference for Common Sense Reasoning
The method, step by step
From an answer option to a claim
The system starts by expressing each answer option as a declarative hypothesis. An option on its own can be a fragment, such as the name of a plant part. Its meaning for the task comes from filling the role specified by the question. The resulting assertion can be compared with a science passage or transformed into another assertion whose presence in the corpus would bear on the answer. Multiple choice thus becomes a scoring problem over hypotheses. Each hypothesis is evaluated using evidence available in the same supporting collection.
There are two forms of access to that collection. The symbolic search checks whether a transformed statement has a matching dependency representation among the stored facts. The retrieval component finds relevant sentences whose wording may differ and supplies promising pairs for lexical comparison. Consider what happens when the search has found a sequence of plausible edits but the final statement still differs from the relevant passage. A hash lookup can indicate whether the representation matches a stored fact. An alignment score can register that the statement has nevertheless reached a close formulation.
How NaturalLI evaluates a candidate answer
The steps in order.
How a local edit becomes an inference
Natural logic supplies a way to reason directly with expressions in sentences. A proof begins with local changes, such as replacing one word with a related word or deleting a span. Each change has a relation at the lexical level. Replacing a narrower category with a broader category, for instance, gives an inclusion relation between the categories. The system projects that relation to the sentence level, where the result depends on the context surrounding the edited expression. It then composes the sentence-level relations across the sequence of edits. An extended model of natural logic
The paper illustrates projection with cats and animals. A claim that some cat meows supports a claim that some animal meows. Any cat that satisfies the first statement also belongs to the larger category needed for the second. The context created by the existential determiner licenses the move to the broader expression. In contrast, a claim that no cat barks leaves open whether a different kind of animal barks. Inside that negative context, a safe move goes from the broader class to the narrower one. A ban on barking throughout the animal class covers cats too. The same lexical inclusion participates in different whole-sentence relations.
The following notation expresses the paper’s example of inclusion at the lexical level.
cat ⊑ animal
Here cat and animal denote the categories expressed by the corresponding nouns. The symbol ⊑ denotes forward entailment in the paper’s natural-logic notation, rendered here as a Unicode relation. For this pair it expresses inclusion, with the category on the left contained within the category on the right. The sentence-level effect of that inclusion is determined separately.
An operator is an expression whose interpretation governs how changes can be made within its arguments. The determiner some, for instance, takes a class of things and says that members of that class satisfy a condition. The class argument is upward monotone, meaning that replacing it with a broader class preserves a true existential statement. The class argument of all is downward monotone. If a property holds for the entire class, it also holds when the assertion is restricted to a subclass. The distinction is about the behavior of the argument position, which can differ from the behavior of another position under the same operator.
Polarity records the combined effect of the operators that have scope over a token. Upward is the default. An upward-monotone argument preserves the polarity inherited from its context, and a downward-monotone argument reverses it. A token under two reversals can therefore end up upward again. The authors illustrate this with the object of a verb under no, then introduce another negation inside that same context. A word’s polarity can change while the word and its local lexical relation stay the same. This makes scope part of the information the search must maintain.
The logic joins the results of successive edits so the system can still tell what a discovered premise says about the original hypothesis. In the paper’s search illustration, the starting claim denies that carnivores eat animals. The search reaches a premise reporting that a cat ate a mouse. Changes involving the animal terms can be licensed by lexical knowledge. The change in the claim’s quantificational force makes the resulting premise a contradiction of the starting hypothesis. The significance of the example lies in the path as a whole. Some edits preserve or extend entailment in the relevant direction, while their composition with the change in operator yields a conflicting claim.
Running the proof backward over grammatical structure
NaturalLI works backward because the system knows the hypothesis before it knows which premise to use. Search begins at that hypothesis and explores possible edits with associated costs. A candidate state can be viewed as a statement which, if found in the corpus, would have a particular logical relation to the hypothesis. One path may seek evidence that supports it. Another may reach a sentence that contradicts it. A stored premise anchors the path in the evidence collection. Until then, an edited state is a candidate to be checked or scored.
The backward traversal makes the direction of operations important. Removing material from the current search state corresponds to adding it when the inferred relation is read forward from premise to hypothesis. Conversely, material that would be omitted in a forward derivation may need to be supplied on the premise side to make an exact match. The paper changes where that latter work happens. It keeps deletions and replacements available on the query side and handles the need for generalizations of longer premises mostly by preparing them on the corpus side.
The original NaturalLI could traverse a sentence in surface order. The revised system uses the result of dependency parsing. A dependency tree represents words as nodes connected by labeled grammatical relations. A modifier and its dependents form a subtree attached to the word they describe. By deleting the subtree, the system can remove a coherent piece of the construction together with the material that depends on it. A purely sequential edit would have to recover that grouping from the word string.
Dependency labels also help determine what relation an edit induces. The authors adapt an earlier mapping from grammatical relations to natural-logic relations and express it using Universal Dependencies. The original mapping describes how dropping a dependent subtree changes a sentence. The backward search needs the corresponding forward interpretation of inserting that material. The label supplies a lexical relation for the change, and polarity determines how the relation projects in the sentence. Leveraging Linguistic Structure for Open Domain Information Extraction
The example about villains illustrates the interaction. A premise can assign lairs to every villain, while the hypothesis assigns them to villains with an intensified notoriety modifier. The query-side deletion removes the modifier subtree, including its intensifier. Read in the forward direction, the edit introduces a restriction on the group under discussion. That restriction occurs in the first argument of a universal operator, a downward context. A claim about the whole class therefore supports the claim about the restricted class. A rule that simply treated all modifier deletions as having the same sentence-level effect would miss the contribution of the determiner.
Traversal order matters because an edit to an operator can change which edits are permitted in its arguments. The authors give paired examples involving some, all, cats, and felines. When the target premise is the universal claim about felines and the initial hypothesis is the existential claim about cats, the relevant category change has to occur before the determiner changes. When the target is the universal claim about cats and the starting hypothesis is existential over felines, the determiner has to change first. The lexical category change in each case must be licensed by the polarity that prevails at the time of the edit.
The revised traversal considers operators, then moves through the dependency tree breadth-first, and then returns to the operators. A breadth-first pass visits nodes by their distance from the root. The operator visits on either side of that pass let the search consider a quantifier change before or after changes to its arguments. This addresses a concrete interaction between scope and edit order. The proof depends on intermediate statements being connected by licensed steps, so reaching the same words through a different sequence can matter.
Giving the search more kinds of lexical knowledge
The familiar hierarchy in the cat example is hypernymy. A hypernym names a more general class, so the ordering follows inclusion between the things that the nouns denote. The paper observes that monotonicity can be defined over other partial orders too. A partial order provides a direction of comparison for related expressions while allowing others to remain incomparable. NaturalLI can use a different order when there is a lexical resource for it and the surrounding construction licenses an inference along that order. This extends the range of relations used in its lexical semantics.
The paper uses truth values as a simple illustration of an order defined through entailment.
t₁ ≤ t₂
The symbols t₁ and t₂ stand for truth values, where the subscripts ₁ and ₂ distinguish the two positions in the comparison. The symbol ≤ denotes the ordering induced by entailment. In the paper’s interpretation, if the value on the left is true and bears this relation to the value on the right, the value on the right must be true as well.
The extension to verbs is called relational entailment. It uses the same ordering idea, now for relations expressed by verbs.
v₁ ≤ v₂
Here v₁ and v₂ stand for verbs, with ₁ and ₂ distinguishing the left and right terms. The symbol ≤ means that the verb on the left entails the verb on the right in the ordering the authors define. The relation can hold between verbs that describe different actions or states. The paper uses selling and owning as an intuitive case, with the qualification that the inference depends on the ordinary assumptions of the situation.
Logical operators still affect how a verb relation is used. The paper imagines a claim that all cactus owners live in Arizona. If selling cacti entails owning them in the intended reading, the group of cactus sellers falls inside the group of cactus owners. The universal claim can therefore be restricted to the sellers. The example connects a relation between verbs with a familiar polarity pattern. Adding a verb pair to the resource gives the search a possible local edit, while the sentence context determines the direction in which that edit can contribute to the proof.
The authors draw those verb transitions from VerbOcean, which scores candidate relations using patterns found in text. The paper describes approximating the resource’s stronger-than and happens-before relations as entailment signals. A pair involving killing and wounding illustrates the stronger-than relation. The discussion and abstract also use buying and owning to motivate the connection between actions and resulting states. The resource’s confidence weights provide the basis for transition costs. The authors distinguish these generally useful patterns from dependencies that hold only under a specific interpretation, such as the suggested connection between orbiting and being launched for artificial objects.
The other added order is meronymy, the relation between a part and a whole. The paper focuses on places. A location inside a larger region can support an inference about where a person was born. The same relation between places behaves differently with a predicate that describes a physical property of the location. An island can lie within a country whose territory includes much more than that island. The authors use this contrast between birthplace and islandhood to show why the permission to substitute a larger location belongs to the predicate context.
To implement this distinction, the authors semi-automatically collect 81 operators associated with licensed geographic inferences. They use dependency paths of length 2 observed in newswire with a person and location names. The locations are related by meronymy, giving evidence that a path such as the one expressing birthplace or a visit can take part in the same kind of inference. Other operators are treated as nonmonotone with respect to the location hierarchy. This is a conservative choice about where a geographic substitution is licensed.
These operators can combine with familiar quantifiers. In a context where replacing a smaller place with its containing region gives an entailment, an enclosing operator can preserve or reverse the direction of that inference. The mechanism uses the partial order appropriate to the expressions being edited and the polarity supplied by their contexts. The paper gives hypernymy, verb entailment, and location meronymy distinct sources of lexical knowledge while letting them participate in the same search.
Preparing premises and making matching efficient
Insertion was a costly operation in the original backward search. At a point where a word could be inserted, the vocabulary offered many possibilities. The earlier system used a trie to prune them. A trie organizes possible entries by shared prefixes, which helps avoid considering every word independently. The paper describes that approach as slow and awkward to adapt to dependency trees, where an insertion must fit a grammatical structure. The revised system moves the corresponding derivations to preparation of the supporting collection.
When a sentence is added to the knowledge base, the system also adds shorter statements licensed by subtree deletion. The authors illustrate the procedure with a premise asserting that some furry cats have tails. Such a premise also licenses an existential statement about cats with tails, with the fur modifier omitted. The shorter statement is then searchable in its own right. A hypothesis close to that shorter version can find it directly, without guessing during the search which modifier would need to be added to reconstruct the longer sentence.
The authors describe this as a bidirectional arrangement. On the corpus side, legal deletions produce entailed statements from known premises. On the query side, backward transformations explore the statements that would support or contradict the hypothesis. The two sides can meet at a stored form. Corpus preparation thereby replaces a branching choice made during each query with extra entries created from known sentences. The tradeoff is that those entries require storage, so the representation used for lookup matters.
The search store represents each fact with a 64 bit hash computed from its dependency edges. An edge records grammatical structure and can still distinguish different relationships between the relevant words. Combining the edge contributions without depending on their linear order lets the lookup treat word order as immaterial to the hash when the edge representations are the same. It also allows a state to be updated using the changed edges. There is no need to materialize the sentence anew and hash the entire structure after every edit.
The update uses exclusive OR, abbreviated XOR. An edge contribution can be toggled in the state hash by applying XOR with that edge’s hash. For a replacement, the old contribution is toggled out and the new contribution is toggled in. The result relies on XOR canceling equal values when applied again. The paper uses this property to run search updates directly on hashes. It keeps further information alongside the hash so it can track the current location, record deletions, maintain operator information, and later recover the sequence of inference steps.
The authors report 32 bytes for a search node. They account for that with an 8 byte hash, 8 bytes for local edge information, 5 bytes for records of deleted words, a 3 byte pointer back along the search path, and 8 bytes of operator metadata. On their machines, a state occupied half a cache line. The design connects the linguistic changes to the practical cost of exploring them. Compact states and local updates let the engine retain many alternatives while keeping each edit cheap to represent.
Learning what a close match looks like
Even with the added transitions, some statements remain too far apart for the symbolic procedure. In the food example, a premise describes several functions of food, including growth, energy and repair. The hypothesis makes animals the subject and says that food supplies energy used for growth and repair. Recovering that interpretation formally would require connections among the participants and purposes across the sentence. The overlapping content gives a lexical classifier enough information to score the pair as plausible even when those connections are outside the search’s available operations.
The standalone classifier represents each sentence through keyphrases. Some keyphrases are nominal groups, which can contain modifiers followed by nouns and can extend through of or a possessive to another noun. A verb with optional adverbial material forms another kind of keyphrase. A gerund followed by a noun supplies another pattern. Forms of be are excluded as independent keyphrases. The paper distinguishes these spans from keywords, which are individual nouns, adjectives, or verbs and will be used in the cheaper version of the scorer.
The alignment uses a succession of sieves. The earliest sieve looks for expressions that match exactly. Later sieves use shared prefixes or suffixes, or accept a pair when one phrase occurs within the other. Those criteria let a specific phrase align with a shorter expression that covers much of the same content. A final sieve uses neighboring alignments. It can link phrases in the middle when their immediate neighbors have already been linked on both sides. In that case the surrounding structure supplies the reason to propose a match.
The neighbors rule can be written as the implication below.
pᵢ₋₁ ↔ hₖ₋₁ and pᵢ₊₁ ↔ hₖ₊₁ ⇒ pᵢ ↔ hₖ
The symbols p and h refer to phrases in the premise and hypothesis. The subscripts ᵢ and ₖ specify the positions of the proposed middle pair in their respective phrase sequences. The subscripts with ₋₁ refer to the preceding phrase in each sequence, while those with ₊₁ refer to the following phrase. The symbol ↔ means that a phrase pair is aligned. The word and requires both neighboring alignments, and ⇒ indicates the additional alignment licensed by the sieve.
The paper’s alignment illustration includes a pair involving the phrases heat energy and thermal energy. It also shows premise words related to boiling or to a pan that receive no corresponding alignment. Such a pair contributes several kinds of evidence. There is matched content spanning multiple words, there are differences within a matched pair, and there is leftover material on the premise side. The example also includes a tagging error that groups heat water as a compound noun. The representation that the classifier sees therefore depends on the quality of the grammatical analysis used to select the phrases.
The core classifier uses 5 real-valued features that count the alignment outcomes. They measure the total alignments, the exact alignments, the imperfect alignments, and the phrases left unmatched on each side. These are unlexicalized features, so the inputs summarize the relationship between the phrases without assigning a dedicated feature to a particular science term. The optional retrieval feature carries the Solr score for a premise given the hypothesis. That gives the classifier access to the same search signal that can also be used by itself to rank answers. Information retrieval
Training requires labels about the relation between sentences. The authors obtain candidate pairs by retrieving the top 8 Solr hits for each true training hypothesis and for each sentence in the Barron’s guide. Human annotators on Mechanical Turk judge whether entailment goes from premise to hypothesis, from hypothesis to premise, in both directions, or in neither. Asking about both directions preserves the distinction between a sentence that supplies sufficient support and a sentence that states a broader consequence of the hypothesis. Each pair receives a judgment from a single annotator.
The training collection also includes extra negatives. For every false training hypothesis, these are drawn from the 10 highest-ranked results returned by Solr. The procedure yields 21,306 examples. Because the examples include high-ranking retrieval results, the classifier sees cases where textual overlap is plausible even when the hypothesis is false. The authors describe a cost and quality tradeoff in collecting a single judgment per candidate pair. It makes the annotation more economical while leaving some noise in the labels.
Scoring intermediate states and handling contradictions
The standalone classifier can score a retrieved sentence against the original hypothesis. The search uses an adaptation that assesses a retrieved premise against a statement reached after edits. The authors compare this to assessing a position during a game when the search cannot play out all possible moves to the end. The state gets a score for how promising it looks by the evidence available at that point. In NaturalLI, that evidence comes from a lexical alignment with actual text in the supporting collection.
The version used inside the search works with keywords. A full phrase alignment can change when an edit alters a phrase boundary, extends a span, or allows a later sieve to apply. With individual content words, the search can update the feature counts from the parent state as it makes an edit. Removing a previously matched word, for instance, changes the contribution of the alignment and leaves its counterpart on the premise side without that match. The new score uses the learned feature weights and the changed counts. The authors trade some of the standalone scorer’s ability to recognize approximate expressions for a score cheap enough to apply across the search.
Keyword matching in NaturalLI also takes polarity into account. The surface forms must agree after lemmatization, which reduces inflected forms to a common lexical form. The words must also have the same polarity in their sentences. The authors illustrate this with an assertion that some cats possess tails and an assertion that denies this of cats altogether. The content words are nearly the same. Under the negative operator, those words occupy contexts with opposing polarity. Requiring polarity agreement keeps the lexical score from treating those matches as direct evidence of support.
The paper describes operator signatures in terms of the polarity of subject and object positions. Common contradictory pairs tend to reverse their arguments’ polarities, whereas compatible operators can agree in one position and differ in another. The same pattern helps evaluate likely contradiction. A search path can produce a candidate already classified as contradicting the hypothesis, and that candidate can align closely with a sentence retrieved from the corpus. The logical status of the path and the degree of alignment supply different pieces of evidence. A close match on a contradictory path can count against the answer.
The score for a hypothesis is set to zero when NaturalLI finds a contradictory premise. For a soft contradiction, the authors apply a discount of 0.75 when the search has found no explicit supporting premise. That setting is tuned on the training data. Across the systems, the scoring also discounts a premise that lacks the candidate answer from the multiple-choice question, using a value tuned on the training set. The final ranking thus depends on retrieval and alignment as well as on the evidence flags produced by inference.
Experiments and results
Questions, supporting text, and measures of success
The principal evaluation uses the Regents Science Exam portion of Aristo, derived from New York elementary-level science exams. Each alternative answer is converted into a hypothesis using the same procedure as the earlier dialogue-based work. When a question has several sentences, only its final sentence is used for conversion. The task gives the system a collection of possible evidence without pairing individual questions with the sentences that answer them. The accuracy reported for question answering measures whether the system selects the correct option.
The authors evaluate with two collections. The Barron’s guide contributes 1200 sentences and gives them a corpus comparable to the one used by Knowbot, the dialogue-based system. SCITEXT begins with 1,316,278 supporting sentences. It includes the guide and material drawn from simple Wikipedia, dictionaries, and a science textbook. For the evaluation, each choice of corpus defines the evidence available to the procedure. The comparison therefore tests the same general answering approach under substantially different evidence conditions.
Searching individual sentences can remove context needed to interpret pronouns. To reduce that problem, the authors apply simple high-precision rules before indexing the text. They look for an antecedent among recent noun phrases or named entities, using agreement cues for animacy, gender, and number. The purpose is to make a sentence more usable by itself when the antecedent appears earlier in the original text. This preparation is a limited form of coreference resolution.
Filtering duplicate sentences and those with non-ASCII characters leaves 822,748 facts in the larger collection. The authors index the sentences with Solr and use its default scoring and similarity settings. Solr produces the candidate premises used in soft alignment and the retrieval score available as an optional classifier feature. This stage is distinct from storing hashes for symbolic search. A retrieval score gives a graded assessment of potential relevance, while the hash lookup tests whether a search state matches a prepared fact representation.
The standalone classifier is also tested on RTE-3, where the input is a supplied premise and hypothesis. It achieves 63.75% accuracy, which the authors report as 2 points above the median submission. This evaluation concerns a classifier for sentence pairs. The science exam evaluation additionally requires locating evidence and comparing different possible answers to a question. A useful score on the pair task makes the classifier a substantive baseline. The question-answering experiments then test what changes when it is used with a retrieval system or embedded in the search.
What the baselines can do
Solr Only scores a hypothesis using the highest retrieval score assigned to any premise for that hypothesis. A question can therefore be answered by lexical retrieval alone when the best-scoring passage distinguishes the correct option. The standalone classifier instead scores the alignment of keyphrases. Its variant with Solr uses the retrieval score as an extra feature alongside those alignment counts. The evaluation-function baseline applies NaturalLI’s lighter scoring function directly to the original hypothesis and premise. This isolates its behavior as a sentence scorer from the effects of exploring intermediate states.
Every reported NaturalLI run includes the evaluation function during search. The name NaturalLI in the results therefore refers to the revised search with lexical assessment. The authors also tune combinations on the training set. They report a weight of 6:1 for NaturalLI relative to Solr and 24:1 for NaturalLI relative to the standalone classifier. The final combined system brings the signals together. The standalone classifier with a Solr feature is a separate configuration, because it takes retrieval into account at the level of premise–hypothesis scoring.
Knowbot supplies comparison results on the Barron’s setup. Its held-out version can use facts from dialogues about other questions, while its oracle version can use human input specific to the question it answers. The paper reports training-split accuracy values of 45 for the held-out version and 57 for the oracle version. The test set came later than the publication of the Knowbot results, so the table supplies the comparison on the training side. The dialogue conditions matter when interpreting these values because they determine which extra evidence Knowbot can access for an answer.
Main results with SCITEXT
Aristo Regents test accuracy with SCITEXT support
The combination of NaturalLI, retrieval, and the standalone classifier leads these settings.
The numbers
| System or setting | Accuracy % |
|---|---|
| Solr Only | 58 |
| Standalone classifier | 60 |
| Standalone classifier with Solr feature | 64 |
| Evaluation function without search | 63 |
| NaturalLI | 61 |
| NaturalLI with Solr | 61 |
| NaturalLI with Solr and standalone classifier (this paper) | 67 |
On the Aristo SCITEXT training split, Solr Only scores 62. The standalone classifier reaches 68, and its version with the retrieval feature scores 66. NaturalLI scores 65 before adding separate ranking signals, then 73 with Solr and 74 with Solr and the standalone classifier. These are training accuracies. They describe the split used for tuning, where bringing the signals together gives the highest result among the reported configurations.
On the SCITEXT test split, NaturalLI alone and NaturalLI with Solr both score 61. The best combined setup reaches 67, while the standalone classifier with the retrieval feature reaches 64. The search’s evaluation function used directly reaches 63. Thus a reader comparing the inference procedure to a strong lexical baseline should pay attention to the combination being compared. A benefit for the complete system on this test split coexists with stronger results for some of the direct lexical settings than for NaturalLI on its own.
The table also reports the evaluation function combined with Solr, applied without the inference search. This configuration has SCITEXT accuracy of 62 on training and 58 on test. The corresponding direct evaluation function scores 61 and 63. Retrieval enters the overall study in several forms, and its effect varies with that choice. A score can serve as the entire ranking rule, a feature for the standalone classifier, or a component in a combined decision. Results from one form establish the behavior of that configuration.
What changes with the Barron’s guide
Aristo Regents test accuracy with Barron’s support
Direct use of the evaluation function gives the strongest test accuracy with the smaller corpus.
The numbers
| System or setting | Accuracy % |
|---|---|
| Solr Only | 42 |
| Standalone classifier | 52 |
| Standalone classifier with Solr feature | 48 |
| Evaluation function without search (this paper) | 54 |
| Evaluation function with Solr | 45 |
| NaturalLI | 51 |
| NaturalLI with Solr | 49 |
| NaturalLI with Solr and standalone classifier | 49 |
On Barron’s training questions, the retrieval baseline scores 49, and both standalone classifier configurations score 53. The direct evaluation function scores 52, or 50 when combined with Solr. NaturalLI scores 52, with both of its reported combinations at 55. In this corpus condition, the training results favor the combined search settings. The test results favor direct scoring, with the evaluation function at 54 and the standalone classifier at 52. NaturalLI reaches 51, and its two combinations reach 49.
The contrast across corpus settings is informative because evidence coverage changes while the broad answering task stays the same. The smaller guide gives fewer sentences and entailed variants to meet a backward search. Its scoring outcomes show that the direct use of lexical evidence can be competitive in that setting. With SCITEXT, the fullest combination has the strongest test accuracy. Corpus size, subject coverage, and the wording of the available passages change together in this comparison, so the result concerns the collection as a whole.
The main Aristo test split contains 68 examples. The authors explicitly advise caution about large-looking differences and about identifying a uniquely best system from those scores. Training and test rankings also vary across the combinations. The experiments show the performance observed under the specified splits and evidence conditions. They give the most direct support to claims about those configurations, particularly the SCITEXT combination and the strong direct scoring result on Barron’s.
The additional science exam test
Test accuracy on the additional science exam questions
NaturalLI with Solr leads the systems evaluated together on the additional test set.
The numbers
| System or setting | Accuracy % |
|---|---|
| Solr Only | 46.8 |
| Standalone classifier | 43.6 |
| NaturalLI | 46.4 |
| NaturalLI with Solr (this paper) | 48.0 |
The additional experiment uses a test set of 250 science exam questions, with an associated training set of 500 examples and a development set of 249 examples. The authors describe these questions as harder because more of them involve understanding a complex process. NaturalLI with Solr scores 48.0 on the test set. Solr Only scores 46.8, NaturalLI scores 46.4, and the standalone classifier scores 43.6. The combined result extends the comparison to a larger test set with more of the problem type the authors identify as difficult.
The paper places these results beside scores reported for systems using a web-scale corpus. It gives 51.4% accuracy for a retrieval-based system and 54.8% for a solver using pointwise mutual information, or PMI, a statistic for word association. These were reported to the authors by the researchers responsible for those systems. The comparison sets the NaturalLI results in context. In the additional experiment, the strongest NaturalLI setting leads the systems run together in the table, while the external figures come from a different evidence setup and are higher.
What the ablations show
Comparing direct scoring with inference
The paper offers configuration comparisons and an error analysis, with no separate ablation that removes each symbolic extension from NaturalLI. The closest test of the search’s role compares NaturalLI with the evaluation function applied directly to the original sentence pair. Both use the classifier’s learned scoring signal in the keyword-based form, but only NaturalLI applies it to candidates reached through edits and checks those candidates for explicit evidence. All reported NaturalLI runs keep the scorer active. The inference comparisons therefore concern the search with its soft assessment available throughout.
The direct scorer reaches 63 on SCITEXT test, compared with 61 for NaturalLI alone. On Barron’s test, the corresponding results are 54 and 51. Taken by themselves, these comparisons favor evaluating the original pair directly. The fuller SCITEXT system reaches 67 when search is combined with retrieval and the standalone classifier. The result supports the usefulness of a configuration that includes inference, with the gain tied to how the signals are combined and what evidence is indexed. A uniform improvement from turning on search is outside what these rows establish.
The standalone classifier comparisons examine the contribution of the Solr feature. On SCITEXT test, the accuracy scores are 60 for the classifier and 64 with the feature. On Barron’s test they are 52 and 48. The feature helps in one corpus condition and weakens the other. The direct evaluation-function rows show a different pattern again. The results give a concrete reason to distinguish retrieval quality from candidate compatibility. A sentence can be easy to retrieve because it shares words with a hypothesis, while the way that score affects the final ranking depends on the other information the system already uses.
The combination with Solr can also be examined on the larger test. NaturalLI’s test accuracy of 46.4 and retrieval’s 46.8 are both below the combined result of 48.0. The paper reports that the combination weights were empirically fairly robust. It does not present a sweep across weights or break down which answers are recovered at each setting. The reported run shows that the components can yield a better ordering together on these questions, while the source of the improvement is investigated through examples and the analysis of errors.
Ties, contradictions, and misleading matches
The authors find that several answer options can receive the same score. On the training examples, they report ties for 7% of examples with the standalone classifier and a 4% loss from random guesses. NaturalLI ties on 11% of the training examples, with a reported 6% loss from random guesses. A useful premise may give an answer a score that is shared by another option whose evidence looks similar under the chosen features. A second scoring component can change the ordering in those cases even when its numerical weight is low. This is the authors’ explanation for part of the value of mixing signals.
The paper also suggests that NaturalLI may reject some premises that look similar under lexical measures but express the opposite claim. Its ability to follow negation provides a mechanism for doing so, and the polarity examples show what that mechanism is intended to catch. An accuracy breakdown for questions with contradictory passages would be needed to determine how frequently that mechanism accounts for the observed rankings. The evidence here comes from the scoring design and the authors’ interpretation of the configuration results.
Their error examples also show why the soft classifier remains fallible. In one question, the system favors a claim that water freezing is a transition from gas to solid. The sentence it uses describes an ice cube going from solid through liquid to gas. The search replaces the term for water with the term for ice, making the keyword overlap very strong. The relevant order of the stages and the direction of the change are still different. The example identifies a weakness that an aggregate accuracy score hides. Making arguments more alike at the word level can improve an alignment even when the underlying science relation is reversed.
A separate difficulty is that the answer can depend on facts distributed across a question or across the corpus. In the training set, the authors count 29 of 108 questions, or 26%, as containing multiple premises. A case involving a smooth road and reduced friction can still expose enough of the intended answer to score well. A case asking for a conclusion about a change in water volume may require using the setup as evidence. These examples motivate different diagnoses. Some failures involve a score that misreads a usable sentence, whereas others arise because the system’s unit of inference is too small for the question.
The training analysis also discusses questions whose answers have no evident single supporting sentence in the particular corpus. The example about a human offspring inheriting blue eyes calls for substantial intermediate reasoning given the available material. With a stronger classifier, a retrieved passage might still offer useful clues. Establishing the answer through the symbolic procedure would require connecting information across assertions or adding a sentence that expresses the needed fact. This category explains why corpus expansion and richer reasoning might address different failures, even when both changes improve the same accuracy measure.
Limitations
Limits stated by the authors
NaturalLI searches for one sentence that can support or contradict a hypothesis. Its proof can contain multiple edits, but those edits connect versions of a statement to a single supporting premise. The authors identify reasoning over multiple premises as a major source of error. Elementary science examples can ask readers to combine the description of a situation with a general principle or to track events in a process. Those questions can remain outside the procedure even when the individual facts appear somewhere in the same collection.
The question conversion imposes a related restriction. For a question made up of several sentences, the system uses only the last one. The authors consider it likely to be the most informative sentence, and some examples can indeed be answered from it. Any conditions introduced earlier are unavailable to the converted hypothesis through this route. The paper singles out cases that require understanding a process and points to prior work on representing processes as a possible direction for addressing them. Modeling Biological Processes for Reading Comprehension
The authors also note that longer premises and hypotheses make it more likely that the symbolic system will fail to find support. More content can mean that the needed inference crosses several constituents or depends on an implicit premise. Their example about functions of food illustrates both issues. The evaluation function is a response to the resulting loss of coverage. Its score can indicate a plausible connection from the language that is present, while a complete derivation remains available only for cases the search can express and match.
The semantic extensions themselves have explicit boundaries. Geographic substitution is limited to predicates that the authors identify as licensing the part–whole inference. The resource for verbs includes relations that can depend on the intended context. Treating its scores as transition costs lets the engine distinguish more and less promising edits, but the paper gives no contextual mechanism that settles every reading of a verb. The examples establish how these kinds of lexical knowledge fit into a polarity-based search, with the practical coverage bounded by the available resources and rules.
The authors caution that the principal test set is small, and their additional evaluation shows how challenging the more process-oriented questions can be. They acknowledge that the reported web-scale retrieval and PMI scores are higher than their best result on the additional test. They propose trying NaturalLI with a web-scale collection and incorporating PMI statistics into the evaluation function. Those are directions suggested by the comparison. The results measure NaturalLI on the evidence collections it actually used.
The annotator procedure introduces another acknowledged limit. A single judgment for each pair reduces the cost of acquiring training examples and leaves the labels somewhat noisy. An annotator may have to decide whether an ordinary assumption supplies a missing link or whether the pair merely concerns the same topic. The classifier learns from the judgments and the additional retrieved negatives under that procedure. Its score expresses learned compatibility, with a separate evidential role from an explicit entailment found by search.
Limits apparent from the evaluation design
The table keeps the evaluation function enabled in all NaturalLI runs. This means the reported accuracy belongs to a system in which soft scoring and symbolic search interact. The individual effects of dependency-tree editing, corpus-side deletion, verb relations, and geographic substitutions remain unresolved. The paper gives linguistic examples for these mechanisms and motivates the hash representation on efficiency grounds. The question-answering comparisons evaluate their collective use. That distinction matters if the aim is to estimate the accuracy or runtime contribution of a particular change.
The main metric gives credit for selecting the correct option. The system may do so through an explicit premise, a promising lexical alignment, or a change in ranking brought by combining scores. The results do not report how frequently a correct answer comes with a valid evidence sentence and inference path. Conversely, a correct inference about one answer may encounter a tied score at the final ranking stage. Reading the accuracy together with the error examples gives a clearer view of what the experiment measures. It evaluates answering behavior under the stated conditions, with evidence quality and proof coverage left as separate questions.
There is also a distinction between corpus availability and corpus size. The Barron’s and SCITEXT conditions differ in the kinds of texts they include, the language in which they describe a fact, and which facts are available. Their results show sensitivity to those evidence conditions. They leave open whether a given question improves because a new source contains its answer, because a passage uses wording that suits the scorer, or because the extra material supplies a useful entailed variant. A comparison using the same source with different quantities of text would answer a narrower question about size.
Finally, the error breakdown is drawn from training questions. It identifies plausible failure mechanisms and gives their observed incidence where the paper supplies counts for that split. It does not establish the same distribution on the held-out questions or the process-heavy additional test. Similarly, seeing an advantage for the strongest combined setting describes the ordered scores among the tested configurations. The paper supplies no uncertainty estimates for those comparisons. The size of the main test and the reversals between the corpus conditions matter when judging how broadly to generalize from the rankings.
What came after
The later citing paper Natural Language Inference with Monotonicity (2019) takes monotonicity as its focus within natural language inference. The connection is the rule that made NaturalLI’s lexical edits meaningful. Knowing that one expression denotes a subclass of another is only part of deciding whether a substitution is justified. The surrounding words determine whether the allowable change proceeds towards the broad expression or the narrow one. A change from cats to animals can be valid in an existential claim while requiring the reverse direction in the scope of no.
For NaturalLI, that inference issue is embedded in a larger task. The system must choose edits, search a collection for evidence, and rank possible answers even when the search finds only an approximate match. The later paper’s stated focus is the monotonicity relation within inference itself. This makes it a follow-on to the part of NaturalLI concerned with projecting lexical relations through context. The citation and the later paper’s stated topic establish that connection. They leave its use of the question-answering pipeline, its particular methods, and its empirical results unspecified.
Cite
Cite as Gabor Angeli, Neha Nayak Kennard and Christopher D. Manning. 2016. Combining Natural Logic and Shallow Reasoning for Question Answering. Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).
@inproceedings{angeli2016combining,
title = {{Combining Natural Logic and Shallow Reasoning for Question Answering}},
author = {Gabor Angeli, Neha Nayak Kennard and Christopher D. Manning},
booktitle = {Proceedings of the 54th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
year = {2016},
doi = {10.18653/v1/p16-1042},
url = {https://doi.org/10.18653/v1/p16-1042}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/angeli-2016-combining-natural-logic-shallow-reasoning/