ReasoningFlow: Discourse Structures for Understanding LLM Reasoning Traces

Jinu Lee, Shivam Agarwal, Amruta Parulekar, Siddarth Madala, Dilek Hakkani-Tur +1 more
6/3/2026
7 citations
cs.CLcs.AI

Official code: jinulee-v/reasoningflow (4 stars, Python, last commit 2026-10-17).

Abstract

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).

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

42Python, HTMLApr 4, 20251 months ago

Similar Papers

Cite this paper

@article{lee2026reasoningflow,
  title  = {ReasoningFlow: Discourse Structures for Understanding LLM Reasoning Traces},
  author = {Jinu Lee and Shivam Agarwal and Amruta Parulekar and Siddarth Madala and Dilek Hakkani-Tur and Julia Hockenmaier},
  year   = {2026},
  eprint = {2606.05402},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.05402v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.05402.svg)](https://codeofpaper.com/paper/2606.05402)

Discussion