The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationError
Exception: TypeError
Message: Couldn't cast array of type
struct<annotator: string, batch: int64, domain: string, generator: string, is_human_annotated: bool, source: string>
to
{'batch': Value('int64'), 'domain': Value('string'), 'generator': Value('string'), 'annotator': Value('string'), 'question_id': Value('string'), 'correct_answer': Value('string'), 'topic': Value('string'), 'correctness': Value('bool'), 'is_human_annotated': Value('bool')}
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1835, in _prepare_split_single
for key, table in generator:
^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 621, in wrapped
for item in generator(*args, **kwargs):
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 361, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2381, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2315, in cast_table_to_schema
cast_array_to_feature(
~~~~~~~~~~~~~~~~~~~~~^
table[name] if name in table_column_names else pa.array([None] * len(table), type=schema.field(name).type),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
feature,
^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 1861, in wrapper
return pa.chunked_array([func(chunk, *args, **kwargs) for chunk in array.chunks])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2161, in cast_array_to_feature
raise TypeError(f"Couldn't cast array of type\n{_short_str(array.type)}\nto\n{_short_str(feature)}")
TypeError: Couldn't cast array of type
struct<annotator: string, batch: int64, domain: string, generator: string, is_human_annotated: bool, source: string>
to
{'batch': Value('int64'), 'domain': Value('string'), 'generator': Value('string'), 'annotator': Value('string'), 'question_id': Value('string'), 'correct_answer': Value('string'), 'topic': Value('string'), 'correctness': Value('bool'), 'is_human_annotated': Value('bool')}
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1887, in _prepare_split_single
raise DatasetGenerationError("An error occurred while generating the dataset") from e
datasets.exceptions.DatasetGenerationError: An error occurred while generating the datasetNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
doc_id string | raw_text dict | metadata dict | nodes list | edges list |
|---|---|---|---|---|
aime2024_0_DeepSeek-R1 | {
"question": "Let $x,y$ and $z$ be positive real numbers that satisfy the following system of equations: \n\\[\\log_2\\left({x \\over yz}\\right) = {1 \\over 2}\\]\n\\[\\log_2\\left({y \\over xz}\\right) = {1 \\over 3}\\]\n\\[\\log_2\\left({z \\over xy}\\right) = {1 \\over 4}\\]\nThen the value of $\\left|\\log_2(x^... | {
"batch": 0,
"domain": "aime2024",
"generator": "DeepSeek-R1",
"annotator": "gemini-3.1-pro-preview",
"question_id": "aime2024-0",
"correct_answer": "33",
"topic": "math",
"correctness": true,
"is_human_annotated": false
} | [
{
"id": "ctx0",
"annotation": false,
"start": 0,
"end": 242,
"label": "context",
"text": "Let $x,y$ and $z$ be positive real numbers that satisfy the following system of equations: \n\\[\\log_2\\left({x \\over yz}\\right) = {1 \\over 2}\\]\n\\[\\log_2\\left({y \\over xz}\\right) = {1 \\over ... | [
{
"id": "e0",
"source_node_id": "ctx0",
"dest_node_id": "resp1",
"label": "reason:restate"
},
{
"id": "e1",
"source_node_id": "ctx1",
"dest_node_id": "resp1",
"label": "reason:restate"
},
{
"id": "e2",
"source_node_id": "ctx1",
"dest_node_id": "resp2",
"label"... |
aime2024_0_DeepSeek-V3 | {
"question": "Let $x,y$ and $z$ be positive real numbers that satisfy the following system of equations: \n\\[\\log_2\\left({x \\over yz}\\right) = {1 \\over 2}\\]\n\\[\\log_2\\left({y \\over xz}\\right) = {1 \\over 3}\\]\n\\[\\log_2\\left({z \\over xy}\\right) = {1 \\over 4}\\]\nThen the value of $\\left|\\log_2(x^... | {
"batch": 0,
"domain": "aime2024",
"generator": "DeepSeek-V3",
"annotator": "gemini-3.1-pro-preview",
"question_id": "aime2024-0",
"correct_answer": "33",
"topic": "math",
"correctness": true,
"is_human_annotated": false
} | [
{
"id": "ctx0",
"annotation": false,
"start": 0,
"end": 242,
"label": "context",
"text": "Let $x,y$ and $z$ be positive real numbers that satisfy the following system of equations: \n\\[\\log_2\\left({x \\over yz}\\right) = {1 \\over 2}\\]\n\\[\\log_2\\left({y \\over xz}\\right) = {1 \\over ... | [
{
"id": "e0",
"source_node_id": "ctx0",
"dest_node_id": "resp0",
"label": "reason:restate"
},
{
"id": "e1",
"source_node_id": "ctx0",
"dest_node_id": "resp1",
"label": "reason:restate"
},
{
"id": "e2",
"source_node_id": "ctx1",
"dest_node_id": "resp2",
"label"... |
aime2024_0_QwQ-32B | {"question":"Let $x,y$ and $z$ be positive real numbers that satisfy the following system of equatio(...TRUNCATED) | {"batch":0,"domain":"aime2024","generator":"QwQ-32B","annotator":"gemini-3.1-pro-preview","question_(...TRUNCATED) | [{"id":"ctx0","annotation":false,"start":0,"end":242,"label":"context","text":"Let $x,y$ and $z$ be (...TRUNCATED) | [{"id":"e0","source_node_id":"ctx0","dest_node_id":"resp0","label":"reason:restate"},{"id":"e1","sou(...TRUNCATED) |
aime2024_0_Qwen2.5-32B-Instruct | {"question":"Let $x,y$ and $z$ be positive real numbers that satisfy the following system of equatio(...TRUNCATED) | {"batch":0,"domain":"aime2024","generator":"Qwen2.5-32B-Instruct","annotator":"gemini-3.1-pro-previe(...TRUNCATED) | [{"id":"ctx0","annotation":false,"start":0,"end":242,"label":"context","text":"Let $x,y$ and $z$ be (...TRUNCATED) | [{"id":"e0","source_node_id":"ctx0","dest_node_id":"resp0","label":"reason:restate"},{"id":"e1","sou(...TRUNCATED) |
aime2024_0_gpt-oss-120b | {"question":"Let $x,y$ and $z$ be positive real numbers that satisfy the following system of equatio(...TRUNCATED) | {"batch":0,"domain":"aime2024","generator":"gpt-oss-120b","annotator":"gemini-3.1-pro-preview","ques(...TRUNCATED) | [{"id":"ctx0","annotation":false,"start":0,"end":242,"label":"context","text":"Let $x,y$ and $z$ be (...TRUNCATED) | [{"id":"e0","source_node_id":"ctx0","dest_node_id":"resp1","label":"reason:restate"},{"id":"e1","sou(...TRUNCATED) |
aime2024_10_DeepSeek-R1 | {"question":"Find the largest possible real part of \\[(75+117i)z + \\frac{96+144i}{z}\\] where $z$ (...TRUNCATED) | {"batch":10,"domain":"aime2024","generator":"DeepSeek-R1","annotator":"gemini-3.1-pro-preview","ques(...TRUNCATED) | [{"id":"ctx0","annotation":false,"start":0,"end":117,"label":"context","text":"Find the largest poss(...TRUNCATED) | [{"id":"e0","source_node_id":"ctx0","dest_node_id":"resp0","label":"plan:proceed"},{"id":"e1","sourc(...TRUNCATED) |
aime2024_10_DeepSeek-V3 | {"question":"Find the largest possible real part of \\[(75+117i)z + \\frac{96+144i}{z}\\] where $z$ (...TRUNCATED) | {"batch":10,"domain":"aime2024","generator":"DeepSeek-V3","annotator":"gemini-3.1-pro-preview","ques(...TRUNCATED) | [{"id":"ctx0","annotation":false,"start":0,"end":117,"label":"context","text":"Find the largest poss(...TRUNCATED) | [{"id":"e0","source_node_id":"ctx0","dest_node_id":"resp1","label":"reason:restate"},{"id":"e1","sou(...TRUNCATED) |
aime2024_10_QwQ-32B | {"question":"Find the largest possible real part of \\[(75+117i)z + \\frac{96+144i}{z}\\] where $z$ (...TRUNCATED) | {"batch":10,"domain":"aime2024","generator":"QwQ-32B","annotator":"gemini-3.1-pro-preview","question(...TRUNCATED) | [{"id":"ctx0","annotation":false,"start":0,"end":117,"label":"context","text":"Find the largest poss(...TRUNCATED) | [{"id":"e0","source_node_id":"ctx0","dest_node_id":"resp0","label":"reason:restate"},{"id":"e1","sou(...TRUNCATED) |
aime2024_10_Qwen2.5-32B-Instruct | {"question":"Find the largest possible real part of \\[(75+117i)z + \\frac{96+144i}{z}\\] where $z$ (...TRUNCATED) | {"batch":10,"domain":"aime2024","generator":"Qwen2.5-32B-Instruct","annotator":"gemini-3-flash-previ(...TRUNCATED) | [{"id":"ctx0","annotation":false,"start":0,"end":117,"label":"context","text":"Find the largest poss(...TRUNCATED) | [{"id":"e0","source_node_id":"ctx0","dest_node_id":"resp0","label":"reason:restate"},{"id":"e1","sou(...TRUNCATED) |
aime2024_10_gpt-oss-120b | {"question":"Find the largest possible real part of \\[(75+117i)z + \\frac{96+144i}{z}\\] where $z$ (...TRUNCATED) | {"batch":10,"domain":"aime2024","generator":"gpt-oss-120b","annotator":"gemini-3.1-pro-preview","que(...TRUNCATED) | [{"id":"ctx0","annotation":false,"start":0,"end":117,"label":"context","text":"Find the largest poss(...TRUNCATED) | [{"id":"e0","source_node_id":"ctx0","dest_node_id":"resp1","label":"reason:restate"},{"id":"e1","sou(...TRUNCATED) |
jinulee-v/reasoningflow(複製)
データの内容
LLM の推論トレースを有向非巡回グラフ(DAG)に変換して注釈を付けたデータ。ノードは計画・事実・推論・反省などの推論の単位、エッジはノード間の推論・計画・反省の関係を表す。対象は AIME 2024 の数学、GPQA-Diamond の科学、ArgKP の論証の 3 領域(金融は含まない)で、千数百件のトレースのうち人手の注釈は 31 件だけであり、残りは Gemini のパイプラインによる自動注釈とカードに記されている。
データの概要
| 項目 | 値 |
|---|---|
| 行数・列数 | 不明(データセットビューアで読めない形式。ファイルの内訳だけを示す) |
| 容量 | 115.94 MB(ファイル 4 本) |
| ファイルの形式 | jsonl 2 |
| 言語 | en |
| 公開 | public |
全データセットの一覧は HYUKI5/dataset-catalog にある。
複製について
jinulee-v/reasoningflow をリビジョン 0b98f82b2cb39ae98ca49223284f25ecf9be3d19 の時点でそのまま複製したもの。中身は変えていない。判断モデル Laya(convaiinnovations/laya)の微調整に使う候補として、調査メモ(Laya 学習用データセット調査)に載せたデータを集めている。
出典
- 元のデータセット: https://huggingface.co/datasets/jinulee-v/reasoningflow
- 複製したリビジョン:
0b98f82b2cb39ae98ca49223284f25ecf9be3d19(2026-06-07 08:07:02+00:00) - 元のライセンス表記:
apache-2.0
論文
アノテーションの方法
アノテーションの過程
手作業のアノテーションは、4 人の著者が 31 件のトレース(2,100 ステップ)に対して行った。アノテーター間の一致度は、ノードの分類とエッジの検出・分類の両方について、Krippendorff's α > 0.80 で検証された。
自動アノテーションは、Gemini モデルを用いる 3 段階の LLM パイプラインで行われた:
- ノードの分割。生のトレースを基本的なステップに分割する。
- ノードの分類。9 種類のノード型のいずれかを割り当てる。
- エッジの検出と分類。ノード間の関係を特定し、型を付ける。
自動アノテーションは、手作業による金標準に対して、ノード分類で F1 = 0.865、エッジ分類で F1 = 0.646 を達成した。
微調整に使うときの注意
- 調査メモの台帳での区分: B(継承条件・gated・モデル由来の条件・上流の規約などが付く)。区分は記載の文言で機械的に付けたもので、法的な判定ではない。学習に入れる前に元のカードとライセンスの原文で確かめる。
- Laya の入力は 2,048 token まで(ModernBERT-large / mmBERT)。長い本文は先頭から黙って切られるので、切れる行は事前に除くか、要約・切り出しをしてから入れる。
- 分割は記事・文書単位で行い、同じ本文から作った別の問いを学習側と較正側に分けない。温度と閾値は学習に使っていない分割で別々に当てる。
調査メモの記述
| メモ | 節 | ライセンス(記載) | 確認 | 注記 |
|---|---|---|---|---|
reasoning_process_labels.md |
Q3. 思考の「行動・構造」(検証・後戻り・計画・反省など)を文や節の単位で付けたデータは何があるか (L82) | apache-2.0 | 確認済 | 生成元モデルの出力規約が別に及ぶ(Q4) / 原文注記: 人手が 31 本しかなく、大半は LLM 注釈。数学・科学・論題の 3 領域のみ(金融は無い) |
元のカード(日本語訳)
以下は元のデータセットのカードの本文を日本語に訳したもの(機械翻訳)。訳に疑問があるときは、末尾の原文を確かめる。
ReasoningFlow
ReasoningFlow は、LLM の推論トレースに、きめ細かな有向非巡回グラフ(DAG)としてアノテーションを付けたデータセットである。バックトラック、自己修正、局所的な検証、仮定の適用範囲の設定といった非線形な推論の振る舞いについて、その談話構造を捉える。
このデータセットは次の論文に付随する:
ReasoningFlow: Discourse Structures for Understanding LLM Reasoning Traces (2025)
データセットの要約
大規模推論モデル(LRM)は、豊かな内部構造を持つ長い推論トレースを生成する。その構造は、文より細かい単位で評価・監視することが難しい。ReasoningFlow は、生の推論トレースを構造化された DAG に変換することでこの問題に対処する。各ノードは基本的な推論ステップであり、各エッジはステップ同士の意味的な関係を符号化する。
このデータセットは 5 つの LLM にまたがる 3 つのタスク領域を扱い、合計でアノテーション済みトレース 1,291 件、約249,800 の推論ステップを含む。
| Split | Traces | Steps (approx.) | Annotation |
|---|---|---|---|
| 人手アノテーション | 31 | 2,100 | 手作業 |
| LLM アノテーション | 1,260 | 247,700 | 自動(Gemini パイプライン) |
ドメインとモデル
タスク領域:
| Domain | Description | # Problems |
|---|---|---|
aime2024 |
AIME 2024 の競技数学 | 30 |
gpqa-diamond |
GPQA-Diamond の科学問題(物理、化学、生物) | 198 |
argkp |
ArgKP の論証。24 の議論のあるトピックに対する立場の選択 | 24 |
対象の LLM:
| Model | Type |
|---|---|
| DeepSeek-R1 (671B) | 推論モデル |
| QwQ-32B | 推論モデル |
| GPT-oss-120B | 推論モデル |
| DeepSeek-V3 (671B) | 標準モデル |
| Qwen2.5-32B-Instruct | 標準モデル |
データ構造
各レコードは、次のフィールドを持つグラフとして、アノテーション済みの推論トレース 1 件を表す。
{
"doc_id": str, # Unique identifier: "{domain}_{problem_id}_{model}_{trace_id}"
"raw_text": dict, # Original text segments keyed by node id
"metadata": dict, # Domain, generator model, batch, human-annotation flag, etc.
"nodes": list, # List of node objects (see Node Types below)
"edges": list, # List of edge objects (see Edge Types below)
}
ノードの型
各ノードは、推論トレースの連続した重ならない区間で、意味上の役割を持つものを表す。
| Type | Color | Description |
|---|---|---|
context |
灰色 | モデルに与えられた問題文や背景 |
planning |
赤 | これから続くことを導入する。高レベルの目標、サブゴールへの移行、バックトラックの促し |
fact |
橙 | 文脈にはない外部のパラメトリックな知識(定理、定数、定義) |
reasoning |
黄 | 演繹・帰納・アブダクションによる推論のステップと計算 |
restatement |
緑 | 先行するノードの言い換えまたは写し。新しい情報は含まない |
assumption |
薄緑 | 後続のステップの適用範囲を定めるために使われる、明示的に仮置きされた前提 |
example |
シアン | 一般的な概念を例示する具体的な事例 |
reflection |
青 | 先行するノードに対する主観的な意見(不確かさ、誤りのシグナル、満足) |
conclusion |
紫 | 提案された答え。途中段階のものでも最終のものでもよい |
エッジの型
エッジは、ノード間の型付きの意味的関係を符号化する。4 つの系統に分かれる。
Reason エッジは論理的な前提と結論の関係:
| Edge | Description |
|---|---|
reason:infer |
前提 → 結論(演繹、帰納、アブダクション) |
reason:execute |
計画ノード → その実装 |
reason:restate |
元のノード → そのノードの言い換え |
reason:elaborate-fact |
一般的な事実 → より具体的な関連する事実 |
reason:exemplify |
抽象的な概念 → その具体例 |
Plan エッジは計画の構造:
| Edge | Description |
|---|---|
plan:proceed |
次の計画ノードを動機づけるステップ |
plan:verify |
検証されているノード → 検証を開始する計画ノード |
plan:decompose |
粗い計画 → より細かいサブプラン |
plan:backtrack |
計画ノード → その代替となる計画ノード |
Reflect エッジは評価的な立場:
| Edge | Description |
|---|---|
reflect:positive |
先行するノードを肯定する |
reflect:uncertain |
あるノードについて、不確かさ、混乱、確信のなさを表す |
reflect:negative |
先行するノードを否定的に評価する |
Validate エッジはステップ間の命題の整合性:
| Edge | Description |
|---|---|
validate:support |
独立に導かれた 2 つのノードが同じ命題を主張する |
validate:attack |
互いに矛盾する命題を主張する 2 つのノード |
アノテーションの過程
手作業のアノテーションは、4 人の著者が 31 件のトレース(2,100 ステップ)に対して行った。アノテーター間の一致度は、ノードの分類とエッジの検出・分類の両方について、Krippendorff's α > 0.80 で検証された。
自動アノテーションは、Gemini モデルを用いる 3 段階の LLM パイプラインで行われた:
- ノードの分割。生のトレースを基本的なステップに分割する。
- ノードの分類。9 種類のノード型のいずれかを割り当てる。
- エッジの検出と分類。ノード間の関係を特定し、型を付ける。
自動アノテーションは、手作業による金標準に対して、ノード分類で F1 = 0.865、エッジ分類で F1 = 0.646 を達成した。
使い方
from datasets import load_dataset
ds = load_dataset("jinulee-v/reasoningflow")
# Access a training example
example = ds["train"][0]
print(example["doc_id"]) # e.g., "aime2024_3_DeepSeek-R1_0"
print(len(example["nodes"])) # Number of nodes in this trace
print(len(example["edges"])) # Number of edges in this trace
# Iterate over nodes
for node in example["nodes"]:
print(node["type"], node["text"][:80])
# Iterate over edges
for edge in example["edges"]:
print(edge["label"], edge["src"], "→", edge["dst"])
主な知見
アノテーション済みデータセットの分析から、LRM の振る舞いについていくつかの知見が得られた:
- 構造の収束: 推論モデル(DeepSeek-R1、QwQ-32B、GPT-oss-120B)は、推論モデルでないモデルよりも、推論トレースの構造がはるかに似ている(JS ダイバージェンス 0.010 対 0.083)。
- きめ細かな振る舞いが、推論トレースの監視可能性に新たな面を与える: ReasoningFlow は、局所的な検証、自己内省、仮定などの多くのきめ細かな振る舞いを特徴づけられる。これらは、複雑な推論トレースを監視・評価するために使える。
- ほとんどの誤りは誤った最終答えを導かない: 誤りのあるノードのうち、誤った最終答えへ因果的に伝播するのは 14.4% にすぎない。
- 談話構造と機構的構造はずれている: 機構的な因果依存関係(Thought Anchors; Bogdan et al., 2025)は、ReasoningFlow が捉えるテキストレベルの談話構造とは一致しない。
引用
@misc{lee2026reasoningflow,
title = {ReasoningFlow: Discourse Structures for Understanding LLM Reasoning Tracess},
author = {Jinu Lee, Shivam Agarwal, Amruta Parulekar, Siddarth Madala, Dilek Hakkani-Tur, Julia Hockenmaier},
year = {2026},
eprint = {2606.05402},
archivePrefix= {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2606.05402},
}
ライセンス
このデータセットは Apache 2.0 License の下で公開される。
原文(英語)
ReasoningFlow
ReasoningFlow is a dataset of LLM reasoning traces annotated as fine-grained directed acyclic graphs (DAGs), capturing the discourse structure of non-linear reasoning behaviors such as backtracking, self-correction, local verification, and assumption-scoping.
This dataset accompanies the paper:
ReasoningFlow: Discourse Structures for Understanding LLM Reasoning Traces (2025)
Dataset Summary
Large reasoning models (LRMs) produce long reasoning traces with rich internal structure that is difficult to evaluate or monitor at the sub-sentence level. ReasoningFlow addresses this by converting raw reasoning traces into structured DAGs, where each node is an elementary reasoning step and each edge encodes a semantic relationship between steps.
The dataset covers three task domains across five LLMs, with a total of 1,291 annotated traces comprising approximately 249,800 reasoning steps.
| Split | Traces | Steps (approx.) | Annotation |
|---|---|---|---|
| Human-annotated | 31 | 2,100 | Manual |
| LLM-annotated | 1,260 | 247,700 | Automatic (Gemini pipeline) |
Domains and Models
Task domains:
| Domain | Description | # Problems |
|---|---|---|
aime2024 |
AIME 2024 competition mathematics | 30 |
gpqa-diamond |
GPQA-Diamond science questions (physics, chemistry, biology) | 198 |
argkp |
ArgKP argumentation — stance selection on 24 debatable topics | 24 |
LLMs covered:
| Model | Type |
|---|---|
| DeepSeek-R1 (671B) | Reasoning model |
| QwQ-32B | Reasoning model |
| GPT-oss-120B | Reasoning model |
| DeepSeek-V3 (671B) | Standard model |
| Qwen2.5-32B-Instruct | Standard model |
Data Structure
Each record represents one annotated reasoning trace as a graph with the following fields:
{
"doc_id": str, # Unique identifier: "{domain}_{problem_id}_{model}_{trace_id}"
"raw_text": dict, # Original text segments keyed by node id
"metadata": dict, # Domain, generator model, batch, human-annotation flag, etc.
"nodes": list, # List of node objects (see Node Types below)
"edges": list, # List of edge objects (see Edge Types below)
}
Node Types
Each node represents a contiguous, non-overlapping segment of the reasoning trace with a semantic role:
| Type | Color | Description |
|---|---|---|
context |
Gray | Problem statement or background provided to the model |
planning |
Red | Introduces what will follow; high-level goals, subgoal transitions, backtracking prompts |
fact |
Orange | External parametric knowledge not present in context (theorems, constants, definitions) |
reasoning |
Yellow | Deductive/inductive/abductive inference steps and calculations |
restatement |
Green | Paraphrase or copy of a previous node with no new information |
assumption |
Light green | Explicitly tentative premise used to scope subsequent steps |
example |
Cyan | A specific instance that illustrates a general concept |
reflection |
Blue | Subjective opinion on a previous node (uncertainty, error signal, satisfaction) |
conclusion |
Purple | A proposed answer — intermediate or final |
Edge Types
Edges encode typed semantic relationships between nodes, organized into four families:
Reason edges — logical premise-conclusion relationships:
| Edge | Description |
|---|---|
reason:infer |
Premise(s) → conclusion (deductive, inductive, abductive) |
reason:execute |
Planning node → its implementation |
reason:restate |
Source node → restatement of that node |
reason:elaborate-fact |
General fact → more specific linked fact |
reason:exemplify |
Abstract concept → a specific example of it |
Plan edges — planning structure:
| Edge | Description |
|---|---|
plan:proceed |
Steps that motivate the next planning node |
plan:verify |
A node that is being verified → the verification-initiating planning node |
plan:decompose |
A coarse plan → its finer subplans |
plan:backtrack |
A planning node → its alternative planning node |
Reflect edges — evaluative stances:
| Edge | Description |
|---|---|
reflect:positive |
Affirms a previous node |
reflect:uncertain |
Expresses uncertainty, confusion, or lack of confidence about a node |
reflect:negative |
Negatively evaluates a previous node |
Validate edges — cross-step propositional consistency:
| Edge | Description |
|---|---|
validate:support |
Two independently-derived nodes that assert the same proposition |
validate:attack |
Two nodes that assert mutually inconsistent/contradictory propositions |
Annotation Process
Manual annotation was performed by four authors on 31 traces (2,100 steps). Inter-annotator agreement was validated with Krippendorff's α > 0.80 for both node classification and edge detection/classification.
Automatic annotation was performed with a three-stage LLM pipeline using Gemini models:
- Node segmentation — splitting the raw trace into elementary steps
- Node classification — assigning one of the 9 node types
- Edge detection and classification — identifying and typing relationships between nodes
Automatic annotation achieved F1 = 0.865 for node classification and F1 = 0.646 for edge classification against the manual gold standard.
Usage
from datasets import load_dataset
ds = load_dataset("jinulee-v/reasoningflow")
# Access a training example
example = ds["train"][0]
print(example["doc_id"]) # e.g., "aime2024_3_DeepSeek-R1_0"
print(len(example["nodes"])) # Number of nodes in this trace
print(len(example["edges"])) # Number of edges in this trace
# Iterate over nodes
for node in example["nodes"]:
print(node["type"], node["text"][:80])
# Iterate over edges
for edge in example["edges"]:
print(edge["label"], edge["src"], "→", edge["dst"])
Key Findings
Analysis of the annotated dataset reveals several insights about LRM behavior:
- Structural convergence: Reasoning models (DeepSeek-R1, QwQ-32B, GPT-oss-120B) exhibit significantly more similar reasoning-trace structures than non-reasoning models (JS-divergence 0.010 vs. 0.083).
- Fine-grained behaviors expose new surface for reasoning trace monitorability: ReasoningFlow can characterize many fine-grained behaviors, such as local verification, self-reflection, and assumptions, which can be used to monitor and evaluate complex reasoning traces.
- Most errors do not derive incorrect final answers: Only 14.4% of erroneous nodes causally propagate to incorrect final answers.
- Discourse structures and mechanistic structures misalign: Mechanistic causal dependencies (Thought Anchors; Bogdan et al., 2025) do not align with text-level discourse structure as captured by ReasoningFlow.
Citation
@misc{lee2026reasoningflow,
title = {ReasoningFlow: Discourse Structures for Understanding LLM Reasoning Tracess},
author = {Jinu Lee, Shivam Agarwal, Amruta Parulekar, Siddarth Madala, Dilek Hakkani-Tur, Julia Hockenmaier},
year = {2026},
eprint = {2606.05402},
archivePrefix= {arXiv},
primaryClass = {cs.CL},
url = {https://arxiv.org/abs/2606.05402},
}
License
This dataset is released under the Apache 2.0 License.
- Downloads last month
- 48