Introduction
The rapid advancement of Large Language Models (LLMs) has sparked a critical debate: are these models truly reasoning, or are they merely sophisticated pattern matchers? While models like BERT achieve high scores on reasoning benchmarks, this research identifies a "reasoning paradox." A model can achieve near-perfect accuracy on a specific distribution of logical problems while failing to generalize to the exact same logical rules when they are sampled differently. This suggests that models learn statistical shortcuts rather than the underlying principles of logic.
The SimpleLogic Framework
To isolate reasoning from linguistic complexity, the authors developed SimpleLogic, a controlled environment for propositional logic. Problems are presented in a templated format (e.g., "Alice is fast. If Alice is fast, then Alice is smart."). This allows for a rigorous study of how models handle deductive reasoning without the noise of natural language variance.
Theoretical Capacity vs. Empirical Learning
A key contribution of the paper is a theoretical proof demonstrating that BERT has the capacity to reason. The authors constructed a specific set of parameters that allow a standard BERT architecture to simulate a "forward-chaining" reasoning algorithm layer-by-layer. However, the empirical results show a stark contrast: just because a model can represent a logical function does not mean it will learn it through standard training. BERT consistently chooses the path of least resistance: statistical shortcuts.
The Sampling Paradox: RP vs. LP
The core of the "reasoning paradox" lies in how data is sampled. The authors introduced two primary sampling regimes:
- Rule-Priority (RP): Rules and facts are sampled first, and the resulting labels (True/False) are computed.
- Label-Priority (LP): Labels are assigned to predicates first, and then rules and facts are sampled to be consistent with those labels.
While both methods produce valid logical problems from the same space, they result in different statistical properties. BERT trained on RP data fails significantly when tested on LP data, and vice versa, despite the underlying logic remaining identical.
Inherent Statistical Shortcuts
The failure to generalize is attributed to "statistical shortcuts"—features inherent to the data distribution that correlate with the answer but are independent of the logical rules. For instance, the "monotonicity of entailment" implies that as the number of rules in a problem increases, the probability of a query being "True" also increases.
BERT exploits these correlations (like the "#rule" feature or the "branching factor") instead of performing the multi-step reasoning required. When the authors attempted to "fix" the data by balancing the number of rules (RP_balance), the model simply shifted to other, more complex shortcuts. This "whack-a-mole" problem suggests that statistical patterns are fundamentally easier for neural networks to learn than abstract logical rules.
Key Results and Generalization
The empirical results are striking. A BERT model trained on RP data achieved ~99% accuracy on the RP test set. However, when tested on LP data for problems requiring 6 steps of reasoning, accuracy plummeted to 57.3%. Even when training on a mixture of distributions, the model failed to generalize to new, slightly different distributions, indicating that simply increasing data diversity does not force the model to learn "true" logic.
Conclusion
The "reasoning paradox" highlights a fundamental challenge in AI: the gap between a model's capacity to represent a function and its tendency to learn the simplest statistical path. For LLMs to truly reason, we may need more than just larger datasets; we may require new architectures or training objectives that explicitly reward the emulation of logical algorithms over the exploitation of statistical shortcuts.
Summary updated