Enhancing Zero-shot Chain of Thought Prompting via Uncertainty-Guided Strategy Selection

Shanu Kumar, Saish Mendke, Karody Lubna Abdul Rahman, Santosh Kurasa, Parag Agrawal, Sandipan Dandapat

TL;DR

This paper introduces ZEUS, a novel method to improve zero-shot Chain-of-Thought (CoT) prompting by intelligently selecting demonstrations based on model uncertainty. ZEUS outperforms existing methods by effectively identifying useful examples without requiring human-annotated rationales, making CoT prompting more accessible and efficient.

What Problem Does This Paper Address?

Large Language Models (LLMs) have shown impressive capabilities, but they often struggle with complex reasoning tasks. Chain-of-Thought (CoT) prompting, which involves generating intermediate reasoning steps, has been a significant advancement. However, existing CoT methods have limitations: Manual-CoT requires extensive human effort to craft demonstrations, while Zero-Shot-CoT, though cost-effective, often underperforms due to the lack of effective demonstrations. Auto-CoT attempts to automate demonstration creation but still relies on clustering unlabeled questions. This paper addresses the challenge of selecting the most informative demonstrations for zero-shot CoT prompting when only unlabeled questions are available, aiming to bridge the performance gap without manual annotation.

Methods

The core of ZEUS is its uncertainty-guided strategy selection. It operates in three stages:

  1. Uncertainty Estimation: ZEUS estimates LLM uncertainty for each unlabeled question using a combination of three perturbation techniques:
  2. Temperature Perturbation: Varying the temperature parameter during decoding to generate diverse responses.
  3. Trigger Phrase Perturbation: Using different trigger phrases (e.g., "Let's think step by step") to see if the LLM's output changes.
  4. Rephrasing Perturbation: Rewording the question to check for consistency in the LLM's answers. By aggregating responses from these perturbations, ZEUS calculates a confidence score for each unique answer and then uses predictive entropy (PE) to quantify the overall uncertainty for a given question.

  5. Uncertainty-based Question Selection: This stage leverages the estimated uncertainty to select a subset of questions that are most likely to be informative for demonstration. The selection is guided by the mean ($\mu$) and standard deviation ($\sigma$) of uncertainty estimates across the unlabeled dataset. Various strategies are proposed, ranging from selecting low-uncertainty questions ("Trivial," "Very Easy") to high-uncertainty questions ("Challenging," "Hard"), and moderate ranges around $\mu$.

  6. Demonstration Construction: Similar to Auto-CoT, selected questions are encoded into vector representations and clustered. A representative question, rationale, and answer are chosen from each cluster to form the demonstration set. This approach aims to maintain diversity in the demonstrations.

Datasets

The paper evaluates ZEUS on four challenging reasoning datasets:

  • GSM8K: Arithmetic reasoning problems.
  • StrategyQA: Question answering requiring implicit multi-hop reasoning.
  • Logical Fallacy (Fallacy): Reasoning about arguments and detecting formal/informal fallacies.
  • Epistemic Reasoning (EPR): Natural language inference task focused on human mental states.

For most datasets, a 70/30 split was used for unlabeled data (for demonstration creation) and test data (for evaluation). GSM8K was used as provided.

Key Insights and Ideas

  • Uncertainty as a Signal for Demonstration Quality: The paper strongly suggests that uncertainty estimates, derived from perturbations, are a reliable indicator of a question's informativeness for demonstration selection.
  • Sensitivity Matters: While temperature-based perturbations can estimate uncertainty, ZEUS's method is highlighted as being more sensitive in distinguishing between helpful and less useful questions, leading to better performance.
  • Task and Model Dependency of Optimal Strategies: The "best" selection strategy (e.g., focusing on "Hard" vs. "Easy" questions) is not universal but depends heavily on both the specific task and the LLM being used.
  • Inverse Correlation between Accuracy and Uncertainty: For a given selection strategy, accuracy tends to be inversely correlated with uncertainty, meaning lower uncertainty often leads to higher accuracy. This relationship is key to selecting the optimal strategy.

Key Results

  • ZEUS consistently outperforms existing CoT strategies (Zero-Shot, Zero-Shot-CoT, Manual-CoT, Auto-CoT) across four challenging reasoning benchmarks.
  • The paper shows that ZEUS methods either match or exceed the accuracy of baseline strategies without requiring manual annotations.
  • ZEUS demonstrates high sensitivity in distinguishing between helpful and redundant questions, with its confidence scoring method showing a sensitivity coefficient closer to the ideal value of one compared to a temperature-based approach.
  • Analysis of selection strategies reveals that advanced models (GPT-40, Phi3, GPT-3.5) benefit more from "Hard" and "Challenging" questions, while simpler models (Mistral, GPT3-XL) perform better with "Trivial" and "Easy" questions.

Limitations and Future Work

  • Exhaustive Strategy Exploration: The current approach requires exploring multiple selection strategies, which can be time-consuming. The authors suggest automating this with a greedy search algorithm based on uncertainty.
  • Dataset Attributes: The reliance on uncertainty estimates from unlabeled questions doesn't account for dataset attributes like diversity or size, which could influence estimates and lead to suboptimal strategy selection. Future work should explore these effects.

Summary updated

BibTeX
@inproceedings{kumar2025enhancing,
  author = {Shanu Kumar and Saish Mendke and Karody Lubna Abdul Rahman and Santosh Kurasa and Parag Agrawal and Sandipan Dandapat},
  title = {{Enhancing Zero-shot Chain of Thought Prompting via Uncertainty-Guided Strategy Selection}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
}
Figure