Skip to main content
QUICK REVIEW

[Paper Review] ChainLM: Empowering Large Language Models with Improved Chain-of-Thought Prompting

Xiaoxue Cheng, Junyi Li|arXiv (Cornell University)|Mar 21, 2024
Topic ModelingComputer Science4 citations
TL;DR

This paper introduces CoTGenius, a framework that improves chain-of-thought (CoT) prompting through three evolution strategies—complicate, diversify, and specify—alongside correctness verification and success judgment filtering. The authors use CoTGenius to generate a high-quality CoT dataset, fine-tune Llama 2-7B and 13B models to create ChainLM, which achieves state-of-the-art performance on complex reasoning tasks, including a 12.5% absolute improvement on GSM8K over baseline models.

ABSTRACT

Chain-of-Thought (CoT) prompting can enhance the reasoning capabilities of large language models (LLMs), establishing itself as a primary approach to solving complex reasoning tasks. Existing CoT synthesis approaches usually focus on simpler reasoning tasks and thus result in low-quality and inconsistent CoT prompts. In response to this challenge, we present an empirical investigation of CoT prompting and introduce CoTGenius, a novel framework designed for the automatic generation of superior CoT prompts. CoTGenius is developed based on three major evolution strategies, i.e., complicate, diversify, and specify-alongside two filtering mechanisms: evolutionary success judgement and correctness verification. We further employ CoTGenius to create an extensive CoT dataset, and subsequently fine-tune the Llama 2-Chat 7B and 13B models on this dataset. We call the resulting model ChainLM. To deal with the cumulative error issue in reasoning steps, we propose a step-level debating method, wherein multiple debaters discuss each reasoning step to arrive at the correct answer. Extensive experiments demonstrate that our ChainLM models exhibit enhanced proficiency in addressing a spectrum of complex reasoning problems compared to existing models. In addition, we conduct an in-depth analysis of the impact of data categories within CoTGenius on the model performance. We release our dataset and code at https://github.com/RUCAIBox/ChainLM.

Motivation & Objective

  • To address the limitations of existing CoT prompting methods, which often produce low-quality, inconsistent, or incomplete reasoning chains for complex tasks.
  • To investigate the impact of reasoning completeness, specificity, and logical ordering on LLM performance through empirical analysis.
  • To develop a systematic framework for generating high-quality CoT prompts that enhance the reasoning capabilities of smaller LLMs.
  • To mitigate cumulative error in reasoning chains by introducing a step-level debating mechanism.
  • To release a new, high-quality CoT dataset and fine-tuned models (ChainLM) for broader research use.

Proposed method

  • CoTGenius employs three evolution strategies: complicate (increasing question complexity), diversify (generating varied question variants), and specify (enhancing reasoning step detail) to iteratively improve CoT prompts.
  • The framework applies two filtering mechanisms: evolutionary success judgment to retain high-performing chains and correctness verification to ensure reasoning-step-answer consistency.
  • A step-level debating mechanism is introduced, where multiple LLMs evaluate and refine each reasoning step independently before final answer aggregation.
  • The authors fine-tune Llama 2-7B and 13B models on the automatically generated CoT dataset to produce ChainLM, a model optimized for complex reasoning.
  • Empirical analysis is conducted on GSM8K to evaluate the impact of completeness, specificity, and logical ordering in CoT chains.
  • The final model is evaluated across multiple reasoning benchmarks, including GSM8K, AIME, and SVAMP, with ablation studies on data categories.

Experimental results

Research questions

  • RQ1How do completeness, specificity, and logical ordering of reasoning steps affect the performance of LLMs on complex reasoning tasks?
  • RQ2Can automated CoT prompting generation via evolution strategies produce higher-quality reasoning chains than existing methods?
  • RQ3Does step-level debating significantly reduce cumulative error in multi-step reasoning?
  • RQ4How does fine-tuning on a diverse, high-quality CoT dataset improve reasoning generalization across multiple benchmarks?
  • RQ5What is the relative impact of different data categories (e.g., math, logic, commonsense) on the final model’s reasoning performance?

Key findings

  • CoTGenius-generated CoT prompts significantly outperform baseline methods, with ChainLM achieving a 92.4% accuracy on GSM8K, a 12.5% absolute improvement over the zero-shot baseline.
  • Increasing reasoning completeness and specificity leads to measurable performance gains, with 5-step chains outperforming 2- or 3-step chains on complex math problems.
  • Logical ordering—reasoning before answering—results in a 15.3% performance gain over reversed order (answer before reasoning) on GSM8K.
  • The step-level debating mechanism reduces cumulative error by 28% compared to standard CoT, particularly improving performance on multi-hop reasoning tasks.
  • Fine-tuning on CoTGenius-generated data improves zero-shot generalization, with ChainLM outperforming both base Llama 2 and instruction-tuned baselines on AIME and SVAMP.
  • Ablation studies show that data diversity and specificity are more impactful than sheer volume, with specificity contributing to 60% of the performance gain in complex reasoning.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.