--- license: apache-2.0 language: - en pretty_name: Annotated Long-CoT Math 1K size_categories: - n<1K task_categories: - text-generation tags: - reasoning - chain-of-thought - long-cot - math - annotated - reasoning-structure - cot-analysis - step-labels - process-supervision - distillation - sft configs: - config_name: math_1k data_files: - split: train path: data/math_1k.parquet default: true --- # Annotated Long-CoT Math 1K **1,000 long math reasoning traces with every paragraph of the thinking labeled — a compact set for studying chain-of-thought.** Traces come from Qwen3.8-27B in thinking mode; all answers are verified correct. Medium (632) and hard (368) problems only, spread across short, medium and long traces (median 5,413 tokens; 61% contain a dropped path). Every trace can be browsed online at https://seafill.info/ThoughtAtlas/. It is a subset of the full release, with identical labels; for training-scale data see [Annotated-Long-CoT-Math-71K](https://huggingface.co/datasets/SeaFill2025/Annotated-Long-CoT-Math-71K) (71,194 traces). ## 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 ```python from datasets import load_dataset ds = load_dataset("SeaFill2025/Annotated-Long-CoT-Math-1K", 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]) # only the main-path paragraphs main = [p for n in ex["nodes"] if n["path"] == "M" for p in ex["thinking_paragraphs"][n["p_start"]:n["p_end"] + 1]] ``` ## What it is useful for - Measuring how much of a long trace is exploration, dead ends or post-answer checking. - Training or evaluating step-level classifiers and process reward models. - Pruning or compressing long traces by role before distillation. ## Fields | Field | Content | |---|---| | `problem`, `gold_answer`, `teacher_answer`, `is_correct` | Problem, reference answer, teacher's answer, match | | `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), `branch`, `flags` | | `method`, `exploration_share` | One-line approach summary; share of the thinking (by characters) on dropped paths (`A` + `D`) | | `difficulty`, `length_bin`, `n_tokens`, `teacher`, `annotator` | Metadata | ## How it was made Problems: NuminaMath-1.5 and DeepMath-103K, deduplicated and decontaminated against common math benchmarks. 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. The labeling procedure was 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. ## Citation ```bibtex @misc{li2026annotatedlongcot1k, title = {Annotated Long-CoT Math 1K}, 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-1K}} } ``` *Formerly ThoughtAtlas-1K; old links redirect here.*