Datasets:

Modalities:
Tabular
Text
Formats:
parquet
Languages:
English
Size:
< 1K
ArXiv:
License:
lewtun's picture
lewtun HF Staff
Cite MathArena request settings from results.json; describe answered-only as a conditional statistic; clarify the cumulative loop budget
1d0b84e verified
|
Raw History Blame Contribute Delete
14.7 kB
metadata
license: cc-by-nc-sa-4.0
language:
  - en
pretty_name: SmallMath, MathArena Qwen3.8-27B (low) attempts with an empty answer
size_categories:
  - n<1K
tags:
  - math
  - evaluation
  - matharena
configs:
  - config_name: empty_answers
    default: true
    data_files:
      - split: train
        path: data/empty_answers.parquet
  - config_name: per_problem
    data_files:
      - split: train
        path: data/per_problem.parquet

SmallMath: MathArena Qwen3.8-27B (low) attempts with an empty answer

This card is for the MathArena team. In MathArena's released SmallMath outputs for Qwen3.8-27B (low) (model_config qwen/qwen3.8-27b-low-openrouter), 165 of the 1,200 attempts have an empty answer field. This dataset lists the 155 of them where our own run of the same model (Legion, Pi agent) did submit an answer. Each row carries the identifiers you need to find that attempt in MathArena/smallmath_outputs, plus the end of its reasoning so you can see where it stops. Built on 2 Dec 2026 (CET).

1. What we found

Level Problems MathArena attempts Empty answer Problems with 1 / 2 empty attempts Rows here Pi correct on those rows Rows whose reasoning ends mid-text
L1 100 200 0 0 / 0 0 0 0
L2 100 200 1 1 / 0 1 1 1
L3 100 200 0 0 / 0 0 0 0
L4 100 200 13 9 / 2 13 13 11
L5 100 200 58 28 / 15 54 54 44
L6 100 200 93 37 / 28 87 77 74
All 600 1,200 165 75 / 45 155 (112 problems) 145 130
  • Every empty attempt is scored wrong (correct = False, parsed_answer = "None"). No answered attempt has parsed_answer = "None".
  • The reasoning of every answered attempt ends with a newline (1,035/1,035). The reasoning of every empty attempt does not (165/165). In 138 of the 165, it stops in the middle of a sentence or expression (see the rule in section 3), for example ... $(8a-19)(8b-19) = 361$. Div or ... card 3 at pos 2. A=[1], B=[2,4]. New: [2,4,3,1].\n k=.
  • Output tokens of the empty attempts: 19,331 to 65,536 (median 38,356). For the 138 that end mid-text: 20,366 to 63,849 (median 38,532). The largest answered attempt used 58,299.
  • Only 2 attempts end at exactly 65,536 output tokens (2^16). Both are empty and both are L6. Neither ends mid-text by the rule below.
  • On attempts that returned an answer, MathArena scores 888/1,035 = 85.8%, against 888/1,200 = 74.0% as published.

2. What we can't tell from the outside

We only see the released outputs, not the request logs. We have not verified the cause. The pattern of reasoning that stops mid-text well below any token cap, with no final response, fits a cut-off somewhere between the provider and the saved result (e.g. a provider-side timeout or a dropped stream). It could also be something else. The dataset has no stop or finish-reason field, so we can't separate these cases.

MathArena's public results files (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 with no fallbacks, max_tokens: 235929, reasoning effort low, temperature 1, top_p 0.95, top_k 20. All 165 empty attempts are below that cap (at most 65,536 output tokens), so none of them ran out of request budget. The 2 that end at exactly 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 selected

  • MathArena attempts: all rows of MathArena/smallmath_outputs (config default, split train) with model_config == "qwen/qwen3.8-27b-low-openrouter": 1,200 rows, 2 per problem.

  • Empty answer: the answer column (the final response) is empty after str.strip(). A whitespace-only answer would count as empty, but all 165 are exactly "". We do not use parsed_answer, or the is_final_answer flag on MathArena's web trace viewer, which is set even on these blank attempts.

  • Our run submitted an answer: our attempt wrote a non-empty /app/answer.txt. This drops 10 of the 165 (4 on L5, 6 on L6), where our run had no answer file either.

  • Identifiers. The dataset has no attempt ID, so an attempt is the unique triple (model_config, problem_idx, idx_answer), which we copy exactly (problem_idx is a string, as in your data). To locate the row directly:

    • matharena_file / matharena_file_row: the Parquet file and 0-based row inside it;
    • matharena_split_row: the 0-based row in the train split, i.e. both files concatenated in name order, as the dataset viewer shows it.

    The build script checks that every locator points to a row with the same triple and a blank answer.

  • "Reasoning ends mid-text" (matharena_reasoning_ends_mid_text). The reasoning is the single type == "cot" message in all_messages. The flag is true when that text does not end with a newline and its last non-whitespace character is none of . ! ? ✓ ✗ $ ) ] }. The rule is conservative on purpose: a reasoning that stops at something that could close a sentence or a formula (e.g. $P(4,1)) is not flagged. Under the looser rule "no ., ! or ? at the end", 157 of 165 qualify. matharena_reasoning_ends_with_newline gives the structural signal on its own.

  • Mapping to our tasks. HuggingFaceSwarms/SmallMath repackages MathArena/smallmath 1:1. The build script re-derives the mapping and checks it for all 600 problems: the task's problem_id equals problem_idx, the task instruction contains the benchmark's problem text verbatim, and the reference answer, level and stable_id match. MathArena's problem, gold_answer and level match for both attempts.

  • Grading. Our verifier (the SmallMath task grader, exact equality) reproduces all 1,200 of MathArena's correct verdicts when run on their parsed_answer. So legion_correct and your correct use the same standard.

