2026-11-26 15:40 UTC

Pullgym releases an open-source benchmark for calibrated uncertainty in physics analyses

state: seedheat: mediumuncertainty: mediumrelevance: highagent-evaluation uncertainty-calibration scientific-aikekeandzeyu

What is this?

Pullgym is a GitHub-hosted, MIT-licensed evaluation and reinforcement-learning environment by kekeandzeyu. The project describes v0.1 as ready for release: agents analyze simulated undergraduate-level physics experiments using Python and shell tools, then report uncertainty quantiles. A separate verifier compares those intervals with hidden ground truth and scores calibration and sharpness. Its README lists 12 experiment families, quick-start commands, and baseline and Qwen3-8B training results. These are project-published results; the supplied sources do not provide independent validation or adoption evidence, and the search results offer no meaningful corroboration beyond the repository.

Why it matters

Pullgym targets a consequential gap between getting an answer right and knowing how uncertain it is—especially when scientific data contain systematics, correlated errors, or physical limits. Its executable, ground-truth-based scoring could make uncertainty calibration a trainable capability rather than a subjective judge’s rating. The project reports promising frontier results and gains from distributional RL on a small model, but the evidence is self-reported, sample sizes vary, and performance on unseen task families remains weak. This is a notable benchmark and research tool, not evidence that AI agents are ready to analyze real experiments reliably.

Current assessment

New development: kekeandzeyu presents pullgym v0.1 as ready for release, with 12 simulated-physics task families, a Harbor exporter, fast runner, scorer, and reporting tools. In each episode, an agent analyzes data and an apparatus note, submits five quantiles per measured quantity, and a separate verifier scores the distribution against hidden truth. The project says scoring is numerical rather than LLM-judged; its test split uses secret-derived seeds. The README’s own calibration checks report reference analyses near nominal 68%/95% coverage. Project-reported frontier baselines include DeepSeek Flash near the human reference on valid episodes across the benchmark, including a neutral instruction variant; however, only 82–84% of its episodes were valid, and the author attributes failures to exhausting a 20-turn limit. Other model rows have smaller or restricted samples. In project-reported Qwen3-8B GRPO experiments, log-score training improved in-distribution calibration and reward versus base and binary-reward training; on four unseen families, calibration remained poor, with schema errors also limiting validity. The author notes that the log score can reward overly wide intervals on harder tasks, so clean-task sharpness and implementation inspection are needed to distinguish real uncertainty modeling from width inflation. These results are not independently reproduced in the supplied evidence. The repository outlines future v0.2 traps and multi-turn RL as plans, not current capabilities. If the benchmark holds up, it offers a practical way to train and compare agents on honest, useful scientific uncertainty; scope is currently simulated undergraduate experiments, so transfer to real research is unestablished.

Measured heat

