Repository navigation
feat(indic gpqa_diamond): add Indic GPQA Diamond benchmark - #3603
Conversation
f0eba0c to
3240685
Compare
yuhezhang-ai
left a comment
There was a problem hiding this comment.
Could you address the two inline issues: the shared answer fallback can change existing benchmark scores, and the new manifest fails static validation?
Please also update the PR description to match the current dataset, prompt, parser, and generation settings, and include a reproducible dataset-access setup plus representative model-rollout evidence. My preparation attempt failed with DatasetNotFoundError because ai4bharat/indic-gpqa could not be accessed, so I could not validate real data or rollouts. The focused preparation and MCQA tests pass.
| if pred is None: | ||
| pred = _extract_terminal_labeled_choice(text, allowed_letters) |
There was a problem hiding this comment.
[P2] Constrain and scope localized-answer extraction
Could we constrain this to recognized answer labels and opt the Indic rows into it? The new fallback treats Eliminated option: B and (A): B as a final choice. I reproduced verify() changing reward from 0 to 1 for gold B. With an answer-prefix-enabled row, \boxed{C} Eliminated option: B also changes from reward 1 to 0 for gold C because this fallback preempts the existing boxed-answer fallback.
Since this runs for every lenient_answer_colon_md consumer, it changes English GPQA, MMLU-Pro, SuperGPQA, and MMLU-ProX scoring too. Please restrict accepted labels, explicitly scope the added behavior, and add negative-shape and existing-consumer regression cases alongside the localized examples. These synthetic verifier comparisons establish the behavior; its frequency in real model output has not been measured.
| determinism: seeded | ||
| resources_server: mcqa | ||
| agent_server: simple_agent | ||
| model_server: policy_model |
There was a problem hiding this comment.
[P2] Mirror the configured grading mode
Please add grading_mode: lenient_answer_colon_md to this manifest. Its configuration already resolves that value, and running validate_environment() on this head fails with Manifest composition is stale and grading_mode: manifest=null, config="lenient_answer_colon_md". This failure occurs before checking prepared data, independently of dataset access. Adding the matching top-level field resolves this composition mismatch.
Signed-off-by: Anusha Kamath <[email protected]>
Signed-off-by: Anusha Kamath <[email protected]>
Signed-off-by: Anusha Kamath <[email protected]>
Signed-off-by: Anusha Kamath <[email protected]>
Signed-off-by: Anusha Kamath <[email protected]>
Signed-off-by: Anusha Kamath <[email protected]>
Signed-off-by: Anusha Kamath <[email protected]>
25ba758 to
558042f
Compare
yuhezhang-ai
left a comment
There was a problem hiding this comment.
Thanks, Anusha. The parser scoping and manifest fixes address my earlier comments. One configuration issue remains: please give indic_gpqa_diamond_agent its own Environment Server, following English GPQA. Combining the two benchmarks with strict environment routing currently fails; an explicit entry fixes it.
Two non-blocking suggestions: include the preparation tests in regular CI collection, and document the exact strict-rescoring steps using saved inputs and responses.
The focused tests pass. I still couldn’t access the Hub source here, so the real-data and model-run validation remains based on your recorded evidence.
| grading_mode: lenient_answer_colon_md | ||
|
|
||
| indic_gpqa_diamond_agent: | ||
| _inherit_from: mcqa_simple_agent |
There was a problem hiding this comment.
[P2] Declare an Environment Server for the Indic agent
Could you add an indic_gpqa_diamond_environment_server inheriting mcqa_environment_server, with agent_server.name: indic_gpqa_diamond_agent, as English GPQA does? This config works alone, but composing it with benchmarks/gpqa/config.yaml and setting error_on_agent_without_environment_server=true fails with Agent instance(s) have no environment server … indic_gpqa_diamond_agent. I reproduced the failure and verified that the explicit block fixes it; English GPQA + MMLU-ProX is a passing control. Default mode generates a compatibility relay, so this does not break ordinary default-mode scoring. Please also update the test's top-level key assertion and cover the combined configuration.
| import yaml | ||
|
|
||
| from benchmarks.gpqa import prepare as english_module | ||
| from benchmarks.indic.gpqa_diamond import prepare as module |
There was a problem hiding this comment.
Non-blocking suggestion: include these preparation tests in normal CI collection
These tests provide useful protection for source integrity, translation validation, and preparation parity, but the root pytest configuration collects tests/, and the core CI entry point does not add this benchmark-local file. Could you move them to tests/unit_tests/test_indic_gpqa_diamond.py, following the Indic AIME tests, or explicitly collect this file? The focused command passes today; this would keep those checks running automatically on future changes.
|
|
||
| This is **format-normalized accuracy** for opted-in Indic rows. To report the | ||
| unchanged English-harness/strict extraction accuracy on the same generations, | ||
| reverify with that opt-in absent or `false`; do not regenerate responses or change |
There was a problem hiding this comment.
Non-blocking suggestion: show the exact strict-rescoring steps
Could you add an example that copies the materialized inputs, disables template_metadata.allow_localized_answer_labels in that copy, and passes it with the original rollouts to gym eval reverify? Reverification builds its payload from the saved inputs, so changing preparation settings alone would not change an existing run. Preserve the task/attempt identifiers and responses so the comparison uses the same generations and denominator. The existing mechanism supports this; a concrete example would make the documented score comparison reproducible.
Signed-off-by: Anusha Kamath <[email protected]>
|
Thank you for the review @yuhezhang-ai. i have rebased and addressed these issues. Do let me know if there is an automated reviewer as a first step for some these comments. There are a bunch of PRs from Indic and I could run that on bulk. |
|
/ok to test c15e732 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/38289849744 |
What does this PR do?
Adds
indic/gpqa_diamondusingai4bharat/indic-gpqa, Gym’s English GPQA zero-shot prompt,simple_agent, and themcqaverifier.c3c32b0a0ec7aeebe884c4c55c46730b4274a612and verifies the source file’s SHA-256.benchmarks/prompts/eval/aai/mcq-4choices.yaml: a single user message requesting a finalAnswer: A/B/C/Dline. This matches Gym’s English GPQA prompt, not the original GPQA repository’s baseline prompt.pass@1[avg-of-8]/accuracyon a 0–100 scale—not best-of-eight. Unextractable responses remain incorrect.Opted-in Indic results are format-normalized accuracy. To obtain unchanged English-harness/strict extraction accuracy, reverify the same responses without the opt-in, preserving the denominator.
Validation
Rebased onto upstream
mainat4a9236e48c82f0dc23365a4c0088b1e54d00d3a8.Validated head:
558042fb77cbc72a0321d01a1bc4c8c1677faa1e.pre-commit run --all-files: passed.git diff --check upstream/main: passed.Commands run:
An initial sandboxed test run encountered hostname-resolution failure during unrelated benchmark discovery. The identical suite passed with normal hostname resolution; no unrelated code was changed.
Preparation evidence
Exercised production preparation using the real, previously downloaded
ai4bharat/indic-gpqa/train.parquet:gym env validate indic/gpqa_diamondpassed, including manifest/config agreement and prepared-data validation.Source SHA-256:
34cd810650109f4c08b842e69dcadcff17da3a23c37a0f75d0d6a667b1e2c0cfPrepared JSONL SHA-256:
d1b329df74de1d63171b8c1aed4b02d04f40705220e48d3961d6a3a151667b2dReal model evidence
Ran native
gym eval runon Bengali and Hindi source row 0, eight attempts each, using:gnani/gnani-evon-v3.3-30B-A3B, revisionfb9ddb6b58f2d235684388a9260671fca5ebccaf.nano_v3reasoning parser.--max-output-tokens 16384, concurrency 4.Results:
All 16 responses finished with
stop: zero capped responses and zero failed requests. Output lengths were 712–11,195 tokens. Separate reasoning items and final assistant messages were inspected.Bengali produced five
Answer: Band threeAnswer: Doutputs against gold B; Hindi produced eightAnswer: Boutputs against gold B. Reverification reproduced every native extraction and reward.Also reverified two real cached Bengali responses from
sarvam-external/sarvam105b-05102026, using thinking enabled, theqwen3reasoning parser, temperature 1, top-p 1, top-k off, and a 120,000-token cap:উত্তর: Bউত্তর: B