96kevinli29's picture
Link to the 1K subset
b3df665 verified
|
Raw History Blame Contribute Delete
4.52 kB
metadata
license: apache-2.0
language:
  - en
pretty_name: Annotated Long-CoT Math 71K
size_categories:
  - 10K<n<100K
task_categories:
  - text-generation
tags:
  - reasoning
  - chain-of-thought
  - long-cot
  - math
  - distillation
  - sft
  - process-supervision
  - annotated
  - cot-analysis
  - reasoning-structure
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*.parquet

Annotated Long-CoT Math 71K

71,194 long math reasoning traces (40,009 problems, all verified correct), with every paragraph of the thinking labeled. Traces come from Qwen3.8-27B in thinking mode. Built for studying chain-of-thought, and usable as-is for long-CoT SFT.

The labels

Each paragraph gets a path (where it sits on the way to the answer) and a function (what the model is doing).

Path Meaning
M main path What the final derivation uses, plus setup / restating / planning before the answer
A abandoned Explicitly given up, or a wrong computation later redone
D dead end Explored before the answer but never used
P post-answer Re-checks, alternative proofs, write-up planning after the answer was first reached
Function Meaning
SU setup Restate the problem, define variables
PL plan Decide what to do next
RC recall Bring in a known fact or theorem
CP compute Carry out a calculation or derivation
EX explore Try an idea or approach
VF verify Check a result
MB monitor Doubt, notice an error, decide to go back
CS consolidate Summarize what has been found
AN answer State the answer

Flags: E math error · R redundant · L mentions hidden settings or meta instructions.

Quick start

from datasets import load_dataset
ds = load_dataset("SeaFill2025/Annotated-Long-CoT-Math-71K", split="train")

ex = ds[0]
for n in ex["nodes"]:                                   # labeled spans of paragraphs
    text = "".join(ex["thinking_paragraphs"][n["p_start"]:n["p_end"] + 1])
    print(n["path"], n["label"], text[:80])

sft_text = f"<think>\n{''.join(ex['thinking_paragraphs']).strip()}\n</think>\n\n{ex['final_response']}"

Fields

Field Content
problem, gold_answer, teacher_answer Problem, reference answer, teacher's answer
thinking_paragraphs, final_response Full thinking split into paragraphs; the written solution after it
nodes Labeled spans: p_start, p_end, path, label (function), deps (earlier nodes used), flags
answer_paragraph, main_path_uses Where the answer is first reached; paragraphs the final derivation relies on
exploration_share, post_answer_share (+ abandoned_share, deadend_share) Share of the thinking (by characters) on each path
method, outline One-line approach summary; segment-level map for long traces
difficulty, teacher_accuracy, source, n_tokens, length_bin Easy / medium / hard by teacher accuracy over 8 samples, and metadata

At a glance

Traces Median tokens Traces with a dropped path Thinking after the answer
Easy 28,121 1,791 20% 37%
Medium 38,019 4,117 50% 33%
Hard 5,054 5,494 65% 30%

How it was made

Problems: NuminaMath-1.5 and DeepMath-103K, deduplicated and decontaminated against MATH-500, AIME 2024–2026, AMC 2023/2025, HMMT 2025–2026, BeyondAIME and MATH-Beyond. Traces: Qwen3.8-27B, thinking mode, temperature 1.0, 16k-token cap, graded with math-verify. Labels: Qwen3.8-27B-FP8 in thinking mode; long traces are outlined first, then labeled in 40-paragraph chunks. Checked against GPT-6.1 Sol on 100 pilot traces (paragraph-level F1 0.73 for dropped-before-answer steps). Labels are model annotations: paths are the most reliable part; A vs D and function labels are approximate.

A 1,000-trace subset (medium and hard problems, browsable online): Annotated-Long-CoT-Math-1K. Project page: https://seafill.info/ThoughtAtlas/

Citation

@misc{li2026annotatedlongcot71k,
  title        = {Annotated Long-CoT Math 71K},
  author       = {Li, Hongyang and Hong, Kyungmin and Li, Xiao and Wu, Caesar and Bouvry, Pascal and {SeaFill Open-Source Team}},
  year         = {2026},
  publisher    = {Hugging Face},
  howpublished = {\url{https://huggingface.co/datasets/SeaFill2025/Annotated-Long-CoT-Math-71K}}
}