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.
pip install "git+https://huggingface.co/spaces/ruhzi/foresightbench-rl" · then from foresightbench_env import EnvConfig, ForesightEnvBeam 1.0 on ForesightBench, from the paper
Beam 1.0 rollouts on the 71-sample eval
| sample | title | area | error |
|---|
Judge log summary
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.