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

ReJump:一种用于分析和改进LLM推理的树跳表示

ReJump: A Tree-Jump Representation for Analyzing and Improving LLM Reasoning

UW-Madison(威斯康星大学麦迪逊分校);Microsoft Research(微软研究院);FuriosaAI;Seoul National University(首尔国立大学);KRAFTON

Yuchen Zeng, Shuibai Zhang, Wonjun Kang, Shutong Wu, Lynnix Zou, Ying Fan, Heeju Kim, Ziqian Lin, Jungtaek Kim, Hyung Il Koo, Dimitris Papailiopoulos, Kangwook Lee

AI总结:

ReJump通过树跳表示分析和改进LLM推理,揭示不同任务下的推理行为差异及学习策略的影响。

摘要:

大型推理模型(LRMs)是专门训练以生成长形式思考链(CoTs)的大型语言模型(LLMs),在数学和编程等挑战性任务上取得了显著成功。然而,其底层推理“算法”仍缺乏深入理解。为此,我们提出了ReJump,它将推理轨迹表示为对中间问题解决步骤树中节点的访问顺序。节点间的转换,我们称之为跳跃,包括相邻移动以捕捉计算行为,以及非相邻移动以捕捉回溯和验证行为。ReJump使能够使用多种指标分析LLM推理,这些指标量化了探索、利用、过度思考、遗忘和验证。通过我们提出的LLM代理将推理轨迹提取为ReJump格式,我们评估了最先进的LRMs在两个任务上的表现,并发现具有相似准确度的模型可以表现出不同的推理行为,而不同任务则偏好不同的推理风格(例如,探索与利用之间的平衡差异)。为了进一步理解学习策略如何塑造推理,我们使用ReJump比较了压缩的LRMs与其教师CoT提示的LLMs,以及检查推理示例数量和强化学习如何影响推理行为。最后,我们展示了ReJump可以通过如ReJump引导的最佳N选择和提示选择等策略在测试时提高推理质量。我们的代码可在https://github.com/UW-Madison-Lee-Lab/ReJump上公开获取。

英文摘要:

Large Reasoning Models (LRMs) are Large Language Models (LLMs) explicitly trained to generate long-form Chain-of-Thoughts (CoTs), achieving impressive success on challenging tasks like math and programming. However, their underlying reasoning "algorithms" remain poorly understood. To investigate this, we propose ReJump, which represents a reasoning trace as a visitation order over nodes in a tree of intermediate problem-solving steps. Transitions between nodes, which we term jumps, include adjacent moves that capture behaviors such as calculation, and non-adjacent moves that capture behaviors such as backtracking and verification. ReJump enables analyzing LLM reasoning with diverse metrics that quantify exploration, exploitation, overthinking, forgetting, and verification. Using our proposed LLM agent to extract reasoning traces into ReJump format, we evaluate state-of-the-art LRMs on two tasks and find that models with similar accuracy can exhibit distinct reasoning behaviors, while different tasks favor different reasoning styles (e.g., varying balance between exploration and exploitation). To further understand how learning strategies shape reasoning, we use ReJump to compare distilled LRMs with their teachers, CoT-prompted LLMs with LRMs, and to examine how the number of reasoning examples and reinforcement learning affect reasoning behavior. Finally, we show that ReJump can improve reasoning quality at test time through strategies such as ReJump-guided Best-of-N selection and prompt selection. Our code is publicly available at https://github.com/UW-Madison-Lee-Lab/ReJump.

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

↑