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

Antonia Creswell, Murray Shanahan, Irina Higgins

Large Language Models (LLMs) have demonstrated remarkable versatility across a wide range of natural language tasks. However, when faced with multi-step logical reasoning, these models often behave more like "confident guessers" than rigorous thinkers. To address this, researchers at DeepMind have introduced the Selection-Inference (SI) framework. This modular approach decomposes the reasoning process into discrete, iterative steps, enabling LLMs to produce more accurate and human-verifiable results.

The Challenge of Multi-Step Logic

Standard LLMs, even those with hundreds of billions of parameters, frequently struggle with tasks that require chaining multiple facts to reach a conclusion. The authors identify two primary limitations in existing approaches:

  1. Implicit Reasoning: Standard models operate as "black boxes," providing an answer without a clear explanation of the underlying logic. This lack of transparency makes it difficult to trust the model's output, especially in critical applications.
  2. Lack of Systematicity: While "Chain-of-Thought" (CoT) prompting encourages models to write out their reasoning, the resulting traces are not always causal. A model might hallucinate a fact in its explanation yet still arrive at the correct answer by chance, or conversely, follow a logical path but fail at the final step due to internal inconsistencies.

The SI framework aims to bridge the gap between the flexibility of deep learning and the systematic rigor of classical symbolic AI.

The Selection-Inference Framework

The core of the SI approach is a modular, iterative loop that separates the task of finding relevant information from the task of drawing conclusions. Instead of solving a problem in a single pass, the system employs two distinct modules, both powered by pre-trained LLMs:

  • Selection Module: Given a context of facts and a question, this module identifies a small subset of facts relevant to a single step of reasoning.
  • Inference Module: This module takes only the facts provided by the Selection module and generates a new intermediate conclusion. Crucially, the Inference module is isolated from the original question and the broader context, forcing it to rely strictly on the selected evidence.
Comparison of (a) Vanilla, (b) Chain-of-Thought, and (c) Selection-Inference frameworks.

In the SI loop, each new inferred fact is added back into the context. The process repeats until a halting condition is met, at which point the final inference is presented as the answer. This iterative structure allows the model to build complex reasoning chains one step at a time.

Performance and Scaling

One of the most significant findings of the research is that architectural "guardrails" can be more effective for logical reasoning than raw scale. In evaluations across 50 diverse tasks—including bAbI, ProofWriter, and BigBench—the SI framework allowed smaller models to punch far above their weight class.

Specifically, a 7B parameter model using the SI framework outperformed a 280B parameter "vanilla" model (40x larger). On a suite of 10 logical tasks, the 7B SI model achieved 58.75% accuracy, a massive leap from the 2.94% achieved by the same model used naively and significantly higher than the 41.32% achieved via Chain-of-Thought prompting.

Scaling performance of models on logic and BigBench tasks, showing SI's impact on accuracy relative to parameter count.

When fine-tuned specifically for the selection and inference tasks, the 7B model's performance on ProofWriter tasks reached 78.95%. Furthermore, the framework enabled the 7B model to solve the bAbI 15 deduction task with 100% accuracy, a benchmark that other baselines failed to master.

Interpretability and Causal Traces

Beyond raw performance, the SI framework offers a high degree of interpretability. Because the Inference module is restricted to the facts chosen by the Selection module, the resulting reasoning trace is "causal." If the system produces an incorrect answer, a human auditor can look at the trace and pinpoint exactly where the logic failed—whether the Selection module picked the wrong facts or the Inference module drew a flawed conclusion.

This modularity also aids in error recovery. If the model generates a useless intermediate fact, the iterative nature of the loop allows it to potentially find a more relevant path in the next step, rather than being derailed by a single hallucination.

Limitations and Future Outlook

While promising, the SI framework faces several challenges:

  • Selection Bottleneck: The Selection module is the most common point of failure. If the model fails to identify the correct starting facts, the entire reasoning chain collapses.
  • Halting Problem: Currently, the system often runs for a fixed number of steps. Developing a reliable "halting function" to determine when a sufficient answer has been reached is a priority for future work.
  • Computational Cost: Iterating through an LLM multiple times is more computationally expensive than a single pass, necessitating future optimizations for real-world deployment.

In conclusion, the Selection-Inference framework demonstrates that by imposing a logical structure on the reasoning process, we can significantly enhance the reliability and transparency of Large Language Models, making them more capable partners in complex problem-solving.

Summary updated

BibTeX
@inproceedings{creswell2023selection,
  author = {Antonia Creswell and Murray Shanahan and Irina Higgins},
  title = {{Selection-Inference: Exploiting Large Language Models for Interpretable Logical Reasoning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=3Pf3Wg6o-A4},
}
Figure