Skip to content

fix(abstention): match standalone judge grades - #5403

Open
deavgprime wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
deavgprime:fix/abstention-grade-tokens
Open

deavgprime wants to merge 1 commit into
NVIDIA-NeMo:mainfrom
deavgprime:fix/abstention-grade-tokens

Conversation

@deavgprime

Copy link
Copy Markdown
Contributor

What changed

The abstention judge parser reads the A in Answer: B and awards full correctness reward. It also reads the A in C: NOT_ATTEMPTED.

Match standalone grade letters instead. Preserve the existing preference for a bare grade on the final line and the B fallback when no grade can be selected. Multiple different grades now use that fallback rather than favoring A.

Fixes #5380.

Validation

  • gym env test --resources-server abstention +skip_venv_if_present=true +should_validate_data=true: 66 tests pass and example data validates.
  • Of 30 added parser and verifier cases, 17 fail on unchanged main at 402020a8; 13 controls pass. Coverage includes word boundaries, punctuation, conflicting grades, final-line precedence, rewards, verdicts, and omniscience index.
  • pre-commit run --all-files: passes. The private guardword catalog is unavailable, so that scan is skipped.
  • git diff --check: passes.
  • One real local Qwen2.5-Coder 1.5B rollout through SimpleAgent, the inference-provider server, and the abstention verifier. The policy returned \boxed{Paris}; a separate judge call to the same model returned A; reward was 1.0. This checks integration, not judge accuracy. No external model API was used.
  • Model run capped at 150% CPU and 6 GiB RAM; sampled peak 2.87 GiB. All temporary servers stopped.

Result compatibility

Bare grades and explicit [IDK] abstentions are unchanged. Previously misparsed or conflicting judge responses can receive different rewards, so results containing those responses should be rescored. Malformed responses still use the existing incorrect-answer fallback; this change does not introduce a new judge-failure policy.

Proposed labels: bug, area:environment, needs-review.

Copilot AI balanced review requested due to automatic review settings October 31, 2026 05:48
@copy-pr-bot

copy-pr-bot Bot commented Oct 31, 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.

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@nemo-automation-bot nemo-automation-bot Bot added the community-request Issue reported or requested by someone from the community label Oct 31, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added bug Something isn't working area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers needs-review PR is ready for code review and waiting on a reviewer labels Nov 1, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the waiting-on-maintainers Waiting on maintainers to respond label Nov 2, 2026

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

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers bug Something isn't working community-request Issue reported or requested by someone from the community needs-review PR is ready for code review and waiting on a reviewer waiting-on-maintainers Waiting on maintainers to respond

Projects

None yet

Development

Successfully merging this pull request may close these issues.

abstention: judge responses such as Answer: B receive full correctness reward

3 participants