AlignedCoT: Prompting Large Language Models via Native-Speaking Demonstrations

Zhicheng Yang, Yinya Huang, Jing Xiong, Liang Feng, Xiaodan Liang, Yiwei Wang, Jing Tang

Abstract

Large Language Models (LLMs) exhibit superior performance when few-shot demonstrations align with their internal "native" reasoning styles. This paper introduces AlignedCoT, a prompting framework that probes an LLM's zero-shot reasoning, refines it for accuracy, and utilizes the resulting "native-speaking" chains as demonstrations. Evaluated across mathematical and commonsense reasoning benchmarks, AlignedCoT consistently outperforms traditional human-crafted (Manual-Style) prompts, showing significant gains in complex logical error detection.

Introduction: The "Unseen Gap" in Prompting

Standard In-Context Learning (ICL) and Chain-of-Thought (CoT) methods typically rely on "Manual-Style" demonstrations—step-by-step solutions written by humans. However, research suggests an "unseen gap" between human linguistic habits and the statistical patterns internalized by LLMs during pre-training and reinforcement learning.

The difficulty of cross-style imitation: An agent (A) struggles to adopt a foreign native text style (B).

Forcing a model to imitate a foreign "Manual-Style" can be counterproductive, as it requires the model to allocate cognitive resources to stylistic imitation rather than task-specific reasoning.

Traditional Manual-Style prompting provides human-written examples to the LLM as few-shot demonstrations.

Methodology: Generating Native-Speaking Demonstrations

AlignedCoT bridges the stylistic gap through a three-step workflow designed to elicit and stabilize the model's inherent reasoning:

  1. Probing: The model is prompted zero-shot using the phrase "Let’s think step by step" to reveal its natural reasoning trajectory for a given problem.
  2. Refining: To ensure logical correctness, a human or superior model identifies the first error in the zero-shot output. Only that specific point is corrected, allowing the LLM to complete the reasoning in its own voice.
  3. Formatting: The refined "native" thoughts are standardized into structured templates (e.g., "STEP 1:", "Answer:") to enhance followability during inference.

Experimental Results

The efficacy of AlignedCoT was validated on GPT-3.5-Turbo, GPT-4, and Llama-2-7b across benchmarks including GSM8K, SVAMP, and BIG-bench Penguins.

Performance Gains

  • GPT-3.5-Turbo: Achieved an average accuracy increase of 3.2%, with a peak improvement of 9.6% on the Penguins dataset.
  • GPT-4: Showed a 1.7% average improvement.
  • Logical Error Detection: On the SVAMP dataset, AlignedCoT enabled GPT-4 to identify flawed questions with 78.9% accuracy, compared to only 28.2% using standard CoT.

Retrieval-Augmented Generation (RAG)

The authors introduced GSM8K-Align, a dataset of native-style reasoning chains. Using this dataset for RAG-based few-shot selection yielded up to a 3.6% performance boost over original human-written data.

Discussion and Conclusion

AlignedCoT demonstrates that LLMs are most effective when communicating in their own "native tongue." By minimizing the stylistic shift required during in-context learning, models can focus entirely on logical processing. While the refinement step currently involves human intervention, future work aims to automate this process, potentially scaling high-performance prompting to even broader domains.

Summary updated

BibTeX
@inproceedings{yang2024alignedcot,
  author = {Zhicheng Yang and Yinya Huang and Jing Xiong and Liang Feng and Xiaodan Liang and Yiwei Wang and Jing Tang},
  title = {{AlignedCoT: Prompting Large Language Models via Native-Speaking Demonstrations}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.163},
}
Figure