Abstract
Recent research has shown that rationales, or step-by-step chains of thought, can be used to improve performance in multi-step reasoning tasks. We reconsider rationale-augmented prompting for few-shot in-context learning, where (input -> output) prompts are expanded to (input, rationale -> output) prompts. For rationale-augmented prompting we demonstrate how existing approaches, which rely on manual prompt engineering, are subject to sub-optimal rationales that may harm performance. To mitigate this brittleness, we propose a unified framework of rationale-augmented ensembles, where we identify rationale sampling in the output space as the key component to robustly improve performance. This framework is general and can easily be extended to common natural language processing tasks, even those that do not traditionally leverage intermediate steps, such as question answering, word sense disambiguation, and sentiment analysis. We demonstrate that rationale-augmented ensembles achieve more accurate and interpretable results than existing prompting approaches--including standard prompting without rationales and rationale-based chain-of-thought prompting--while simultaneously improving interpretability of model predictions through the associated rationales.
Introduction
Few-shot in-context learning has become a standard paradigm for utilizing large language models (LLMs). While "Chain-of-Thought" (CoT) prompting—augmenting prompts with step-by-step rationales—has significantly improved performance on complex reasoning tasks, it remains highly sensitive to the quality of human-written examples. A sub-optimal rationale can lead to high variance and even degrade performance compared to simple input-output prompting. This paper addresses this brittleness by introducing rationale-augmented ensembles, a framework that treats rationales as latent variables to be sampled and marginalized through ensembling.
Methodology: Rationale-Augmented Ensembles
The core idea is to move beyond a single reasoning path. The authors propose three methods to introduce diversity into the reasoning process:
- Self-consistency: Keeping the input prompt fixed but sampling the model's decoder multiple times to generate diverse rationales and answers.
- Prompt-order ensemble: Shuffling the order of few-shot exemplars in the prompt to elicit different reasoning paths.
- Input-rationale ensemble: Replacing human-written rationales in the prompt with various model-generated rationales.
The research highlights that rationale sampling in the output space (the decoder) is the most critical driver of performance gains. By allowing the model to explore multiple paths and aggregating the results via majority voting, the system becomes significantly more robust.
Experimental Results
The framework was evaluated using models like PaLM-540B and GPT-3 across a wide range of tasks, including Natural Language Inference (NLI), Question Answering (QA), and common NLP tasks like sentiment analysis (SST-2) and word sense disambiguation (WiC).
Key findings include:
- Superiority over Human Rationales: Model-generated rationales often outperformed human-written ones. In tasks like e-SNLI and SST-2, human rationales actually performed worse than standard prompting, whereas ensembling model-generated rationales exceeded the baseline.
- General Applicability: Rationales proved beneficial even for tasks not traditionally associated with "reasoning." For instance, in sentiment analysis, intermediate rationales helped the model better calibrate its final decision.
- Knowledge Retrieval: In closed-book QA, rationales functioned as a "mental scratchpad," allowing the model to retrieve and verify facts before committing to an answer.
Discussion and Insights
The study reveals that diversity in the output space (sampling multiple paths) is more impactful than diversity in the input space (shuffling prompts). Furthermore, the use of ensembles significantly reduces the "brittleness" of LLMs; while a single poor prompt might cause a performance drop, the ensemble remains stable across different templates and exemplar orders.
Limitations
Despite its success, the approach has limitations. It still requires a few "seed" human-written rationales to establish the format. Additionally, generating dozens of reasoning paths (e.g., 40 samples) increases computational cost and latency compared to single-path greedy decoding. Future research may focus on achieving similar robustness with fewer samples or automating the generation of seed rationales.
Summary updated