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

读心术:利用思维树预测推理模型在编码任务上的准确性

Playing Psychic: Using Thought Trees to Predict Reasoning Models Accuracy on Coding Tasks

University of California, Berkeley(加州大学伯克利分校)

Jiaxin Fang, Runyuan He, Sahil Bhatia, Neel Gajare, Alvin Cheung

AI总结:

本文通过系统研究前沿推理模型在真实世界编码基准上的表现,提出利用结构化思维树来表示推理轨迹,并通过轻量级分类器预测轨迹正确性,从而提升编码任务的准确性。

摘要:

最近大型语言模型(LLMs)的进步表明,在复杂任务上,测试时的扩展可以显著提高模型性能,特别是在编码领域。在此范式下,模型在生成最终答案前会使用更大的标记预算来生成中间推理轨迹。然而,当前评估主要依赖于竞争编程基准,这可能无法全面捕捉推理能力。在本文中,我们对前沿推理模型进行了系统研究,以了解其在真实世界编码基准上的表现。为了更深入地了解此类模型的性能,我们设计了一种程序化方法,自动从现有基准中生成任意难度和结构的编码任务。使用此框架,我们的分析揭示出推理轨迹的结构,而非其内容,是正确性的强预测因素。受此启发,我们提出结构化思维树作为表示推理轨迹的手段。为了说明其用途,我们训练了一个轻量级分类器,在提取自思维树的特征上进行预测,以预测轨迹正确性,并展示基于提取特征标记和重试结构异常轨迹,能在较低复杂度级别获得一致的提升。

英文摘要:

Recent advances in large language models (LLMs) have shown that test-time scaling can substantially improve model performance on complex tasks, particularly in the coding domain. Under this paradigm, models use a larger token budget during inference to generate intermediate reasoning traces before producing a final answer. However, current evaluations primarily rely on competitive programming benchmarks, which may not capture the full range of reasoning abilities. In this work, we perform a systematic study of frontier reasoning models to understand their performance on real-world coding benchmarks. To gain more insights into the performance of such models, we devise a programmatic way to {\em automatically generate} coding tasks of arbitrary difficulty and structure from existing benchmarks. Using this framework, our analysis reveals that the structure of a reasoning trace, not just its contents, is a strong predictor of correctness. Motivated by this, we propose structured thought-trees as means to represent reasoning traces. To illustrate their use, we train a lightweight classifier on features extracted from thought-trees to predict trace correctness, and demonstrate that flagging and retrying structurally anomalous traces based on the extracted features yields consistent gains at lower complexity levels.

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

↑