--- license: mit language: - en pretty_name: "Same Content, Different Format: worked-example data" configs: - config_name: train data_files: data/train.jsonl - config_name: holdout data_files: data/holdout.jsonl - config_name: near_transfer data_files: data/near_transfer.jsonl - config_name: gsm8k_test data_files: data/gsm8k_test.jsonl - config_name: samples_holdout_open data_files: - split: base path: samples/holdout/open/base.jsonl - split: bare path: samples/holdout/open/bare.jsonl - split: complete path: samples/holdout/open/complete.jsonl - split: fade_ordered path: samples/holdout/open/fade_ordered.jsonl - split: fade_shuffled path: samples/holdout/open/fade_shuffled.jsonl - split: bare_pm path: samples/holdout/open/bare_pm.jsonl - split: complete_pm path: samples/holdout/open/complete_pm.jsonl - config_name: samples_holdout_direct data_files: - split: base path: samples/holdout/direct/base.jsonl - split: bare path: samples/holdout/direct/bare.jsonl - split: complete path: samples/holdout/direct/complete.jsonl - split: fade_ordered path: samples/holdout/direct/fade_ordered.jsonl - split: fade_shuffled path: samples/holdout/direct/fade_shuffled.jsonl - split: bare_pm path: samples/holdout/direct/bare_pm.jsonl - split: complete_pm path: samples/holdout/direct/complete_pm.jsonl - config_name: samples_near_transfer_open data_files: - split: base path: samples/near_transfer/open/base.jsonl - split: bare path: samples/near_transfer/open/bare.jsonl - split: complete path: samples/near_transfer/open/complete.jsonl - split: fade_ordered path: samples/near_transfer/open/fade_ordered.jsonl - split: fade_shuffled path: samples/near_transfer/open/fade_shuffled.jsonl - split: bare_pm path: samples/near_transfer/open/bare_pm.jsonl - split: complete_pm path: samples/near_transfer/open/complete_pm.jsonl - config_name: samples_near_transfer_direct data_files: - split: base path: samples/near_transfer/direct/base.jsonl - split: bare path: samples/near_transfer/direct/bare.jsonl - split: complete path: samples/near_transfer/direct/complete.jsonl - split: fade_ordered path: samples/near_transfer/direct/fade_ordered.jsonl - split: fade_shuffled path: samples/near_transfer/direct/fade_shuffled.jsonl - split: bare_pm path: samples/near_transfer/direct/bare_pm.jsonl - split: complete_pm path: samples/near_transfer/direct/complete_pm.jsonl - config_name: samples_gsm8k_test_open data_files: - split: base path: samples/gsm8k_test/open/base.jsonl - split: bare path: samples/gsm8k_test/open/bare.jsonl - split: complete path: samples/gsm8k_test/open/complete.jsonl - split: fade_ordered path: samples/gsm8k_test/open/fade_ordered.jsonl - split: fade_shuffled path: samples/gsm8k_test/open/fade_shuffled.jsonl - split: bare_pm path: samples/gsm8k_test/open/bare_pm.jsonl - split: complete_pm path: samples/gsm8k_test/open/complete_pm.jsonl - config_name: samples_gsm8k_test_direct data_files: - split: base path: samples/gsm8k_test/direct/base.jsonl - split: bare path: samples/gsm8k_test/direct/bare.jsonl - split: complete path: samples/gsm8k_test/direct/complete.jsonl - split: fade_ordered path: samples/gsm8k_test/direct/fade_ordered.jsonl - split: fade_shuffled path: samples/gsm8k_test/direct/fade_shuffled.jsonl - split: bare_pm path: samples/gsm8k_test/direct/bare_pm.jsonl - split: complete_pm path: samples/gsm8k_test/direct/complete_pm.jsonl - config_name: grades_holdout_open data_files: - split: base path: grades/holdout/open/base.jsonl - split: bare path: grades/holdout/open/bare.jsonl - split: complete path: grades/holdout/open/complete.jsonl - split: fade_ordered path: grades/holdout/open/fade_ordered.jsonl - split: fade_shuffled path: grades/holdout/open/fade_shuffled.jsonl - split: bare_pm path: grades/holdout/open/bare_pm.jsonl - split: complete_pm path: grades/holdout/open/complete_pm.jsonl - config_name: grades_holdout_direct data_files: - split: base path: grades/holdout/direct/base.jsonl - split: bare path: grades/holdout/direct/bare.jsonl - split: complete path: grades/holdout/direct/complete.jsonl - split: fade_ordered path: grades/holdout/direct/fade_ordered.jsonl - split: fade_shuffled path: grades/holdout/direct/fade_shuffled.jsonl - split: bare_pm path: grades/holdout/direct/bare_pm.jsonl - split: complete_pm path: grades/holdout/direct/complete_pm.jsonl - config_name: grades_near_transfer_open data_files: - split: base path: grades/near_transfer/open/base.jsonl - split: bare path: grades/near_transfer/open/bare.jsonl - split: complete path: grades/near_transfer/open/complete.jsonl - split: fade_ordered path: grades/near_transfer/open/fade_ordered.jsonl - split: fade_shuffled path: grades/near_transfer/open/fade_shuffled.jsonl - split: bare_pm path: grades/near_transfer/open/bare_pm.jsonl - split: complete_pm path: grades/near_transfer/open/complete_pm.jsonl - config_name: grades_near_transfer_direct data_files: - split: base path: grades/near_transfer/direct/base.jsonl - split: bare path: grades/near_transfer/direct/bare.jsonl - split: complete path: grades/near_transfer/direct/complete.jsonl - split: fade_ordered path: grades/near_transfer/direct/fade_ordered.jsonl - split: fade_shuffled path: grades/near_transfer/direct/fade_shuffled.jsonl - split: bare_pm path: grades/near_transfer/direct/bare_pm.jsonl - split: complete_pm path: grades/near_transfer/direct/complete_pm.jsonl - config_name: grades_gsm8k_test_open data_files: - split: base path: grades/gsm8k_test/open/base.jsonl - split: bare path: grades/gsm8k_test/open/bare.jsonl - split: complete path: grades/gsm8k_test/open/complete.jsonl - split: fade_ordered path: grades/gsm8k_test/open/fade_ordered.jsonl - split: fade_shuffled path: grades/gsm8k_test/open/fade_shuffled.jsonl - split: bare_pm path: grades/gsm8k_test/open/bare_pm.jsonl - split: complete_pm path: grades/gsm8k_test/open/complete_pm.jsonl - config_name: grades_gsm8k_test_direct data_files: - split: base path: grades/gsm8k_test/direct/base.jsonl - split: bare path: grades/gsm8k_test/direct/bare.jsonl - split: complete path: grades/gsm8k_test/direct/complete.jsonl - split: fade_ordered path: grades/gsm8k_test/direct/fade_ordered.jsonl - split: fade_shuffled path: grades/gsm8k_test/direct/fade_shuffled.jsonl - split: bare_pm path: grades/gsm8k_test/direct/bare_pm.jsonl - split: complete_pm path: grades/gsm8k_test/direct/complete_pm.jsonl tags: - math - worked-examples - gsm8k - continual-pretraining --- # Same Content, Different Format: worked-example data Data for the worked-example experiment of *Same Content, Different Format: QA Augmentation and Faded Worked Examples Under a Fixed Training Budget*. The six trained models are in [nzhao721/worked-examples-models](https://huggingface.co/nzhao721/worked-examples-models). ## Configs ### `train` (10,000 rows) The training instances: 5,000 GSM8K training families with two instances each (3,333 answer-augmented, 3,333 rephrased, 1,667 self-verification and 1,667 FOBAR), written by Claude Sonnet 5.5 with MetaMathQA's prompts and generation code (Yu et al., 2024; commit fe667b14). | Field | Meaning | |---|---| | `instance_id`, `family_id` | instance and family (one family = all rewrites of one GSM8K seed question) | | `type` | `GSM_AnsAug`, `GSM_Rephrased`, `GSM_SV` or `GSM_FOBAR` | | `question`, `steps`, `final_answer` | the training question, its step-by-step solution and its final answer | | `seed_question` | the original GSM8K question of the family | | `writer_model` | the model that wrote the instance | | `judge_sonnet`, `judge_argon` | the two LLM judges' audits of the solution (Claude Sonnet 5.5 and Gemini 4 Argon) | Every instance's final answer matches the gold answer, and neither judge flagged a reasoning error or a slip. ### `holdout` (5,606 rows) The evaluation holdout: every original question plus every rewrite whose verifying answer matched the gold and that both judges accepted, 3,247 GSM8K and 2,359 MATH prompts across 1,488 families. No family is shared with training. `prompt` is the direct-condition prompt (`Problem: q\nAnswer:`); the open condition uses the problem alone. `final_answer` is the full gold answer. ### `near_transfer` (1,667 rows) The original GSM8K question of every training family that has no answer-augmented instance. Training showed only rephrased, self-verification or backward versions of these problems, never the original wording or its solution. A rephrased training instance has the same final answer as its original question. ### `gsm8k_test` (1,319 rows) The GSM8K test split (Cobbe et al., 2021), in the same schema, with the final answer taken from each solution's `####` line. No test problem belongs to a training or holdout family. All evaluation configs share the holdout's schema. ## Tokenized training streams (`tokenized/`) The exact token streams each arm was trained on, one folder per arm (`bare`, `complete`, `fade_ordered`, `fade_shuffled`, `bare_pm`, `complete_pm`): `shard-00000.npy` (token ids, GPT-NeoX OLMo tokenizer, packed into 2,048-token windows in training order), `label_mask-00000.npy` (1 where a token carries loss) and `manifest.json`. `tokenized/pack_summary.json` gives each arm's windows, tokens, loss tokens and passes. The two fade arms draw on the same 50,000 documents in different orders. ## Model samples and grades (`samples/`, `grades/`) Every evaluation sample behind the paper's worked-example results, with both graders' verdicts: the seven models (the base checkpoint and the six arms in [nzhao721/worked-examples-models](https://huggingface.co/nzhao721/worked-examples-models)) on the three evaluation sets, under both prompts. Files are `samples///.jsonl` and `grades///.jsonl`, with `` one of `holdout`, `near_transfer` and `gsm8k_test`, `` `open` or `direct`, and `` `base`, `bare`, `complete`, `fade_ordered`, `fade_shuffled`, `bare_pm` or `complete_pm`. Each `samples__` and `grades__` config has one split per model. The holdout files cover the 5,606 released holdout prompts. Sampling. Eight samples per prompt at temperature 0.7 with nucleus sampling (top-p 0.95). Direct: the prompt is the config's `prompt` (`Problem: q Answer:`), and a sample ends at the first newline after non-blank text, at end-of-text, or at 128 new tokens. Open: the prompt is `Problem: q `, and a sample ends at end-of-text, at a line that opens another problem (`Problem:`, `Question:`, `Q:`), at the end of the line holding the first answer marker (`####`, `Answer:`, `The answer is`), when a complete line has appeared three times, or at 512 new tokens. ### `samples_*` (one row per sample) | Field | Meaning | |---|---| | `instance_id` | the prompt, as in the evaluation config | | `sample` | sample index, 0 to 7 | | `text` | the generated continuation | | `stop` | why the sample ended: `newline`, `answer`, `problem`, `repeat`, `eos` or `cap` (the length cap); null for the base model's holdout direct samples, which an earlier version of the sampler wrote with the text only | | `new_tokens` | generated tokens; null where `stop` is null | ### `grades_*` (one row per prompt) | Field | Meaning | |---|---| | `instance_id`, `family_id`, `type`, `gold` | the prompt, its family, its type and its full gold answer | | `rule_answers`, `rule_correct` | the deterministic grader's verdict for each sample: the first answer field it extracted (null if none) and whether it equals the gold | | `rule_maj_correct` | whether the most common extracted answer is correct (maj@8) | | `judge_answers`, `judge_correct` | the LLM judge's verdict for each sample: the first final answer the sample states (null if none) and whether it equals the gold | | `judge_gold_issue` | null, or the judge's note when it thought the gold was wrong | Each list has eight entries in sample order, so entry `k` belongs to row `sample = k` of the matching samples file. Pass@8 is `any(judge_correct)` and PassRatio@8 is the mean of `judge_correct`; the paper's reported numbers use the judge's grades. The judge is Claude Sonnet 5.5. It graded the eight samples of one prompt together, shown in random order without the model's name, with the prompt in `grades/judge_prompt.md`. The deterministic grader takes the first answer field of a sample (in the open condition, after `####`, `Answer:` or `The answer is`); a numeric answer must equal the gold exactly as a number, any other answer is compared with math-verify, and prose never counts. Its code is in `code/` (see `code/README.md`). ## Licensing GSM8K and MATH are released under the MIT license; MetaMathQA's prompts and code are used as released. The rewrites were written by Claude Sonnet 5.5.