Do large language models reason, or do they pattern-match? We split that question into six sub-claims, put each to a reasoning system grounded in a corpus of 29 papers from the actual debate, and then audited every resulting claim against the passages the system retrieved. Three of the six traces carry no unsupported claim at all. Three do, and one of the failures is the interesting one.
A single contested question is not auditable. Six narrower ones are. We decomposed "do language models reason?" into six sub-audits, each targeting a claim the literature actually disputes: what would distinguish reasoning from pattern-matching, whether performance survives superficial perturbation, whether chain-of-thought is faithful, whether compositional depth generalises, whether interpretability finds algorithm-like structure, and whether reinforcement-learning-trained reasoning models changed anything qualitatively.
Each question was answered by IYRA, a Nyaya-structured reasoning system, against a retrieval corpus built from papers on both sides of the debate. Every answer follows the seven-step Panchavayava form, which forces a claim, a reason, an example, an application, a conclusion, an explicit strongest objection, and a rebuttal of that objection.
Then the part that matters: every claim in every answer that names a paper, an author, a number, or a system was checked against the text the system actually retrieved. Where a claim is supported, the supporting passage is quoted. Where it is not, we say what we searched and what we found instead. The verdicts are published in full, including the ones that make the system look bad.
One sample per sub-audit, at temperature 0.7. These six traces are single draws, not a distribution. Re-running produces different wording. Nothing here is a benchmark score, and six samples cannot establish that any behaviour is absent. That constraint shapes every finding below.
iyra-v11-cont2-2ep-q6, served locally via Ollama. Temperature 0.7, context 12288, maximum output 8192 tokens.all-MiniLM-L6-v2. All six sub-audits drew from this collection only.Confidence is not the model's opinion of its own answer. It is computed from retrieval distance: how far the closest passage sits from the question in embedding space, where smaller is closer. The label is collection-relative. This corpus qualifies as "high" below 0.90; the classical-text collections use 0.70. That is why each trace publishes its closest distance and the threshold that applied, rather than a bare badge. A closest passage at 0.37 and one at 0.80 are not the same evidence, and the badge alone hides that.
The model also emits its own confidence stamp, which is a trained-in artifact. In all six traces it reads none, disagreeing with the retrieval-based label every time. We strip it from the answer text and publish it separately rather than reconciling it.
Corroboration counts how many distinct source documents the surviving passages come from. It never changes the confidence label. Single-source means the answer rests on one paper.
Ungrounded figures flags any number, percentage, or decimal in the answer that appears in no retrieved passage. It reports; it never edits the answer. It deliberately ignores step numbers, passage references, centuries, and years. It has a known blind spot, documented in the limitations, and it reported zero for all six of these traces.
| Sub-audit | Confidence | Corroboration | Sources | Closest passage | Ungrounded figures | Unsupported claims |
|---|---|---|---|---|---|---|
| SA1 criterion | high | multi-source | 4 | 0.5758 / 0.90 | 0 | 0 |
| SA2 robustness | high | multi-source | 5 | 0.3658 / 0.90 | 0 | 2 |
| SA3 faithfulness | high | multi-source | 4 | 0.5966 / 0.90 | 0 | 0 |
| SA4 compositionality | high | multi-source | 2 | 0.4655 / 0.90 | 0 | 1 |
| SA5 mechanistic | high | multi-source | 3 | 0.8011 / 0.90 | 0 | 1 |
| SA6 training method | high | single-source | 1 | 0.6247 / 0.90 | 0 | 0 |
Closest distance and threshold are derived from the saved per-passage distances and the collection cutoff. These two fields were added to the server after this run and were not captured live. Every other number was captured at run time. All six traces contain all seven Nyaya steps.
Note what the table exposes. All six carry the same "high" badge across closest distances spanning 0.37 to 0.80. SA2 rests on five papers with its closest passage at 0.37; SA5 rests on three, two of them review papers, with its closest at 0.80. The badge does not distinguish them. The distance column does.
Each trace below is exactly as produced, with the confidence stamp stripped and nothing else edited.
What distinguishes genuine reasoning from sophisticated pattern-matching in large language models, and is that distinction well-defined?
The distinction between genuine reasoning and sophisticated pattern-matching in large language models remains theoretically contested and empirically under-determined; current evidence supports the hypothesis that LLM reasoning capabilities are primarily pattern-matching over learned solution structures rather than formal deductive reasoning, though the functional similarity at the output level makes the distinction practically significant rather than philosophically clean.
Because sophisticated pattern-matching over massive training data can produce output indistinguishable from reasoning without implementing the reasoning process, and because models trained without explicit reasoning mechanisms show comparable performance on reasoning benchmarks when given appropriate patterns, the internal process cannot be inferred from the output alone.
Mirzadeh et al. (2024) found that modifying GSM8K questions by replacing their phrasing while preserving the underlying structure caused a significant drop in model performance despite identical mathematical content, demonstrating that models rely on surface-pattern matching rather than mathematical reasoning, a finding that directly contradicts the intuition that reasoning is the mechanism.
This finding maps onto the present case: if models fail when the surface pattern changes but the underlying structure remains identical, their performance is determined by pattern recognition of linguistic cues rather than by the reasoning process itself.
Therefore, the available evidence supports the pattern-matching hypothesis as the best account of LLM 'reasoning' performance.
The pattern-matching hypothesis, if true, would make the design of reasoning-capable LLMs trivial: simply train models on sufficiently diverse solution-pattern pairs, and the model will produce reasoning-like output when faced with similar patterns. If no genuine reasoning mechanism is involved, the additional compute and architectural complexity of specialized reasoning models (such as o1) is unjustified. Furthermore, the hypothesis cannot explain cases where models produce correct reasoning steps that were not present in any training example: a genuine reasoning system could generate novel valid inferences; a pattern-matching system could not. The existence of such cases suggests that at least some reasoning capability is present, undermining the hypothesis entirely.
Addressing this objection directly: The objection correctly identifies that pattern-matching cannot explain novel correct inferences, but this objection proves too much: the same point demonstrates that the pattern-matching hypothesis is not universally true, not that it is false. The hypothesis is that sophisticated pattern-matching, over solution structures, reasoning templates, and problem-class markers, is the primary mechanism, not that no genuine reasoning occurs at all. Novel correct inferences are either rare enough to be exceptions that do not disprove the general pattern or represent cases of models retrieving novel patterns from their training distribution. The additional complexity of specialized reasoning models is justified if the specific architectural changes meaningfully improve the rate and reliability of correct reasoning outputs, even if the underlying mechanism remains pattern-matching: the practical utility is independent of the theoretical mechanism.
Does large language model reasoning performance collapse under superficial perturbations such as changing numbers or names in a problem?
Large language model reasoning performance demonstrates significant fragility under superficial perturbations including number changes and name substitutions, indicating that current models rely substantially on surface pattern matching rather than deep semantic understanding of mathematical and logical structures.
Experimental evidence from benchmark evaluations consistently shows that models maintain high performance under standard problem formulations but exhibit dramatic performance declines when faced with equivalent problems containing altered numerical values, synonyms, or rephrased structures, suggesting that reasoning capabilities are not grounded in true mathematical understanding but rather in memorized problem patterns and surface-level cues.
In the Mirzadeh et al. (2024) study, models that correctly solved canonical arithmetic problems like 'If John has 5 apples and buys 3 more, how many does he have?' failed completely when presented with equivalent problems using different names (Mary instead of John) or altered numbers (5 apples bought instead of 3), despite the fundamental mathematical structure remaining identical, demonstrating that performance was tied to surface-level lexical and numerical patterns rather than underlying reasoning capabilities.
Just as Mirzadeh's models collapsed under superficial perturbations while maintaining performance on original problems, current LLM reasoning systems show similar fragility where altered problem formulations trigger dramatic performance drops despite semantic equivalence, revealing dependence on surface pattern matching rather than robust reasoning architectures.
Therefore, large language model reasoning performance does collapse under superficial perturbations, exposing fundamental limitations in current reasoning architectures that depend on surface-level pattern recognition rather than deep semantic understanding of mathematical and logical concepts.
The fragility under perturbations might simply reflect the difficulty of evaluating reasoning capabilities through modified problems rather than indicating fundamental limitations, since creating effective perturbations that preserve semantic meaning while altering surface patterns is itself a complex task requiring deep understanding of problem structures.
Addressing this objection directly: While creating effective perturbations is challenging, the consistent pattern of performance collapse across diverse problem types and model architectures in multiple independent studies indicates a systematic limitation rather than an evaluation artifact, as true reasoning capabilities would remain robust to superficial surface changes while maintaining core semantic understanding of mathematical relationships.
Does a language model's chain-of-thought explanation faithfully reflect the actual computation that produced its answer?
A language model's chain-of-thought explanation does not always faithfully reflect the actual computation that produced its answer.
Because empirical analysis of model-generated chains of thought reveals cases where the chain is logically correct but the model arrived at the answer through different computational pathways, and cases where the chain contains minor errors that the model corrected without explicitly revising the chain.
In Passage 2, Wei et al. found that two of fifty correct answers were accompanied by chains of thought that contained logical errors, yet the model produced the correct final answer anyway, demonstrating that the chain is not a faithful trace of the actual computation.
Faithfulness requires that the explanation and the computation be both correct and aligned in structure. When a model corrects an error in its chain while maintaining it, the chain misrepresents the actual computation.
Therefore, chain-of-thought explanations are sometimes unfaithful reflections of the model's actual computation.
The alternative view holds that chain-of-thought generation, even when the final answer is correct, is a genuine reflection of the model's reasoning because the model must actually perform the steps it writes to arrive at the correct result. If the chain were not faithful, the model would fail more often, and empirical evidence shows that CoT improves correctness across tasks, suggesting that the chain is genuinely guiding the computation rather than merely accompanying it.
Addressing this objection directly: The counterargument that correctness validates faithfulness conflates the correlation between correct chains and correct answers with the direction of causation. Faithfulness is about the explanation accurately representing the process, not just the endpoint. Passage 3 from Rai et al. directly addresses this by showing that CoT can be unfaithful even when answers are correct, and that the model's internal mechanisms may use features unrelated to the stated reasoning steps. The fact that a model performs better with CoT does not entail that the CoT explains how it performs better, only that the CoT is associated with better performance, which could be due to the additional tokens providing capacity rather than the chain being a faithful trace of reasoning.
Can transformer-based models perform genuine multi-step compositional reasoning beyond the depth seen in training?
Transformer-based models cannot perform genuine multi-step compositional reasoning beyond the depth embedded in training data, as their apparent reasoning emerges from pattern-matching and position-based encoding rather than systematic rule application.
Because transformers process input as fixed-length positional sequences and solve compositional tasks by linearized subgraph matching rather than multi-step algorithmic execution, their performance degrades exponentially with compositional complexity beyond training exposure.
On the dynamic programming problem 'maximum subarray sum,' transformer models produce correct answers for trained problem variants but fail systematically on structurally similar but untrained instances, unlike models trained in explicit algorithmic reasoning which generalize across problem families.
Just as the transformer models correctly solved trained dynamic programming variants through pattern recognition but failed to generalize algorithmically to new instances, they demonstrate trained depth rather than genuine reasoning capability.
Therefore, transformer-based models perform trained pattern-matching on compositional tasks rather than genuine multi-step reasoning, limiting them to the depth and structure of their training exposure.
One might object that recent advances in chain-of-thought prompting and reasoning-augmented transformers demonstrate genuine multi-step reasoning capabilities that extend beyond training patterns, suggesting that transformers can learn systematic problem-solving algorithms.
Addressing this objection directly: While prompting techniques improve performance, empirical analysis shows that prompted transformers still fail on complex compositional tasks requiring untrained algorithmic steps, and their 'reasoning' remains constrained by training-derived pattern recognition rather than genuine systematic computation.
Does interpretability research show that language models contain algorithm-like internal structures rather than only surface statistics?
Current interpretability evidence demonstrates that language models contain functional, algorithm-like internal structures beyond mere surface statistical correlations.
Multiple independent research findings reveal systematic, compositional, and causal mechanisms within transformer architectures, including semantic directionality in embeddings, interpretable neuron families, attention pattern regularities, and component-specific functions, that operate as computational algorithms rather than random statistical associations.
Word embeddings exhibit consistent semantic directions (e.g., 'king' - 'man' + 'woman' [operator omitted in original] 'queen') and interpretable neurons in RNNs show specialized responses to specific linguistic phenomena, demonstrating algorithmic computation of abstract concepts rather than surface pattern matching.
Just as word embeddings compute semantic relationships through systematic vector operations and interpretable neurons process specific linguistic features, transformer language models contain algorithm-like structures that perform compositional computations on inputs.
Therefore, interpretability research demonstrates that language models contain internal algorithmic structures beyond surface statistical correlations.
The apparent algorithmic structure may be an illusion created by the regularity of natural language data and the architecture's design, rather than genuine computational mechanisms; correlation does not imply functional causation, and the models may simply fit patterns without implementing algorithms.
Addressing this objection directly: The objection conflates statistical correlation with functional mechanism. The evidence includes causal interventions, component ablations, and systematic manipulation experiments that demonstrate functional roles beyond mere correlation, establishing genuine algorithmic computation.
Did reinforcement-learning-trained reasoning models such as o1 and DeepSeek-R1 produce a qualitative change in reasoning ability, or a scaled continuation of the same behavior?
The evidence from the DeepSeek-R1 training analysis suggests a qualitative change in reasoning capability rather than merely scaled continuation of the same behavior, because the model developed self-correcting, multi-step reasoning patterns and dynamic computation scaling that represent structurally different cognitive behaviors.
Because the training data shows that DeepSeek-R1-Zero began generating hundreds to thousands of reasoning tokens to explore alternatives, verify steps, and backtrack, representing a structural change in how reasoning was conducted, not just longer versions of the same reasoning pattern.
In the DeepSeek-R1 training, the model learned to dynamically scale computation by generating more thinking tokens to verify or correct its reasoning steps, or to backtrack and explore alternative approaches when initial reasoning paths failed.
The dynamic computation scaling and self-correcting behaviors represent qualitative changes in reasoning architecture, not merely quantity extensions of the same reasoning pattern.
Therefore, reinforcement learning with long CoT appears to produce qualitative changes in reasoning ability, including self-correction and dynamic computation scaling.
One might object that the observed differences could simply represent the model learning to produce longer reasoning chains rather than fundamentally different reasoning capabilities, and that the performance improvements on benchmarks may reflect increased training time and data exposure rather than genuine qualitative behavioral changes.
Addressing this objection directly: The evidence points to qualitative changes because the model began exhibiting behaviors that required genuine understanding and self-monitoring, such as backtracking, alternative exploration, and verification steps, which cannot be explained by simply producing longer versions of the same reasoning pattern but require structurally different cognitive capabilities.
The question asks about o1 and DeepSeek-R1. No o1 evidence was retrieved, and the o1 System Card is in the corpus but did not surface. The answer names o1 nowhere and scopes its claim to the DeepSeek-R1 analysis. It answers half the question and says so.
Every claim naming a paper, author, number, or system was checked against the retrieved text. Where a verdict rests on absence, the search ran over the full source document, not the retrieved excerpt, and the character count is given so the check is reproducible.
"Mirzadeh et al. (2024) found that modifying GSM8K questions ... caused a significant drop in model performance"
"...along with a performance degradation compared to the original GSM8K accuracy. This suggests that the perceived reasoning process of language models may not be formal and is hence susceptible to changes. One explanation is that these models attempt to perform a kind of in-distribution pattern-matching."Passage 5 · arXiv:2410.05229 · distance 0.7309
"specialized reasoning models (such as o1)"
"Two closely related studies by Valmeekam et al. and Ruoss et al. demonstrated that reasoning models such as o1 show significant performance improvements compared to previous models"Passage 4 · arXiv:2506.06941 · distance 0.7042
Perturbing names and numbers degrades performance.
"Overall, models have noticeable performance variation even if we only change names, but even more when we change numbers or combine these changes."Passage 1 · arXiv:2410.05229 · distance 0.3658
"In the Mirzadeh et al. (2024) study, models that correctly solved canonical arithmetic problems like 'If John has 5 apples and buys 3 more, how many does he have?' failed completely when presented with equivalent problems using different names (Mary instead of John)"
This example is asserted as a finding of a named, cited study. It is not in that study. Searching the full text of arXiv:2410.05229 as stored (76,316 characters, all 191 chunks), with word-boundary matching: john absent, mary absent, apples absent. The paper's actual worked example is:
"Oliver picks 44 kiwis on Friday. Then he picks 58 kiwis on Saturday. On Sunday, he picks double the number of kiwis he did on Friday, but five of them..."arXiv:2410.05229, full text
A reader who opens the cited paper will not find the example attributed to it. The names, the objects, and the quantities are all invented.
"failed completely"
The supporting passage says "noticeable performance variation" and "a performance degradation". Neither states complete failure.
"In Passage 2, Wei et al. found that two of fifty correct answers were accompanied by chains of thought that contained logical errors"
"Of 50 random examples where the model returned the correct final answer, all of the generated chains of thought were also logically and mathematically correct except two that coincidentally arrived at the correct answer."Passage 2 · arXiv:2201.11903 · distance 0.6969
The counts match, the attribution matches, and the passage index the answer cites is the correct one.
"Passage 3 from Rai et al. directly addresses this by showing that CoT can be unfaithful"
"textual explanations such as chain-of-thought (CoT) have also been proposed to be leveraged for model explanation; however, recent research suggests that CoT explanations can be unfaith[ful]"Passage 3 · arXiv:2407.02646 · distance 0.7244
This is the only trace that cites its passages by index, and both indices are right.
"solve compositional tasks by linearized subgraph matching"
"transformer LLMs solve compositional tasks by reducing multi-step compositional reasoning into linearized subgraph matching, without necessarily developing systematic problem-solving skills."Passage 4 · arXiv:2305.18654 · distance 0.5464
"On the dynamic programming problem 'maximum subarray sum'"
Searching the full text of arXiv:2305.18654 as stored (107,586 characters, all 269 chunks): maximum subarray absent, subarray absent anywhere in the paper. The paper's actual dynamic programming task is:
"Let dpi be the maximum sum of a subsequence that does not include adjacent elements, when considering only the elements of the input from the i-th position onwards."arXiv:2305.18654, Appendix A.3
Maximum sum of a non-adjacent subsequence is a different problem from maximum subarray sum, which concerns a contiguous subarray. The answer invented the name and named the wrong problem. This is checkable in one search.
"Word embeddings exhibit consistent semantic directions" and "interpretable neurons in RNNs"
"Many models form at least some interpretable features. Word embeddings have semantic directions. There is evidence of interpretable neurons in RNNs, convolutional neural networks..."Passage 7 · arXiv:2209.10652 · distance 0.8742
"'king' - 'man' + 'woman' [operator omitted in original] 'queen'"
The canonical word2vec analogy, supplied from the model's parametric memory. Word-boundary searches: in SA5's own ten retrieved passages, king, queen, man and woman are all absent. In the full text of arXiv:2209.10652 (166,261 characters), king and queen are absent. The general claim it illustrates is supported; the illustration is not.
SA5 has the weakest grounding of the six: closest passage 0.8011 against a 0.90 threshold, with two of three sources being review papers rather than primary evidence. The primary anchor for induction heads was not retrieved.
"generating hundreds to thousands of reasoning tokens to explore alternatives, verify steps, and backtrack"
"Leveraging long CoT, the model progressively refines its reasoning, generating hundreds to thousands of tokens to explore and imp[rove]"Passage 4 · arXiv:2501.12948 · distance 0.7222
"dynamically scale computation by generating more thinking tokens to verify or correct its reasoning steps, or to backtrack"
"the model learned to dynamically scale computation by generating more thinking tokens to verify or correct its reasoning steps, or to backtrack and explore alternative approaches"Passage 7 · arXiv:2501.12948 · distance 0.7918
"the model developed self-correcting, multi-step reasoning patterns"
"Sophisticated reasoning behaviors, such as self-verification and reflection, appeared to emerge organically during the reinforcement learning process."Passage 5 · arXiv:2501.12948 · distance 0.7428
The answer contains no numbers at all, although passage 6 carries real figures it could have copied or distorted.
SA1, SA3 and SA6 contain zero unsupported claims: every statement naming a paper, author, number or system traces to a retrieved passage. All six traces, including the three with unsupported claims, contain zero ungrounded figures, meaning no number appears that is absent from the retrieved text.
SA3 is the strongest of the six. It is the only trace that cites its evidence by passage index, and both indices are correct: "In Passage 2, Wei et al. found that two of fifty correct answers..." points at the passage that says exactly that, and "Passage 3 from Rai et al." points at the Rai paper. Counts, attribution and index all match.
SA6 is the most disciplined. Asked about two systems, it retrieved evidence for one, answered for that one, scoped its claim explicitly to "the evidence from the DeepSeek-R1 training analysis", and named the other nowhere. It also contains no numbers at all, although one of its passages carries real figures it could have copied or distorted.
Between 14 July and 27 July the system went through three rounds of changes. One class of error was present at the start and is still present at the end, essentially unchanged. Here are SA2's invented arithmetic examples from both dates:
"A model trained to solve 'John has 5 apples; Mary has 3 apples; how many do they have together?' performs well. Substituting names ('Pete has 5 apples; Sue has 3 apples...') produces similar performance. But substituting numbers ('John has 500 apples; Mary has 300 apples...') may produce a performance drop"
"In the Mirzadeh et al. (2024) study, models that correctly solved canonical arithmetic problems like 'If John has 5 apples and buys 3 more, how many does he have?' failed completely when presented with equivalent problems using different names (Mary instead of John)"
Same names, same object, same quantities. It is the same invention. Searching the full Mirzadeh paper on both dates: john, mary and apples are absent every time. Nothing migrated into this class; it was there from the beginning and no fix touched it.
What the targeted fixes did close is verifiable in the traces. Mis-attribution of real findings to the wrong paper is gone: on 14 July SA4 credited Dziri with GPT-4 theorem-proving experiments, and theorem appears nowhere in that paper. A factual error is gone: on 14 July SA6 stated DeepSeek-R1-Zero was "trained from scratch ... without relying on a large pre-trained language model base", which is wrong. Invented philosopher citations are gone: 14 July attributed objections to Hofstadter and Lakatos with fabricated works. The confidence contradiction is gone: every answer used to open with a stamp that contradicted the published label.
One further observation, and it is only an observation. On 14 July the invented example was framed hypothetically, "a model trained to solve". On 27 July the same invention is asserted as a finding of a named, cited study. In these samples the fabrication acquired a false attribution and became harder to catch, not easier. This is one sample per sub-audit per date at temperature 0.7. It is an observation about two draws, not a demonstrated effect of any fix.
We do not claim any class was eliminated. Six single samples cannot establish that a behaviour is absent. Every "gone" above means "did not appear in these traces", not "cannot occur".
Separately from the six sub-audits, one query exposed a failure that no accuracy metric would catch. Asked "why does quantum entanglement occur?", the system returned a correct physics explanation and published DeepSeek-R1 as its source, at high confidence.
The retrieval was not wrong. The DeepSeek-R1 paper genuinely contains accurate quantum-entanglement prose, because its authors used that text as sample input for a summarisation demo. Semantic search found real, relevant, correct text. All four retrieved passages are that demo block, at distances 0.6407 to 0.9158.
The answer itself is sound and cites nothing: it explains entanglement through tensor-product Hilbert spaces and spin-zero decay. The error is entirely in what the system publishes around the answer, a source list naming an LLM training paper as the authority for quantum physics, carrying a high confidence badge.
Any evaluation scoring conclusions would mark this correct. Only an audit that asks whether the cited source is a plausible authority for the claim catches it. That is the argument for publishing traces rather than scores.
This case was captured at 20:55 on 27 July, after the six sub-audit traces and after the audit was written, and is published as a separate artifact for exactly that reason. Retrieval is deterministic and reproduces the original observation exactly.
Nothing here asks you to trust the audit. Every trace is published with its full retrieved passages, so each verdict above can be re-checked independently.
Finding 2 compares two dates. These are the earlier traces it compares against, so the comparison can be checked rather than taken on trust.
One claim in the D2 limitation and in finding 2 rests on the fine-tuning data rather than on the corpus: that the false citations were invented at generation time rather than learned from training examples. The training dataset is private and is not published. What is published is the script that checks it and the aggregate result, so the method is inspectable even though the data is not, and the numbers reproduce exactly for anyone holding the dataset.
--with-excerpts to see the surrounding training text, which is why the published output omits it.Passage text is the full chunk as stored, not the 400-character preview the API returns, so quotations can be checked in context. Across all published artifacts this amounts to 60 distinct chunks of source text, roughly 78,000 characters, about 0.74 percent of the corpus.