---
title: "Selection-Inference — paper by Creswell et al. (2022)"
description: "Selection-Inference separates evidence selection from inference to improve logical reasoning and show which premises support each answer."
canonical: "https://research.elamur.ai/free/en/papers/creswell-2022-selection-inference-exploiting-large-language/"
---
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/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/creswell-2022-selection-inference-exploiting-large-language/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / Selection-Inference: Exploiting Large Language Models for Interpretable Logical Reasoning

# Selection-Inference: Exploiting Large Language Models for Interpretable Logical Reasoning

Paper · 2022 · Antonia Creswell, Murray Shanahan and Irina Higgins

**Authors:** [Antonia Creswell](https://md.research.elamur.ai/free/en/authors/antonia-creswell/), [Murray Shanahan](https://md.research.elamur.ai/free/en/authors/murray-shanahan/) and [Irina Higgins](https://md.research.elamur.ai/free/en/authors/irina-higgins/) · **Year:** 2022 · **Venue:** arXiv:2205.09712 · **Licence:** [CC BY 4.0 (arXiv)](http://creativecommons.org/licenses/by/4.0/)

[licence](http://creativecommons.org/licenses/by/4.0/)

- [PDF](https://arxiv.org/pdf/2205.09712)
- [arXiv 2205.09712](https://arxiv.org/abs/2205.09712)

## Summary

A system can draw a straightforward conclusion from a rule and a fact, yet struggle when it has to find those premises in a longer story and use the conclusion to take another step. Selection-Inference investigates that gap in logical [reasoning](https://md.research.elamur.ai/free/en/topics/reasoning/). The authors first test the Gopher family on 50 tasks, using five demonstrations per prompt. The systems handle some simple implications well, including negation in tightly structured settings. They do worse when useful evidence is mixed with irrelevant information, when the question requires facts that are absent from the prompt, or when reaching the answer takes several linked inferences. Increasing the size of Gopher helps overall, but the gains from scale are weaker for the logic tasks than for the other language tasks used in the paper’s comparison.

Selection-Inference, or SI, gives each step a division of labour. Selection reads the question and chooses statements from the current context. Inference gets those statements and produces a conclusion, which goes back into the context for later use. The question can guide which evidence is selected, while each new conclusion is generated from a restricted set of premises. The resulting trace records the inputs that were actually passed to each inference. A reader can see where the system picked an irrelevant fact, applied a rule without all its premises, or drew a useful conclusion and then failed to use it. That visibility is the paper’s contribution to [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/).

In the prompt-based comparison on 10 tasks from bAbI and ProofWriter, SI with 7B parameters reaches 58.75% average generative accuracy. Direct answering with the same Gopher variant reaches 2.94%, and a Chain-of-Thought variant that generates an explanation and answer in the same pass reaches 41.32%. SI also exceeds the generative scores of the 280B direct-answer and Chain-of-Thought baselines, at 31.19% and 44.03%, respectively. The bAbI deduction task is a particularly clear success, with SI reaching 100% accuracy. On ProofWriter, the advantage of the prompted system is clearest at shallow depths and narrows as the proofs get longer.

The authors also train Selection and Inference separately on individual steps from reference ProofWriter proofs. On that comparison, final-answer accuracy rises from 57.93% with prompted SI to 78.95% with trained modules. Inference exceeds 99% test accuracy on individual steps after 300 training updates, while Selection achieves over 80% exact-match accuracy at most evaluated depths and has more trouble on deeper problems. The trained SI system also produces proof steps that overlap more closely with the reference than those of a baseline trained to write an entire proof in one pass. Together, the findings locate a practical difficulty in choosing premises that will pay off later. They also show why an inspectable trace matters even when the answer is correct. The system can arrive there through an unsupported inference, a mistake that answer accuracy alone leaves hidden.

## Deep dive: Selection-Inference: Exploiting Large Language Models for Interpretable Logical Reasoning

Selection-Inference separates evidence selection from inference to improve logical reasoning and show which premises support each answer. · about 38 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

#### An easy inference can sit inside a hard question

Consider a story in which people pick up objects and move between rooms. The question asks where an object is now. A reader has to identify the relevant person and event, track what happens after the object is picked up, and disregard trips by other people. Once the right statements have been brought together, naming the room can be straightforward. The difficulty of the whole question depends on finding those statements and interpreting them in order. Add a rule whose conclusion is a premise for another rule, and the task also requires creating some of the evidence that will be needed later.

This distinction motivated the paper’s evaluation. Earlier Gopher work had already indicated difficulty with logic. The authors wanted a wider comparison that could distinguish simple entailment from problems where several conclusions have to be joined. In an entailment task, the question is whether a conclusion follows from the premises. A success on a short, tightly specified example establishes that the system can handle that kind of local relationship. A problem that contains several plausible relationships also tests whether it can determine which one to use, at what point, and for what purpose. Those demands are easy to conflate if the only score is whether a final answer matches. [Scaling Language Models: Methods, Analysis & Insights from Training Gopher](https://md.research.elamur.ai/free/en/papers/rae-2021-scaling-language-models-methods-analysis/)

The authors treat scale as an empirical question for the same reason. Earlier work had shown that pretraining can make it possible to demonstrate a task in the prompt and then ask for a new answer. This is [few-shot learning](https://md.research.elamur.ai/free/en/concepts/few-shot-learning/) in the sense used here. The demonstrations establish what the task looks like, and the system completes the new example using its existing parameters. Logical tasks offer a way to probe the limits of that setup. A demonstration can show how to apply a rule, yet a new question may place the relevant rule several steps away from the requested conclusion. Success then depends on assembling a path from the available evidence to the answer. [Language Models Are Few-Shot Learners](https://md.research.elamur.ai/free/en/papers/brown-2020-language-models-few-shot-learners/)

#### Why make the intermediate steps visible?

In the authors’ account of symbolic AI, a reasoning system has a body of explicit knowledge and an engine that applies rules to it. The steps can be inspected because the inputs to each rule application are identifiable. Building that body of knowledge usually requires substantial hand work. The paper also discusses approaches that translate problems into formal logic and give the formalized problem to a solver. Such a pipeline depends on a reliable translation and can be brittle as the problems change.

The neurosymbolic approaches discussed by the authors draw on learning and explicit operations. Some make complex decisions by composing modules with distinct jobs. In a visual task, one module might attend to an object and another might compare objects by position or size. The trace reveals what was passed between these operations. Specialization makes the operations understandable, and composing them gives the system a way to address questions that require longer chains. The paper also points out the cost of relying on individually designed modules. New domains may need different operations, and systems built from specialized parts can be difficult to optimize or extend. SI adopts the division into modules and assigns both jobs to pretrained Gopher. [Neural Module Networks](https://md.research.elamur.ai/free/en/papers/andreas-2015-neural-module-networks/)

The paper groups earlier work on reasoning from text by how it produces an answer. Some approaches predict the final label or sentence directly. Their performance can be measured with answer accuracy, but there is no explicit intermediate output to inspect. Other approaches generate a rationale and an answer in a single pass. A rationale can help elicit a better answer and can give the reader something to examine. In the paper’s account of earlier examples, though, the written rationale can contain irrelevant or incorrect steps even when the answer is right. The question for SI is whether the procedure can tie the final inference more tightly to the evidence shown in the trace. [Transformers as Soft Reasoners over Language](https://md.research.elamur.ai/free/en/papers/clark-2020-transformers-soft-reasoners-over-language/) [Chain-of-Thought Prompting](https://md.research.elamur.ai/free/en/papers/wei-2022-chain-thought-prompting-elicits-reasoning/)

Chain-of-Thought is an important comparison because its reasoning comes before its answer. That order gives the generated reasoning an opportunity to influence the continuation. The authors distinguish it from explanations generated alongside an answer or attached afterwards. They also distinguish the order of the text from the information passed to an individual reasoning operation. In a continuous Chain-of-Thought completion, the system can still use the original question and full context at the point where it writes the answer. If an intermediate sentence is wrong, a correct answer can still be generated from other information in the prompt. SI changes which parts of that information are directly available during inference.

A closer precedent is ProofWriter, which can derive implications in successive steps. The earlier reasoning procedure described in the paper enumerates possible implications and checks for the target statement or its negation. That supports a truth judgment where the proposition to be proved is already known. The authors point to the computational expense of enumeration and the restriction to that question format. SI instead gives Selection a question and asks it to choose premises for a particular next conclusion. This lets the same general procedure tackle questions such as the location of an object or the colour of an animal, where the answer itself has to be generated. [ProofWriter](https://md.research.elamur.ai/free/en/papers/tafjord-2021-proofwriter-generating-implications-proofs-abductive/)

### The method, step by step

#### From a story to a working context

SI starts with a question and a collection of statements in ordinary language. The collection is the context. It can include observations about particular people or animals, rules describing how their properties are related, or events in a story. The authors assume the context already contains enough information to answer the question and may also include statements that the solution never needs. The starting point is therefore a problem of using supplied knowledge. Searching for additional evidence would be a separate operation.

The same context also serves as a place to store intermediate conclusions. A bAbI induction example shows why. The question asks for Greg’s colour. The context identifies Greg and Brian as lions and gives Brian’s colour as white. SI first selects the statements about Brian and uses them to propose a generalization about the colour of lions. The generalization goes into the context. On the next pass, Selection can pair that new statement with the original fact about Greg’s species. Inference then applies the generalization to Greg. The trace shows exactly which observation supplied the basis for the rule and how that rule was used. A reader can assess the evidence for the generalization separately from the application of the resulting rule.

The two kinds of reasoning in that example carry different commitments. Drawing a general conclusion about lions from a specific example is induction. Applying the resulting general statement to a particular lion is deduction. The final deduction depends on accepting the generalization. If the story gives another lion a different colour, the trace helps explain the choice of answer, and the choice of evidence becomes open to scrutiny. Most of the paper’s evaluated problems are deductive. The inductive examples show how the same text interface can also carry a tentative generalization.

How Selection-Inference builds an answer The steps in order.

#### How Selection chooses premises

Selection is meant to find a set of statements sufficient for the next inference. That set can include a rule and the observations that satisfy its conditions. It can also include a previously derived conclusion. For a movement story, it might need the event that establishes who has the object and the event that places that person in the right room. The question tells Selection which object to track. The rest of the context determines which statements are available to support a conclusion.

In the prompted implementation, the authors use frozen Gopher with a 5-shot setup. A Selection demonstration contains a context, a question, and the sentences chosen for that step. Formatting connects the chosen statements and signals where the conclusion would begin. The test context and question follow the demonstrations. For tasks involving several steps, examples of premise selection can show the difference between a step that produces an intermediate fact and a step that settles the question. Both appear as selections, even though their usefulness becomes apparent at different times.

The authors initially considered asking Gopher to write the selection as a free completion. In their experiments that sometimes produced supposed premises that were absent from the context. A plausible sentence could then enter the trace as if it had been supplied by the problem. The scoring version makes the choice directly over context statements. Gopher evaluates each candidate as a continuation of the current prompt. Selection chooses the candidate with the highest log-likelihood, meaning the highest score under Gopher for continuing with that candidate, expressed on a logarithmic scale.

When the inference requires further premises, the chosen statement becomes part of the prompt used to score the next candidate. The procedure therefore builds a selection incrementally. A rule picked early can affect the score of a statement that would satisfy one of its conditions. The sequence of choices is still local to the current step. As described, the process takes the best-scoring candidate at each choice without exploring the completed proofs that different choices might eventually produce.

How many statements to select is a separate issue. In ProofWriter, different rules require different numbers of arguments, where an argument is a supporting statement used to satisfy a condition of the rule. Picking too few can leave a condition unsupported. Adding another fact can introduce a premise that the chosen rule has no use for. The authors tried offering a marker that indicates the transition to the conclusion as an additional choice. If Selection chose that marker, it stopped collecting premises. For this ProofWriter procedure the authors allowed up to two supporting facts. This is a local stopping decision. The system still needs a separate budget for the overall series of selection and inference steps.

#### What Inference receives

Inference has its own demonstration format. The examples show selected statements followed by the conclusion they support. At test time the prompt ends with the new selection and an invitation to complete the inference. The test question and the rest of the test context are outside this prompt. If an earlier conclusion is needed now, it has to be among the statements selected from the working context.

This information boundary matters in a simple deductive case. In bAbI 15, the context contains animal categories and rules governing which animals fear which others. Selection can find Emily’s category and the fear rule for that category. Inference is then given enough information to state what Emily fears. Other animal categories and their rules stay outside that inference call. In a deeper ProofWriter example, the same boundary makes an intermediate conclusion operationally important. If a later rule requires a property that was derived earlier, the earlier conclusion has to be selected and passed through as a premise.

The output is ordinary text. The authors keep the first generated sentence, using the sentence extraction convention described in their evaluation procedure. That sentence is the candidate fact for the current round. There is no symbolic check at this point that the sentence follows from the premises. The design constrains the origin of the selected statements and leaves the conclusion to generation. Consequently a trace can expose an unsupported conclusion even though every premise shown for it is an authentic item from the working context.

#### How the loop is defined

The paper’s notation distinguishes the question from the state that changes as reasoning proceeds. Its description of the Selection input can be written as follows.

```
𝒞ₜ ∪ {q}
```

Here 𝒞ₜ is the collection of statements available at step t. The subscript t identifies the current reasoning round, and q is the question. The braces set the question apart as an item, and ∪ indicates that Selection receives the question together with the context. Operationally, the question guides the choice. The candidate premises come from 𝒞ₜ.

```
sₜ ⊆ 𝒞ₜ
```

Here sₜ is the selection made in round t, and ⊆ means that every selected statement belongs to the context 𝒞ₜ. This set notation captures the membership constraint. In the actual prompt, the chosen statements are assembled in the order in which Selection picks them. The Inference module uses that text to produce fₜ, the conclusion for the round.

```
𝒞ₜ₊₁ = 𝒞ₜ ∪ {fₜ}
```

Here 𝒞ₜ₊₁ is the context for the next round, with t₊₁ indicating the round after t. The symbol fₜ denotes the sentence just inferred, the braces wrap it as a single item, and ∪ means that it is added to the current collection 𝒞ₜ. The equals sign defines the updated context. The implementation appends the sentence. Previously supplied statements and previously generated conclusions remain available to Selection.

The update allows a later inference to depend on an earlier one, and it also permits a fresh start from the original evidence after an unproductive step. Consecutive rounds need only share the accumulated context. If an intermediate conclusion is irrelevant, Selection can leave it alone and pick a different group of premises. A trace can therefore contain a detour, and a useful inference may depend on a step earlier than the one immediately before it. The causal claim made by the authors concerns the path through the recorded inputs to an inference. The procedure offers no guarantee that every line in the chronological record contributes to the answer.

#### When the system stops and how it reads the answer

The current implementation runs on a fixed reasoning budget. In the main ProofWriter comparison the authors give SI the minimum depth associated with the problem, with an exception for cases that already have the answer available in the context.

```
Reasoning rounds = d
```

Here d is the required ProofWriter reasoning depth, and the equals sign expresses the assignment of that depth as the number of rounds used in the comparison. A depth-0 problem receives 1 round. This convention supplies the system with a schedule for the experiment. The schedule is determined by the task setup.

For the main bAbI comparison the authors run a single SI round, including on bAbI 1-3, where the number of supporting story facts varies. They prompt for a conclusion that can be made from the relevant evidence in one pass through Selection and Inference. The number of supporting story facts and the number of rounds are different concepts. Several story statements can jointly yield a location in one inference. The bAbI 16 illustration using successive rounds exposes an intermediate rule that a more compressed answer can leave implicit.

The general framework treats the last inference as the answer, with task-specific conversion for evaluation. In bAbI, a generated sentence can convey the answer while the benchmark expects a single word. The authors use its last word as the prediction. In ProofWriter, the output to be scored is a truth label. The paper describes checking the inferred implications for a match to the queried statement, assigning True when it finds one and False otherwise. In the selected data a False example has a reference proof of the opposite statement. The decision rule can nevertheless assign False simply because the run failed to derive the queried statement. That distinction matters when comparing label accuracy with the quality of the completed proof.

#### Training the two operations on reference proofs

The prompted version specializes each operation with demonstrations. The authors also test [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/), which updates parameters using task-specific examples. ProofWriter supplies reference reasoning traces, allowing a known proof to be divided into local training examples. For Selection, the training input is the context and the question at a given step, and the target identifies the statements used at that step in the reference proof. For Inference, the input consists of the selected premises and the target is the corresponding conclusion.

To construct a later Selection example from a proof, the authors append the reference conclusions of the preceding steps to the context. This gives the learner access to the intermediate facts that the reference uses at that point. The examples can therefore teach an operation on a context that mixes original statements and derived ones. The target remains the premises for a single step. Inference likewise learns from premise-to-conclusion examples for individual steps, regardless of how deep the complete question is.

The trained Selection module uses sentence identifiers. Each context sentence receives a label, and the target is a sequence of labels referring to the desired premises. At run time, the generated labels are looked up and replaced with the corresponding statements from the current context before Inference sees them. This keeps the provenance of each premise explicit and avoids scoring every context sentence as a separate candidate. The authors describe the lookup approach as faster than candidate-by-candidate scoring. An incorrect label choice can still point to an irrelevant statement, so selecting by identifier preserves grounding while leaving relevance to be learned.

During training, a later step can start from a context completed with correct reference conclusions. During a full run, it starts with the system’s own accumulated output. A wrong inference can introduce a spurious premise, and an earlier selection can leave a required fact missing. This distinction explains why high scores for the two local operations need to be checked against performance of the entire loop. The ProofWriter experiment tests both levels.

### Experiments and results

#### The broad evaluation of Gopher

The first evaluation uses 50 tasks drawn from bAbI, BigBench, AAC, Jeopardy, ProofWriter and 2WikiMultiHop. Across them, the conditions vary in which facts are supplied, whether distractors are present, how many steps are required, and whether the answer must be generated or chosen from a list. The authors use a 5-shot setting for comparison with the earlier Gopher evaluation. They also point to earlier work reporting limited improvements in multiple-choice accuracy from using additional demonstrations beyond 4. [Rethinking the Role of Demonstrations](https://md.research.elamur.ai/free/en/papers/min-2022-rethinking-role-demonstrations-what-makes/)

The collections probe different components of reasoning. Some bAbI tasks increase the number of supporting events in stories of a similar kind. Others introduce negation, test whether the question has enough information, or change the form of the answer. AAC uses structured arguments with shallow chains of inference. There are versions with and without negation. ProofWriter varies the depth of derivation through facts and rules. Jeopardy and 2WikiMultiHop place more emphasis on free-form answers and vary the amount and form of evidence. BigBench adds tasks about entailment, implied information, identifying relevant evidence, tracking sequences, formal deduction and elementary science. The breadth lets the authors distinguish recurring patterns from effects specific to a dataset’s question or answer format. [Constructing Datasets for Multi-hop Reading Comprehension Across Documents](https://md.research.elamur.ai/free/en/papers/welbl-2018-constructing-datasets-multi-hop-reading/)

Simple implication is one of the more successful conditions, with good performance on structured AAC examples and on Entailed Polarity. In AAC Split Extended, the systems can handle negation in the constrained argument format. The bAbI comparison that introduces negation is harder. Other tasks where the system must judge whether it has enough information are also difficult, with the relevant BigBench results around chance. These comparisons qualify what it means to do well at entailment. The operation can work in a restricted format while questions involving similar logical language remain hard under different conditions.

Longer reasoning chains generally prove more challenging, especially in the bAbI and ProofWriter comparisons. The paper notes exceptions and treats this as a tendency across tasks. Supplying irrelevant facts alongside the needed evidence can also lower performance. Questions whose necessary facts must be recovered from memory, such as those in the context-free 2WikiMultiHop setting or in StrategyQA, present an additional problem. A failure there can involve missing knowledge, poor access to available knowledge, or a failure to combine it. The broad evaluation establishes the difficulty of the task as presented without identifying which component failed on each question.

The larger Gopher variants generally do better in this evaluation, but even the 280B system averages only 13.6% above the chance level across the 38 available multiple-choice logic tasks, using the paper’s above-chance comparison. For its scaling comparison, the paper uses the earlier BigBench task set with the logic tasks used in the present paper removed from the comparison group. The logic tasks show weaker improvement with size within the Gopher family than the remaining tasks in that comparison. This gives the authors a reason to change the reasoning procedure and then measure what that change delivers with a smaller Gopher variant.

#### The narrower test of Selection-Inference

The SI comparison uses 10 tasks chosen because the context contains the evidence needed and the questions have definite benchmark answers. The bAbI group includes tasks 1-3, which require 1-3 supporting facts in time order, and tasks 15 and 16. Task 15 tests deduction and task 16 tests induction. The distinction between the movement stories and the rule-based tasks matters for interpreting the aggregate. Some answers can be generated by combining events in one round, while others test how a rule applies to a particular case or how a generalization can be drawn.

The ProofWriter group uses depths 0, 1, 2, 3 and 5, with no depth 4 task. The depth counts the required inference steps. Unlike the bAbI comparison, the main ProofWriter setup explicitly increases the number of SI rounds as the problem calls for a longer proof. The prompts for deeper questions demonstrate both early selections that help produce intermediate facts and selections that finish a proof. This way, the examples give the system some evidence of what productive progress looks like before it can state the answer.

The ProofWriter questions come from the Open World Assumption version of the dataset. This version distinguishes a statement supported by a proof, a statement whose negation is supported by a proof, and an Unknown case where the available facts and rules establish neither. The proposition notation in the paper can be written as follows.

```
p(x)
```

Here p is a predicate, a property or relation that can be asserted, and x is the variable to which it applies. The parentheses show that x is the argument of p. A True case has a proof ending in the proposition under examination.

```
¬p(x)
```

Here ¬ is negation, p is the same predicate, and x is the same argument. A False case in the open-world data can have a proof ending in this negated proposition. For an Unknown case, settling the label calls for establishing that neither conclusion can be derived, for instance by enumerating possible implications within the relevant scope. That is a different kind of evidence from a short path that ends in the proposition or its opposite.

The authors remove Unknown examples from the SI evaluation. The resulting subset offers reference traces that can positively establish either truth label. The paper explains why the closed-world version would serve this purpose less well. Under that convention, failure to prove a statement makes it False. It consequently lacks the same sort of positive proof trace for False cases. The open-world subset provides a cleaner setting for testing whether selected premises and inferred conclusions can form a chain for either retained label.

#### Baselines and what accuracy counts

The vanilla baselines use 7B and 280B Gopher in a 5-shot setup. Their demonstrations pair contexts and questions with answers. In the generative condition, the system produces its own answer text. The evaluation extracts the first sentence, folds case and ignores nonalphabetic characters for the stated general comparison, then tests exact agreement with the reference answer. This works naturally for the benchmark’s short or structured answers. A separate multiple-choice condition scores each candidate answer and chooses the highest-scoring option. Having a list of candidates changes the difficulty of the task and provides a different chance baseline.

The Chain-of-Thought baseline, or COT, uses demonstrations drawn from the same examples as the SI prompts. Its examples place the selected evidence and the resulting inference in a single reasoning trace, followed by the answer. COT then produces its reasoning and answer in one generative pass. Sharing examples helps address whether exposure to worked reasoning is enough to account for the difference. SI changes the format of the demonstrations as well as the runtime information passed to each operation. The comparison is between procedures with shared demonstration examples and different ways of using them.

The main metric is final-answer accuracy. For SI, the answer conversions specific to bAbI and ProofWriter put its generated output in the form the tasks expect. Two measures used in the fine-tuning analysis answer different questions. Exact match for a local prediction checks whether the system recovered the expected selection or inference for one supervised step. Proof overlap checks how many of the generated proof steps agree with the reference set across the completed trace. These scores can move differently from final-answer accuracy. A reasoning path can reach the right label after an unsupported step, and a trace can contain much of the reference proof while stopping short of the answer.

#### The prompted comparison

Generative answer accuracy across the bAbI and ProofWriter SI tasks Selection-Inference leads the direct-answer and Chain-of-Thought baselines at both parameter sizes.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Vanilla 7B | 2.94 |
| Chain-of-Thought 7B | 41.32 |
| Vanilla 280B | 31.19 |
| Chain-of-Thought 280B | 44.03 |
| Selection-Inference 7B (this paper) | 58.75 |

The 58.75% generative average is the main result for prompted SI on the selected tasks. The comparison with 7B COT is informative because COT already improves considerably on direct generation at that size. SI retains an advantage when the baseline is shown reasoning examples. The result against both 280B generative baselines shows that reorganizing the reasoning procedure can beat increasing the parameter count in this experimental setting. The paper reports p values below 0.01 for each of these generative comparisons with SI. It describes its significance procedure as a two-sided test comparing proportions for binary outcomes, such as whether each answer was scored correct.

The multiple-choice baselines narrow the apparent gap. On the selected tasks, vanilla 7B reaches 57.31% when scoring answer choices, and vanilla 280B reaches 51.45%. The authors report a p value of 0.012 when comparing the 7B multiple-choice baseline with generative 7B SI. This comparison puts SI in the position of having to produce an answer and gives the vanilla system candidates to score. The reversal of the size ordering in multiple-choice is a finding about these tasks under this protocol. The authors suggest that the larger Gopher variant may sometimes favour stronger pre-existing expectations over the supplied facts and leave that mechanism unresolved.

The per-task results make the breadth of the gain easier to assess. SI reaches 100% accuracy on bAbI 15, the deduction task, with five examples in the prompt. It is the only evaluated system to reach that score, and the paper reports p values below 0.01 for the differences from the other systems. In the ProofWriter breakdown, SI significantly outperforms the other evaluated systems at depth 0, with a p value below 0.01, and at depth 1, with a p value of 0.034. The gap narrows at larger depths. The aggregate advantage thus includes especially strong shallow-task performance, even though the method is designed to support longer chains.

#### ProofWriter after fine-tuning

ProofWriter final-answer accuracy for trained and prompted systems Training Selection and Inference on individual proof steps gives the highest final-answer accuracy in the ProofWriter comparison.

**The numbers**

| System or setting | accuracy % |
| --- | --- |
| Vanilla 7B, generative | 0.34 |
| Chain-of-Thought 7B, generative | 15.73 |
| Vanilla 280B, generative | 31.58 |
| Chain-of-Thought 280B, generative | 21.12 |
| Prompted Selection-Inference 7B | 57.93 |
| Fine-tuned Selection-Inference 7B (this paper) | 78.95 |

The 57.93% prompted SI result in this comparison belongs to ProofWriter. The 58.75% prompted result in the earlier chart belongs to the combined bAbI and ProofWriter comparison. Fine-tuning produces 78.95% final reasoning accuracy in the ProofWriter comparison, a gain over the prompted SI setup as well as over the direct and COT baselines. These trained modules benefit from reference proof steps as supervision. The experiment shows what those data can add to the architecture, alongside the separate result showing what the prompting procedure can do with demonstrations alone.

The authors report that on the local Inference task, test accuracy exceeded 99% after 300 fine-tuning steps using batches of 16. There, the test asks for an entailment from a given selection. Selection is trained with the same batch size for a reported 4×10⁴ steps, which takes 50 hours on a TPU in the authors’ run. Its test score is exact string match, reported separately for the ProofWriter depths in the corresponding figure. The authors report accuracy above 80% for most of those depths, with declining performance on problems that need more steps. The two local results help explain how a learner can reliably apply a rule when handed its premises and still struggle to solve the full question.

The authors use Jaccard similarity to score overlap between generated and reference proof steps.

```
Jaccard Similarity = |M ∩ GT| / |M ∪ GT|
```

Here M is the set of predicted proof steps and GT is the set of reference proof steps. The symbol ∩ denotes the steps shared by both sets, ∪ denotes all distinct steps found in either set, and the vertical bars count the members of the set they enclose. The slash means to divide the shared-step count by the combined distinct-step count. Steps are matched exactly after retaining alphanumeric characters. If a prediction includes additional unmatched steps, the combined set grows without a corresponding gain in its intersection with the reference.

On that measure, the trained SI system produces significantly more accurate traces than the same 7B Gopher variant fine-tuned to write all the reasoning steps in one pass. The authors also inspect the generated proofs. The one-pass baseline often recovers much of the intended reasoning but can put lines in the wrong order, introduce lines outside the minimal proof, or repeat conclusions. Jaccard similarity measures the expected content that appears somewhere in the trace and penalizes distinct extraneous content. Reordering the same set, or repeating an existing line, leaves the set unchanged. The authors’ qualitative observations therefore address aspects of the trace that the overlap measure cannot distinguish.

### What the ablations show

#### A shared set of demonstrations, different information at inference time

The paper’s closest architectural comparison is between prompted SI and COT with the same worked examples. The 7B COT gain over direct generation shows that demonstrating reasoning helps in its own right. The further gain with SI shows that the procedure for using those examples matters on these tasks. In COT, the premises and conclusions are parts of a continuation that has the whole original example available. SI turns premise selection and conclusion generation into distinct operations and supplies only the selected test premises to the latter. It also appends conclusions to the working context between rounds. Since these changes are made together, the comparison measures their combined effect. It does not assign an individual share of the accuracy gain to restricting the prompt, explicitly selecting sentences, or feeding intermediate conclusions back into context.

The experiments with free-form Selection provide a more direct reason for the membership constraint. The authors saw cases where a generated selection invented a fact. Scoring statements drawn from the context removes that route for introducing a new premise. The corresponding safeguard in the trained system is identifier lookup. These changes determine what can be passed as a selected statement. New claims may still enter through Inference, where the context membership restriction would make little sense because generating a new conclusion is the point of the operation. The paper’s examples make clear where verification would have to act if a downstream user needed something stronger than provenance.

#### More rounds can help when the system changes course

The authors vary the number of reasoning rounds in ProofWriter to see whether more time lets SI recover from early mistakes. Additional rounds help more in depth-1 problems than in depth-2 problems. The paper attributes the smaller depth-2 improvement to selections that vary too little across rounds. A superficially promising intermediate conclusion can be generated again from the same premises even when the next useful move would use a different rule. Giving the system a larger budget creates opportunities for recovery, but those opportunities depend on Selection making productive new choices.

A trained ProofWriter trace illustrates the difference between moving a proof forward and simply running it longer. Given a route beginning with the lion’s visit to the bear, SI first derives that the lion chases the mouse and then that the lion is green. At that point a rule connecting greenness to visiting the mouse is available. The run instead reselects the premises for greenness and derives the same property again. The trace shows that the system had reached a useful intermediate proposition. It then failed to use that proposition in the next inference. A correct earlier step is compatible with an incomplete proof.

The bAbI induction detour illustrates a different effect of adding rounds. In one example, the system initially uses evidence about a grey swan to generalize about swans, although the question concerns a lion. On a later round it turns to evidence about a white lion and produces a relevant generalization. The original evidence was still in context, so a prior detour had not made progress impossible. This example shows recovery from an irrelevant move. It gives a different kind of evidence from correcting a false claim that has already been appended and reused in later deductions.

The additional-round experiment also motivates a distinction between finding a useful result during a run and selecting it as the result to report. The authors point out that a system could benefit from a way to filter its inferred facts or recognize a completed answer. A fixed budget tests what happens when the procedure is allowed more opportunities. A stopping rule would need to decide, from the state of the proof, which opportunity has yielded a sufficient result. The paper leaves that decision open.

#### Context helps when it puts usable evidence within reach

The appendix varies the evidence for the Gopher baselines on the 2WikiMultiHop development subset. The underlying questions stay in the same task family, while the amount and organization of supporting material change. The output is truncated to its first sentence and normalized before being checked against the reference for exact match. The original questions-only condition averages 13.62% accuracy. Adding Wikipedia paragraphs that contain both useful and irrelevant information yields 1.47%. Adding information about the relevant facts to the paragraphs yields 1.97%. Supplying only relevant facts extracted as structured triples from the underlying knowledge graph gives 35.55% average accuracy.

The comparison demonstrates how strongly the manner of supplying evidence can affect a result. The paragraphs give the system more material to work with, and scores still fall below the questions-only condition. The compact triples condition changes both the amount of distraction and the representation of the facts. The experiment therefore supports a joint conclusion about evidence selection and presentation. It does not independently measure the contribution of removing irrelevant statements and the contribution of formatting the remaining evidence as triples. These are Gopher baseline experiments. They motivate a role for SI’s Selection stage without showing how SI itself would perform over the full Wikipedia paragraphs. [Knowledge graphs](https://md.research.elamur.ai/free/en/topics/knowledge-graphs/)

#### What the scoring controls establish

For the multiple-choice baseline, the authors test whether a candidate’s log-probability should be normalized by its length. They report average accuracy across the evaluated tasks of 67.92 ± 46.68% with normalization and 68.3 ± 46.53% without it, with a p value of 0.0002. The change is statistically detectable and small in the reported averages. The paper uses unnormalized scores. This control addresses answer-option scoring in the broad baseline evaluation. It is distinct from the question of which premise Selection should choose for a proof.

The authors also measure how well Gopher scores answer options when it sees the options without the question and context. The comparison is with the expected accuracy of uniform guessing.

```
Chance accuracy = 1/N
```

Here N is the number of answer options, 1 is the count of correct options for a question under this baseline, and the slash means division. With the choices alone, the average departure from this chance value across the evaluated systems and multiple-choice datasets is reported as 0.08 ± 8.74%, with a p value of 5e-16. The authors use the small average departure to justify reporting the expected random baseline. The control measures an advantage that can be obtained from the options in isolation. An average near chance can coexist with variation across tasks and options.

Another control distinguishes scoring a list of choices from including that list as part of the bAbI prompt. When the authors append the options, average accuracy across the bAbI tasks is 37.86 ± 48.5%. When they leave options out of the prompt and score them separately, it is 44.86 ± 49.74%. The paper reports a p value of 2e-61 and uses the latter setup for its bAbI multiple-choice results. The scores show that exposing the choices in the input is itself a consequential change to the task, even when the final decision is made by scoring candidates either way.

#### What an individual trace reveals

The traces sometimes distinguish a correct conclusion from a valid instance of reasoning. In a trained ProofWriter example about Erin, SI selects a rule requiring Erin to be smart and rough before concluding that Erin is white. The accompanying facts describe Erin as green and rough. The selected premises therefore fail to establish one of the rule’s conditions. The context actually contains a different rule that could support the conclusion about colour from roughness. The final derivation can reach a supported result overall, yet the recorded step uses an inadequate set of premises. This example pinpoints a defect that a final-answer score and a quick read of the conclusion would both miss.

The ambiguous rhino example from bAbI illustrates a different diagnostic use. Julius is a rhino, and the context contains both white rhinos and a green rhino. The trace shows that SI bases its answer on the green example. A reader can see the basis of the generalization and ask whether it is reasonable to prefer that example. In this case the important question is how the system resolves competing observations. Read together, these cases show the practical range of the trace. It can expose an unfulfilled premise in a deductive step or make the evidential basis of an inductive choice visible.

### Limitations

#### Limits identified by the authors

The authors present SI as a proof of concept for reasoning over facts and rules already available in the context. In more practical settings, a system often has to find that information first. Retrieving evidence introduces decisions about which sources to consult and which passages contain useful statements. SI’s Selection stage chooses among items it has been given. The paper proposes retrieval as a route to extending the approach, and the difference between 2WikiMultiHop with paragraphs and with extracted triples illustrates why the contents of the context matter. [Teaching Language Models to Support Answers with Verified Quotes](https://md.research.elamur.ai/free/en/papers/menick-2022-teaching-language-models-support-answers/)

The authors identify Selection as a common source of errors, particularly in prompted runs. A good early selection may have to produce a fact whose connection to the question only becomes apparent several deductions later. The prompt needs to demonstrate such selections alongside the different pattern used in the final step of a proof. It must also help the system decide how many premises a chosen rule needs. The authors report difficulty measuring these failures systematically when labelled intermediate choices are unavailable. ProofWriter makes a more detailed supervised evaluation possible because its reference proofs supply those choices.

Stopping is open at both levels. A selection may have gathered enough premises for a rule even when there are other related facts in the context. The entire run may already have reached the answer even though it still has reasoning rounds left. The authors experiment with a marker for ending selection and use task-specific reasoning budgets in the main comparisons. They suggest looking for ways to evaluate alternative traces and to recognize when reasoning should finish. The repeated ProofWriter inference illustrates the need for the first of those improvements, while the extra-round results show why a system would also have to decide which result to keep.

The authors also propose adding verifiers to prevent false inferences from entering the context. In the existing design, a generated conclusion becomes available for future use once it has been extracted from the text. The working context can thus contain claims of different provenance, some supplied as problem facts and others produced by earlier rounds. If an unsupported inference is selected again, error can propagate through later steps. Making that path inspectable helps locate the fault. Checking each derivation before accepting it would require a further mechanism.

Finally, the authors call for extending the method to ambiguous and unanswerable questions. Their comparisons focus on tasks with definitive expected answers. The example with differently coloured rhinos illustrates that the trace can reveal a chosen basis for an answer when evidence competes. It does not establish that SI can reliably decide when such a question should be treated as ambiguous. The authors mention possible uses in fields such as science, law and medicine and say that deployment would require careful evaluation. The benchmark experiments concern constrained reasoning tasks with expected answers and, in the SI comparison, supplied context.

#### Limits visible in the experimental setup

The most direct causal claim concerns the flow of test inputs. The visible selected statements are what the Inference operation receives from the current instance. The term causal, as used by the authors, is about the construction of the procedure. There is no intervention study here establishing how each selected premise individually affects each generated conclusion. A premise can be passed to Inference and still be ignored. The Erin example shows that a generated statement can fail the check a reader would perform against the selected rule and its conditions. Provenance and logical validity therefore require different evidence.

The fixed ProofWriter schedule also uses information that an open-ended question may not supply. In the main experiment the depth determines how many rounds run. That gives the procedure an appropriate budget when a proof has a known length. In a new setting the system would need to decide whether a promising intermediate statement is sufficient, whether more reasoning is required, and whether another selection would improve the answer. Results under the depth-based schedule establish performance for the supplied budgets. The study of additional rounds shows how results can change with those budgets and how strongly the benefits depend on the behaviour of Selection.

Removing Unknown examples makes proof comparison tractable and narrows the truth judgments being evaluated. On the retained ProofWriter questions, an answer of False can be scored as correct when the system fails to produce the affirmative statement, even if it never derives the negation supported by the reference. The incomplete lion trace illustrates how a failed derivation can leave the system without a defensible proof of its label. The setup consequently gives separate reasons to inspect final-answer accuracy and proof quality. It gives limited evidence about recognizing genuinely insufficient information.

The measures of intermediate accuracy also reward agreement with specific reference text. A locally exact selection match is informative when the question provides a known proof, but alternative premises may support a valid route. The Jaccard measure is sensitive to differences in step wording after its text normalization and to additional distinct steps. It is insensitive to proof order and duplicate lines. A trace can match the expected set while putting prerequisites after the steps that need them. Conversely, a trace can contain a valid alternative deduction and lose reference overlap. The proof examples are important because they show aspects of reasoning quality that the quantitative measures leave unresolved.

Finally, the comparison between parameter sizes leaves the costs of the full procedures open. SI may invoke Gopher repeatedly, and the prompted selector scores candidate statements when building each selection. Direct answering and COT have different inference procedures. The paper’s result against 280B concerns answer accuracy under the tested setups. It does not establish how the systems compare at a common runtime cost. Likewise, the improvement from fine-tuning draws on explicit, correct ProofWriter derivations during training. The paper establishes that this supervision helps in that setting. The transfer of those trained operations to tasks with different proof structure or without comparable annotations remains open.

### What came after

#### Decomposition and control

Later citing works address several of the questions SI isolates. Their subjects show where the connections lie. The evidence here establishes the citation and the subject of each work. It does not establish that each work implements SI or attribute a particular experimental result to that relationship.

[Decomposed Prompting](https://md.research.elamur.ai/free/en/papers/khot-2022-decomposed-prompting-modular-approach/) takes modular prompting as its subject and applies the idea of decomposition to complex tasks. SI provides a concrete instance of modularity in which the same operations repeat and the intermediate result has a specified destination. The broader formulation invites a question about how much of the task to assign to each prompt. A decomposition might divide a question into different subtasks, while SI decomposes each reasoning round into picking premises and inferring a conclusion. The point of contact is the explicit interface between operations, through which the output of one part determines what another part can do.

[ReAct](https://md.research.elamur.ai/free/en/papers/yao-2022-react-synergizing-reasoning-acting-language/) places reasoning alongside acting. SI’s reasoning operation changes the working context by appending a sentence. Connecting reasoning with action raises the complementary issue of changing what information is available through an action. That matters to SI’s stated scope because it starts from a ready-made context. The two topics meet at a distinction between what can be inferred from premises already in hand and what has to be obtained before another inference becomes possible.

[Language Models Are Greedy Reasoners](https://md.research.elamur.ai/free/en/papers/saparov-2022-language-models-greedy-reasoners-systematic/) studies Chain-of-Thought through a formal analysis of greedy reasoning. The title points to the same difference between finding a locally plausible continuation and finding a productive route to a goal. In SI, that difference is visible in repeated selections and in the declining accuracy of premise choice on deeper tasks. The formal analysis of Chain-of-Thought approaches the issue through the reasoning procedure as a whole. SI makes the premise choice a distinct operation where that failure can be observed.

[ReST-MCTS*](https://md.research.elamur.ai/free/en/papers/zhang-2024-rest-mcts-llm-self-training/) connects self-training with tree search guided by rewards assigned to the reasoning process. It relates to the authors’ proposal to search and evaluate alternative reasoning traces. SI makes the currently chosen premises visible and can repeat the same choice even after an unproductive round. Tree search raises the possibility of representing several possible continuations and considering their value beyond the next isolated step. The connection is to planning over candidate reasoning paths, one of the gaps identified by the SI experiments.

#### Verification and faithfulness

[Let’s Verify Step by Step](https://md.research.elamur.ai/free/en/papers/lightman-2023-let-s-verify-step-step/) takes stepwise verification as its subject. SI shows why a verifier would need to inspect more than the last answer. In the Erin example, the selected conditions are inadequate for the rule used, even though a different route could support the intermediate claim. A verdict on the final answer alone has no place to record that defect. Once a procedure supplies explicit premises and an explicit conclusion at each step, verification can ask whether that particular conclusion is justified by that particular selection.

[Making Language Models Better Reasoners with Step-Aware Verifier](https://md.research.elamur.ai/free/en/papers/li-2023-making-language-models-better-reasoners/) likewise places individual reasoning steps within the scope of verification. This is complementary to SI’s restrictions on how premises are chosen. Restricting selection to previously available sentences gives those sentences a traceable origin. A verifier addresses whether the resulting inference is legitimate. The distinction clarifies why the authors suggest verification as an extension even though the architecture already records its premises.

[Measuring Faithfulness in Chain-of-Thought Reasoning](https://md.research.elamur.ai/free/en/papers/lanham-2023-measuring-faithfulness-chain-thought-reasoning/) focuses on whether a stated chain of thought reflects the reasoning behind an answer. SI addresses one part of that issue by defining what reaches Inference at run time. Its traces make the passed evidence visible, while still leaving open how a generator uses each item it receives. Measuring faithfulness puts that remaining question in the foreground. The paper’s distinction between a displayed rationale and an operative input is the point of contact.

[ROSCOE](https://md.research.elamur.ai/free/en/papers/golovneva-2022-roscoe-suite-metrics-scoring-step/) concerns metrics for scoring step-by-step reasoning. SI’s proof comparison illustrates why evaluation at this level can require several judgments. Set overlap has a clear interpretation when a benchmark supplies reference steps, but it leaves ordering and repetition to inspection and cannot establish that each step is supported by its premises. Work on metrics for individual steps addresses the broader measurement problem that appears as soon as a system is asked to show its reasoning as well as answer correctly.

#### Evidence quality and formal reasoning

[Large Language Models Can Be Easily Distracted by Irrelevant Context](https://md.research.elamur.ai/free/en/papers/shi-2023-large-language-models-easily-distracted/) makes distraction by irrelevant information its central question. That connects directly to the contrast in the SI paper between performance with short relevant triples and performance with longer mixed Wikipedia passages. It also sharpens the reason for treating evidence selection as a separate operation. More information can give a system access to a needed fact while also making that fact harder to isolate. Which statements reach the inference can matter even when the full context already contains a sufficient answer.

[Making Retrieval-Augmented Language Models Robust to Irrelevant Context](https://md.research.elamur.ai/free/en/papers/yoran-2023-making-retrieval-augmented-language-models/) situates the distraction problem in systems that retrieve evidence. This setting brings together a limit the SI authors acknowledge and a difficulty their baseline study measures. A system extending SI beyond supplied contexts would need to obtain useful statements and decide which of the retrieved statements should support the next inference. Evidence availability and evidence relevance become successive problems. Robustness to irrelevant retrieved material concerns the conditions under which the latter decision can remain reliable.

[LINC](https://md.research.elamur.ai/free/en/papers/olausson-2023-linc-neurosymbolic-approach-logical-reasoning/) takes a neurosymbolic approach that combines language processing with first-order logic provers. It occupies another position in the design space that motivated SI. SI leaves premises and conclusions in natural language and learns the local inference operation. A design that calls a formal prover assigns logical derivation to a different component and has to represent the problem in a form the prover can use. The connection brings the original tradeoff into focus. Explicit operations make a procedure inspectable, while the choice of representation determines which parts of the inference can be checked formally and which depend on successfully interpreting the language.

## Cite

Cite as Antonia Creswell, Murray Shanahan and Irina Higgins. 2022. Selection-Inference: Exploiting Large Language Models for Interpretable Logical Reasoning. arXiv:2205.09712.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.2205.09712](https://doi.org/10.48550/arxiv.2205.09712) · [arXiv 2205.09712](https://arxiv.org/abs/2205.09712)

```bibtex
@misc{creswell2022selection,
  title = {{Selection-Inference: Exploiting Large Language Models for Interpretable Logical Reasoning}},
  author = {Antonia Creswell, Murray Shanahan and Irina Higgins},
  year = {2022},
  doi = {10.48550/arxiv.2205.09712},
  eprint = {2205.09712},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2205.09712}
}
```

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