mlsanityData to 7 Oct 2026

Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango

arXiv 2209.07686 ↗First posted 16 Sep 2022cs.CL cs.AI cs.LGcited by 128

On the map: LLM reasoning → Prompting and chain-of-thought reasoning

Abstract (arXiv)

The past decade has witnessed dramatic gains in natural language processing and an unprecedented scaling of large language models. These developments have been accelerated by the advent of few-shot techniques such as chain of thought (CoT) prompting. Specifically, CoT pushes the performance of large language models in a few-shot setup by augmenting the prompts with intermediate steps. Despite impressive results across various tasks, the reasons behind their success have not been explored. This work uses counterfactual prompting to develop a deeper understanding of CoT-based few-shot prompting mechanisms in large language models. We first systematically identify and define the key components of a prompt: symbols, patterns, and text. Then, we devise and conduct an exhaustive set of experiments across four different tasks, by querying the model with counterfactual prompts where only one of these components is altered. Our experiments across three models (PaLM, GPT-3, and CODEX) reveal several surprising findings and brings into question the conventional wisdom around few-shot prompting. First, the presence of factual patterns in a prompt is practically immaterial to the success of CoT. Second, our results conclude that the primary role of intermediate steps may not be to facilitate learning how to solve a task. The intermediate steps are rather a beacon for the model to realize what symbols to replicate in the output to form a factual answer. Further, text imbues patterns with commonsense knowledge and meaning. Our empirical and qualitative analysis reveals that a symbiotic relationship between text and patterns explains the success of few-shot prompting: text helps extract commonsense from the question to help patterns, and patterns enforce task understanding and direct text generation.

Key facts. Cited by 128 papers in the map (data through 7 Oct 2026). Placed in Prompting and chain-of-thought reasoning, one of 17 directions in LLM reasoning. Builds on 47 of its 84 references that are in the map. First posted on arXiv 16 Sep 2022.

Builds on

47 of 84 references.

Closest ancestors · 4

Same direction, newest first

  1. 2022Large Language Models are Zero-Shot Reasoners24 May
  2. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Models21 May
  3. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Models21 Mar
  4. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Models28 Jan

Other references · 43

  1. 2017Attention Is All You Needcited by 59,932
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  5. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  6. 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,040
  7. 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
  8. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  9. 2022Do As I Can, Not As I Say: Grounding Language in Robotic Affordancescited by 2,302
  10. 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
  11. 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,973
  12. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
31 more
  1. 2021Multitask Prompted Training Enables Zero-Shot Task Generalizationcited by 1,462
  2. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  3. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
  4. 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
  5. 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
  6. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  7. 2019Attention is not Explanationcited by 916
  8. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 915
  9. 2021Show Your Work: Scratchpads for Intermediate Computation with Language Modelscited by 871
  10. 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
  11. 2017Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problemscited by 642
  12. 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
  13. 2019Explaining Machine Learning Classifiers through Diverse Counterfactual Explanationscited by 612
  14. 2022Using cognitive psychology to understand GPT-3cited by 389
  15. 2019Explain Yourself! Leveraging Language Models for Commonsense Reasoningcited by 367
  16. 2022Autoformalization with Large Language Modelscited by 252
  17. 2021The GEM Benchmark: Natural Language Generation, its Evaluation and Metricscited by 239
  18. 2019FACE: Feasible and Actionable Counterfactual Explanationscited by 232
  19. 2021Causal Inference in Natural Language Processing: Estimation, Prediction, Interpretation and Beyondcited by 177
  20. 2021Reframing Instructional Prompts to GPTk's Languagecited by 176
  21. 2020Counterfactual Explanations and Algorithmic Recourses for Machine Learning: A Reviewcited by 174
  22. 2020Unsupervised Commonsense Question Answering with Self-Talkcited by 161
  23. 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
  24. 2022Impact of Pretraining Term Frequencies on Few-Shot Reasoningcited by 142
  25. 2022Ground-Truth Labels Matter: A Deeper Look into Input-Label Demonstrationscited by 116
  26. 2021Counterfactual Explanations Can Be Manipulatedcited by 113
  27. 2022Rationale-Augmented Ensembles in Language Modelscited by 111
  28. 2021A Recipe For Arbitrary Text Style Transfer with Large Language Modelscited by 107
  29. 2019The Dangers of Post-hoc Interpretability: Unjustified Counterfactual Explanationscited by 97
  30. 2021Uncovering Main Causalities for Long-tailed Information Extractioncited by 21
  31. 2016Building Machines That Learn and Think Like Peoplecited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 5; 2023: 43; 2024: 43; 2025: 24; 2026: 13.

128 papers.

Sort:

By area:

  1. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  2. 2023A Survey of Large Language Modelscited by 2,537
  3. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
  4. 2023Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Promptingcited by 1,081
  5. 2023Large Language Models as Optimizerscited by 830
  6. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
  7. 2024Training Large Language Models to Reason in a Continuous Latent Spacecited by 763
  8. 2023Measuring Faithfulness in Chain-of-Thought Reasoningcited by 668
  9. 2022PAL: Program-aided Language Modelscited by 635
  10. 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 521
  11. 2023Larger language models do in-context learning differentlycited by 386
  12. 2023Language Models can Solve Computer Taskscited by 371
