Abstract
Large Language Models (LLMs) demonstrate remarkable performance on standard benchmarks, yet it remains unclear whether they possess true reasoning capabilities or merely replicate patterns from their training data. This paper introduces a framework of "counterfactual tasks"—variants of standard problems where underlying rules are modified (e.g., arithmetic in Base-9). By evaluating models like GPT-4 across 11 domains, the study reveals a significant performance collapse when models must deviate from "default" assumptions. These findings suggest that LLM success is often scaffolded by memorized procedures rather than robust, abstract reasoning.
Introduction
The core question addressed by this research is: Reasoning or Reciting? While LLMs show impressive success on coding tasks and professional exams, it is difficult to determine if this stems from a robust, transferable ability to reason or from "data contamination"—having encountered similar problems during pretraining.
To disentangle these possibilities, the authors propose an evaluation framework based on "counterfactual" tasks. If a model truly understands the underlying logic of a task (e.g., addition), it should be able to perform that task under modified rules (e.g., Base-9 instead of Base-10) as long as the new rules are explained. A significant degradation in performance when these default assumptions are broken suggests a reliance on memorized patterns rather than generalizable logic.
Methodology and Datasets
The researchers designed a suite of 11 tasks across diverse domains, including arithmetic, programming, logic, spatial reasoning, music, and chess. For each task, they defined a Default World ($w_{default}$) representing standard procedures and a Counterfactual World ($w_{cf}$) involving a variation that shares the same reasoning procedure but changes the input-output mapping.
A key technical control is the Counterfactual Comprehension Check (CCC), which ensures the model understands the new rules before attempting the main task. For example, before performing Base-9 addition, the model must identify the successor of a number in Base-9. This ensures that failures in the main task are due to reasoning breakdowns, not a failure to follow instructions.
The study evaluated four state-of-the-art models: GPT-4, GPT-3.5, Claude, and PaLM-2. Datasets included modified versions of HumanEval (using 1-based indexing) and FOLIO (logic premises violating common sense), alongside custom synthetic tasks for spatial reasoning, music, and games.
Key Results and Insights
Across all 11 tasks, performance on counterfactual variants was substantially lower than on default versions. The results highlight several critical phenomena:
- Arithmetic and Coding Collapse: GPT-4 achieved near 100% accuracy in Base-10 addition but dropped to approximately 38% in Base-9. Similarly, shifting from 0-based to 1-based indexing in code execution caused GPT-4's accuracy to plummet from 73.5% to 24.8%.
- The "Commonness" Effect: Models performed better on counterfactuals that appear more frequently in technical corpora (e.g., Base-8 or Base-16) compared to rarer ones like Base-9 or Base-11.
- Knowledge vs. Application: Models often passed the CCC (demonstrating they "knew" the new rules) but failed the actual task. This suggests that default procedures are so deeply embedded in the model's weights that they override explicit instructions.
- The Reasoning-Reciting Continuum: The authors argue that reasoning and reciting are not binary. Models possess some abstract skills, but these are often "scaffolded" by memorized patterns. When this scaffold is removed, the reasoning becomes fragile.
- Spatial and Visual Limitations: GPT-4 showed extreme sensitivity to coordinate systems. Swapping directions (e.g., North/South) led to massive performance drops in spatial reasoning and drawing tasks, even when the underlying logic remained identical.
Conclusion and Future Work
The study concludes that current LLM performance is heavily dependent on the "default" world seen during training. While models can adapt somewhat through In-Context Learning (few-shot examples), a significant gap remains.
Future LLM evaluations should move away from static benchmarks and toward "procedural" evaluations that test a model's ability to adapt to novel, unseen world models. This shift would encourage the development of models with more robust, abstract reasoning capabilities that do not rely on the crutch of memorization.
Summary updated