Skip to content

Add MMMU-Pro image-QA benchmark (Molmo2-4B) - #232

Merged
uwGZQ merged 1 commit into
visionfrom
royg/mmmu-pro
Jun 27, 2026
Merged

uwGZQ merged 1 commit into
visionfrom
royg/mmmu-pro

Conversation

@uwGZQ

@uwGZQ uwGZQ commented Jun 25, 2026

Copy link
Copy Markdown

Summary

Adds MMMU-Pro (MMMU/MMMU_Pro) — the harder, more-robust successor to MMMU — as a new
image-QA benchmark for the released HF allenai/Molmo2-4B, evaluated through the same
HuggingFaceProvider multimodal path (preset molmo2-4b).

A single mmmu_pro task runs all three official settings and produces one metrics.json
with standard_10_accuracy, standard_4_accuracy, vision_accuracy, and the primary
overall = (standard-10 + vision) / 2
— the number SOTA models report.

It is decoupled from the existing mmmu task (its own prompts, parser, and scorer; no reuse of
mmmu_parsing.py / MmmuScorer / format_mc_question), faithful to the official
MMMU-Benchmark/MMMU mmmu-pro repo, and is added to the molmo2_imageqa suite (its overall
counts as one 0-1 entry, like the other image-QA benchmarks).

Verified — Molmo2-4B (fp32 + bf16 autocast, full run, 5190 examples)

Metric Score
overall (= (standard-10 + vision)/2) — primary 26.01%
standard_10_accuracy 35.20%
standard_4_accuracy 44.62%
vision_accuracy 16.82%

Faithful to the official MMMU-Pro protocol

  • Direct prompts, verbatim from prompts.yaml (CoT mode not used): standard = "Answer with the option letter from the given choices directly."; vision = the same + " The last line of your response should be of the following format: 'Answer: $LETTER' …".
  • Standard = question + "A. …\nB. …" + direct prompt (A–J for 10 options) with all
    interleaved images attached in <image i> token-appearance order
    — options are shuffled, so
    token order need not match image_i key order (official replace_images_tokens, <image i> →
    <image>). Vision sends only the instruction + the single screenshot (image column); the
    question/options are rendered inside the screenshot.
  • Answer parser (on the raw response, MC-only): last Answer: marker → (A) → "A " → "A."
    → option text; multiple → last occurrence; per-example seeded fallback for re-run determinism.

Changes

  • src/olmo_eval/common/image_qa/mmmu_pro.py (new) — prompts, prompt assembly,
    replace_images_tokens, and the official parse_multi_choice_response / mmmu_pro_score.
  • src/olmo_eval/common/scorers/mmmu_pro.py (new) — MmmuProScorer (raw response, no
    clean_prediction).
  • src/olmo_eval/evals/tasks/mmmu_pro.py (new) — the single mmmu_pro task (3 settings,
    interleaved), per-setting + overall metrics, and a format_request that attaches the
    multi-image (standard) or single-screenshot (vision) tuple.
  • src/olmo_eval/evals/suites/molmo2.py — "mmmu_pro" added to MOLMO2_IMAGE_QA_TASKS.
  • tests/evals/tasks/test_mmmu_pro.py (new) — CPU-only: parser ladder, shuffled image-order,
    prompts, per-setting + overall metrics, request construction.

No new dependencies (pure HF hub; MMMU/MMMU_Pro cached like MMMU/MMMU).

Verification

ruff check / ruff format --check clean; ty check clean on the new files; full suite
1773 passed, 5 skipped. Full GPU run completed and produced the numbers above.

A single `mmmu_pro` task evaluates the released HF Molmo2-4B on all three
official MMMU-Pro settings (standard 10-option, standard 4-option, vision) and
emits one metrics.json with standard_10_accuracy, standard_4_accuracy,
vision_accuracy and the primary `overall` = (standard-10 + vision)/2 (the
SOTA-reported number).

Decoupled from the existing `mmmu` task — its own prompts/parser/scorer,
faithful to the official MMMU-Benchmark/MMMU mmmu-pro repo:
- common/image_qa/mmmu_pro.py: verbatim direct prompts; replace_images_tokens
  (interleaved images attached in <image i> token-appearance order, not key
  order, since options are shuffled); official raw-response answer parser
  (rfind "Answer:" then (A)/"A "/"A."/option-text), MC-only, seeded fallback.
- common/scorers/mmmu_pro.py: MmmuProScorer (raw response, no clean_prediction).
- evals/tasks/mmmu_pro.py: the task (3 settings interleaved), per-setting +
  overall metrics, multi/single-image format_request.
- evals/suites/molmo2.py: "mmmu_pro" added to MOLMO2_IMAGE_QA_TASKS (its overall
  counts as one 0-1 entry, like the other image-QA benchmarks).
- tests/evals/tasks/test_mmmu_pro.py: parser ladder, image-order, prompts,
  metrics, request (CPU-only).

Verified: full suite 1773 passed; full Molmo2-4B run (5190 ex) overall 26.01%
(standard-10 35.20 / standard-4 44.62 / vision 16.82).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_017rWjjwFXMM556pd4ixrQ96
@uwGZQ
uwGZQ marked this pull request as ready for review June 25, 2026 03:48
@uwGZQ
uwGZQ merged commit 5c7d9d4 into vision Jun 27, 2026
1 check passed
@gregorybchris
gregorybchris deleted the royg/mmmu-pro branch October 7, 2026 21:13
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