NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Is Chain-of-Thought Reasoning of LLMs a Mirage? A Data Distribution Lens

Chengshuai Zhao, Zhen Tan, Pingchuan Ma, Dawei Li, Bohan Jiang, Yancheng Wang, Yingzhen Yang, Huan Liu · DOI

Introduction

Chain-of-Thought (CoT) prompting has been widely celebrated as a breakthrough in enabling Large Language Models (LLMs) to perform complex reasoning. By encouraging models to "think step by step," researchers have observed significant performance gains across various benchmarks. However, this paper challenges the notion that CoT represents genuine logical inference. Instead, it posits that CoT is a "brittle mirage"—a sophisticated form of pattern mimicry that collapses when faced with data outside the training distribution.

The Data Distribution Lens

To investigate the nature of CoT, the authors propose a "Data Distribution Lens." They hypothesize that LLMs do not learn abstract logical rules but rather a structured inductive bias from their training data. This bias allows them to perform well on tasks that mirror their training distribution (In-Distribution, ID) but fails during distribution shifts. The study identifies three critical dimensions of these shifts: Task (novel operations), Length (longer sequences), and Format (noisy or altered prompts).

Conceptualizing distribution shifts across Task, Length, and Format.

Methodology: DataAlchemy

The researchers developed DataAlchemy, a synthetic environment designed to isolate the variables of reasoning. DataAlchemy decomposes NLP tasks into basic "Atoms" (e.g., an alphabet), "Elements" (sequences of atoms), and "Transformations" (abstract operations like ROT-13 or cyclic shifts). This controlled setting allows for the precise measurement of "distribution discrepancy" between training and testing data.

The DataAlchemy framework for testing Task, Length, and Format generalization.

Key Findings

The Mirage of Logic

Models achieved near-perfect accuracy on in-distribution tasks. However, when required to perform compositional out-of-distribution (OOD) tasks—combining known operations in new ways—performance plummeted to near zero (0.01%). This suggests models memorize reasoning patterns rather than internalizing underlying logic.

Fluent Nonsense

Under distribution shifts, models often generate reasoning traces that are structurally and grammatically sound but logically flawed. This "fluent nonsense" creates an illusion of reasoning that fails to reach the correct conclusion. The model appears to be "thinking," but the steps do not logically lead to the answer.

The SFT "Patch"

Supervised Fine-Tuning (SFT) can improve performance on specific new tasks, but it acts as a localized "patch" rather than a generalizable fix. It expands the model's familiarity within a narrow scope without granting true extrapolative reasoning capabilities.

Length and Format Fragility

Models are highly sensitive to sequence length and prompt formatting. Training on specific lengths creates a "template" that models struggle to adapt to longer sequences. Similarly, minor noise in the prompt format—such as inserting or deleting random tokens—significantly degrades performance, with token insertion being particularly damaging.

Conclusion

The findings indicate that current LLM reasoning is heavily dependent on data proximity. While larger models, including LLaMA3 and Qwen, are better at interpolating within their training data, they do not fundamentally overcome the limitations of pattern matching. The study serves as a cautionary note against over-interpreting the "reasoning" capabilities of LLMs, suggesting that true algorithmic reasoning remains an elusive goal for current architectures.

Summary updated

BibTeX
@inproceedings{zhao2025is,
  author = {Chengshuai Zhao and Zhen Tan and Pingchuan Ma and Dawei Li and Bohan Jiang and Yancheng Wang and Yingzhen Yang and Huan Liu},
  title = {{Is Chain-of-Thought Reasoning of LLMs a Mirage? A Data Distribution Lens}},
  booktitle = {FoRLM @ NeurIPS},
  year = {2025},
  url = {https://openreview.net/forum?id=o2AoLPIjle},
}
Figure