now 0 pts/hpeak 4 pts/hcomments 0/hpeers p30momentum: steady2 platformsage 26h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-25 13:00⭐ origin echo-reconstructedThe repository README begins: “Do AI agents report honest error bars?” and describes pullgym as an evaluation and RL environment where agent
kekeandzeyu on github (echo) · attributed from hn.story.50653637
—
11-26 10:06first on hacker news · published · +21.1hPullgym – An RL and eval env that scores agents on honest error bars
kekeandzeyu369
—
11-26 10:06amplified on hacker news 👑hn.story.50653637
kekeandzeyu369
peak 1 · 0 comments · 103% of case engagement
11-26 10:20our radar first saw it · +21.3hdiscovery anchor: hn.story.50653637—
pace: p18 vs 1548 stories at the 24h mark (now 26h old) — behind agent-alley-social-experiment (0.5x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnPullgym – An RL and eval env that scores agents on honest error bars
Retrieved article excerpt

Open article · Retrieved 2026-11-26T10:21:32.223256+00:00

# pullgym

**Do AI agents report honest error bars?**

pullgym is an evaluation and RL environment. An agent gets data from a simulated physics experiment, analyses it with a shell and Python, and reports a measured value with its uncertainty. The environment knows the true value. It scores the agent on whether its error bars are honest: not too small (overconfident) and not too large (uselessly safe).

The question it answers:

> When an agent reports a 68% interval on a measured quantity, how often does the true value fall inside it? A calibrated analyst is right 68% of the time.

> **Status: v0.1 ready for release.** Twelve experiment families across four tiers, the scorer, the Harbor exporter, the fast runner and the reporting tool work, and every family's reference analysis is verified calibrated. Multi-turn commercial/open frontier baselines (`deepseek-flash` across `calibrated` and `neutral`, `kimi-k3.1-pro`, `qwen3.8-omni-flash`, `qwen/qwen3.8-27b`, and `nemotron-3-ultra-550b`) and controlled `Qwen3-8B` GRPO results (`log_score` vs. `binary` across two KL regimes, 1,600 evaluated episodes in [docs/RLVR\_RESULTS.md](https://github.com/kekeandzeyu/pullgym/blob/main/docs/RLVR_RESULTS.md)) are published below. Interfaces may change before v0.2.

## Why

Agents are increasingly asked to analyse data, not only write code. A wrong central value is easy to catch. A correct central value with an error bar three times too small is not, and it is the failure that matters most in experimental science.

Existing work measures nearby things:

- **Confidence in task success & calibration RL (`RLCR`, `CAPO`).** Agent uncertainty-quantification and recent calibration-aware GRPO papers use proper scoring rules (such as Brier scores) to calibrate a model's scalar verbalized confidence (*"80% sure my final answer is right"*) on discrete QA or math correctness. They do not test whether a code-writing agent propagates instrument systematics, nuisance parameters and physical boundaries into a continuous error bar on a measured quantity.
- **Distributional estimates without data.** [OpenEstimate](https://arxiv.org/abs/2510.15096) asks models for priors on real-world statistics and finds them often overconfident. The model gets no data and no tools.
- **Statistics question answering.** [StatABench](https://arxiv.org/abs/2606.22977) scores answers to statistics questions and modelling tasks.
- **Physics with simulators.** [PhysGym](https://arxiv.org/abs/2507.15550), PhysAgentGym and WorldSolver test law discovery or simulation code. [Collider-Bench](https://arxiv.org/abs/2605.13950) tests reproduction of LHC analyses.

pullgym scores the uncertainty itself, against a known truth, over many independent episodes. All scoring is computed from numbers, with no LLM judge.

## Quickstart

```
git clone https://github.com/kekeandzeyu/pullgym && cd pullgym
uv sync

uv run pullgym list                      # the experiment families
uv run pullgym calibrate --n 2000        # check every reference analysis is calibrated
uv run pullgym probe --n 500             # degenerate answering strategies vs the reference
uv run pullgym export --n 100 --out tasks    # Harbor task folders, dev split
```

Then run an agent on the tasks with [Harbor](https://www.harborframework.com/) and tabulate the results:

```
harbor run -p tasks -a <agent> -m <model> -o jobs
uv run pullgym report jobs               # coverage, pull and sharpness per model and family
```

## How an episode works

1. A **generator** draws hidden parameters θ from a prior, using a seed.
2. It simulates the experiment and writes the data files and an **apparatus note** to `/app/data`. The note gives the instrument resolution, calibration information and known quirks, as a lab logbook would.
3. The **agent** analyses the data however it likes, with Python, numpy, scipy, pandas and matplotlib available.
4. The agent writes its result to `/logs/artifacts/answer.json`.
5. The **verifier** runs in a separate, fresh sandbox, receives only that file, compares it with θ and writes a reward.

The physics is undergraduate lab level. The difficulty is the statistics: nuisance parameters, systematics, correlated errors, low counts and the cases where the honest answer is "not measured".

## Answer format

For each quantity, the agent reports five quantiles of its belief, at 2.5%, 16%, 50%, 84% and 97.5%:

```
{
  "lifetime": {"q025": 21.3, "q16": 22.4, "q50": 23.0, "q84": 23.6, "q975": 24.7}
}
```

A Gaussian result `x ± σ` is close enough to `x − 2σ, x − σ, x, x + σ, x + 2σ`. Asymmetric low-count intervals and upper limits fit the same format. Quantiles must be finite numbers in strictly increasing order.

An answer that is missing or malformed is scored as if the agent had reported the prior (the quantiles an analyst who never looked at the data could honestly give), minus a penalty of 1. Giving up is therefore never better than an honest, uninformative answer.

## Scoring

| Level | Metric | What it tells you |
| --- | --- | --- |
| Per episode (the reward) | A clipped log score: the log density of the reported distribution at the true value, in units of the reference analysis's σ, shifted so that a calibrated Gaussian as sharp as the reference averages 0, and clipped to [−20, +5] | A proper scoring rule: the expected reward is highest when the reported distribution matches the agent's actual belief. An overconfident miss costs about pull²/2, so error bars 10× too small average about −12, while error bars 10× too large average about −1.8. |
| Per episode (secondary) | `pinball_skill`: `1 − L / L₀`, with `L` the mean quantile (pinball) loss in reference-σ units and `L₀ ≈ 0.200` its expected value for a calibrated Gaussian as sharp as the reference | Also proper, but lenient on overconfidence, because its penalty grows only linearly with the miss. Reported for comparison, not used as the reward. |
| Per family | Coverage of the 68% (`q16`–`q84`) and 95% (`q025`–`q975`) intervals | The headline numbers: 68% and 95% when calibrated. |
| Per family | Pull = (`q50` − truth) / σ, with σ taken from the half-interval on the truth's side. Reported: mean, RMS and a robust width (half the 16–84 percentile range of the pulls) | The numbers physicists read: mean 0 and width 1 when calibrated. The robust width is reported alongside the RMS because a single wildly overconfident episode dominates the RMS. |
| Per family | Sharpness: the agent's σ divided by the reference analysis's σ | Separates "honest but sloppy" from "honest and efficient". |

To score the log density, the five quantiles are read as a full distribution: the quantile function is interpolated linearly in Gaussian z-space and extended past `q025` and `q975` with the outer slopes. A Gaussian answer becomes exactly that Gaussian, and an asymmetric answer becomes a piecewise-scaled Gaussian. The clip at −20 is reached at a pull of about 6.3. For a Gaussian belief it does not move the best answer away from the honest width. For a strongly heavy-tailed belief that the agent reports as a Gaussian, the best width shrinks by about 10%. An agent can avoid that by widening its outer quantiles.

`pullgym report` also shows 68% coverage in equal-count bins of the true value, so an analysis that is calibrated on average but fails near a physical boundary still shows up.

`reward.json` holds the per-episode numbers that Harbor aggregates. `details.json` holds the truth, the answer and any validation error, and is what `pullgym report` reads.

## Task families

| Tier | What makes it hard | Family | The experiment |
| --- | --- | --- | --- |
| 1. Clean statistics | Nothing; a sanity check | `line_fit` | A cart's velocity from positions with known Gaussian errors |
|  |  | `weighted_mean` | The speed of sound from several groups with very different stated errors |
|  |  | `counting_rate` | A Poisson count rate from repeated fixed-time counts |
| 2. Nuisance parameters | Something must be fitted or subtracted | `decay_background` | A lifetime from a binned decay curve over a flat background of unknown rate |
|  |  | `peak_background` | A gamma-ray line's energy on a sloped background, with the line width unknown |
|  |  | `low_count_rate` | A weak source's rate from a handful of counts, on and off source |
| 3. Systematics | The statistical error alone is wrong | `voltmeter_gain` | A voltage on a meter whose gain has a certified uncertainty |
|  |  | `underestimated_errors` | A resistance from a V–I curve whose stated error bars are too small by an unknown factor |
|  |  | `errors_xy` | A spring constant when the extension readings have errors as large as the force readings |
|  |  | `correlated_norm` | A density from runs over several days, each day sharing its own calibration error |
|  |  | `dead_time` | A true count rate behind a counter whose dead time is uncertain, giving an asymmetric interval |
| 4. Traps | The honest answer is a limit | `no_signal` | The strength of a faint line that is often indistinguishable from zero |

Planned beyond v0.1: outliers; many places to look for a peak (look-elsewhere); inconsistent units in the apparatus note.

### What the traps catch

Each family is built so that a common shortcut gives the wrong error bar. The table below scores those shortcuts with the same scorer the agents face, on 300 seeds per family.

| Family | Shortcut | Coverage 68% | Coverage 95% | Robust pull width | Sharpness | Reward |
| --- | --- | --- | --- | --- | --- | --- |
| `voltmeter_gain` | Statistical error only, ignoring the gain certificate | 9% | 16% | 12.3 | 0.08 | −12.6 |
| `underestimated_errors` | Trust the stated error bars | 38% | 70% | 1.90 | 0.50 | −1.06 |
| `errors_xy` | Ignore the errors in x | 25% | 46% | 4.01 | 0.27 | −5.48 |
| `correlated_norm` | Treat all runs as independent | 11% | 23% | 5.98 | 0.17 | −8.33 |
| `correlated_norm` | Add the calibration error once, as if all days shared it | 88% | 100% | 0.59 | 1.71 | −0.22 |
| `dead_time` | Correct for dead time but ignore its uncertainty | 6% | 12% | 15.8 | 0.06 | −13.4 |
| `low_count_rate` | √N Gaussian errors | 67% | 94% | 0.97 | 1.29 | −0.48 |
| `no_signal` | Sideband-subtracted counts with √N Gaussian errors | 65% | 92% | 1.08 | 1.53 | −0.57 |

The reference analyses average a reward of about 0. In `low_count_rate` and `no_signal`, the Gaussian shortcut keeps roughly nominal coverage. It loses on sharpness and reward instead, because its interval is wider than the data support and runs into negative rates. Those two families test efficiency and respect for the physical boundary more than coverage.

### Reference analyses are calibrated

Every family ships a reference analysis written by a human. Before any model is run, it must reach nominal coverage on the family's own generator. Numbers below come from `pullgym calibrate --n 2000`; the standard error is 1.0 point on 68% coverage and 0.5 points on 95%.

| Family | Coverage 68% | Coverage 95% | Pull mean | Pull RMS | Pull robust width |
| --- | --- | --- | --- | --- | --- |
| `line_fit` | 66.9% | 94.9% | +0.01 | 1.01 | 1.01 |
| `weighted_mean` | 68.3% | 95.3% | +0.01 | 1.00 | 0.99 |
| `counting_rate` | 64.3%\* | 95.1% | +0.02 | 1.04 | 1.07 |
| `decay_background` | 67.5% | 94.2% | +0.02 | 1.03 | 1.01 |
| `peak_background` | 68.0% | 94.5% | +0.01 | 1.02 | 1.00 |
| `low_count_rate` | 67.2% | 94.6% | −0.01 | 0.96 | 1.00 |
| `voltmeter_gain` | 69.3% | 94.8% | −0.02 | 1.00 | 0.97 |
| `underestimated_errors` | 67.4% | 95.0% | −0.01 | 1.06 | 1.01 |
| `errors_xy` | 66.7% | 94.2% | −0.02 | 1.02 | 1.01 |
| `correlated_norm` | 66.8% | 95.2% | −0.01 | 1.00 | 1.01 |
| `dead_time` | 68.9% | 94.8% | +0.03 | 1.00 | 0.97 |
| `no_signal` | 68.0% | 94.2% | +0.00 | 0.95 | 0.99 |

\* A fluctuation in this seed range: on 20,000 seeds, `counting_rate` gives 68.0% ± 0.3% and 95.1% ± 0.2%. Its reference is a Bayesian posterior whose coverage is essentially exact by construction.

The slow test suite (`pytest 
kekeandzeyu36910
🟧 echo.github ⭐The repository README begins: “Do AI agents report honest error bars?” and describes pullgym as an evaluation and RL environment where agentkekeandzeyu——

Interpretation history

Decision trace