38 more
  1. 2023Explainability for Large Language Models: A Surveycited by 331
  2. 2023ToolQA: A Dataset for LLM Question Answering with External Toolscited by 273
  3. 2024To CoT or not to CoT? Chain-of-thought helps mainly on math and symbolic reasoningcited by 257
  4. 2024Chain of Thought Empowers Transformers to Solve Inherently Serial Problemscited by 256
  5. 2023Think before you speak: Training Language Models With Pause Tokenscited by 254
  6. 2022Towards Understanding Chain-of-Thought Prompting: An Empirical Study of What Matterscited by 221
  7. 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 198
  8. 2023Navigate through Enigmatic Labyrinth A Survey of Chain of Thought Reasoning: Advances, Frontiers and Futurecited by 184
  9. 2024The Impact of Reasoning Step Length on Large Language Modelscited by 152
  10. 2023Large Language Model Cascades with Mixture of Thoughts Representations for Cost-efficient Reasoningcited by 140
  11. 2025Thought Anchors: Which LLM Reasoning Steps Matter?cited by 126
  12. 2024Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffoldingcited by 115
  13. 2024A Practical Review of Mechanistic Interpretability for Transformer-Based Language Modelscited by 113
  14. 2022Teaching Algorithmic Reasoning via In-context Learningcited by 111
  15. 2024Rethinking Interpretability in the Era of Large Language Modelscited by 110
  16. 2023Question Decomposition Improves the Faithfulness of Model-Generated Reasoningcited by 107
  17. 2023Symbol tuning improves in-context learning in language modelscited by 72
  18. 2023Dr.ICL: Demonstration-Retrieved In-context Learningcited by 71
  19. 2024Demystifying Chains, Trees, and Graphs of Thoughtscited by 63
  20. 2023Towards Better Chain-of-Thought Prompting Strategies: A Surveycited by 62
  21. 2024The Benefits of a Concise Chain of Thought on Problem-Solving in Large Language Modelscited by 62
  22. 2024CTIBench: A Benchmark for Evaluating LLMs in Cyber Threat Intelligencecited by 61
  23. 2025SagaLLM: Context Management, Validation, and Transaction Guarantees for Multi-Agent LLM Planningcited by 58
  24. 2023Active Learning Principles for In-Context Learning with Large Language Modelscited by 53
  25. 2023Bias Testing and Mitigation in LLM-based Code Generationcited by 53
  26. 2023How Many Demonstrations Do You Need for In-context Learning?cited by 52
  27. 2023Better Zero-Shot Reasoning with Self-Adaptive Promptingcited by 52
  28. 2023TELeR: A General Taxonomy of LLM Prompts for Benchmarking Complex Taskscited by 48
  29. 2023Reprompting: Automated Chain-of-Thought Prompt Inference Through Gibbs Samplingcited by 46
  30. 2024Explainable Artificial Intelligence: A Survey of Needs, Techniques, Applications, and Future Directioncited by 46
  31. 2023Measuring and Improving Chain-of-Thought Reasoning in Vision-Language Modelscited by 45
  32. 2023Self-ICL: Zero-Shot In-Context Learning with Self-Generated Demonstrationscited by 42
  33. 2024Self-Reflection in LLM Agents: Effects on Problem-Solving Performancecited by 38
  34. 2023Analyzing Chain-of-Thought Prompting in Large Language Models via Gradient-based Feature Attributionscited by 32
  35. 2024PromptWizard: Task-Aware Prompt Optimization Frameworkcited by 32
  36. 2023Mind meets machine: Unravelling GPT-4's cognitive psychologycited by 31
  37. 2024Deciphering the Factors Influencing the Efficacy of Chain-of-Thought: Probability, Memorization, and Noisy Reasoningcited by 27
  38. 2024Unveiling the Statistical Foundations of Chain-of-Thought Prompting Methodscited by 27

50 most cited of 128 All 128 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2024Enhancing Chain of Thought Prompting in Large Language Models via Reasoning Patterns
  2. 2025Revisiting Chain-of-Thought Prompting: Zero-shot Can Be Stronger than Few-shot
  3. 2023Cross-lingual Prompting: Improving Zero-shot Chain-of-Thought Reasoning across Languages
  4. 2026Beyond the Prompt in Large Language Models: Comprehension, In-Context Learning, and Chain-of-Thought
  5. 2024Chain-of-Thought Reasoning Without Prompting
  6. 2025The Curse of CoT: On the Limitations of Chain-of-Thought in In-Context Learning
  7. 2025Prompting Science Report 2: The Decreasing Value of Chain of Thought in Prompting
  8. 2023Leveraging Training Data in Few-Shot Prompting for Numerical Reasoning