Make Every Penny Count: Difficulty-Adaptive Self-Consistency for Cost-Efficient Reasoning

Xinglin Wang, Shaoxiong Feng, Yiwei Li, Peiwen Yuan, Yueqi Zhang +4 more
8/24/2024
cs.CLcs.AI

No official code found. Best implementation: WangXinglin/DSC (8 stars, last commit 2025-02-13).

Abstract

Self-consistency (SC), a widely used decoding strategy for chain-of-thought reasoning, shows significant gains across various multi-step reasoning tasks but comes with a high cost due to multiple sampling with the preset size. Its variants, Adaptive self-consistency (ASC) and Early-stopping self-consistency (ESC), dynamically adjust the number of samples based on the posterior distribution of a set of pre-samples, reducing the cost of SC with minimal impact on performance. Both methods, however, do not exploit the prior information about question difficulty. It often results in unnecessary repeated sampling for easy questions that could be accurately answered with just one attempt, wasting resources. To tackle this problem, we propose Difficulty-Adaptive Self-Consistency (DSC), which leverages the difficulty information of batch queries from both prior and posterior perspectives to adaptively allocate inference resources, further reducing the overall cost of SC. To demonstrate the effectiveness of DSC, we conduct extensive experiments on three popular categories of reasoning tasks: arithmetic, commonsense and symbolic reasoning on six benchmarks. The empirical results show that DSC consistently surpasses the strong baseline ASC and ESC in terms of costs by a significant margin, while attaining comparable performances.

View on arXivView PDF

Code Implementations(1)

WangXinglin/DSCCommunity53%

code for NAACL2025 Findings paper "Make Every Penny Count: Difficulty-Adaptive Self-Consistency for Cost-Efficient Reasoning"

80PythonFeb 11, 20251 years ago

Similar Papers

Cite this paper

@article{wang2024make,
  title  = {Make Every Penny Count: Difficulty-Adaptive Self-Consistency for Cost-Efficient Reasoning},
  author = {Xinglin Wang and Shaoxiong Feng and Yiwei Li and Peiwen Yuan and Yueqi Zhang and Chuyi Tan and Boyuan Pan and Yao Hu and Kan Li},
  year   = {2024},
  eprint = {2408.13457},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.13457v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.13457.svg)](https://codeofpaper.com/paper/2408.13457)

Discussion