|
Download README.md from huangwux/training-dynamic-math-data: direct link, hf CLI and curl.
- Browser
- Download file 11.7 kB
-
https://huggingface.co/datasets/huangwux/training-dynamic-math-data/resolve/main/README.md
- Command line
-
hf download hf://datasets/huangwux/training-dynamic-math-data/README.md
-
curl -L -o README.md https://huggingface.co/datasets/huangwux/training-dynamic-math-data/resolve/main/README.md
11.7 kB
| language: | |
| - en | |
| - zh | |
| license: other | |
| task_categories: | |
| - question-answering | |
| - text-generation | |
| size_categories: | |
| - 1K<n<10K | |
| tags: | |
| - math | |
| - olympiad-math | |
| - reasoning | |
| - training-dynamics | |
| - distillation | |
| - sft | |
| - grpo | |
| - rlvr | |
| - qwen3.5 | |
| pretty_name: Training Dynamics Math Dataset (Problems, Teacher Solutions, SFT/GRPO Pools & Diagnostics) | |
| configs: | |
| - config_name: problems_variants | |
| default: true | |
| data_files: | |
| - split: train | |
| path: data/problems_variants.parquet | |
| - config_name: problems_focus12 | |
| data_files: | |
| - split: train | |
| path: data/problems_focus12.parquet | |
| - config_name: problems_eval_base | |
| data_files: | |
| - split: train | |
| path: data/problems_eval_base.parquet | |
| - config_name: problems_solved25 | |
| data_files: | |
| - split: train | |
| path: data/problems_solved25.parquet | |
| - config_name: problems_general64 | |
| data_files: | |
| - split: train | |
| path: data/problems_general64.parquet | |
| - config_name: census3000_minus80 | |
| data_files: | |
| - split: train | |
| path: data/census3000_minus80.parquet | |
| - config_name: teacher_solutions_focus12 | |
| data_files: | |
| - split: train | |
| path: data/teacher_solutions_focus12.parquet | |
| - config_name: teacher_solutions_variants | |
| data_files: | |
| - split: train | |
| path: data/teacher_solutions_variants.parquet | |
| - config_name: teacher_attempts | |
| data_files: | |
| - split: train | |
| path: data/teacher_attempts.parquet | |
| - config_name: sft_datasets | |
| data_files: | |
| - split: train | |
| path: data/sft_datasets.parquet | |
| - config_name: exp1_item4_prefix_sources | |
| data_files: | |
| - split: train | |
| path: data/exp1_item4_prefix_sources.parquet | |
| - config_name: exp2_prefix_items_all4 | |
| data_files: | |
| - split: train | |
| path: data/exp2_prefix_items_all4.parquet | |
| - config_name: exp1_item1_answer_logprob | |
| data_files: | |
| - split: train | |
| path: data/exp1_item1_answer_logprob.parquet | |
| - config_name: exp1_item2_q397_tf | |
| data_files: | |
| - split: train | |
| path: data/exp1_item2_q397_tf.parquet | |
| # Training Dynamics Math Dataset: Controlled Olympiad Variants, Teacher Solutions, SFT/GRPO Pools & Diagnostics | |
| A curated, lightweight (~60 MB) benchmark and diagnostic dataset for studying post-training dynamics (supervised fine-tuning, teacher distillation, and GRPO / RLVR) on hard Olympiad-level mathematics problems. | |
| All structured tables are stored as Zstd-compressed Parquet files under `data/` and are directly browseable in the **Hugging Face Dataset Viewer** above. | |
| ## Highlights | |
| - **Base student model**: `Qwen3.5-4B` (max context `262,144` tokens) | |
| - **Teacher model**: `Qwen3.5-397B` (`thinking=True`) | |
| - **4 core target problems** (0% base `Qwen3.5-4B` pass rate across 10,000+ rollouts) paired with **175 programmatically parameterized variants**, verified dual-method solutions, base-model `pass@128` statistics (`22,400` rollouts), and `Qwen3.5-397B` teacher solutions (`397` verified solutions across `909` total generation attempts): | |
| | Family ID | Domain | Controlled Variants | Base `Qwen3.5-4B` Solved Variants (`pass@128`) | `Qwen3.5-397B` Teacher Solved Variants | | |
| |---|---|---:|---:|---:| | |
| | `0f93eced8c73` | Paper-folding / combinatorics | 40 | 14 / 40 (`221 / 5,120` rollouts) | 40 / 40 | | |
| | `9539d6240741` | Combinatorics / tiling & tree DP | 38 | 30 / 38 (`1,242 / 4,864` rollouts) | 38 / 38 | | |
| | `33575742d64f` | Combinatorial optimization | 42 | 20 / 42 (`824 / 5,376` rollouts) | 31 / 42 | | |
| | `06c097899c8d` | Euclidean geometry / inversion | 55 | 3 / 55 (`3 / 7,040` rollouts) | 50 / 55 | | |
| --- | |
| ## 1. Quick Start | |
| ### Option A: Load with `datasets` (recommended) | |
| ```python | |
| from datasets import load_dataset | |
| # 1. Default table: 4 parent targets + 175 controlled variants (with base-4B pass@128 & teacher stats) | |
| variants = load_dataset("huangwux/training-dynamic-math-data", "problems_variants", split="train") | |
| # 2. Verified Qwen3.5-397B teacher solutions (92 on Focus-12 targets, 305 on controlled variants) | |
| teacher_f12 = load_dataset("huangwux/training-dynamic-math-data", "teacher_solutions_focus12", split="train") | |
| teacher_var = load_dataset("huangwux/training-dynamic-math-data", "teacher_solutions_variants", split="train") | |
| # 3. All 909 raw Qwen3.5-397B teacher attempts (both correct and incorrect) | |
| attempts = load_dataset("huangwux/training-dynamic-math-data", "teacher_attempts", split="train") | |
| # 4. Curated SFT training sets across all 4 families x 4 data conditions (648 rows) | |
| sft = load_dataset("huangwux/training-dynamic-math-data", "sft_datasets", split="train") | |
| # 5. Teacher-prefix continuation evaluation items across all 4 core families (221 rows) | |
| prefix_items = load_dataset("huangwux/training-dynamic-math-data", "exp2_prefix_items_all4", split="train") | |
| ``` | |
| ### Option B: Load directly with `pandas` | |
| ```python | |
| import pandas as pd | |
| df = pd.read_parquet("hf://datasets/huangwux/training-dynamic-math-data/data/problems_variants.parquet") | |
| print(df[["parent_id", "variant_id", "split", "base4b_pass_rate", "teacher_solved_count"]].head()) | |
| ``` | |
| ### Option C: Download full repository (including raw JSONL, GRPO pools, milestone detectors & snapshots) | |
| ```python | |
| from huggingface_hub import snapshot_download | |
| local_dir = snapshot_download( | |
| repo_id="huangwux/training-dynamic-math-data", | |
| repo_type="dataset", | |
| ) | |
| ``` | |
| --- | |
| ## 2. Structured Parquet Tables (`data/`) | |
| | Config Name | File | Rows | Size | Key Columns / Description | | |
| |---|---|---:|---:|---| | |
| | `problems_variants` *(default)* | `data/problems_variants.parquet` | 179 | 33 KB | `parent_id`, `variant_id`, `is_parent`, `split`, `size_rank`, `question`, `user_prompt`, `ground_truth`, `params_json`, `method_{1,2}_{algorithm,result}`, `base4b_{n,dapo_correct,verify_correct,pass_rate,tokens_p50,p90,max}`, `teacher_solved_count` | | |
| | `problems_focus12` | `data/problems_focus12.parquet` | 12 | 14 KB | 12 zero-base-accuracy focus problems (`short_id`, `is_core4`, `question`, `ground_truth`, base-4B `pass@128` stats, `teacher_solved_count`) | | |
| | `problems_eval_base` | `data/problems_eval_base.parquet` | 243 | 25 KB | Unified evaluation suite: `4` target originals + `129` train variants + `46` held-out variants + `64` general math controls (`pid`, `user`, `answer`, `parent`, `split`, `role`, `n`) | | |
| | `problems_solved25` | `data/problems_solved25.parquet` | 25 | 18 KB | 25 base-solvable control math problems (`set`, `pid`, `question`, `user`, `answer`) | | |
| | `problems_general64` | `data/problems_general64.parquet` | 64 | 19 KB | 64 general math retention controls (`32` boundary + `32` solvable) | | |
| | `census3000_minus80` | `data/census3000_minus80.parquet` | 2,920 | 107 KB | Base `Qwen3.5-4B` `pass@128` census statistics (`question_id`, `base4b_math_dapo_correct_of_128`, `base4b_math_verify_correct_of_128`, `base4b_context_limit_of_128`, `in_training_pool`) | | |
| | `teacher_solutions_focus12` | `data/teacher_solutions_focus12.parquet` | 92 | 1.2 MB | All 92 verified `Qwen3.5-397B` teacher solutions across Focus-12, with full `reasoning` and `content` traces, token counts, and judge verdicts | | |
| | `teacher_solutions_variants` | `data/teacher_solutions_variants.parquet` | 305 | 3.9 MB | All 305 verified `Qwen3.5-397B` teacher solutions across the 175 variants (`214` across 3 families + `91` geometry) | | |
| | `teacher_attempts` | `data/teacher_attempts.parquet` | 909 | 14.5 MB | All 909 raw `Qwen3.5-397B` generation attempts (correct + incorrect) across `focus12` (`240`), `variants_3fam` (`377`), and `variants_geom` (`292`) | | |
| | `sft_datasets` | `data/sft_datasets.parquet` | 648 | 3.2 MB | Curated SFT training rows across all 4 families × 4 conditions (`family`, `condition`, `pid`, `user`, `answer`, `response_text`, `source`, `target`) | | |
| | `exp1_item4_prefix_sources` | `data/exp1_item4_prefix_sources.parquet` | 310 | 1.5 MB | Source trajectories for teacher-prefix continuation evaluation (`key`, `pid`, `user`, `answer`, `source`, `group`, `text`) | | |
| | `exp2_prefix_items_all4` | `data/exp2_prefix_items_all4.parquet` | 221 | 1.0 MB | Milestone-boundary prefix-continuation items across all 4 core families (`key`, `pid`, `route`, `milestone`, `milestone_id`, `prefix_text`, `n`) | | |
| | `exp1_item1_answer_logprob` | `data/exp1_item1_answer_logprob.parquet` | 657 | 73 KB | Diagnostic items for answer-token log-probability measurements (`key`, `pid`, `user`, `resp`, `meta`) | | |
| | `exp1_item2_q397_tf` | `data/exp1_item2_q397_tf.parquet` | 50 | 373 KB | Diagnostic items for `Qwen3.5-397B` teacher-forcing cross-entropy measurements | | |
| ### SFT Training Condition Breakdown (`sft_datasets` & `raw_jsonl/sft_datasets/`) | |
| | Family | `target` | `varsmall` | `varonly` | `vartarget` | | |
| |---|---:|---:|---:|---:| | |
| | `0f93eced8c73` | 8 | 42 | 60 | 68 | | |
| | `9539d6240741` | 8 | 38 | 54 | 62 | | |
| | `33575742d64f` | 2 | 36 | 45 | 47 | | |
| | `06c097899c8d` | 8 | 26 | 68 | 76 | | |
| --- | |
| ## 3. Repository Structure | |
| ```text | |
| . | |
| ├── README.md | |
| ├── data/ # 14 Zstd Parquet tables (Hugging Face Dataset Viewer ready) | |
| ├── raw_jsonl/ | |
| │ ├── problems/ # Original JSON/JSONL problem lists (variants, solved25, general64, eval_base) | |
| │ ├── eval_suites/{0f93,9539,3357,06c0}/ # Per-family eval.jsonl & eval_pass2.jsonl | |
| │ ├── sft_datasets/{0f93,9539,3357,06c0}/ # Exact 16 .sft.jsonl training files | |
| │ ├── grpo_data/ # GRPO training pools (vonly & vplus) & train.parquet (0f93, 9539, 3357) | |
| │ └── teacher_summaries/ # Aggregated summary JSONs for focus12, variants_3fam, variants_geom | |
| ├── diagnostics/ | |
| │ ├── exp2_milestones/{0f93,9539,3357,06c0}/ # Curated milestone definitions (milestones.md) & rule-based detectors (detect.py) | |
| │ ├── exp1_item4/ # Prefix-continuation evaluation plans & counts | |
| │ └── pspace_specs/ # Parameter-space interpolation / layer-ablation specs & prefix lists | |
| └── results_snapshot/ # Experiment 3 SFT / TracInCP / weight-trajectory readings snapshot | |
| ├── sft_runs/ # 18 run summaries (configs, train logs, first-correct events) | |
| ├── linescan/0f93_varonly_s0_step20/ # 5-point linear interpolation summary | |
| ├── tracin/ # 20 TracInCP checkpoint attribution JSONs (0f93 & 9539, steps 4..40) | |
| ├── params/ # Weight-space trajectory & cross-family cosine/norm JSONs | |
| └── forward/9539d6240741_tsd_varonly_s0/ # Teacher-forcing forward-pass readings (base + steps 4..40) | |
| ``` | |
| --- | |
| ## 4. Usage & Data Notes | |
| - **Lightweight packaging**: Multi-GB raw per-token student rollout dumps are excluded to keep download size fast (~60 MB total). Their aggregated pass rates, token-length quantiles, and judge counts are preserved directly in `problems_variants` (`base4b_*` columns) and `results_snapshot/`. | |
| - **JSONL parsing**: A small number of model responses contain Unicode line separator characters (`\u2028`). All Parquet tables in `data/` are already cleanly parsed with strict `\n` splitting. When reading raw `.jsonl` files directly in Python, split lines on `"\n"` rather than `.splitlines()`. | |
| - **Anonymized paths**: File paths inside archived training configs, experiment specs, and diagnostic scripts have been sanitized to `<PROJECT_ROOT>`, `<EXP_ROOT>`, and `<SAMPLES_DIR>`. | |
| - **License & usage**: Shared publicly for academic research and reproducibility. Source math problems originate from open math benchmarks and synthetic programmatic variants; teacher outputs were generated with `Qwen3.5-397B`. | |