While modern language models (LMs) are increasingly capable of solving complex reasoning tasks, they are often "inefficient" reasoners that get easily distracted by irrelevant information. This research introduces a formal framework based on logic programming to quantify reasoning efficiency, revealing that current models frequently take logical "detours" and suffer significant accuracy drops when faced with even minimal, semantically related distractions.
The Efficiency Gap in Logical Reasoning
Standard benchmarks for language models, such as GSM8k for math, typically focus on correctness—did the model reach the right final answer? However, this overlooks a critical dimension of intelligence: efficiency. In real-world scenarios, an effective reasoner must identify the "shortest path" to a conclusion while ignoring irrelevant "distractors."
Previous research noted that models often generate more tokens than necessary, but it was unclear if this was due to simple verbosity or actual "logical overthinking." This study seeks to disentangle these two by measuring how LMs navigate formal logical search spaces.
Methodology: Logic Programming as a Benchmark
The researchers bridged the gap between natural language and formal logic using a Logic Programming (LP) framework. Problems are defined by a set of axioms (facts) and inference rules. These formal atoms are then mapped to natural language templates (e.g., cont(alice, 3, apple, 1) becomes "Alice has 3 apples") to allow parsing of model outputs back into formal proofs.
Efficiency is defined as the ratio of the size of the shortest possible proof (found using a ground-truth solver) to the size of the proof generated by the LM. To test this, the authors systematically injected "irrelevant axioms" into problems, ranging from single stray facts to entire "trees" of irrelevant but logical conclusions.
Key Insights: The Lexical Overlap Trap
The study revealed several critical weaknesses in current LM reasoning strategies:
- Lexical Heuristics: LMs rely heavily on word-matching. If a distractor mentions the same person or object as the goal (e.g., the question asks about "cats" and an irrelevant sentence also mentions "cats"), the model is significantly more likely to follow that irrelevant path.
- Depth-First Search Bias: By analyzing the order of generated sentences, the authors found that LMs tend to follow a Depth-First Search (DFS) pattern. They dive deep into a single line of reasoning rather than looking broadly at all available facts.
- Correctness vs. Efficiency: Even when models reach the right answer, they are often inefficient, proving "true but useless" theorems along the way.
Results: Accuracy and Efficiency Degradation
Adding irrelevant information causes a marked decline in performance across all tested models. As shown in the results table below, accuracy drops significantly as the complexity of distractions increases.
For example, Llama-3.1-8B dropped from 65% accuracy on base problems to just 41% when multiple irrelevant trees were added. Even "reasoning-heavy" models like DeepSeek-R1, while maintaining high accuracy (~98%), showed a decrease in efficiency, proving that even state-of-the-art models struggle to ignore "logical noise" entirely.
Conclusion
The findings suggest that simply scaling models may not solve the problem of logical inefficiency. Future work may require fundamentally different architectures or training objectives—such as reinforcement learning with length or efficiency penalties—to create truly focused and efficient reasoners.
Summary updated