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

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

Aman Madaan, Amir Yazdanbakhsh · DOI

Abstract

Chain of Thought (CoT) prompting has significantly enhanced the reasoning capabilities of Large Language Models (LLMs). However, the specific components within a prompt that drive this improvement have remained elusive. This paper deconstructs CoT into three primary elements: symbols, patterns, and text. Through a series of counterfactual prompting experiments, we demonstrate that the success of CoT relies on a symbiotic relationship between natural language context and structural patterns, rather than the factual accuracy of the symbols provided. These insights lead to the development of Concise Chain of Thought (CCOT), a prompting strategy that reduces token usage by approximately 20% while maintaining or improving performance across diverse reasoning tasks.

Introduction

Large Language Models (LLMs) exhibit remarkable problem-solving capabilities when guided by a "Chain of Thought" (CoT)—a sequence of intermediate reasoning steps. Despite its widespread adoption, CoT is often treated as a "black box." It is unclear whether the model truly learns logic from the prompt, mimics the factual correctness of examples, or simply follows a structural template. This study aims to move beyond abstract analogies of human-like reasoning to identify the specific semantic drivers of CoT performance.

Methodology: Counterfactual Prompting

To isolate the impact of different prompt elements, the researchers employed counterfactual prompting. This technique involves decomposing a prompt into three core components and systematically altering them:

  1. Symbols: Specific entities or quantities (e.g., the number "5" or the name "Jamal Murray").
  2. Patterns: The structural or mathematical frameworks that reinforce task understanding (e.g., 5 + 4 = 9).
  3. Text: The natural language "glue" that provides context and connects symbols to patterns.
Counterfactual prompting examples showing symbol replacement with Greek letters and out-of-distribution numbers.

By systematically altering only one component at a time—such as replacing numbers with Greek letters or shuffling word order into "Yodish"—the researchers could isolate which parts of the prompt were doing the heavy lifting.

Analysis of Components

The researchers found that the effectiveness of CoT is not a product of any single component but rather a result of how they interact.

Comparison of prompts with and without structural patterns to isolate their effect on reasoning.

Symbols are Surprisingly Optional

One of the most striking findings is that the specific symbols used in few-shot examples are largely irrelevant. In mathematical tasks, replacing numbers with abstract placeholders like α or β had almost no impact on the solve rate. This suggests that the model does not need to see "real" data in the examples to understand how to process the data in the actual query.

Patterns as Beacons

Intermediate steps in a CoT prompt serve as "beacons," signaling to the model which symbols to replicate and how to structure the output. Interestingly, the factual correctness of these patterns is often less critical than their structural presence. The model uses the pattern as a template for its own generation process.

The Symbiotic Tango of Text and Patterns

The core of the paper's thesis is the "symbiotic tango" between text and patterns. Text allows the model to leverage its internal commonsense knowledge to parse the question, while patterns enforce the structural discipline required for the task. Removing either component typically leads to a significant drop in performance. Even when the text is grammatically distorted (e.g., "Yodish"), the model can often still reason effectively as long as the underlying text-pattern relationship remains intact.

Key Results: Concise Chain of Thought (CCOT)

The practical application of these insights led to the development of Concise Chain of Thought (CCOT). By focusing exclusively on the essential text-pattern relationship and pruning redundant tokens, the researchers achieved:

  • Efficiency: A reduction in input tokens by approximately 1.39x and output tokens by 1.58x.
  • Performance: CCOT frequently outperformed standard CoT. On the GSM-8K benchmark using PaLM-62B, the solve rate improved from 27.4% to 29.1%.
  • Robustness: The method proved resilient across diverse tasks, including mathematical word problems, sports-related commonsense, and symbolic sorting.

Conclusion

The success of Chain of Thought prompting is less about the model "thinking" like a human and more about its ability to replicate sophisticated patterns within a natural language context. By understanding the roles of symbols, patterns, and text, we can design more efficient prompts that reduce the computational and environmental costs of LLM inference while maintaining high reasoning accuracy. Future research will explore whether these findings extend to more subjective domains and investigate the specific attention mechanisms that facilitate this pattern-text symbiosis.

Summary updated

BibTeX
@misc{madaan2022text,
  author = {Aman Madaan and Amir Yazdanbakhsh},
  title = {{Text and Patterns: For Effective Chain of Thought, It Takes Two to Tango}},
  year = {2022},
  eprint = {2209.07686},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.07686},
}
Figure