ReasoningFlow 解决了LRM推理轨迹难以评估和监控的痛点,做模型可解释性、推理质量分析的团队可以直接用开源工具和数据集来深入分析模型行为。
大型推理模型(LRM)产生的推理轨迹具有非线性结构(如回溯和自我修正),增加了评估和监控的难度。ReasoningFlow 框架将这些轨迹转化为细粒度的有向无环图(DAG),通过人工标注31条轨迹(2100步)验证了标注方案,并自动标注了1260条轨迹(247,700步),涵盖数学、科学和论证三个任务及五种模型。分析发现:不同LRM的推理结构相似;错误步骤大多不用于推导最终答案;机制性因果依赖与语言层面的话语结构不一致。该框架提升了推理过程的可监控性,数据集和代码已开源。
ReasoningFlow: Discourse Structures for Understanding LLM Reasoning Traces
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.