---
title: "Flexible Generation of Natural Language Deductions (2021)"
description: "ParaPattern learns to write individual deduction steps from Wikipedia-derived examples and tests how well those steps transfer to new…"
canonical: "https://research.elamur.ai/free/en/papers/bostrom-2021-flexible-generation-natural-language-deductions/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/bostrom-2021-flexible-generation-natural-language-deductions/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / Flexible Generation of Natural Language Deductions

# Flexible Generation of Natural Language Deductions

Paper · 2021 · Kaj Bostrom, Xinyu Zhao, Swarat Chaudhuri et al.

**Authors:** [Kaj Bostrom](https://md.research.elamur.ai/free/en/authors/kaj-bostrom/), [Xinyu Zhao](https://md.research.elamur.ai/free/en/authors/xinyu-zhao/), [Swarat Chaudhuri](https://md.research.elamur.ai/free/en/authors/swarat-chaudhuri/) and [Greg Durrett](https://md.research.elamur.ai/free/en/authors/greg-durrett/) · **Year:** 2021 · **Venue:** Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2021.emnlp-main.506/)
- [PDF](https://aclanthology.org/2021.emnlp-main.506.pdf)
- [DOI 10.18653/v1/2021.emnlp-main.506](https://doi.org/10.18653/v1/2021.emnlp-main.506)

## Summary

A system that gives an answer can appear to explain itself by listing relevant facts. A stronger explanation shows what follows when those facts are put together. That requires more than finding a related sentence. The system has to preserve the meaning of the premises while expressing a conclusion that may use different words or a different sentence structure. ParaPattern tackles this part of natural-language [reasoning](https://md.research.elamur.ai/free/en/topics/reasoning/). The paper studies substitution, which transfers information through an appropriate relation between expressions, and contraposition, which uses a conditional together with the denial of its consequence to deny its antecedent.

The authors build training examples from English Wikipedia. They search for sentences whose grammatical structure signals a useful relation, then use templates to turn pieces of those sentences into premises and a conclusion. To teach the same deduction across different phrasings, they add automatically rewritten versions of the premises while keeping the conclusion fixed. They use these examples to specialize [BART](https://md.research.elamur.ai/free/en/papers/lewis-2020-bart-denoising-sequence-sequence-pre/) separately for each operation. Writing the retrieval patterns and templates requires human judgment, while assembling individual training examples is largely automatic.

On controlled tests with altered premise wording, ParaPattern produced valid, non-redundant conclusions in 87% of the substitution cases and 80% of the contraposition cases, averaged across the respective test conditions. Its counterpart trained without paraphrase augmentation reached 55% and 38%. On a sample from the QASC development split, ParaPattern’s substitution generator reached 73% validity without training on QASC annotations. On the EntailmentBank development sample, it reached 85% validity on steps the dataset classifies as substitution, matching BART trained on EntailmentBank. Across the mixed sample of EntailmentBank steps, the scores were 57% for ParaPattern and 69% for the in-domain system.

The study shows how to teach a generator a specific deduction step and test whether it applies that step when the wording changes. It also shows why the evaluation needs to examine what the system actually writes. A reference conclusion can receive a relatively high probability from a system whose generated outputs mostly repeat the premises. Conversely, an output can differ from the reference and still follow from the evidence. The authors release the ParaPattern source code. Their experiments cover individual steps, leaving the selection, chaining, and verification of those steps in a full proof to further work.

## Deep dive: Flexible Generation of Natural Language Deductions

ParaPattern learns to write individual deduction steps from Wikipedia-derived examples and tests how well those steps transfer to new wording and data. · about 35 minutes to read

**In this deep dive**

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

### The problem and its context

#### Recognizing a conclusion and writing one

A premise is a statement that an inference takes as given. A conclusion is what the inference derives from those statements. In a recognition task, the conclusion is already on the page. A system is asked whether the premise supports it. In generation, the premise is available and the system has to decide what to say. It must identify which parts of the input matter, work out how they connect, and express the result as a sentence. An experiment that supplies the candidate conclusion has already done some of that work.

The paper situates this distinction in the history of automated inference. Early work aimed to reason from ordinary text, as in [Bobrow’s system for solving problems expressed in natural language](https://md.research.elamur.ai/free/en/papers/bobrow-1964-natural-language-input-computer-problem/). The authors describe considerable progress in automated formal reasoning, where premises and proof operations have explicit representations. They see slower progress on sentences as people write them. An ordinary sentence can express a category relation, an implication, or an exception through many different constructions. A useful operation has to recognize when those constructions express the same relation and preserve distinctions that change the inference.

Much work called natural-language inference had focused on recognizing textual entailment. The task gives a system a premise and a proposed hypothesis, then asks it to classify their relationship. The corpora introduced by [Bowman and colleagues](https://md.research.elamur.ai/free/en/papers/bowman-2015-large-annotated-corpus-learning-natural/) and [Williams and colleagues](https://md.research.elamur.ai/free/en/papers/williams-2018-broad-coverage-challenge-corpus-sentence/) are examples of this setup. Entailment is one possible relationship. It means that accepting the premise commits a reader to accepting the hypothesis under the intended interpretation.

The authors argue that strong performance on this kind of benchmark can conceal reliance on surface cues. A tendency for entailed hypotheses to share words with their premises, for example, makes overlap informative for classification. Overlap has a different role in generation. A good conclusion will frequently keep the subject matter and some of the wording of its evidence, but an output that merely echoes that evidence has contributed no deduction. The paper connects this concern to earlier work on [annotation artifacts in inference data](https://md.research.elamur.ai/free/en/papers/gururangan-2018-annotation-artifacts-natural-language-inference/) and [hypothesis-only baselines](https://md.research.elamur.ai/free/en/papers/poliak-2018-hypothesis-only-baselines-natural-language/). The latter ask how much of a classification task can be performed with the proposed hypothesis alone, even though the task is defined over a relationship between sentences.

#### What intermediate facts have to do

Multi-hop [question answering](https://md.research.elamur.ai/free/en/concepts/question-answering/) investigates cases where evidence must be combined across several steps. A passage might establish a property of a class, and a different passage might identify a particular member of the class. Joining the passages gives the reader the material for an inference. Writing out what that material implies gives a subsequent step a proposition it can use. The authors describe work on multi-hop reading comprehension, including [HotpotQA](https://md.research.elamur.ai/free/en/papers/yang-2018-hotpotqa-dataset-diverse-explainable-multi/) and [multi-document reading comprehension](https://md.research.elamur.ai/free/en/papers/welbl-2018-constructing-datasets-multi-hop-reading/), as part of the movement towards questions that require such combinations.

A correct answer provides limited evidence about how a system obtained it. The paper cites work questioning whether training on compositional questions necessarily teaches the intended fact combination. A list of retrieved facts exposes more of the evidence, but leaves the transition between facts implicit. A freely written chain makes those transitions visible while still allowing a sentence to introduce a claim the preceding evidence does not justify. The authors therefore distinguish the usefulness of displaying intermediate text from the soundness of the inference expressed by that text.

Some approaches discussed in the paper put logic closer to the center of the system. The authors describe NLProlog as grounding reasoning in logic while relying substantially on representations that remain internal to the system. They identify a different boundary in PRover and Leap-of-Thought, which they characterize as retrieving facts without generating novel conclusions. Datasets that explicitly represent reasoning chains, including EntailmentBank, make the transitions between statements available for inspection. ParaPattern accordingly concentrates on the operation that produces a new statement from the current ones.

This focus also relates to [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/). An intermediate conclusion written in ordinary language gives a reader a claim to inspect and premises against which to check it. The authors’ proposed architecture for future work treats reasoning as a sequence of named operations, in the spirit of proof rules. A system organized this way could reuse an operation wherever the input expresses the right relation. The contribution of the present paper is at the level of the individual operation, where the link between what goes in and what comes out can be tested directly.

#### Why use free text and templates together?

Natural Logic offers an earlier way of reasoning directly over language. A category relationship between a more specific expression and a more general one can license a replacement in an appropriate context. The precise conditions matter because the direction in which a replacement preserves entailment can depend on the surrounding sentence. The paper describes work that formalizes such relationships through monotonicity and contrasts the scope of word-level relations with the sentence-to-sentence mapping it wants to learn. Its inputs can state relevant relationships through larger phrases, and a suitable conclusion can require rearranging the sentence around the material that changes.

Earlier generative work on commonsense inference also wrote new text. The authors see a shared interest in explicit intermediate statements, but characterize that work as imposing fewer restrictions on the kind of conclusion generated. They point to work on breaking a question into elementary tasks as a parallel approach. Once a larger problem has been decomposed, a component can be assessed on its ability to perform the particular task it was given. ParaPattern investigates whether this kind of specialization can be learned for a deduction operation expressed throughout in ordinary sentences.

Training examples create a practical problem. Human annotators can produce premise–conclusion pairs, but expert annotation takes work, and crowdsourcing requires instructions and filtering. The paper notes that resources already exist for some kinds of composition or commonsense inference. That helps where an existing resource matches the intended operation. A new operation needs examples whose conclusions depend on that operation and whose wording is broad enough to prepare a system for text beyond the examples.

Published prose supplies wide variation in wording, but self-contained demonstrations of a single proof step are hard to find at scale. A Wikipedia sentence may mention a class and one of its members while attributing a property to the class. The ingredients for a deduction are present inside the sentence. An editor has little reason to point out the membership in a separate premise, restate the class property separately, and then print the conclusion underneath. ParaPattern uses the sentence as a source of phrases and relations. The training exercise is assembled around those ingredients.

Templates provide a complementary source of control. Given suitable material, a template can separate the premises and place the right phrase into the conclusion systematically. The paper describes earlier template-generated data used to teach logical regularities during pretraining, where the main goal was transfer. [ProofWriter](https://md.research.elamur.ai/free/en/papers/tafjord-2021-proofwriter-generating-implications-proofs-abductive/) likewise provides proof steps made with templates and serves as a comparison in the experiments. In ParaPattern, templates supply consistent examples of what each operation should do, while Wikipedia and automatic rewriting supply much of the variation in how the inputs say it.

### The method, step by step

#### What an operation learns to do

ParaPattern builds a separate generator for each operation. At use time, the generator receives premises for its designated operation and writes a conclusion. Substitution and contraposition differ in what that conclusion requires. Substitution needs a connection between expressions strong enough to carry information from one to the other. Contraposition needs the system to track which part of a conditional is the consequence and to handle the polarity of the statements correctly.

Consider the EntailmentBank example involving cnidarians and coelenterates. The premises identify the groups by alternative names and establish that cnidarians are aquatic. The naming relation licenses carrying the aquatic property over to the alternative name. The conclusion has a reason to exist even though most of its content is familiar from the input. One premise supplies the property and the other supplies the expression to which it applies. A Wikipedia-derived training example can use a more specific expression and a broader category to create a related exercise in transferring a property. A naming relation and a category relation differ in strength, so the surrounding claim and direction of transfer still matter.

In contraposition, an implication establishes that whenever an antecedent holds, a particular consequence holds. A premise denying the consequence then supports denying the antecedent. The paper’s illustrative material also points to a linguistic complication. The negative of a statement about lacking something can be expressed positively as having it. A generator may therefore have to express the appropriate polarity using a different lexical construction. Moving or inserting a familiar negation word would solve only the cases that happen to admit that wording.

The authors express the task as a conditional distribution.

```
p_G(y | x₀, …, xₙ)
```

Here `G` is the deduction operation. The subscript on `p` identifies the distribution associated with `G`. The symbol `y` stands for a possible conclusion sentence. The vertical bar means that the conclusion is considered given the premises to its right. Each `x` with an index is a premise sentence. The sequence begins at `x₀`, ends at `xₙ`, and the ellipsis allows for intermediate premises. The commas separate the premises, and `n` is the final premise index.

A distribution over sentences gives the generator room to express the same conclusion in several ways. The authors want it to favor conclusions that are consistent with the premises, keep working when those premises are phrased differently, and be cheap enough to train for a new operation. These goals put different demands on the data. A tightly controlled template makes the intended relation easy to identify, but also makes its wording predictable. Free text introduces different subjects, verbs, and phrase structures, while leaving the desired division into premises and conclusion to be constructed. Paraphrasing supplies another source of variation, along with a risk of changing meaning. The pipeline uses these sources at different stages.

How ParaPattern builds data for a deduction operation The steps in order.

#### Find sentences with the right relationships

The first stage uses [dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/). A dependency parse represents a sentence as a tree of grammatical connections. One word can be the head of a phrase, with modifiers and other dependent words attached to it. A verb can connect to its subject and object. Searching over those connections allows a pattern to impose requirements on a word’s grammatical role and on the phrases related to it. The search can thus find candidate sentences whose structure is useful for constructing an operation, even when the words naming the relevant entities differ substantially.

The substitution search draws on [Hearst’s patterns for identifying category relationships](https://md.research.elamur.ai/free/en/papers/hearst-1992-automatic-acquisition-hyponyms-large-text/). The expression *such as* can introduce an example of a broader category. In a suitable sentence, the category phrase and its example can become the parts of a premise that links the relevant expressions. The rest of the sentence can supply a property or relation that the training example asks the generator to carry over. The pattern is designed to find a particular grammatical use of the expression and to expose the phrases needed by the template.

The substitution patterns in the appendix also use cues corresponding to *like* and *include*. There are variants for the introductory construction appearing in a subject or an object. Capturing these positions matters for reconstruction. The broad expression and its example may be embedded inside a phrase governed by the sentence’s main verb. To build a readable premise about one of those expressions, the template needs to know which part can be extracted and where it belongs. Across the retrieval stage the authors use six substitution patterns and two contraposition patterns.

A search pattern can specify the dependency label that connects a word to its head, the word’s part of speech, and, where needed, its [lemma](https://md.research.elamur.ai/free/en/concepts/lemma/), the dictionary form used for matching. A pattern can also expose a matched word and the subtree that depends on it. That subtree is the material available to the next stage. Capturing a subtree allows the template to move a noun phrase with its relevant modifiers or a predicate with its dependents. It gives the template more meaningful units to rearrange than individual matched keywords would provide.

The retrieval corpus contains 112M sentences from cleaned English Wikipedia articles. The authors parse it with spaCy’s `en-core-web-sm` parser. They index the parsed trees in chunks of 160K sentences using prefixes of dependency chains read from the lower parts of the tree upward. The index helps the search find candidate structures without starting from scratch over the entire corpus for every query. A single CPU core needed about 24 hours to parse and index the corpus. Once it was indexed, dependency search took 30-45 minutes, depending on pattern complexity.

A match satisfies the specified grammatical conditions. Semantic suitability requires a further check. The authors filter matches using a list of disallowed subject modifiers whose presence would make the assembled inference invalid. A modifier can restrict the scope of the group to which a sentence attributes a property. Carrying the attribution over without respecting that restriction could produce a faulty training target. After filtering, the retrieval stage yields ∼44,000 source sentences for substitution and ∼23,000 for contraposition. These are counts of the source material available for expansion, before the procedure has added paraphrased examples.

#### Assemble the training exercise

The second stage turns the matched material into an explicit deduction. An operation-specific template specifies where each captured phrase belongs in the input premises and the output conclusion. The expansion algorithm extracts subtrees rooted at the match variables, then places those subtrees into the template. The same template can operate on many Wikipedia sentences because it refers to the role of the captured material. The actual entities, predicates, and modifiers come from the particular match.

For substitution, the paper illustrates this with an expanded example containing a pair of premises and a conclusion. A useful way to read the construction is to identify where the conclusion gets each part. The relation between broad and specific expressions supplies the phrase that can be used in the new statement. The other premise supplies the property the new statement attributes. That division gives the generator an incentive to use both premises. A target that simply repeats the proposition already expressed in either premise would provide little training signal for the operation.

Reconstruction can also change the grammar the original words require. A predicate that agreed with one subject may need a different form when the template gives it another subject. The paper’s algorithm uses simple rules for reinflecting verbs and adjusting the number of nouns. These adjustments concern the grammatical form of the constructed statements. The intended logical relationship among the premises and conclusion is specified by the template and depends on the suitability of the source match.

This stage explains what is automated and what is designed. The authors decide which relationships to look for, encode dependency patterns to retrieve them, specify a template for the chosen operation, and decide which matches to filter out. They do so at the level of reusable rules. Wikipedia supplies the contents of individual exercises, and the algorithm constructs those exercises from the pattern matches. The resulting data have a clean recurring premise–conclusion structure, which is an advantage for teaching the operation and a potential source of shortcuts.

#### Vary the inputs while keeping the task fixed

The third stage introduces alternative surface forms. It adds copies of examples with paraphrased premises and leaves the target conclusion unchanged. The authors use a version of [PEGASUS](https://md.research.elamur.ai/free/en/papers/zhang-2019-pegasus-pre-training-extracted-gap/) specialized for paraphrasing. For each original input, they sample two paraphrases. They use nucleus sampling with the following setting.

```
p = 0.9
```

Here `p` is the sampling cutoff, distinct from the conclusion distribution written as `p_G`. Nucleus sampling takes likely next tokens in probability order until their cumulative probability reaches the chosen cutoff and samples from that set. The equality sign assigns the cutoff, and `0.9` is the value used to generate the premise rewrites.

The augmented copies preserve the output side of the exercise. When rewrites retain the relevant meaning, inputs that differ in phrasing still call for the same conclusion. The generator can learn that the position of a phrase or the presence of a particular cue in a template is incidental. At the same time, other distinctions remain essential. A premise that identifies an alternate name and one that merely mentions a related entity license different conclusions. A useful rewrite changes how the relationship is expressed while preserving the relationship itself.

The authors found noticeable noise in the paraphrases. One example in the paper changes the name of a plant into an unrelated word. Such a rewrite can damage the connection that is meant to justify the fixed conclusion. The authors hypothesize that mild noise can also make the training objective partly denoising, because the target remains clean when the input is imperfect. They draw an analogy with using generated input paired with intact targets in [backtranslation for machine translation](https://md.research.elamur.ai/free/en/papers/sennrich-2016-improving-neural-machine-translation-models/). The analogy concerns the design of the training signal. A paraphrase that replaces important information can still create an inconsistent exercise.

The amount of rewriting was chosen in preliminary experiments. The authors report that increasing the sampling cutoff or adding more paraphrases degraded consistency. Reducing the cutoff or using only a single paraphrase per source example increased the tendency to copy an input when the evaluation wording departed from the template. These observations informed the chosen setting. The main controlled comparison later removes the paraphrase stage altogether, which tests the contribution of the augmentation package as used.

#### Train the generator for one operation

Once the training examples have been assembled, the authors use [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) to specialize BART-Large. The pretrained system already has experience producing and interpreting text. The new training pairs give that text generation a defined task. The authors train one instance for substitution and another for contraposition. The relevant operation is determined by which specialized instance receives the premises.

BART is used here as an encoder–decoder. The encoder reads the premise sentences joined in random order. The decoder is trained to write the corresponding conclusion sentence. The template gives each premise a logical role. Joining the premises in random order means that a fixed input position does not consistently reveal that role during training. For example, the premise that supplies a connecting relation in substitution has to be identified from what it says.

The implementation uses the [Transformers library](https://md.research.elamur.ai/free/en/papers/wolf-2020-transformers-state-art-natural-language/) and the [AdamW optimizer](https://md.research.elamur.ai/free/en/papers/loshchilov-2017-decoupled-weight-decay-regularization/). An optimizer adjusts the parameters during training. The starting learning rate, which controls the size of those adjustments, is `3e-5`, and the authors use triangular learning-rate decay. Two NVIDIA Titan RTX GPUs share a batch of 16. Fine-tuning runs for a single epoch, a pass through the training data. The authors report that training beyond that point produced harmful overfitting in preliminary experiments. Under this configuration the training run took no more than an hour per generator. That timing concerns fine-tuning, after the corpus search, example construction, and paraphrasing stages have supplied the data.

### Experiments and results

#### What the comparisons test

The experiments move from controlled changes in premise wording to examples collected for other tasks. On the controlled sets, the authors know which operation each case is meant to instantiate. They can ask whether a certain change in phrasing disrupts the intended deduction. QASC and EntailmentBank provide different tests. Their premises and references were written for question answering and explanation, giving the substitution generator a setting where the language, and sometimes the expected composition, differs from the Wikipedia-derived training exercises.

The substitution perturbation set contains 75 examples, with equal numbers in the control condition and each of the four test conditions. The contraposition set has 60 examples across a control and three test conditions. Each condition contains 15 examples. Within each set, a test example is a modification of a corresponding control example. The alignment lets the authors compare variants that share content. Independent sets could produce a difference simply because one condition happened to contain harder relations or less familiar subject matter.

QASC provides crowd-written combinations of facts used to justify answers to multiple-choice questions. The authors evaluate combinations from its development split. A QASC annotator originally wrote with a question in view, so a pair of facts taken on its own can leave some of the intended relation implicit. The QASC training split contains ∼8K annotated combinations. The study uses those training examples for its in-domain comparison, while the ParaPattern substitution generator uses the data built from Wikipedia.

EntailmentBank contains expert-written natural-language proofs for elementary science questions and answers. It supplies intermediate steps within those proofs. Its training split contains ∼3K annotated premise–conclusion steps, which the study uses to train the in-domain BART comparison. The EntailmentBank development sample includes different kinds of steps. A taxonomy supplied by the dataset’s authors identifies substitution cases, making it possible to measure how well ParaPattern transfers to examples labeled as its intended operation and how well it handles the mixed collection.

The general-purpose comparison is GPT2-Large used zero-shot. It receives the premises followed by a cue to continue with a conclusion. Its parameters are left as pretrained. This tests how frequently a general continuation system produces the intended deduction when prompted to do so without task specialization. A comparison trained on MNLI entailments instead uses BART-Large and learns to write entailed hypotheses from their premises, using ≈103K training examples. This tests whether generation training on a familiar entailment resource transfers to the operations, and whether the tendency of entailed hypotheses to echo the premises affects what gets written.

The other general comparison is BART-Large trained on ProofWriter, which provides ≈135K proof steps. That training data supplies direct examples of deductive composition in relatively constrained template language. It tests transfer from proof data whose phrasing follows a limited set of constructions. These baselines differ in their training aims as well as in where their language comes from. The Pattern-only BART ablation gives a closer comparison to the full method. It uses ParaPattern’s retrieved and template-expanded examples without the paraphrased copies. The QASC and EntailmentBank comparisons trained on human annotations address a different question, about the value of knowing the evaluation domain during training.

#### How the authors judge a generated conclusion

The primary measure is manually assessed validity. The first author reviewed outputs in shuffled order without knowing which system generated them. A conclusion counted as valid when it followed from the premises and added a deduction. Understandable conclusions with minor grammatical errors formed a separate category but also counted toward validity. That decision gives the study a way to distinguish the success of the inference from the quality of its wording. Where grammaticality is reported separately, it refers to conclusions that are both valid and free of grammatical errors.

Other labels distinguish failures with different implications. Repeating a premise produces something grounded in the input while leaving the requested composition undone. An unsupported conclusion can be true in the world and still lack support from the premises. An incompatible conclusion either conflicts with the premises or is false in its own right. An incomprehensible conclusion has sufficiently severe language problems to make its meaning hard to determine. This division helps identify when a system fails to add information, adds information without adequate grounds, or fails to express a readable proposition.

To verify the judgments, the last author annotated some of the QASC outputs again. The authors describe minor disagreements about the boundaries between the failure categories and report that the relative share judged valid remained consistent. The check is useful because a generation task can admit several correct answers. A reviewer has to consider the premise–conclusion relationship even when the wording differs from the answer written in the dataset.

The paper also reports reference perplexity, labeled Ref. PPL. Lower perplexity means that the system assigns higher probability to the wording of the reference conclusion. This is measured by giving it the reference to score. Its actual generated conclusion is a separate observation. If a reference shares much of its wording with a premise, a generator inclined to repeat the premise can assign high probability to the reference without performing the particular combination needed to write it. Perplexity helps show what the distribution accommodates, while manual review checks what comes out during generation.

For the perturbation sets, the authors report [BLEURT](https://md.research.elamur.ai/free/en/papers/sellam-2020-bleurt-learning-robust-metrics-text/), a learned measure of agreement between a generated sentence and a reference. They average BLEURT over 10 samples per example and use the quantity after the plus–minus sign to report the samples’ standard deviation. BLEURT addresses the resemblance of the output to the chosen reference, including resemblance that goes beyond exact word matches. Manual validity addresses whether the premises warrant the output. The two can agree when a system produces the intended conclusion and diverge when it derives a different, defensible conclusion.

#### Controlled tests of substitution and contraposition

On the substitution perturbation set, ParaPattern had the highest aggregate validity. Pattern-only training produced substantial numbers of valid deductions, especially when the premises retained recognizable features of the training templates. The other baselines yielded few valid, non-redundant conclusions on this set. This comparison tests generation under known operation assignments. The relevant question is whether each system can turn the given premises into a useful step.

Manual validity on the substitution perturbation set ParaPattern yields the most valid and non-redundant deductions across the controlled conditions.

**The numbers**

| System or setting | valid % |
| --- | --- |
| Zero-shot GPT2 | 1 |
| MNLI BART | 6 |
| ProofWriter BART | 4 |
| Pattern-only BART | 55 |
| ParaPattern BART (this paper) | 87 |

The reference and similarity metrics on the same set favor ParaPattern in the aggregate. Its reference perplexity is 1.54, compared with 3.55 for Pattern-only BART and 2.00 for MNLI BART. In this case the generator with the best validity also assigns the greatest likelihood to the references among the systems compared. On substitution, its BLEURT score is 0.66 ± 0.05, compared with 0.49 ± 0.01 for Pattern-only BART. These scores summarize the controlled conditions. The condition-by-condition comparison shows where the gap comes from.

On the contraposition perturbation set, the validity scores are 80% for ParaPattern and 38% for Pattern-only BART. For the other comparisons, zero-shot GPT2 reaches 1%, MNLI BART reaches 2%, and ProofWriter BART reaches 0%. ParaPattern’s reference perplexity is 1.57, against 3.16 for Pattern-only BART. Its BLEURT reaches 0.69 ± 0.07, while the pattern-only system reaches 0.31 ± 0.00. The agreement among the aggregate measures shows that the improvement extends from the probability assigned to reference wordings to the validity of the sentences produced.

The baseline failures have different possible sources. A generic continuation system is free to write a plausible next sentence, which need not be the deduction requested. An entailment-trained generator learns associations between premises and entailed hypotheses and can favor preserving nearly all the input wording. A ProofWriter-trained generator has practiced explicit deductions, but in a more restricted language. The paper’s evidence for the particular role of paraphrases comes chiefly from the comparison with Pattern-only BART, where the source sentences and the construction of the targets are shared.

#### Transfer to QASC

On the QASC development split, the authors manually judged outputs for 100 uniformly sampled examples. Their substitution generator reached 73% validity, with 68% judged both valid and grammatical. BART trained on EntailmentBank reached 72% validity and 62% valid and grammatical on the same sample. The authors describe the ParaPattern result as comparable to that of BART trained on QASC itself, which has the same architecture and pretraining with access to in-domain fact combinations.

Manual validity on the sampled QASC development combinations The Wikipedia-trained ParaPattern generator reaches similar validity to the EntailmentBank-trained comparison.

**The numbers**

| System or setting | valid % |
| --- | --- |
| Zero-shot GPT2 | 0 |
| MNLI BART | 8 |
| ProofWriter BART | 7 |
| Pattern-only BART | 16 |
| EntailmentBank BART | 72 |
| ParaPattern BART (this paper) | 73 |

The ranking by reference perplexity on QASC differs from the ranking by manual validity. The in-domain QASC comparison has reference perplexity 2.71. MNLI BART has reference perplexity 3.83, below ParaPattern’s 4.82. Yet the manual scores in the chart show that the MNLI-trained system seldom supplies a new valid composition. The authors attribute the discrepancy to shared wording between QASC references and premises, which fits the MNLI-trained system’s tendency to repeat. Pattern-only BART also frequently repeats inputs, but its reference perplexity is 39.7. The authors interpret this behavior as a fallback in cases where the template-trained system handles the input with low confidence.

The qualitative QASC examples show why overlap and grammaticality need separate attention. A premise pair describes what a barometer measures and relates air pressure to the weight of the air. ParaPattern writes the composed measurement statement, in agreement with the reference. In a case about weather and driving visibility, it incorporates an extra detail about thunderstorms producing hail. The output is phrased differently from the reference, which centers on hail’s effect on visibility. The difference gives a reviewer something to check. The relevant question is which parts of the conclusion the premises support and whether the added wording changes the claim.

Other cases show more consequential changes. In the kidney-failure example, a premise presents dialysis as a possible treatment and another describes dialysis using an artificial kidney. The generated sentence recasts this as an assertion about how frequently an artificial kidney is required. Possibility, frequency, and necessity make different claims. An output can stay close to the topic and vocabulary while shifting the force of the premises. The authors’ display of QASC outputs ranked by BLEURT includes such variation in what gets preserved, along with examples whose different wording still yields a coherent composition.

The low-similarity end of that display also includes a conclusion that the authors regard as valid despite an ungrammatical premise. The input concerning a relationship with an oxpecker is difficult to read, and the reference pursues a different formulation from the generated answer. The authors use this case to illustrate how a generator exposed to noisy rewrites can sometimes recover the relation behind rough input. The ranked examples are diagnostic. The manual score over the uniformly sampled development cases gives the broader estimate.

#### Transfer to EntailmentBank

The EntailmentBank development evaluation likewise uses 100 uniformly sampled examples. The authors report validity on the full sample and on the subset identified as substitution by EntailmentBank’s taxonomy. That subset is 41% of the sample. Both training approaches reach 85% validity there. This comparison is especially informative because the definition of substitution comes from the target dataset. The Wikipedia-derived templates and the human-authored science proofs offer different routes to examples of a shared operation.

Manual validity on substitution steps in the EntailmentBank development sample ParaPattern matches the in-domain system on steps classified as substitution.

**The numbers**

| System or setting | valid % |
| --- | --- |
| EntailmentBank BART | 85 |
| ParaPattern BART (this paper) | 85 |

Across all sampled EntailmentBank steps, the in-domain system reaches 69% validity and ParaPattern reaches 57%. Reference perplexity is 3.37 for the in-domain system and 4.70 for ParaPattern. The full-sample figures concern a broader set of reasoning types than the substitution comparison. They show the practical benefit of training on the range of steps that actually appears in the target resource. Based on their weak QASC results, the authors omit the general out-of-domain baselines from this EntailmentBank comparison.

The ParaPattern substitution generator still produces valid conclusions for 22% of the sampled non-substitution cases. The authors find that most of these successes belong to property inheritance, sequential inference, or application of a rule. One example links New York’s location in the United States to the country’s location in the Northern Hemisphere. Another combines a rule about gaps in the fossil record with a premise about fossils being destroyed during a change in rock type. In the ecosystem example, building homes supplies a particular way that people change an ecosystem, bringing it under a more general statement about the likely effects of such changes. These examples show where the learned operation can carry over to related compositions. The full-sample result gives the empirical boundary for that transfer in this evaluation.

### What the ablations show

#### Paraphrasing helps where the premises change shape

The explicit ablation removes paraphrase augmentation. Pattern-only BART still gets the outputs of the Wikipedia retrieval and template expansion stages. It still learns from naturally occurring content and uses the same kind of BART generator. The consequential change is that its inputs retain the wording of the constructed templates. The alignment of modified and control examples shows which changes expose a dependence on that wording.

Substitution illustrates the difference between learning an operation under familiar conditions and recovering it after changes in the expressions that connect the premises. In the substitution control, Pattern-only BART reaches 100% validity and ParaPattern reaches 96%. Reference perplexity is 1.01 for Pattern-only and 1.08 for ParaPattern. BLEURT is 0.89 ± 0.00 and 0.85 ± 0.01, respectively. The controls resemble the constructions the pattern-only system has practiced, and the unaugmented data teach the intended deduction well in that setting.

A link noun phrase mismatch varies the noun phrase involved in connecting the premises. Here Pattern-only BART reaches 53% validity, while ParaPattern reaches 87%. A separate condition changes the verb phrase expressing identity. Pattern-only BART reaches 13% validity, while ParaPattern reaches 86%. This condition tests a different cue. A system can recognize much of the sentence’s vocabulary and still miss that a differently phrased predicate licenses the connection needed for substitution.

The condition that combines noun phrase and verb phrase mismatches challenges both cues together. Validity is 7% without paraphrase augmentation and 75% with it. Reference perplexity in this condition is 8.37 for Pattern-only BART and 1.71 for ParaPattern. The combination helps explain the aggregate gap. The generator trained on template wordings alone has difficulty assigning probability to the expected conclusion and rarely produces a valid one when both the linked expression and the way the link is stated depart from those wordings.

The number-agreement condition gives a different result. Pattern-only BART reaches 100% validity, and ParaPattern reaches 93%. The unaugmented pipeline already includes number and verb-form adjustments in its template expansion. The experiment establishes that the pattern-only system can handle the tested number-agreement changes. It leaves open how much credit goes to the reconstruction heuristics, the distribution of noun phrases in Wikipedia, or skills carried over from pretraining.

BLEURT and validity can also rank the methods differently within a condition. For substitution with a link noun phrase mismatch, Pattern-only BART has BLEURT of 0.70 ± 0.0, while ParaPattern has 0.68 ± 0.05. ParaPattern has the higher validity rate in that condition. A similarity score rewards closeness to the reference phrasing. The manual score can give credit to a well-supported conclusion phrased in a less expected way, or withhold credit from a sentence that resembles the reference but applies the connection incorrectly.

#### The contraposition gains depend on the perturbation

The contraposition controls are also favorable to both training conditions. Pattern-only BART reaches 93% validity and ParaPattern reaches 100%. The reference perplexities are 1.01 and 1.10, respectively. The controlled wording makes the intended operation accessible in either setting. The generator’s behavior changes sharply once the evaluation alters the language used to qualify the relevant expression.

The authors distinguish postnominal modifiers, placed after a noun, from prenominal modifiers, placed before it. In the postnominal mismatch condition, validity is 0% for Pattern-only BART and 87% for ParaPattern. In the prenominal mismatch condition, the corresponding scores are 0% and 58%. Paraphrase augmentation helps with both types of change, while the prenominal condition remains more difficult for the full system. A modifier can help define the expression a conditional applies to. Robust application therefore requires preserving the modifier’s contribution to the statement while tolerating a change in how the statement is written.

Premise negation shows another pattern. Pattern-only BART reaches 60% validity and ParaPattern reaches 75%. Their BLEURT scores are 0.70 ± 0.00 and 0.64 ± 0.04, respectively. On this perturbation the pattern-only generator retains a substantial ability to perform the requested inference, and its outputs on average resemble the references more closely by BLEURT. The augmented generator more frequently satisfies the manual validity criterion. Taken with the modifier cases, this result shows that the gains are concentrated in particular kinds of variation, with a different ordering possible on reference similarity.

These comparisons help interpret the authors’ early tuning observations. Richer paraphrases can break the association between a fixed sentence form and a valid target. A sufficiently noisy rewrite can also break the semantic relationship itself. The control settings show that well-formed training templates can be effective in their own range. The perturbations clarify the benefit of preserving their deduction structure while widening the range of input forms. The experiment removes all paraphrased copies together, so it measures the effect of using those copies as a package.

#### What the outputs reveal beyond the ablation

The analysis of QASC outputs gives a complementary view of what changes when the input distribution widens. The close-to-reference examples show that ParaPattern can reproduce the expected composition in a new dataset. The farther examples reveal other behaviors that an aggregate similarity score would conflate. An output may keep the relation the premises express while choosing a different focus. It may add material that is still supported. It can also change a condition or make a claim more definite than the premises allow. Reviewing the outputs against their premises distinguishes these cases.

The authors’ comparison of copying in MNLI BART and Pattern-only BART makes the same point about aggregate labels. Both can end up repeating a premise. MNLI BART’s lower reference perplexity on QASC is consistent with a learned preference for text that carries over premise wording. Pattern-only BART’s high reference perplexity suggests that repeating the premise in unfamiliar cases accompanies uncertainty about how to express the expected composition. The shared label identifies the output failure. The probability assigned to the reference helps characterize the different circumstances under which it occurs.

The EntailmentBank analysis makes a further distinction between intended and incidental coverage. ParaPattern is trained for substitution, and the taxonomy lets the authors check its behavior on that operation explicitly. The valid conclusions outside the subset suggest a capacity to generalize some learned combinations to relationships expressed through phrases other than the noun phrases used in the source patterns. The authors hypothesize that paraphrase augmentation contributes to this extension. They illustrate it through individual outputs and categories, leaving the mechanism a hypothesis because there is no separate intervention on phrase category in that evaluation.

### Limitations

#### Limits identified by the authors

The authors present ParaPattern as a way to build generators for single deductions. Their broader proposal is a reasoning system that performs several named operations in succession. The experiments evaluate the use of an operation when premises have already been supplied. They leave open how a larger system would decide which premises to retrieve, choose the next operation, recognize whether its prerequisites hold, and decide when the reasoning is complete. QASC and EntailmentBank supply the intermediate premises for evaluation, even though their original questions require a larger process.

The study demonstrates substitution and contraposition with English inputs. The authors use these operations to test whether a small amount of human design can support training at scale. Applicability to a new operation depends on finding language that expresses suitable source relations, writing templates that preserve those relations during expansion, and augmenting the inputs without making the training targets unreliable. The paper demonstrates this process for the operations it constructs. The cost and feasibility of extending it depend on the prospective operation.

The authors explicitly discuss the quality–diversity tradeoff in training data. Matches can be grammatically appropriate while including modifiers that make the expanded example semantically wrong. Paraphrases can distort names and other content. The authors tune the amount of augmentation in preliminary work and propose that some noise helps the generator cope with rough input. The observed drop in consistency when augmentation becomes more aggressive places a practical boundary on that account. The paper gives a working configuration and evidence from removing the augmentation stage.

The authors also note a complication in QASC. A fact combination written with a multiple-choice question in mind may depend on context from that question. In the step-generation experiment, only the premises are available. Some cases thus ask the generator to recover a relationship whose intended motivation was clearer to the annotator. The expert-authored EntailmentBank steps have fewer spurious combinations according to the paper. They introduce a different complication for a substitution specialist because the evaluation combines several reasoning types.

#### What the setup leaves open

Validity here is an empirical property of generated samples reviewed by people. The conditional distribution allows a range of possible outputs, and the manual scores show what proportion of the examined outputs met the authors’ criterion. They leave open the existence of other outputs from the same distribution that violate the intended inference. For a longer chain this distinction matters, since a false or unsupported intermediate proposition can become a premise for a later step. The paper evaluates isolated steps, making the error behavior of chains under repeated generation an open question.

There is also a difference between the ability to perform an operation on an applicable case and the ability to decide that an operation applies. The perturbation sets are constructed around known operations, with control and modified inputs designed to call for a conclusion. The EntailmentBank breakdown uses the dataset’s taxonomy to identify substitution cases after sampling. A deployed reasoner might have to reject a candidate pairing because the apparent link is too weak or the scope of the statements differs. The reported comparisons give evidence about generation with supplied premises. They do not measure a system’s ability to abstain when no warranted deduction is available.

The controlled sets are small enough to interpret closely. With 15 aligned examples per condition, the authors can name the kind of change and compare behavior on the corresponding control. These fixed cases represent selected lexical and syntactic variations. They provide no estimate of how often the variations arise in a wider body of text or how a generator would behave across many changes at once. The sample sizes and construction method make the results most directly informative about the specified perturbations.

Likewise, the development samples give evidence about the kinds of fact composition encountered in the two datasets. EntailmentBank concerns elementary science proofs, and QASC fact pairs were assembled for annotated question-answering rationales. The matching 85% on EntailmentBank concerns substitution steps in the sampled development cases. The mixed sample’s validity scores show the narrower reach of the specialized generator when other operations are present. Generalization to other domains, languages, or kinds of deduction is outside the evaluation.

Manual assessment can accommodate alternate valid conclusions, a strength for this task, but depends on how reviewers resolve the input’s intended meaning. The second reviewer’s exercise covers a subset of QASC and supports consistency in the relative share of valid judgments there. Boundaries between types of failure can still be difficult. A sentence may seem plausible because the reader supplies missing background, or a modifier may make the inferred statement stronger than the premises warrant. A single reference can offer a point of comparison, and the paper’s examples show why it cannot settle every such case on its own.

Finally, the paraphrase ablation changes both the diversity and the amount of training material. The perturbation results make improved handling of variant wording a plausible explanation for the gains, particularly where the pattern-only system succeeds on the corresponding controls. The setup does not isolate an effect for diversity at fixed data volume, an effect for noisiness at fixed meaning, or the contribution of grammatical reconstruction independently of pretraining. The denoising interpretation and the explanation for some cross-operation transfer remain hypotheses grounded in observed behavior.

### What came after

The later citing work takes up several questions opened by an approach that writes intermediate reasoning in natural language. Some titles center on how to elicit or analyze a chain. Others describe systems that produce reasoning for an answer or write a grounded proof. They establish the connection to ParaPattern as citing work and identify the area in which each study proceeds. The role of ParaPattern’s exact training procedure in each later system is unspecified.

#### Eliciting and examining a chain

[Chain-of-Thought Prompting](https://md.research.elamur.ai/free/en/papers/wei-2022-chain-thought-prompting-elicits-reasoning/) puts the elicitation of intermediate reasoning at the prompting stage. This is a different point of intervention from ParaPattern’s construction of operation-specific training pairs. The shared object of interest is the reasoning written between the evidence or question and the eventual answer. Once those words are visible, they can be examined for what each step contributes. ParaPattern’s results make the distinction between producing intermediate text and producing a valid intermediate conclusion especially relevant to that comparison.

[Language Models Are Greedy Reasoners](https://md.research.elamur.ai/free/en/papers/saparov-2022-language-models-greedy-reasoners-systematic/) takes chain-of-thought reasoning as an object of systematic formal analysis. Its title highlights the choices made as reasoning proceeds. ParaPattern holds the operation fixed and asks whether the next conclusion can be written from selected premises. In a chain, there is also a question about which available step to take. A permissible local step can leave a reasoner with an unhelpful route toward its final goal. The formal analysis and the operation-level experiment therefore address different parts of the problem of building a complete chain.

[Natural Language Reasoning, A Survey](https://md.research.elamur.ai/free/en/papers/yu-2023-natural-language-reasoning-survey/) places natural-language reasoning in a survey setting. ParaPattern supplies a specific experimental case for the broader subject. It trains sentence generation for named operations and measures both logical validity and sensitivity to wording. The contrast among recognizing an entailment, producing a deduction, and constructing an entire reasoning chain helps locate the contribution at the level of the individual generated step.

#### Reasoning for answers and proofs

[Entailer](https://md.research.elamur.ai/free/en/papers/tafjord-2022-entailer-answering-questions-faithful/) frames the task around question answering with faithful and truthful reasoning chains. That goal connects the intermediate deductions to an answer the system is trying to support. ParaPattern supplies premises to an operation and judges the resulting statement against those premises. When the task is organized around an answer, the relevant scope includes how a chain supports that answer and how its intermediate statements relate to the evidence used along the way. Entailer’s stated aim puts those wider requirements in the foreground.

[NaturalProver](https://md.research.elamur.ai/free/en/papers/welleck-2022-naturalprover-grounded-mathematical-proof-generation/) takes grounded generation into mathematical proof writing. Its subject is the generation of proof text with a grounding relationship. ParaPattern offers a nearby question at a finer scale. A generator that writes an individual proof-like statement must preserve the evidence that warrants it, even where the phrasing of the evidence varies. Mathematical proof generation extends the object of study to a proof whose statements have to work together in a specific domain.

Across these works, the unit of analysis ranges from an individual inference to a chain, an answer supported by reasoning, or a mathematical proof. ParaPattern’s experiments help locate a result within that range. Matching in-domain supervision on a selected operation establishes that its training pipeline can teach a transferable step. Evaluation of a complete argument has to account for how the premises were chosen, how the steps were connected, and what the resulting text establishes.

## Cite

Cite as Kaj Bostrom, Xinyu Zhao, Swarat Chaudhuri and Greg Durrett. 2021. Flexible Generation of Natural Language Deductions. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2021.emnlp-main.506](https://doi.org/10.18653/v1/2021.emnlp-main.506)

```bibtex
@inproceedings{bostrom2021flexible,
  title = {{Flexible Generation of Natural Language Deductions}},
  author = {Kaj Bostrom, Xinyu Zhao, Swarat Chaudhuri and Greg Durrett},
  booktitle = {Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.506},
  url = {https://doi.org/10.18653/v1/2021.emnlp-main.506}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
