Enhancing Chain of Thought Prompting in Large Language Models via Reasoning Patterns

Yufeng Zhang, Xuepeng Wang, Lingxiang Wu, Jinqiao Wang
4/23/2024
cs.CL

No official code found. Best implementation: Magicat128/Pattern-CoT (5 stars, last commit 2025-05-29).

Abstract

Chain of Thought (CoT) prompting can encourage language models to engage in multi-step logical reasoning. The quality of the provided demonstrations significantly influences the success of downstream inference tasks. Current unsupervised CoT methods primarily select examples based on the semantics of the questions, which can introduce noise and lack interpretability. In this paper, we propose leveraging reasoning patterns to enhance CoT prompting effectiveness. Reasoning patterns represent the process by which language models arrive at their final results. By utilizing prior knowledge and prompt-based methods from large models, we first construct task-specific pattern sets. We then select diverse demonstrations based on different reasoning patterns. This approach not only mitigates the impact of noise but also provides explicit interpretability to help us understand the mechanisms of CoT. Extensive experiments demonstrate that our method is more robust and consistently leads to improvements across various reasoning tasks.

View on arXivView PDF

Code Implementations(1)

[AAAI 2025] Official Implementation for "Enhancing Chain of Thought Prompting in Large Language Models via Reasoning Patterns"

51PythonDec 19, 20241 years ago

Cite this paper

@article{zhang2024enhancing,
  title  = {Enhancing Chain of Thought Prompting in Large Language Models via Reasoning Patterns},
  author = {Yufeng Zhang and Xuepeng Wang and Lingxiang Wu and Jinqiao Wang},
  year   = {2024},
  eprint = {2404.14812},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.14812v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2404.14812.svg)](https://codeofpaper.com/paper/2404.14812)

Discussion