Empirical Investigation of Neural Symbolic Reasoning Strategies

Yoichi Aoki, Keito Kudo, Tatsuki Kuribayashi, Ana Brassard, Masashi Yoshikawa, Keisuke Sakaguchi, Kentaro Inui · DOI

Abstract

While Large Language Models (LLMs) demonstrate improved performance using Chain of Thought (CoT) prompting, their ability to generalize to reasoning depths beyond their training data remains limited. This paper investigates how the granularity of intermediate steps and the direction of reasoning (chaining strategy) influence a model's capacity for length extrapolation. Using a synthetic symbolic reasoning dataset, we demonstrate that iterative, step-by-step generation combined with backward or exhaustive chaining allows models to maintain near-perfect accuracy on problems significantly more complex than those encountered during training.

Introduction

Generating intermediate reasoning steps, commonly known as Chain of Thought (CoT), has become a standard technique for improving the performance of neural models on complex logical and mathematical tasks. However, CoT is often treated as a monolithic approach, with little understanding of which specific factors—output length, step order, or logical granularity—actually drive improvements in reasoning.

A critical challenge in this domain is length extrapolation: the ability of a model trained on simple problems (e.g., 3-step reasoning) to solve significantly more complex ones (e.g., 10-step reasoning). This paper addresses this gap by factorizing the reasoning process into distinct strategies to identify which configurations enable robust generalization.

Methodology

The researchers decomposed the reasoning process into two primary dimensions: Output Strategy and Chaining Strategy.

1. Output Strategy (The "How")

This dimension defines how the model generates its reasoning chain:

  • All-at-once: The model generates the entire reasoning chain and the final answer in a single inference pass (standard CoT).
  • Step-by-step: The model generates one logical step, appends it to the input context, and calls itself recursively to generate the subsequent step.
  • Token-by-token: The most granular approach, where the model is called iteratively to generate only a single token at a time.

2. Chaining Strategy (The "Direction")

This dimension defines the logical path taken to reach the solution:

  • Shortest Path: The model solves only the necessary equations in the most direct sequence.
  • Exhaustive: The model solves every possible equation within the provided context until the target variable is reached.
  • Backward Chaining: The model starts from the goal variable and works backward through its dependencies until it reaches known values.

Experimental Setup

To isolate reasoning capabilities from the linguistic biases found in natural language datasets, the authors utilized a synthetic numerical reasoning dataset. The dataset consists of modular addition equations (e.g., A=1, B=A+2, C=B+5, C?).

This controlled environment allowed for precise manipulation of "reasoning depth"—the number of steps required to reach an answer. Models (specifically T5 and BART variants) were trained on "shallow" problems (depths 1–5) and evaluated on "deep" problems (up to depth 12) to measure their extrapolation performance.

Key Insights and Results

The Power of Granularity

The study found that granularity is the primary driver of success. Iterative generation (Step-by-step) significantly outperformed the All-at-once strategy. While the All-at-once strategy's accuracy plummeted to near zero on depth-12 problems, the Step-by-step + Backward Chaining configuration maintained approximately 99% accuracy. This suggests that LLMs do not necessarily lack the "intelligence" to solve deep problems; rather, they struggle to maintain long-term coherence within a single generation block.

The "Shortest Path" Paradox

Counter-intuitively, providing the model with the most efficient, shortest path to an answer resulted in the poorest generalization. The "Shortest Path" strategy often led to copying errors or "hasty assignments," where the model would skip steps or guess values. In contrast, Exhaustive and Backward Chaining strategies proved more robust. These methods force the model to follow a procedural algorithm, which appears to be more resilient to increases in problem depth.

Model Comparisons

Architecture played a role in performance, with T5-base and T5-large generally outperforming BART-base. T5-large showed a particular aptitude for the "Token-by-token" strategy, suggesting that increased model scale may better support extremely fine-grained iterative processing.

Limitations and Future Work

While these results are promising, several hurdles remain for real-world application:

  • Computational Cost: Iterative strategies require multiple model calls, making them significantly slower and more expensive than single-pass generation.
  • Context Constraints: As reasoning chains grow, they may eventually exceed the model's maximum input length (e.g., the 512-token limit for T5).
  • Natural Language Translation: The study's reliance on symbolic logic leaves open the question of how well these strategies translate to the nuances of natural language word problems.

Conclusion

This investigation reveals that the failure of neural models in complex reasoning is often a failure of strategy rather than capacity. By shifting from monolithic generation to fine-grained, iterative procedures like backward chaining, models can extrapolate their reasoning capabilities to depths far beyond their training data. Future research should focus on automating the selection of these strategies and optimizing their computational efficiency.

Summary updated

BibTeX
@inproceedings{aoki2023empirical,
  author = {Yoichi Aoki and Keito Kudo and Tatsuki Kuribayashi and Ana Brassard and Masashi Yoshikawa and Keisuke Sakaguchi and Kentaro Inui},
  title = {{Empirical Investigation of Neural Symbolic Reasoning Strategies}},
  booktitle = {EACL (Findings)},
  year = {2023},
  doi = {10.18653/v1/2023.findings-eacl.86},
}
Figure