When is the consistent prediction likely to be a correct prediction?

Alex Nguyen, Dheeraj Mekala, Chengyu Dong, Jingbo ShangarXiv 2024 · DOI

Abstract

Self-consistency, or majority voting across multiple model outputs, has become a standard technique for improving reasoning in Large Language Models (LLMs). However, not all consistent predictions are equally reliable. This paper investigates the relationship between response length and accuracy, revealing that longer reasoning chains—even when generated spontaneously without explicit Chain-of-Thought (CoT) prompting—are significantly more likely to be correct. By filtering for longer responses, the authors bridge 86% of the performance gap between standard zero-shot and zero-shot CoT prompting on mathematical benchmarks.

Introduction

In the current LLM paradigm, "Self-Consistency" assumes that if a model converges on an answer across multiple sampling paths, that answer is likely correct. However, models often "blurt out" answers immediately or provide shallow reasoning that happens to be consistent but incorrect. Researchers at UC San Diego challenge the simple majority rule, arguing that "computational effort"—represented by the number of tokens generated—is a crucial indicator of whether a model actually reasoned through a problem or merely guessed.

Methodology

The study evaluated performance across two open-source models, Mixtral-8x7B and Llama-2 70B, using three primary prompting strategies:

  1. ZEROSHOT: Standard prompting with only the question.
  2. ZEROSHOT-COT: The "Let’s think step by step" approach.
  3. ZEROSHOT-LENGTH (Proposed): Standard prompting, but only considering responses that exceed a specific length threshold (e.g., >60 tokens).

To analyze the data, responses were categorized into buckets based on token length. A stronger model (Llama-3-Chat-70B) was used as an auditor to classify whether responses were "CoT-style" (reasoning before the answer) or "Blurt-style" (answer first).

Spontaneous Reasoning and the "Blurt" Problem

A key finding is that LLMs do not strictly require a "think step by step" prompt to engage in reasoning. If sampled enough times, models occasionally generate CoT-style reasoning spontaneously. These spontaneous chains are highly correlated with correct answers. Conversely, models have a high propensity to "blurt" the answer in the first few tokens, which leads to significantly lower accuracy even when the answer is consistent across samples.

Percentage of spontaneous Chain-of-Thought (CoT) reasoning as a function of token length on the GSM8k dataset.

As shown in the figure above, there is a direct correlation between the length of the generated text and the frequency of spontaneous CoT. In discriminative tasks like sentiment analysis, models tend to be "lazier," blurting labels immediately, whereas generative tasks like math problems see a higher benefit from increased token length.

Results: Length as a Proxy for Accuracy

The researchers found a clear positive correlation between reasoning length and the likelihood of correctness. In the GSM8K dataset, the accuracy of the most consistent answer for Mixtral jumped from approximately 10% for short responses to 25% for responses in the 80-100 token range.

Accuracy of the most consistent prediction vs. token length for Mixtral-8x7B and Llama-2 70B models on GSM8k.

By simply filtering for these longer responses (ZEROSHOT-LENGTH), the researchers achieved 86% of the performance of explicit ZEROSHOT-COT on math benchmarks. This suggests that the probability of an answer being correct given it followed a CoT ($p(Correct | CoT)$) is consistently higher than when the answer is blurted ($p(Correct | Blurt)$) across all tested datasets.

Conclusion and Future Directions

While effective, the primary limitation of this approach is computational efficiency; the probability of an LLM generating a long, reasoning-heavy response without being prompted to do so is low, requiring hundreds of samples to reach consistency thresholds. The authors advocate for new decoding strategies that move beyond brute-force sampling. Future work should focus on "length-conditioned" decoding—forcing models to generate reasoning tokens before committing to a final answer—providing the benefits of CoT without the need for manual prompt engineering.

Summary updated

BibTeX
@misc{nguyen2024when,
  author = {Alex Nguyen and Dheeraj Mekala and Chengyu Dong and Jingbo Shang},
  title = {{When is the consistent prediction likely to be a correct prediction?}},
  year = {2024},
  eprint = {2407.05778},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.05778},
}
Figure