ChainLM: Empowering Large Language Models with Improved Chain-of-Thought Prompting

Xiaoxue Cheng, Junyi Li, Wayne Xin Zhao, Ji-Rong Wen
3/21/2024
cs.CL

Official code: RUCAIBox/ChainLM (31 stars, last commit 2024-03-23). 1 more implementation below.

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.

View on arXivView PDF

Code Implementations(2)

RUCAIBox/ChainLMOfficial100%
312Shell, PythonMar 18, 20242 years ago
Xiaoxue-xx/ChainLMCommunity68%

This repository contains the code, dataset, and models in our paper: ChainLM: Empowering Large Language Models with Improved Chain-of-Thought Prompting.

33Shell, PythonOct 15, 20232 years ago

Cite this paper

@article{cheng2024chainlm,
  title  = {ChainLM: Empowering Large Language Models with Improved Chain-of-Thought Prompting},
  author = {Xiaoxue Cheng and Junyi Li and Wayne Xin Zhao and Ji-Rong Wen},
  year   = {2024},
  eprint = {2403.14312},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.14312v1}
}

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/2403.14312.svg)](https://codeofpaper.com/paper/2403.14312)

Discussion