Improving Coherence and Consistency in Neural Sequence Models with Dual-System, Neuro-Symbolic Reasoning

Maxwell I. Nye, Michael Henry Tessler, Joshua B. Tenenbaum, Brenden M. Lake

TL;DR: This paper introduces a "dual-system" framework that combines the creative, intuitive generation of neural networks (System 1) with the logical, rule-based verification of symbolic reasoning (System 2). By using a symbolic world model to filter and "reject" inconsistent neural outputs, the authors significantly improve the coherence of generated stories and the accuracy of instruction-following agents without requiring any additional model training.

The Problem: Hallucinations and Logical Instability

Large Language Models (LLMs) like GPT-3 are remarkably good at generating fluent text, but they are notoriously "unstable" when it comes to logic. They frequently suffer from "hallucinations" or contradictions—for example, a model might state a character is in the kitchen and then, in the very next sentence, describe them picking up an item in the garden.

The authors argue that these models behave like "System 1" in human cognitive theory: they are fast, associative, and intuitive, but lack the "System 2" capability for slow, deliberate, and logical verification. Currently, fixing these errors usually requires massive retraining or fine-tuning, which is computationally expensive and often fails to solve the underlying lack of a persistent "world state."

Methods: A Neuro-Symbolic "Propose-and-Reject" Loop

To bridge this gap, the authors propose a neuro-symbolic architecture that operates on a propose-and-reject loop.

The dual-system architecture combining a neural generator (System 1) with a symbolic world model (System 2).

The framework consists of three main components:

  1. System 1 (The Proposer): A standard neural sequence model (like GPT-3 or BART) that generates candidate next sentences or actions.
  2. Fact Extractor (The Translator): A neural model (specifically GPT-3 using few-shot prompting) that parses the candidate sentence into a symbolic logical form (e.g., "Mary went to the hallway" becomes go(Mary, hallway)).
  3. System 2 (The Verifier): A symbolic "Minimal World Model." This is a lightweight set of rules and a state tracker. If the parsed fact contradicts the current state (e.g., trying to drop an item you aren't holding), System 2 rejects the candidate.

If a sentence is rejected, System 1 is prompted to sample a new candidate until one passes the logical check. This process is entirely training-free for the generation and parsing components, relying instead on the inherent few-shot capabilities of LLMs.

Key Insights and Ideas

  • LLMs share human "gut" biases: The authors show that GPT-3 fails the "Cognitive Reflection Test" in exactly the same way humans do when they rely only on intuition.
GPT-3 demonstrating System 1 bias on the classic bat and ball problem.
  • Minimalism is enough: The "World Model" doesn't need to be a complete simulation of reality. A "minimal" model that tracks just a few critical variables (location, ownership, family ties) is sufficient to prune the most jarring errors.
  • Neural-Symbolic Mediation: Using an LLM as a few-shot semantic parser acts as a bridge, allowing the rigid symbolic verifier to understand "messy" natural language without needing a hand-coded grammar for every new task.

Evaluation and Key Results

The framework was evaluated across three distinct domains, showing significant improvements over System 1 baselines:

  • bAbI (Task 2): A synthetic dataset of short stories involving moving objects and people between rooms. The dual-system approach achieved 100% accuracy on Question Answering tasks, compared to just 29% for GPT-3 alone.
  • CLUTRR: A dataset of natural language vignettes focused on kinship and family relationships. In human evaluation trials, participants preferred the dual-system generations over the "System 1 only" baseline 84% of the time. The symbolic system successfully filtered out family-tree contradictions.
  • gSCAN: A grounded instruction-following benchmark where an agent must execute a sequence of moves in a grid world. In low-data regimes (training on only 2.5% of the data), the dual-system approach improved accuracy from 71.7% to 83.3% by ensuring the agent's final position matched the predicted goal location.

Limitations and Future Work

While highly effective, the approach has limitations. The symbolic "System 2" rules and world state must still be manually defined by humans for each domain. Furthermore, the system's success relies heavily on the accuracy of the few-shot parser; if the LLM fails to translate a sentence into the correct logical format, the verifier becomes useless.

Finally, the authors acknowledge this approach is best for "mission-critical" logic and harder to apply to domains like open-ended fiction where "logical consistency" is less clearly defined. Future work will likely focus on systems that can learn the symbolic rules of a new environment automatically.

Summary updated

BibTeX
@inproceedings{nye2021improving,
  author = {Maxwell I. Nye and Michael Henry Tessler and Joshua B. Tenenbaum and Brenden M. Lake},
  title = {{Improving Coherence and Consistency in Neural Sequence Models with Dual-System, Neuro-Symbolic Reasoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=Bqs1SQsvv7},
}
Figure