NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Analyzing Chain-of-thought Prompting in Black-Box Large Language Models via Estimated V-information

Zecheng Wang, Chunshan Li, Zhao Yang, Qingbin Liu, Yanchao Hao, Xi Chen, Dianhui Chu, Dianbo SuiCOLING 2024

Abstract

Chain-of-Thought (CoT) prompting combined with large language models (LLM) has shown great potential in improving performance on challenging reasoning tasks. While understanding why CoT prompting is effective is crucial for the application and improvement of CoT prompting, few studies have addressed this issue. Besides, almost no prior work has conducted theoretical analysis on CoT prompting in the context of black-box models. In this paper, we approach the analysis of CoT prompting in black-box LLMs from an information-theoretic perspective. Specifically, we propose a new metric, EPVI (Estimated Pointwise V-Information), which extends the concept of pointwise V-information to black-box models, quantifying the label-relevant new information introduced by CoT prompting beyond the pre-existing information in the input. Based on this, we conduct a series of experiments at both the task and instance levels to analyze CoT prompting, demonstrating that the effectiveness of CoT prompting can be attributed to its capacity to influence the difficulty of model inference by augmenting or reducing the model-usable information. Furthermore, we show that selecting high-quality demonstrations of CoT reasoning based on EPVI can improve the downstream performance of reasoning tasks.

Introduction

Chain-of-Thought (CoT) prompting—encouraging models to generate intermediate reasoning steps—has become a cornerstone of modern LLM interaction. Despite its empirical success, the theoretical underpinnings of why it works remain elusive, particularly for "black-box" models where internal token probabilities are restricted. Traditional information-theoretic analysis requires full access to the model's vocabulary distribution, a luxury not available with proprietary APIs like GPT-4. This research bridges this gap by introducing a framework to measure the informativeness of reasoning chains without internal model access.

Methodology: Quantifying Informativeness with EPVI

The authors introduce Estimated Pointwise $\mathcal{V}$-Information (EPVI) to quantify the "useful" information a reasoning chain ($z$) adds to a prompt ($x$) to predict a label ($y$). EPVI measures the change in the model's ability to predict the correct answer when provided with the reasoning chain versus the question alone.

Conceptual framework of EPVI quantifying label-relevant information in reasoning chains.

To handle the limitations of black-box APIs, which typically only return the top-$k$ tokens, the authors employ the Zipf-Mandelbrot distribution. This power-law distribution allows for the estimation of the probability of target tokens that fall outside the provided top-$k$ results. The EPVI for a reasoning chain $z$ is calculated as the log-space difference between the probability of the correct answer given the question plus reasoning, and the probability given the question alone. A positive EPVI indicates the reasoning chain made the answer more accessible, effectively reducing the task's difficulty.

Experimental Results

The metric was validated across several benchmarks, including GSM8k, AQuA, and MultiArith. Statistical validation using LLaMA-1 models as "proxy" white-boxes confirmed that EPVI is a reliable surrogate for true Pointwise $\mathcal{V}$-Information, with T-tests showing no significant difference between the estimated and true values.

Performance Gains via EPVI Selection

One of the most significant findings is that EPVI can be used as a selection criterion for reasoning chains. By generating multiple candidate chains and selecting the one with the Highest-EPVI, the model's final accuracy improves dramatically compared to standard greedy decoding.

Performance comparison of Highest-EPVI selection against Greedy and Random baselines across three datasets.

As shown in the results, Highest-EPVI selection reached 69.30% accuracy on GSM8k, a substantial leap from the 45.35% achieved by greedy decoding. Similar trends were observed in AQuA and MultiArith, where the performance reached near-perfect levels (98.50%).

Insights and Discussion

The study reveals that CoT prompting acts as an information modulator. High-quality reasoning chains provide label-relevant information that simplifies the inference process. Conversely, "negative EPVI" instances occur when a model hallucinates, introducing noise that makes the correct answer harder to reach than with the raw input alone. Analysis of low-EPVI samples suggests that failures are often due to simple execution errors rather than logic failures.

Furthermore, the authors applied EPVI to In-Context Learning (ICL). By selecting few-shot demonstrations with high EPVI, they observed accuracy improvements of 9.3% on GSM8k and 14.06% on MultiArith over random selection. This suggests that the "quality" of a demonstration is directly tied to the amount of usable information it provides to the model.

Conclusion

This work provides a robust theoretical framework for analyzing black-box LLMs. While currently focused on zero-shot reasoning in math and logic, the performance gains suggest that EPVI-based selection is a powerful tool for maximizing LLM reasoning capabilities. Future research could extend EPVI to more subjective domains and complex few-shot paradigms.

Summary updated

BibTeX
@inproceedings{wang2024analyzing,
  author = {Zecheng Wang and Chunshan Li and Zhao Yang and Qingbin Liu and Yanchao Hao and Xi Chen and Dianhui Chu and Dianbo Sui},
  title = {{Analyzing Chain-of-thought Prompting in Black-Box Large Language Models via Estimated V-information}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=7QuSCjkh1y},
}

Loading related content...

Figure