Columns

empty_answers (155 rows):

Column Meaning
matharena_problem_idx, matharena_idx_answer, matharena_model_config MathArena's identifiers, verbatim
matharena_file, matharena_file_row, matharena_split_row where the row is in MathArena/smallmath_outputs @ 065cbde6
task_id, level, stable_id our task ID (smallmath-NNNN), level 1–6, MathArena's stable_id
problem, gold_answer problem text and gold answer, as in your data
legion_submission, legion_correct our run's submitted answer and its grade
matharena_output_tokens your output_tokens for this attempt (reasoning included)
matharena_reasoning_chars, matharena_reasoning_ends_with_newline, matharena_reasoning_ends_mid_text length of the reasoning and the two end-of-text flags above
matharena_reasoning_tail the last 500 characters of the reasoning
matharena_other_attempt_empty, matharena_other_attempt_correct the same problem's other attempt
legion_output_tokens, legion_tool_calls, legion_llm_calls our attempt's output tokens (all calls, reasoning included), tool calls and model calls

The dataset has no stop or finish-reason column because your data has none.

per_problem (600 rows): task_id, matharena_problem_idx, level, stable_id, matharena_correct_{0,1}, matharena_empty_{0,1}, matharena_output_tokens_{0,1}, matharena_split_row_{0,1}, legion_submitted, legion_reward. Every number in the plot and the table below comes from this config.

4. Scores on the whole benchmark

Accuracy overall and by level for MathArena as published, MathArena on answered attempts only, and our Legion Pi run

Accuracy in %, with 95% percentile bootstrap CIs over problems (10,000 resamples, seed 0, stratified by level for All) and the counts behind each number:

MathArena as published MathArena, answered attempts only MathArena, answered, per-problem mean Problems with both attempts empty Legion Pi
All 74.0 [71.9, 76.1] (888/1200) 85.8 [83.6, 88.0] (888/1035) 83.7 [81.3, 86.1] (n=555) 45 94.3 [92.7, 96.0] (566/600)
L1 99.5 [98.5, 100.0] (199/200) 99.5 [98.5, 100.0] (199/200) 99.5 [98.5, 100.0] (n=100) 0 100.0 [100.0, 100.0] (100/100)
L2 99.0 [97.5, 100.0] (198/200) 99.5 [98.5, 100.0] (198/199) 99.5 [98.5, 100.0] (n=100) 0 100.0 [100.0, 100.0] (100/100)
L3 97.0 [94.5, 99.0] (194/200) 97.0 [94.5, 99.0] (194/200) 97.0 [94.5, 99.0] (n=100) 0 99.0 [97.0, 100.0] (99/100)
L4 80.0 [73.5, 86.5] (160/200) 85.6 [79.4, 91.1] (160/187) 85.7 [79.6, 91.2] (n=98) 2 98.0 [95.0, 100.0] (98/100)
L5 48.5 [40.5, 56.5] (97/200) 68.3 [59.1, 76.9] (97/142) 67.1 [57.8, 75.9] (n=85) 15 94.0 [89.0, 98.0] (94/100)
L6 20.0 [14.0, 26.5] (40/200) 37.4 [27.1, 48.0] (40/107) 38.2 [27.6, 48.7] (n=72) 28 75.0 [66.0, 83.0] (75/100)
  • As published: the mean of each problem's 2 attempts, with an empty answer counted as wrong. This reproduces your 888/1,200.
  • Answered attempts only: correct answered attempts / all answered attempts. This is a conditional statistic with strong selection by level. The empty attempts are concentrated on L4–L6 (164 of 165), so dropping them changes the mix of problems behind the number. It does not estimate what the empty attempts would have scored.
  • Answered, per-problem mean: for each problem, the mean over its non-empty attempts. The 45 problems whose two 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 the lost answers from the differences between the two protocols (next section).

5. Our setup, and why it isn't like-for-like

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 gets one 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,144 output tokens per attempt is enforced between turns. Pi clamps each model call's output limit to the remaining cumulative loop budget, and the final submission round is exempt from the budget (Legion docs/loop.md). The loop ends, and the final round follows, after 90 s idle, after 30 minutes, or when the budget is spent. On average an attempt made 6.7 model calls and 4.8 tool calls. MathArena makes one chat call with no tools. So the gap between the two runs is not only the lost answers. On answered attempts only, there is still a gap of about 8.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) vLLM 0.32.0, BF16, self-hosted
Sampling T 1 / top_p 0.95 / top_k 20 (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) 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 inputs

Input Revision
MathArena/smallmath_outputs 065cbde6cf4691ef5d887db8021d12cf0001a1a1
MathArena/smallmath 13ef9727659718de8bcba221cfe8f8a65bf88a99
HuggingFaceSwarms/SmallMath 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; it downloads about 250 MB). It rebuilds data/, figures/scores_by_level.png, figures/scores_by_level.csv (the plotted values) and figures/summary.json (every number on this card), and it asserts the checks described above. scripts/extract_legion_run.py wrote source/legion_pi_per_task.jsonl from our run's results.

Licence: the problems, gold answers and reasoning excerpts are MathArena's, under CC BY-NC-SA 4.0. This dataset keeps that licence. Cite MathArena as follows:

@article{dekoninck2026matharena,
  title={Beyond Benchmarks: MathArena as an Evaluation Platform for Mathematics with LLMs},
  author={Dekoninck, Jasper and Jovanović, Nikola and Gehrunger, Tim and Rögnvaldsson, Kári and Petrov, Ivo and Sun, Chenhao and Vechev, Martin},
  year={2026},
  eprint={2605.00674},
  archivePrefix={arXiv},
  primaryClass={cs.CL},
  url={https://arxiv.org/abs/2605.00674}
}