Optimal Self-Consistency for Efficient Reasoning with Large Language Models
Abstract
Lay Summary
One approach to increasing LLM performance is to generate many answers per user prompt and aggregate them. Self-Consistency (SC), a popular instance of this idea, samples n responses per question and returns the most frequent answer. While effective, SC is notoriously expensive, multiplying inference costs many times over. Until now, there was also no clear theory explaining how SC accuracy on datasets improves with more answers. This paper draws on ideas from voting theory and statistics to show that Self-Consistency error follows power-law patterns. We explore the theory of several variants of SC and prove how to spend limited budgets more efficiently by investing more attempts on difficult questions. From these insights, we introduce Blend-ASC, a method that determines on the fly how much each question needs. Unlike other variants of SC, our method requires no tuning and fits any user budget.