[Paper Review] Zero-Shot Chain-of-Thought Reasoning Guided by Evolutionary Algorithms in Large Language Models
The paper introduces zero-shot EoT prompting, using evolutionary algorithms to generate instance-specific CoT prompts for LLMs, plus rewriting, to improve reasoning across diverse datasets.
Large Language Models (LLMs) have demonstrated remarkable performance across diverse tasks and exhibited impressive reasoning abilities by applying zero-shot Chain-of-Thought (CoT) prompting. However, due to the evolving nature of sentence prefixes during the pre-training phase, existing zero-shot CoT prompting methods that employ identical CoT prompting across all task instances may not be optimal. In this paper, we introduce a novel zero-shot prompting method that leverages evolutionary algorithms to generate diverse promptings for LLMs dynamically. Our approach involves initializing two CoT promptings, performing evolutionary operations based on LLMs to create a varied set, and utilizing the LLMs to select a suitable CoT prompting for a given problem. Additionally, a rewriting operation, guided by the selected CoT prompting, enhances the understanding of the LLMs about the problem. Extensive experiments conducted across ten reasoning datasets demonstrate the superior performance of our proposed method compared to current zero-shot CoT prompting methods on GPT-3.5-turbo and GPT-4. Moreover, in-depth analytical experiments underscore the adaptability and effectiveness of our method in various reasoning tasks.
Motivation & Objective
- Motivate the need for per-instance diverse Chain-of-Thought prompting due to evolving sentence prefixes during pre-training.
- Propose an evolutionary-algorithm-based procedure to generate multiple CoT prompts and select the best for a given problem.
- Enhance problem understanding by rewriting the problem using the selected CoT prompt before reasoning.
Proposed method
- Initialize two CoT promptings per problem and apply LLM-based crossover and mutation to create a diverse prompt pool.
- Use the LLM as the evolutionary optimizer to perform T_c = LLM-Crossover(T1, T2) and T_m = LLM-Mutation(T_c).
- Select the most suitable CoT prompting T_o for the current problem from the generated pool.
- Rewrite the problem with R(Q) using T_o, then perform reasoning with intermediate steps and final answer extraction.
- Employ a trigger sentence like 'Therefore, the answer (arabic numerals) is' to extract the final answer.
- Evaluate across datasets with greedy decoding (temperature 0) and self-consistency where applicable.

Experimental results
Research questions
- RQ1Can instance-specific CoT prompts generated via evolutionary operations improve zero-shot reasoning compared to uniform zero-shot CoT prompting?
- RQ2Does problem rewriting guided by the selected CoT prompt enhance LLM understanding and reasoning performance?
- RQ3How does EoT prompting compare to zero-shot CoT, PS/PS+ prompting, RE2, and few-shot CoT baselines across arithmetic, commonsense, and symbolic tasks?
- RQ4What is the impact of population size, initialization prompts, and self-consistency on EoT prompting performance?
Key findings
- EoT prompting outperforms zero-shot CoT, PS, PS+, and RE2 prompting across ten datasets, particularly in arithmetic and symbolic reasoning.
- On GPT-3.5-turbo, EoT yields average gains of 2.8% over zero-shot CoT and 2.3% over PS+ on arithmetic tasks.
- With GPT-4, EoT achieves higher accuracy on AQuA, AddSub, and SVAMP than the compared zero-shot baselines.
- EoT prompting approaches the performance of few-shot CoT prompting on several arithmetic datasets.
- Ablation shows rewriting (R) is beneficial, and removing crossover (C) or mutation (M) generally hurts performance, especially on AQuA.
- Self-consistency further boosts EoT performance on multiple arithmetic tasks.
- Increasing the CoT prompt population size N generally improves performance, trading off speed.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.