Skip to content

feat(benchmarks): add HLE vision (multimodal) variant - #2529

Merged
cmunley1 merged 2 commits into
mainfrom
gnalbandyan/add_hle_vision
Aug 15, 2026
Merged

cmunley1 merged 2 commits into
mainfrom
gnalbandyan/add_hle_vision

Conversation

@gnalbandyan

Copy link
Copy Markdown
Contributor

HLE's 342 image questions were filtered out at prepare time, leaving only the 2158 text-only questions. Expose the full split as a variant benchmark, hle/config_vision, alongside the existing text-only hle.

prepare() gains an include_vision flag (also --include-vision on the CLI). In vision mode it keeps the image questions and fully materializes each row: the prompt template is applied at prepare time and image questions carry an input_image block, since a prompt template can only produce string content and so cannot express an image. Materialized rows require prompt_config: null (the two are mutually exclusive), which is why the vision variant needs its own config rather than a flag on hle. The text-only path is unchanged: same output file, same rows, same message.

benchmarks/hle/config_vision.yaml and prepare_vision.py sit alongside the text-only pair in the same directory, following graphwalks/config_n3_1m.yaml and ruler/config_pretrain.yaml. Row format matches the existing vision environments (labbench2_vlm, vlm_eval_kit, circle_count), which are all prompt_config: null with input_image blocks.

equivalence_llm_judge: _extract_question_text now joins the text blocks of a list-form user turn. Vision rows carry multimodal content, which the string-only path read as empty, handing the judge a blank question and making every verdict meaningless. Additive — the string path is untouched, so no existing benchmark changes behavior.

Evaluating hle/config_vision requires a vision-capable policy model.

What does this PR do?

Checklist

  • I have read the contributing guidelines.
  • The change is focused; unrelated "drive-by" edits are tracked as separate issues/PRs.
  • Tests added or updated and pass locally, or N/A for docs-only / non-code changes (so CI unit/server checks pass when applicable).
  • Pre-commit checks pass locally (pre-commit run --all-files) (so CI lint/format/copyright pass).
  • All commits have DCO sign-off (git commit -s) (so the DCO check passes).

HLE's 342 image questions were filtered out at prepare time, leaving only the
2158 text-only questions. Expose the full split as a variant benchmark,
`hle/config_vision`, alongside the existing text-only `hle`.

`prepare()` gains an `include_vision` flag (also `--include-vision` on the CLI).
In vision mode it keeps the image questions and fully materializes each row:
the prompt template is applied at prepare time and image questions carry an
`input_image` block, since a prompt template can only produce string content
and so cannot express an image. Materialized rows require `prompt_config: null`
(the two are mutually exclusive), which is why the vision variant needs its own
config rather than a flag on `hle`. The text-only path is unchanged: same
output file, same rows, same message.

`benchmarks/hle/config_vision.yaml` and `prepare_vision.py` sit alongside the
text-only pair in the same directory, following `graphwalks/config_n3_1m.yaml`
and `ruler/config_pretrain.yaml`. Row format matches the existing vision
environments (`labbench2_vlm`, `vlm_eval_kit`, `circle_count`), which are all
`prompt_config: null` with `input_image` blocks.

equivalence_llm_judge: `_extract_question_text` now joins the text blocks of a
list-form user turn. Vision rows carry multimodal content, which the string-only
path read as empty, handing the judge a blank question and making every verdict
meaningless. Additive — the string path is untouched, so no existing benchmark
changes behavior.

Evaluating `hle/config_vision` requires a vision-capable policy model.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Signed-off-by: Grigor Nalbandyan <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Aug 13, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@cmunley1 cmunley1 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was able to run rollouts with nonzero scores with Qwen3-VL-4B instruct.

Did you happen to verify against any reported HLE vision scores? otherwise lgtm

@cmunley1

Copy link
Copy Markdown
Contributor

/claude review

@claude

claude Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

SHIP — LGTM, no reliability concerns.

Reviewed the full diff. The only runtime-behavior change is _extract_question_text in resources_servers/equivalence_llm_judge/app.py, which now joins the input_text blocks of a multimodal user turn so the judge still sees the question for vision rows. It's correct, defensive (handles both attribute-style objects and dicts, tolerates missing/None text, preserves the empty-string contract for image-only turns), leaves the string path untouched, and is covered by three new tests including the base64-leak guard.

Verified and cleared:

  • fill_prompt returns a fresh list per call, so _build_input's in-place content rewrite is safe.
  • _build_input guards empty images, so text-only rows in vision mode keep string content.
  • Materialized rows keep top-level expected_answer; question extraction was the only gap and it's fixed. The verifier's scoring path is otherwise unchanged.
  • config_vision.yaml uses prompt_config: null, consistent with validate_prompt_compatibility (pre-populated input ⇒ no prompt config).
  • prepare_vision.py matches the existing sibling-wrapper import pattern and the AST-validated prepare() signature.
  • No new deps (datasets already declared; arrow format sidesteps Pillow). No async or public-API surface touched.

Low-risk. No blockers, risks, or notes worth holding for.

@cmunley1
cmunley1 merged commit ef74828 into main Aug 15, 2026
9 checks passed
@cmunley1
cmunley1 deleted the gnalbandyan/add_hle_vision branch August 15, 2026 02:57
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.

2 participants