PrecisionPatch data: teacher_v1, pool v1 with splits, few-shot examples
Browse filesFiles changed (6)
- README.mdAdded+47
- fewshot_v1.jsonAdded+26
- pool/pool_v1.jsonAdded
- teacher_v1/manifest.jsonAdded+36
- teacher_v1/meta.jsonlAdded
- teacher_v1/train.jsonlAdded
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647---license: apache-2.0pretty_name: PrecisionPatch data (verified floating-point rewrites)tags:- numerical-analysis- floating-point- fpbench- white-circle-halo-competitionconfigs:- config_name: teacher_v1 data_files: - split: train path: teacher_v1/train.jsonl---
# PrecisionPatch data
**Made for the White Circle Halo Competition (track `ft-hf`).** Everything needed to retrain and re-evaluate[`doraking/precisionpatch-qwen3-4b-lora`](https://huggingface.co/doraking/precisionpatch-qwen3-4b-lora).
| File | What ||---|---|| `teacher_v1/train.jsonl` | 1471 SFT rows in Halo's SFT format (`{"prompt": [system, user, assistant]}`): 885 certified edits, 585 explicit keeps, 1 from Herbie. sha256 `8435b85c10476003…` || `teacher_v1/meta.jsonl`, `manifest.json` | per-row provenance (task, source, generator family, teacher method, derivation) and the build manifest || `pool/pool_v1.json` | the task pool: every FPCore form read, its eligibility status, the 301 unique tasks with provenance, groups and the train/dev/test split || `fewshot_v1.json` | the two fixed worked examples of the few-shot control (train split) |
## How it was built
- **Sources.** FPBench `benchmarks/` (commit `408c85c0`) and Herbie's `bench/` (commit `884621aa`), both MIT. Tasks with 1–3 variables over `+ - * / sqrt log exp log1p expm1 fabs` (and `fma` in source programs), box preconditions and guards comparing one variable with a constant.- **Groups and split.** Tasks are grouped by an expression skeleton invariant to commutativity and variable renaming, and by source-function name; whole groups go to one split. Groups with at least 1 bit of fixable headroom were split test 40 / dev 10 / train 17; groups without headroom and all tasks touched during design went to train. Counts (split, headroom): {'train|False': 197, 'train|True': 35, 'test|True': 54, 'dev|True': 10, 'test|False': 5}.- **Teacher.** Only train tasks and generated tasks (14 parameterised kernels, wrapped or guarded; seeds recorded) were used. Generated tasks colliding with any dev/test task by skeleton, name stem or exact key were dropped (196). The answer for each task is the candidate a rule search or Herbie proposed that the independent verifier **certified** and that improved accuracy on the task's probe inputs; otherwise the answer is "keep". No LLM generated any training data.- **No overlap with evaluation.** Dev and test tasks never appear in `teacher_v1`; the split check reports 0 shared skeletons, name stems or exact keys across splits.
## License
Apache-2.0 for the generated rows and the curation; the benchmark expressions come from FPBench and Herbie (MIT).1234567891011121314151617181920212223242526{ "version": "fewshot_v1", "source": "data/teacher_v1 (train split, generated families inv-diff and stable-lin)", "task_ids": [ "gen-06a9d6ef27", "gen-0385df5498" ], "messages": [ { "role": "user", "content": "Variables: x\nConstants (ID = exact value; the program uses the binary64 rounding of each):\n c0 = 1 (decimal-real)\n c1 = 4 (decimal-real)\nProgram (guards are fixed):\n (- (/ c0 x) (/ c0 (+ x c1)))\nBranches:\n b0: (- (/ c0 x) (/ c0 (+ x c1))) [input box: 1 <= x <= 10000000000; current error on sample inputs: mean 13.39 bits, p95 27.70 bits]\n\nOutput contract:\n- Answer with one JSON object and nothing else: {\"edits\": {\"<branch id>\": \"<FPCore expression>\"}}.\n- To keep the program unchanged, answer {\"edits\": {}}.\n- Expressions use prefix FPCore syntax, e.g. (/ x (+ (sqrt (+ x c0)) c0)).\n- Allowed operators: *, +, -, /, exp, expm1, fabs, log, log1p, sqrt (and (- a) for negation).\n- Use only the listed variables, the constant IDs (c0, c1, ...) and integer literals from -16 to 16. No other numbers, no if, no let.\n- The new body must equal the old one as a real-valued function wherever the old one is defined on the branch's input box, and must be defined there." }, { "role": "assistant", "content": "{\"edits\": {\"b0\": \"(/ c1 (* x (+ x c1)))\"}}" }, { "role": "user", "content": "Variables: p\nConstants (ID = exact value; the program uses the binary64 rounding of each):\n c0 = 100 (decimal-real)\n c1 = 0.5 (decimal-real)\nProgram (guards are fixed):\n (+ (* c0 p) c1)\nBranches:\n b0: (+ (* c0 p) c1) [input box: -100 <= p <= 100; current error on sample inputs: mean 0.00 bits, p95 0.00 bits]\n\nOutput contract:\n- Answer with one JSON object and nothing else: {\"edits\": {\"<branch id>\": \"<FPCore expression>\"}}.\n- To keep the program unchanged, answer {\"edits\": {}}.\n- Expressions use prefix FPCore syntax, e.g. (/ x (+ (sqrt (+ x c0)) c0)).\n- Allowed operators: *, +, -, /, exp, expm1, fabs, log, log1p, sqrt (and (- a) for negation).\n- Use only the listed variables, the constant IDs (c0, c1, ...) and integer literals from -16 to 16. No other numbers, no if, no let.\n- The new body must equal the old one as a real-valued function wherever the old one is defined on the branch's input box, and must be defined there." }, { "role": "assistant", "content": "{\"edits\": {}}" } ]}123456789101112131415161718192021222324252627282930313233343536{ "version": "teacher_v1", "verifier_version": "pp-verifier-0.4", "prompt_version": "pp-prompt-0.1", "pool": "data/pool_v1_proposal.json", "pool_sha256_tasks": "a90803a198843aa5c09bdef38a1c2e9b07e15bfc5db5be4c11c5f902e00b20a8", "n_generated_requested": 2000, "generated_dropped": { "collides_with_dev_test": 196, "duplicate": 565 }, "n_jobs": 1471, "status": { "ok": 1471 }, "teacher": { "keep": 585, "rules": 885, "herbie": 1 }, "by_source": { "herbie|keep": 195, "herbie|rules": 13, "herbie|herbie": 1, "fpbench|keep": 21, "fpbench|rules": 2, "generated|rules": 870, "generated|keep": 369 }, "rows": 1471, "train_jsonl_sha256": "8435b85c10476003efbfb9a5b853bfe85036d1163ad502512532669f7e69fe82", "wall_s": 436.0, "cohort_seed": 101, "n_probe": 256, "herbie_fraction_generated": 0.25}README.mdAdded+47
fewshot_v1.jsonAdded+26
pool/pool_v1.jsonAdded
teacher_v1/manifest.jsonAdded+36
teacher_v1/meta.jsonlAdded
teacher_v1/train.jsonlAdded