ReasoningFlow: 理解LLM推理轨迹的话语结构
ReasoningFlow: Discourse Structures for Understanding LLM Reasoning Traces
AI总结:
提出ReasoningFlow框架,将大推理模型的推理轨迹建模为细粒度有向无环图,通过人工和自动标注分析发现模型间结构相似性、多样化推理行为及错误步骤与最终答案的关系。
摘要:
大型推理模型(LRMs)产生的推理轨迹具有非线性结构,如回溯和自我修正,这使推理过程的评估和监控复杂化。我们引入ReasoningFlow,一个将LRM推理轨迹的话语结构捕捉为细粒度有向无环图(DAGs)的框架。我们通过仔细的人工标注31条轨迹(2.1k步)来开发和验证我们的标注方案,实现了高标注者间一致性,然后扩展到自动标注1,260条轨迹(247.7k步),涵盖三个任务(数学、科学、论证)和五个模型(Qwen2.5-32B-Inst、QwQ-32B、DeepSeek-V3、DeepSeek-R1、GPT-oss-120B)。通过分析ReasoningFlow图,我们发现:(1)LRMs表现出结构相似的轨迹,尽管它们基于不同的基础模型训练且可能使用不重叠的后训练数据。(2)ReasoningFlow揭示了多样的细粒度推理行为(例如局部验证、自我反思和假设),可用于更好的推理轨迹可监控性。(3)在LRMs中,大多数错误步骤不用于推导最终答案。(4)步骤之间的机械因果依赖关系不反映语言层面的话语结构。我们在https://github.com/jinulee-v/reasoningflow 发布数据集和代码。
英文摘要:
Large reasoning models (LRMs) produce reasoning traces with non-linear structures, such as backtracking and self-correction, that complicate the evaluation and monitoring of the reasoning process. We introduce ReasoningFlow, a framework that captures the discourse structures of LRM reasoning traces into fine-grained directed acyclic graphs (DAGs). We develop and validate our annotation schema through careful manual annotation of 31 traces (2.1k steps), achieving high inter-annotator agreement, then scale to automatic annotation of 1,260 traces (247.7k steps) spanning three tasks (math, science, argumentation) and five models (Qwen2.5-32B-Inst, QwQ-32B, DeepSeek-V3, DeepSeek-R1, GPT-oss-120B). By analyzing ReasoningFlow graphs, we find: (1) LRMs exhibit structurally similar traces, despite being trained from different base models and potentially non-overlapping post-training data. (2) ReasoningFlow reveals diverse fine-grained reasoning behaviors (e.g., local verification, self-reflection, and assumptions) that can be used for better reasoning trace monitorability. (3) In LRMs, most of the erroneous steps are not used to derive final answers. (4) Mechanistic causal dependencies between steps do not reflect the language-level discourse structure. We release the dataset and code in: https://github.com/jinulee-v/reasoningflow.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。