Brier-scored probability
Continuous reward 1 − (p − outcome)². A proper scoring rule: honest probabilities maximize expected reward.
How it gets gamed
Binary thresholds teach models to hedge at 0.5. A proper scoring rule rewards calibration instead. Only a line of the form p: <number> is read. See reward hacking.
Use it
Compile a Verifiable-outcome loop, then replace its verify_environment with this one. Put "label" in each JSONL row’s metadata.
Compile a loop for it: Calibrated Forecasting · Inkling 2 Small
brier_forecast.pyverify_environment
def verify_environment(completion: str, metadata: dict | None = None) -> float: """metadata["label"] is the resolved outcome in [0, 1]. Reads the last 'p: 0.xx' line.""" import re label = (metadata or {}).get("label") if label is None: return 0.0 found = re.findall(r"^\s*p\s*[:=]\s*([01](?:\.\d+)?|\.\d+)\s*$", completion, flags=re.M | re.I) if not found: return 0.0 p = float(found[-1]) if not 0.0 <= p <= 1.0: return 0.0 return round(1.0 - (p - float(label)) ** 2, 6)
Test cases (run on every build)
"Base rate is high.\np: 0.9" with {"label":1} → 0.99
"p: 0.5" with {"label":0} → 0.75
"Likely, maybe 90%" with {"label":1} → 0
"p: 1.7" with {"label":1} → 0