Repository navigation
LiveMathBench as a benchmark in Hermit's own environment - #132
Open
ruiling-smartbear wants to merge 9 commits into
Open
ruiling-smartbear wants to merge 9 commits into
ruiling-smartbear wants to merge 9 commits into
Conversation
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).
ruiling-smartbear
force-pushed
the
math-livemathbench
branch
from
November 26, 2026 08:53
8f0debd to
8f3541c
Compare
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.
ruiling-smartbear
force-pushed
the
math-livemathbench
branch
from
November 26, 2026 09:14
8f3541c to
8a9c02c
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more abou
689C
t bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/).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.4f3812d): the answer is itsmath_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 isLIVEMATHBENCH_JUDGE(defaultvllm/Qwen/Qwen2.5-72B-Instruct, the paper's). A judge call that fails is a failed judgement, counted amongerrors.utils/gpassk.pygives G-Pass@k and mG-Pass@k.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.pyon 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.Review
utils/agent/, the judge model is called on the host through Layer 1 (Direct).mean_scoreand 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.