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

Skip to content

MATH-500 as a benchmark in Hermit's own environment - #131

Open
ruiling-smartbear wants to merge 6 commits into
Infini-AI-Lab:mainfrom
ruiling-smartbear:math-math500
Open

ruiling-smartbear wants to merge 6 commits into
Infini-AI-Lab:mainfrom
ruiling-smartbear:math-math500

Conversation

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

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

Change

Adds MATH-500 as a benchmark in Hermit's own environment (examples/math500/).

  • Tasks: HuggingFaceH4/MATH-500 at a pinned revision with the dataset's prompt exactly as its eval.yaml sends it; 100/50/2 problems drawn from MATH's training split (EleutherAI/hendrycks_math) for a method that learns, none a MATH-500 problem (prepare checks). Half an hour a task, no network but the model.
  • Scoring: as AIME's (examples/math_grading/), four attempts a problem as the dataset's eval.yaml runs. That eval.yaml grades with a model; Math-Verify misses some right answers in another form (a tuple for a column vector, an inequality for an interval), which the README states.
  • Configs: a no-adapter baseline for Codex and Claude Code.

Validation

  • python -m pytest examples/math500 examples/aime examples/math_grading tests/core/test_selection.py: 34 passed.
  • Real run in Linux with bubblewrap enforced: Codex baseline 96.0%, 2,000 attempts, 0 errors, every isolation probe passed; the smoke again with the exact prompt (0 errors).
  • Not run: 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; no training problem is a test problem.
  • Independent review (post-PR audit) of 33b806b: the prompt was normalized rather than the dataset's own (now exact, checked equal to the parsed eval.yaml), and the judge wrapper had no test (now has); fixed in 590c5f7; the second review found nothing new here (its judge now checks Math-Verify when it loads, fcf38e4).

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.

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