8000 LiveMathBench as a benchmark in Hermit's own environment by ruiling-smartbear · Pull Request #132 · Infini-AI-Lab/hermit · GitHub
[go: up one dir, main page]

Skip to content

LiveMathBench as a benchmark in Hermit's own environment - #132

Open
ruiling-smartbear wants to merge 9 commits into
Infini-AI-Lab:mainfrom
ruiling-smartbear:math-livemathbench
Open

ruiling-smartbear wants to merge 9 commits into
Infini-AI-Lab:mainfrom
ruiling-smartbear:math-livemathbench

Conversation

@ruiling-smartbear
@ruiling-smartbear ruiling-smartbear commented Nov 26, 2026 •
Copy link
Copy Markdown
Contributor

Stacked on #131 (this PR's own change is its last three commits).

Change

Adds LiveMathBench as a benchmark in Hermit's own environment (examples/livemathbench/).

  • Tasks: the official dataset (opencompass/LiveMathBench, gated, pinned) with OpenCompass's English prompt; the 202505 English questions (100) tested, 40/20/2 questions of the 202412 release drawn for a method that learns, none a test question. Splits committed.
  • Scoring as OpenCompass's evaluator (commit 4f3812d): the answer is its math_postprocess_v2, ported unchanged (utils/agent/answer.py); a judge model reads OpenCompass's judge prompt (byte for byte) at temperature 0 with 8,192 tokens. The model is LIVEMATHBENCH_JUDGE (default vllm/Qwen/Qwen2.5-72B-Instruct, the paper's). A judge call that fails is a failed judgement, counted among errors. utils/gpassk.py gives G-Pass@k and mG-Pass@k.
  • Configs: a no-adapter baseline for Codex and Claude Code.

Validation

  • python -m pytest examples/livemathbench examples/math500 examples/aime examples/math_grading tests/core/test_selection.py: 49 passed; the judge is tested with a stand-in model, the port against OpenCompass's source.
  • prepare.py on the dataset: 162 tasks. Smoke in Linux with bubblewrap enforced, no judge model served: Codex answered both smoke questions with the references, and each judgement was recorded as failed.
  • Not run: a scored run (needs the judge model served on GPUs), the Claude Code configs.

Review

  • Tests and documentation cover the affected behavior.
  • Benchmark and sandbox checklists: as AIME as a benchmark in Hermit's own environment #130; the hook runs in the task sandbox from utils/agent/, the judge model is called on the host through Layer 1 (Direct).
  • Independent review (post-PR audit) of 8f0debd: the answer was the last box only, not OpenCompass's extraction (now ported); a failed judgement's 0 in mean_score and a run with no judge server were not stated (now in the README); a G-Pass@k threshold rounded wrong for some k from 25; a stale docstring; fixed in 8d2c8e8. A second review confirmed the fixes and found the learner's task-info, the README and the examples row still describing the last box alone; fixed in 8a9c02c.

MathArena's AIME 2025 and AIME 2026, with its prompt, as task directories: the acting CLI in a bubblewrap sandbox with
no network but its model's, the last \boxed{} judged on the host by Math-Verify (examples/math_grading/). A no-adapter
baseline for Codex and Claude Code, four attempts a problem; AIME 2024 split for a method that learns.
…ixes

- Math-Verify compares in a process of its own (utils/math_compare.py) with a time limit and a memory bound, where
  its own timeouts work: an answer whose arithmetic never ends scores 0 and holds no other judge.
- The answer is the last complete \boxed{}, as MathArena's parser takes it; a missing answer's feedback keeps the
  agent's own reason (a session that timed out).
- examples/math_grading/ in the examples' layout (utils/, utils/tests/) with a README; CI installs Math-Verify so
  the grader's tests run.
- AIME: its judge reads the references lazily and is tested; the README names MathArena's commit and its one
  difference (MathArena asks again for a missing box).
The comparison's answer is the last line of its output (a library may print before it); a judge checks Math-Verify
is installed when it loads, before any agent session; the comparison's memory bound is 2 GB (several judges compare at
once; checked in Linux that normal and pathological answers compare within it), and the feedback says it applies on
Linux only.
Its 500 problems with its own prompt as task directories, graded as AIME's; a no-adapter baseline for Codex and Claude
Code, four attempts a problem; 150 problems of MATH's training split drawn for a method that learns, none a test
problem.
The prompt is eval.yaml's template exactly (a folded YAML block: `$\\boxed{ANSWER}$`, one newline before the problem;
checked equal to the parsed file). The configs, judge and prepare point at math_grading/utils; the judge reads the
references lazily and is tested.
The official dataset (gated, pinned) with OpenCompass's English prompt as task directories: the 202505 English
questions tested, judged as OpenCompass judges them (its judge prompt, compared byte for byte, on a judge model named by
LIVEMATHBENCH_JUDGE), with G-Pass@k from an eval's attempts; a no-adapter baseline for Codex and Claude Code; 202412
questions drawn for a method that learns.
- The answer hook is OpenCompass's math_postprocess_v2, ported unchanged (utils/agent/answer.py; checked equal to
  opencompass/datasets/math.py at 4f3812d by syntax tree): the last box, else the "final answer" sentence, else the
  first sentence. It runs in the task sandbox from its own folder; LiveMathBench no longer uses math_grading.
- The README says a failed judgement counts as 0 in mean_score (take an eval's numbers when errors is 0) and to check
  the judge server answers before a run.
- G-Pass@k's thresholds are counts from integers (a float i/k rounded past i for some k from 25).
- The splits' docstring says they are committed; the judge's tests build its real client without a call.
The learner's task-info, the README and the examples row say the answer is OpenCompass's extraction (the last box, else
the "final answer" sentence), not the last box alone; the judge's docstring no longer asserts what OpenCompass's judge
says to an empty answer.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0