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

Skip to content

AIME as a benchmark in Hermit's own environment - #130

Open
ruiling-smartbear wants to merge 3 commits into
Infini-AI-Lab:mainfrom
ruiling-smartbear:math-aime
Open

ruiling-smartbear wants to merge 3 commits into
Infini-AI-Lab:mainfrom
ruiling-smartbear:math-aime

Conversation

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

Change

Adds AIME 2025 and AIME 2026 as a benchmark in Hermit's own environment (examples/aime/), and the grading the math benchmarks share (examples/math_grading/).

  • Tasks: MathArena's sets at pinned revisions, with MathArena's AIME prompt (commit d98156f), written as task directories by utils/benchmark/prepare.py. Each task asks for no network but the model and an hour.
  • Scoring: the last complete \boxed{} of the agent's reply, equal to the reference by Math-Verify, on the host. Each comparison runs in a process of its own (math_compare.py) with a time limit and, on Linux, a 2 GB memory bound, reading the answer as LaTeX only; a judge checks Math-Verify is installed when it loads. References stay in .private/, which no sandbox is granted. Four attempts a problem, as MathArena runs.
  • Configs: a no-adapter baseline for Codex (GPT-5.6-Luna) and Claude Code (Claude Haiku 5.5). AIME 2024 is split 20/10 for a method that learns.
  • Shared: math_grading is an engine in tests/selection.py; CI installs Math-Verify so the grader's tests run; rows in examples/README.md and docs/framework/task.md.

Validation

  • python -m pytest examples/aime examples/math_grading tests/core/test_selection.py: 30 passed. python -m pytest --changed on the stack: the only failures are the 13 that also fail on main on macOS (no bubblewrap).
  • Real run in Linux with bubblewrap enforced (docker/Dockerfile's image, offline.sh's sandbox capabilities): Codex baseline 76.7% on AIME 2025 and 89.2% on AIME 2026, 240 attempts, 0 errors, every sandbox launch record's isolation probe passed; the smoke again after the review's changes (2 of 2, 0 errors).
  • Not run: the Claude Code configs.

Review

  • Tests and documentation cover the affected behavior.
  • Commands, defaults, and public interfaces are consistent.
  • Agents follow the agent layers: the built-in CLI agents with an answer hook; no new agent.
  • Shared logs and examples contain no credentials or private data.
  • Benchmark checklist: task directories via write_task; answers only in judge-owned storage, the feedback names the reference for training rows; each task declares its network and time; a real run above.
  • Sandbox checklist: the agent runs in the task sandbox (environment.read grants only math_grading/utils, for the answer hook); the judge runs on the host, each comparison in a child process.
  • Independent review (post-PR audit) of c0309ae: one high finding (a comparison could hang the run: now in a process of its own), and lower ones (last complete box, the missing answer's reason, layout and README, CI coverage), fixed in 16d4b1e. MathArena asks again for a missing box; a CLI session does not, which the README states. A second review of 16d4b1e confirmed the fixes and found three low ones (the comparison's output read whole, Math-Verify checked only per comparison, the memory bound's size and wording), fixed in f5cc8c4.

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.

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