Self-Para-Consistency: Improving Reasoning Tasks at Low Cost for Large Language Models
Abstract
Large Language Models (LLMs) often require multiple reasoning paths to solve complex tasks, a technique known as Self-Consistency (SC). However, SC typically relies on stochastic sampling, which introduces noise and high computational costs. We present Self-Para-Consistency (SPC), a novel decoding strategy that leverages input-level diversity through paraphrasing while maintaining high output quality via greedy decoding. SPC achieves state-of-the-art reasoning performance on benchmarks like GSM8K and GSMHARD with significantly fewer computational resources than traditional SC.
Introduction
Large Language Models (LLMs) have demonstrated remarkable capabilities in multi-step reasoning. To enhance performance on complex tasks, researchers frequently employ Self-Consistency (SC). In this approach, a model generates numerous reasoning paths (often 40 or more) for a single prompt using non-greedy sampling. The final answer is then determined by a majority vote.
While effective, SC suffers from a significant efficiency bottleneck. To ensure diversity, it relies on sampling, which frequently produces low-probability and low-quality reasoning paths. Consequently, a high volume of samples is required to filter out the noise, leading to increased latency and computational expense. Self-Para-Consistency (SPC) addresses this by shifting the source of diversity from the model's output generation to the input prompt itself.
Methodology: Diversity via Paraphrasing
The core innovation of Self-Para-Consistency is the replacement of stochastic sampling with input-level paraphrasing combined with high-quality greedy decoding. The process follows three distinct stages:
- Paraphrasing: The LLM is first prompted to generate $k-1$ paraphrased versions of the original input question.
- Greedy Reasoning: For the original question and each of the $k-1$ paraphrases, the model generates a reasoning path using greedy decoding. By selecting the most likely token at each step, the model produces its most "confident" and typically highest-quality reasoning for that specific phrasing.
- Majority Vote: The final output is selected by performing a majority vote across the answers derived from all $k$ reasoning paths.
By exploiting the known sensitivity of LLMs to prompt phrasing—often considered a weakness—SPC turns this variability into a tool for exploring different "local optima" in the reasoning space without the quality degradation associated with random sampling.
Implementation and the "Concatenation Trick"
A critical technical challenge in paraphrasing is "information decay," where a rephrased question might inadvertently omit a vital piece of data (e.g., a specific numerical value). To mitigate this, the authors implement a concatenation trick: when the model generates a reasoning path for a paraphrase, the prompt includes both the original question and the rephrased version. This allows the model to cross-reference the original text if the paraphrase is ambiguous.
Experimental Evaluation
The researchers evaluated SPC across five reasoning benchmarks, including in-distribution math problems (GSM8K, SVAMP, ASDIV), out-of-distribution (OOD) numerical tasks (GSMHARD), and symbolic reasoning (DATE).
Key Results: * Efficiency Gains: On the GSM8K dataset, SPC achieved 83.8% accuracy using only 3 samples ($k=3$), outperforming standard Self-Consistency which required 10 samples to reach 83.4%. * Robustness in OOD Scenarios: The method proved particularly effective on GSMHARD, where numbers are replaced with much larger values. SPC improved the baseline by 9.5 points and outperformed the best standard SC configuration by nearly 6 points. * Generalization: SPC yielded the highest scores across 4 out of 5 datasets while consistently requiring fewer total reasoning paths than traditional baselines.
Conclusion and Future Work
Self-Para-Consistency demonstrates that input diversity is a powerful and cost-effective alternative to output sampling for complex reasoning. By using greedy decoding on a small set of paraphrased prompts, LLMs can achieve higher accuracy with a fraction of the token generation required by standard methods.
Future research may explore "paraphrase verifiers" to ensure the fidelity of generated questions or hybrid approaches that combine paraphrasing with limited sampling to further optimize the trade-off between reasoning diversity and computational cost.
Summary updated