Cite MathArena request settings from results.json; describe answered-only as a conditional statistic; clarify the cumulative loop budget
Browse filesFiles changed (3)
59 unmodified lines6061626364656667686968 unmodified lines1381391401411421431441451461473 unmodified lines1511521531541551561571581591601611621631641651661671681691701711724 unmodified lines17717817918018118259 unmodified linesand the saved result (e.g. a provider-side timeout or a dropped stream). It could also be something else. Thedataset has no stop or finish-reason field, so we can't separate these cases.We were told that MathArena's request cap for this config is 235,929 tokens. The config is not in the public`eth-sri/matharena` repository, so we could not check it. All 165 empty attempts are below that number. That includesthe 2 that end at exactly 65,536, a round number that may be a limit set elsewhere. MathArena's own logs shouldshow which explanation is right.## 3. How the rows were selected68 unmodified lines- **As published:** the mean of each problem's 2 attempts, with an empty answer counted as wrong. Thisreproduces your 888/1,200.- **Answered attempts only:** correct answered attempts / all answered attempts. **This view has a selectionbias, and is closer to an upper bound than to an estimate of what the empty attempts would have scored:** theempty attempts concentrate on hard problems (and are long), so dropping them removes mostly attempts that wereless likely to be right.- **Answered, per-problem mean:** for each problem, the mean over its non-empty attempts. The 45 problems whosetwo attempts are both empty have no value and are left out (counted in the next column).- **Answered-only is a conditional comparison.** Comparing it with our run does not separate the effect of the3 unmodified lines**Our run:** Legion (main `d722a96`) ran one Pi agent per problem, once, on all 600 `HuggingFaceSwarms/SmallMath`tasks, with Qwen/Qwen3.8-27B (BF16) served by vLLM at reasoning effort low and T 1.0 / top_p 0.95 / top_k 20.The agent works in a container with bash and Python and writes its answer to `/app/answer.txt`. When it goesquiet, or after 30 minutes, it gets one final turn: "Make sure /app/answer.txt holds just your final answer".Each model call is capped at 65,536 output tokens, and the attempt at 262,144 output tokens in total. On averagean attempt made 6.7 model calls and 4.8 tool calls. **MathArena makes one chat call with no tools.** So the gapbetween the two runs is not only the lost answers. On answered attempts only, there is still a gap of about8.5 pp (85.8% vs 94.3%).| | MathArena | Legion Pi (ours) ||---|---|---|| Model and effort | Qwen3.8-27B, effort low (config `qwen/qwen3.8-27b-low-openrouter`) | Qwen/Qwen3.8-27B BF16 on vLLM, `reasoning_effort: low` || Sampling | T 1.0 / top_p 0.95 / top_k 20 (as we understand your config; not in the outputs dataset) | T 1.0 / top_p 0.95 / top_k 20, set on the server || Attempts per problem | 2 | 1 || Prompt and answer format | "Solve the following problem. Put your answer in `\boxed{}`." then the problem; answer parsed from the response | SmallMath task instruction (same problem text); answer read from `/app/answer.txt` || Tools | none | bash and Python in a container (network limited to an allowlist) || Calls per attempt | 1 | several (mean 6.7), plus a final "write your answer" turn || Output-token cap | 235,929 per call (as reported to us, not checked) | 65,536 per call; 262,144 per attempt || Grading | MathArena parser + `correct` | SmallMath verifier (exact equality); reproduces your 1,200 verdicts |## 6. Pinned inputs4 unmodified lines| [`MathArena/smallmath`](https://huggingface.co/datasets/MathArena/smallmath/tree/13ef9727659718de8bcba221cfe8f8a65bf88a99) | `13ef9727659718de8bcba221cfe8f8a65bf88a99` || [`HuggingFaceSwarms/SmallMath`](https://huggingface.co/datasets/HuggingFaceSwarms/SmallMath/tree/57dbf3f7e83aa8c5c980387a2216d7bb87e4e7cc) | `57dbf3f7e83aa8c5c980387a2216d7bb87e4e7cc` || Legion | main `d722a96` || Our run's per-task results | `source/legion_pi_per_task.jsonl` in this repo (600 rows) |**To reproduce:** run `python scripts/build.py` (needs `pyarrow`, `numpy`, `matplotlib` and `huggingface_hub`;59 unmodified lines60616263646566676869707168 unmodified lines1401411421431441451461471481493 unmodified lines1531541551561571581591601611621631641651661671681691701711721731741751761771781794 unmodified lines18418518618718818919059 unmodified linesand the saved result (e.g. a provider-side timeout or a dropped stream). It could also be something else. Thedataset has no stop or finish-reason field, so we can't separate these cases.MathArena's public results files ([`level_1/results.json`](https://matharena.ai/static/data/smallmath/level_1/results.json), one per level, all six with identical`model_params` for this config) give the request settings: OpenRouter, provider restricted to `deepinfra/bf16` withno fallbacks, `max_tokens: 235929`, reasoning effort low, temperature 1, top_p 0.95, top_k 20. All 165 empty attemptsare below that cap (at most 65,536 output tokens), so none of them ran out of request budget. The 2 that end atexactly 65,536 (2^16) stop at a round number that may be a limit somewhere else in the chain; we can't tell where.MathArena's own request logs should show which explanation is right.## 3. How the rows were selected68 unmodified lines- **As published:** the mean of each problem's 2 attempts, with an empty answer counted as wrong. Thisreproduces your 888/1,200.- **Answered attempts only:** correct answered attempts / all answered attempts. **This is a conditionalstatistic with strong selection by level.** The empty attempts are concentrated on L4–L6 (164 of 165), sodropping them changes the mix of problems behind the number. It does not estimate what the empty attempts wouldhave scored.- **Answered, per-problem mean:** for each problem, the mean over its non-empty attempts. The 45 problems whosetwo attempts are both empty have no value and are left out (counted in the next column).- **Answered-only is a conditional comparison.** Comparing it with our run does not separate the effect of the3 unmodified lines**Our run:** Legion (main `d722a96`) ran one Pi agent per problem, once, on all 600 `HuggingFaceSwarms/SmallMath`tasks, with Qwen/Qwen3.8-27B (BF16) served by vLLM at reasoning effort low and T 1.0 / top_p 0.95 / top_k 20.The agent works in a container with bash and Python and writes its answer to `/app/answer.txt`. It then getsone final turn: "The run is ending. Make sure /app/answer.txt holds just your final answer, then stop."Each model call is capped at 65,536 output tokens. On top of that, a **cumulative loop budget** of 262,144output tokens per attempt is enforced between turns. Pi clamps each model call's output limit to the remainingcumulative loop budget, and the final submission round is exempt from the budget([Legion `docs/loop.md`](https://github.com/huggingface/legion/blob/d722a96912da37c3c1289fbf688e0b5ce9cf9568/docs/loop.md#L53-L56)). The loop ends, and the final round follows, after 90 s idle, after 30 minutes, orwhen the budget is spent. On averagean attempt made 6.7 model calls and 4.8 tool calls. **MathArena makes one chat call with no tools.** So the gapbetween the two runs is not only the lost answers. On answered attempts only, there is still a gap of about8.5 pp (85.8% vs 94.3%).| | MathArena | Legion Pi (ours) ||---|---|---|| Model and effort | `qwen/qwen3.8-27b`, `reasoning.effort: low` (config `qwen/qwen3.8-27b-low-openrouter`) | Qwen/Qwen3.8-27B BF16 on vLLM, `reasoning_effort: low` || Serving | OpenRouter, provider `deepinfra/bf16` only, no fallbacks ([`results.json`](https://matharena.ai/static/data/smallmath/level_1/results.json)) | vLLM 0.32.0, BF16, self-hosted || Sampling | T 1 / top_p 0.95 / top_k 20 ([`results.json`](https://matharena.ai/static/data/smallmath/level_1/results.json)) | T 1.0 / top_p 0.95 / top_k 20, set on the server || Attempts per problem | 2 | 1 || Prompt and answer format | "Solve the following problem. Put your answer in `\boxed{}`." then the problem; answer parsed from the response | SmallMath task instruction (same problem text); answer read from `/app/answer.txt` || Tools | none | bash and Python in a container (network limited to an allowlist) || Calls per attempt | 1 | several (mean 6.7), plus a final "write your answer" turn || Output-token cap | `max_tokens: 235929` for the single call ([`results.json`](https://matharena.ai/static/data/smallmath/level_1/results.json)) | 65,536 per call; 262,144 cumulative loop budget per attempt (final round exempt) || Grading | MathArena parser + `correct` | SmallMath verifier (exact equality); reproduces your 1,200 verdicts |## 6. Pinned inputs4 unmodified lines| [`MathArena/smallmath`](https://huggingface.co/datasets/MathArena/smallmath/tree/13ef9727659718de8bcba221cfe8f8a65bf88a99) | `13ef9727659718de8bcba221cfe8f8a65bf88a99` || [`HuggingFaceSwarms/SmallMath`](https://huggingface.co/datasets/HuggingFaceSwarms/SmallMath/tree/57dbf3f7e83aa8c5c980387a2216d7bb87e4e7cc) | `57dbf3f7e83aa8c5c980387a2216d7bb87e4e7cc` || Legion | main `d722a96` || MathArena request settings | `https://matharena.ai/static/data/smallmath/level_{1..6}/results.json`, fetched 2 Dec 2026 (CET); not versioned || Our run's per-task results | `source/legion_pi_per_task.jsonl` in this repo (600 rows) |**To reproduce:** run `python scripts/build.py` (needs `pyarrow`, `numpy`, `matplotlib` and `huggingface_hub`;
66 unmodified lines676869707172737466 unmodified linesf"Error bars: 95% bootstrap CI over problems ({summary['bootstrap']['resamples']:,} resamples; stratified by level for All).")footer = (f"MathArena/smallmath_outputs @ {OUTPUTS[1][:8]} (config {CONFIG}) · MathArena/smallmath @ {BENCH[1][:8]} · "f"HuggingFaceSwarms/SmallMath @ {TASKS[1][:8]} · Legion main d722a96\n""'Answered only' drops empty attempts; empty attempts concentrate on hard problems, so it is a selection-biased, ""upper-bound-ish view. Script: scripts/build.py")with mpl.rc_context(STYLE):fig, ax = plt.subplots(figsize=(11, 5.2))x = np.arange(len(gnames)) * 1.066 unmodified lines676869707172737466 unmodified linesf"Error bars: 95% bootstrap CI over problems ({summary['bootstrap']['resamples']:,} resamples; stratified by level for All).")footer = (f"MathArena/smallmath_outputs @ {OUTPUTS[1][:8]} (config {CONFIG}) · MathArena/smallmath @ {BENCH[1][:8]} · "f"HuggingFaceSwarms/SmallMath @ {TASKS[1][:8]} · Legion main d722a96\n""'Answered only' = correct / answered attempts, a conditional statistic: the empty attempts are concentrated ""on L4–L6, so it is strongly selected by level. Script: scripts/build.py")with mpl.rc_context(STYLE):fig, ax = plt.subplots(figsize=(11, 5.2))x = np.arange(len(gnames)) * 1.0
README.md+22-14
figures/scores_by_level.png

Large File Pointer Details
- SHA256: 95702302066295e7fe0c7e299e698e5932c1eb80da26f5a883d2825ae925730e
- Pointer size: 131 Bytes
- Size of remote file: 271 kB

Large File Pointer Details
- SHA256: 139dfef804895be50f72adc200468a8880e2e91d98943e4c3dcd44a9e1660fe6
- Pointer size: 131 Bytes
- Size of remote file: 272 kB
scripts/build.py+2-2