arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.01935cs.AI
收藏

批判性思考:哪些类型的复杂度决定了最优推理长度?

Critical Thinking: Which Kinds of Complexity Govern Optimal Reasoning Length?

Cornell University(康奈尔大学);Harvard University(哈佛大学)

Celine Lee, Alexander M. Rush, Keyon Vafa

AI总结:

本研究利用确定性有限自动机形式化任务复杂度,发现最优推理token数量由底层DFA运行长度而非状态空间大小决定,预测并过滤非最优长度答案可显著提升准确率。

摘要:

大型语言模型(LLMs)通常受益于推理时的语言化推理,但目前尚不清楚这些额外的推理token解决了任务难度的哪些方面。为了研究这个问题,我们使用确定性有限自动机(DFAs)形式化了一个框架。DFAs提供了一种形式化方法,使我们能够通过可测量的属性来刻画任务复杂度,例如运行长度(所需的推理步数)和状态空间大小(决策复杂度)。我们首先表明,在不同的任务和不同规模及训练范式的模型中,存在一个最优的推理token数量,使得产生正确解的概率最大化。然后,我们研究了哪些复杂度属性决定了这个关键长度:我们发现,具有更长对应底层DFA运行(即需要更大的潜在状态跟踪需求)的任务实例与更长的推理长度相关,但令人惊讶的是,DFA大小(即状态空间复杂度)并不相关。接着,我们展示了这些发现的一个启示:能够预测新问题的最优推理token数量并过滤掉非最优长度的答案,会带来一致的准确率提升。

英文摘要:

Large language models (LLMs) often benefit from verbalized reasoning at inference time, but it remains unclear which aspects of task difficulty these extra reasoning tokens address. To investigate this question, we formalize a framework using deterministic finite automata (DFAs). DFAs offer a formalism through which we can characterize task complexity through measurable properties such as run length (number of reasoning steps required) and state-space size (decision complexity). We first show that across different tasks and models of different sizes and training paradigms, there exists an optimal amount of reasoning tokens such that the probability of producing a correct solution is maximized. We then investigate which properties of complexity govern this critical length: we find that task instances with longer corresponding underlying DFA runs (i.e. demand greater latent state-tracking requirements) correlate with longer reasoning lengths, but, surprisingly, that DFA size (i.e. state-space complexity) does not. We then demonstrate an implication of these findings: being able to predict the optimal number of reasoning tokens for new problems and filtering out non-optimal length answers results in consistent accuracy improvements.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