Repository navigation
Conversation
Adds MM-BrowseComp (MIT) on the BrowseComp harness: a guarded view_image tool and the upstream answer + checklist judge. browsecomp_agent gains a default-off tool_images option and browse can list page images from Exa, so text BrowseComp is unchanged. Also a tool-free variant on the paper's 224 questions. Signed-off-by: Wojciech Prazuch <[email protected]>
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP WITH CARE — 4 RISK findings and 2 NOTE suggestions.
Reviewed all 26 changed files and their directly affected preparation, configuration, verification, aggregation, and agent-context contracts. Static inspection only; no tests, downloads, or model calls were executed.
RISK — Provide representative real rollout evidence
The PR lists unit-test and lint results, but no representative model rollout or justified N/A. This changes both an environment and an agent, for which the trusted quality bar requires real smoke rollouts and inspection of agent and verifier behavior. The mocked tests cannot establish that live Exa image results, the policy endpoint, and the hosted checklist judge interoperate.
Could you run a small representative sample using the agentic configuration and the tool-free configuration, then record the model, resolved sampling settings, sample count, outcomes, and inspected rollout excerpts in the PR? Include a prompt-image question and a successful browse → view_image observation. Acceptance is evidence that the policy actually receives the image, the tool-free variant makes one call without tools or a system prompt, and parsed judge verdicts agree with the emitted rewards/checklist metrics. Keep reference answers out of policy prompts and do not publish prepared plaintext benchmark data. A full evaluation is not requested merely to change verified: false; this finding concerns the required smoke evidence.
NOTE — Add the benchmark to the published user docs
The new benchmark is described in repository READMEs, but there is no Fern change. Users of Browse Environments cannot discover this multimodal benchmark there. The pinned rubric explicitly requires user documentation for a notable new benchmark.
Suggested minimal catalog addition under Agentic / Tool Use:
| [mm_browsecomp](https://github.com/NVIDIA-NeMo/Gym/tree/main/benchmarks/mm_browsecomp) | Multimodal web research with search, browse, and image viewing | LLM answer + checklist judge | ✓ |
Also add a short runnable usage section to the Fern benchmark documentation, distinguishing the 400-question search harness from the 224-question tool-free variant and retaining the documented judge substitution and lack of video support. Proposed acceptance: the rendered docs expose the entry and working configuration links, the documented commands resolve to the appropriate variant, and the Fern link/configuration checks pass. No documentation checks were executed here.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
| if timed_out: | ||
| break | ||
| if round_images: | ||
| # Model context only: a Response's output cannot hold an input message, and the |
There was a problem hiding this comment.
RISK — Preserve tool-image observations in the returned trajectory
Failure: With tool_images=True, a successful view_image → answer run sends the image to the second model request but omits it from response.output and the full trajectory snapshot. This branch appends it only to new_outputs, whereas both persisted outputs use full_trajectory. A replay therefore lacks the visual observation on which the answer depended. The stated schema restriction does not apply: the output union accepts input-message models.
Correction: Could we retain the complete observation separately from the capped live context? Suggested replacement for this branch:
if round_images:
image_message = _tool_image_message(round_images)
new_outputs.append(image_message)
full_trajectory.append(image_message)
new_outputs = _cap_tool_images(
new_outputs, self.config.max_tool_images_in_context
)
Required dependent change: at each of the three nudge-mirroring sites—pre-call, post-call warning, and milestone—replace the assignment to full_trajectory[-1] with:
trajectory_tool_idx = _nudge_target_index(full_trajectory)
if trajectory_tool_idx is not None:
full_trajectory[trajectory_tool_idx] = new_outputs[tool_idx]
Otherwise adding the observation would cause a nudge to overwrite it. Update the test currently requiring image omission.
Preservation / acceptance: Proposed regressions: serialize and revalidate a returned trajectory ordered as function call → text tool output → image-bearing user message → assistant answer. Across three image rounds with cap two, the final live request must contain two images, while the returned trajectory/full snapshot retain all three. Exercise milestone and both reset-warning paths: each must modify the tool output without deleting its image. Preserve prompt images, default-off JSON behavior, text-envelope unwrapping, and final-assistant-only grading. These suggestions were source-traced, not executed; verify before adoption.
| model_config = ConfigDict(extra="allow") | ||
|
|
||
| # Upstream row id. | ||
| id: int |
There was a problem hiding this comment.
RISK — Align schema required fields with the runtime request contract
Failure: A row containing responses_create_params, question, ground_truth, and checklist satisfies MMBrowseCompVerifyRequest, which defaults both subset flags and does not require provenance. The new TaskData rejects that same row for missing id, category, subtask, level, and the flags. Thus strict dataset validation falsely rejects an input the verifier supports; the existing verification test setup itself uses this minimal shape. The schema protocol explicitly requires requiredness to mirror the wire contract.
Correction: Preserve the existing runtime contract rather than making provenance newly mandatory. Suggested field declarations inside TaskData:
id: int | None = None
question: str
ground_truth: str
checklist: List[str]
category: str | None = None
subtask: str | None = None
level: int | None = None
in_paper_set: bool = False
needs_video: bool = False
Keep extra="allow" and keep preparation emitting all existing metadata. Add a focused schema/request compatibility check; the current row-mapping tests and shared committed-row validation do not detect these differing required-field contracts.
Preservation / acceptance: Proposed tests: normalize and validate the minimal row above, then build the runtime verify request with a response; both must accept it and default both flags to false. Removing checklist, question, or ground_truth must fail in both contracts. A complete mapped row must retain its ID/category/subtask/level and true subset flags unchanged; undeclared task fields must remain observable under the existing extra-field policy. The replacement was statically checked against the inspected consumers, not executed.
| key[name] = agent_metrics[name] | ||
| return key | ||
|
|
||
|
|
There was a problem hiding this comment.
RISK — Export the verifier fixture required by both new manifests
Failure: Neither this module nor its inherited harness exports VERIFIER_FIXTURE. After preparation/static validation, gym env test mm_browsecomp and the corresponding tool-free workload therefore reach exercise_verifier_run and fail with “must export VERIFIER_FIXTURE as a VerifierFixture.” Local publication invokes the same path. The component pytest suite does not satisfy this manifest-backed command, and the trusted contribution contract requires a passing fixture before review.
Correction: Could this resources-server module export a VerifierFixture with a service-free server factory, MMBrowseCompVerifyRequest as its request model, committed JSONL cases, and an invocation adapter supplying the request/session context required by the real verify()? Reuse the bounded fake-judge approach in the existing verification tests, rather than requiring live Exa/judge credentials or replacing verification with canned rewards. The precise factory wiring is implementation-dependent, so no unverified factory patch is supplied.
Preservation / acceptance: Proposed checks: after preparing each variant, both manifest-backed test commands must report passing fixture cases; local publication must get past verifier checks. Cover full reward 1, wrong-answer reward 0, and a malformed request with a specific validation error, as required by the fixture runner. Retain the existing full-checklist assertion (reward=1, checklist score 1, strict correctness true), partial-checklist wrong-answer score, and the distinction between unparseable replies and failed judge calls. Do not add duplicate five-row legacy artifacts merely to satisfy this manifest fixture. These commands were not executed here.
| # limitations under the License. | ||
| """The MM-BrowseComp judge prompt and its parser. | ||
|
|
||
| The prompt is upstream's ``construct_judge_prompt`` from src/eval.py at |
There was a problem hiding this comment.
NOTE — Retain the upstream notice for the copied judge prompt
This file explicitly identifies its prompt as a byte-for-byte copy of upstream MIT code, but carries only the NVIDIA Apache header and a source/license reference, not the upstream copyright/license notice. The PR description also omits the exact copied-code revision and original/affected file mapping. Trusted provenance guidance and the vendoring rules require retaining original notices and recording vendored components in the attribution inventory.
Suggested correction: retain the exact applicable upstream copyright and MIT notice with this copied prompt, distinguish NVIDIA modifications, add the component/source/revision/license to ATTRIBUTIONS.md, and record the pinned upstream src/eval.py → this module mapping in the PR description. The upstream notice text is not available in the mounted trees, so it should be copied from that pinned source rather than invented here.
Preserve the prompt bytes and grading behavior; this is an attribution-only change. Static acceptance: the copied portion retains its applicable upstream notice, all required provenance fields are present in both locations, and the existing prompt-tail/question-marker assertions remain unchanged. No tests were executed.
Adds MM-BrowseComp (arXiv 2508.13186, MIT) as a benchmark. It reuses the existing BrowseComp harness.
mm_browsecompserver adds aview_imagetool. The tool refuses private and local addresses.browsecomp_agentgains atool_imagesoption, andbrowsecan list page images from Exa. Both are off by default, so text BrowseComp is unchanged.mm_browsecomp/config_no_tools) runs the paper's 224 questions in one call. This checks data and judge against the published tool-free scores.Tested:
gym env testformm_browsecomp(31 passed) andbrowsecomp_advanced_harness(268 passed) on Linux.ng_testforbrowsecomp_agentgives 96 passed.tests/unit_testsshow the same failures asmain. Ruff and pre-commit are clean.