ForesightBench RL

A contamination-controlled RL environment: predict the numeric outcome of a withheld ML experiment. Verifier reward from the paper's own tables; Beam 1.0 grades the reasoning against the paper's three failure modes.

deliverables in this Space
RL environment source Beam judge rubric v0 full corpus (457 rows) Beam's 71 traces Beam's numbers (JSON) GRPO notebook README ForesightBench dataset
install: pip install "git+https://huggingface.co/spaces/ruhzi/foresightbench-rl" · then from foresightbench_env import EnvConfig, ForesightEnv

Beam 1.0 on ForesightBench, from the paper

Loading…

Beam 1.0 rollouts on the 71-sample eval

sampletitleareaerror

Judge log summary

No judge_summary.json published yet. Run scripts/smoke_run.py --judge beam --live then scripts/summarize_judge.py.

Reproduce

pip install "git+https://huggingface.co/spaces/ruhzi/foresightbench-rl"
set HF_TOKEN=hf_...                      # needs the "Inference Providers" scope
python scripts/probe.py --live           # one Beam judge call: fit + cost
python scripts/sample_policy.py --n 8 --prompts 40 --out samples.jsonl --live
python scripts/smoke_run.py --samples samples.jsonl --judge beam --out judge_log.jsonl --live
python scripts/summarize_judge.py judge_log.jsonl --out site/data/judge_summary.json

Reward = verifier (0 to 1, from the paper's tables, no LLM) + Beam rubric (0 to 1). Beam judges one rollout per call, never sees true values, every call cached and metered (hard cap $20). Rubric = the paper's three failure modes, copied verbatim. Train = the full 457-row corpus; the 71-row eval shares papers with it. Beam's eval numbers above are from the paper, recomputed from the 71 raw traces in this Space (0.2916 vs 0.292 published).

Lower error is better. Error per slot is min(|pred − true| / max(|true|, 1e-6), 1), averaged per sample. Copying the baseline scores 0.327.