Skip to content

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

Open

Description

@deavgprime

Describe the bug

The abstention verifier can give full correctness reward when the judge says the answer is incorrect or not attempted.

parse_judge_grade() searches for uppercase A, then B, then C anywhere in the response. Answer: B therefore selects the A in Answer. C: NOT_ATTEMPTED also selects the A in ATTEMPTED.

This changes the recorded reward, verdict and omniscience index.

Steps/Code to reproduce bug

On main at efc2e77d2ac180fe93b487344574e7ee51b1bc7e:

from resources_servers.abstention.app import parse_judge_grade

for text in ("A", "B", "C", "Answer: B", "Answer: C", "C: NOT_ATTEMPTED"):
    print(repr(text), parse_judge_grade(text))

Output:

'A' A
'B' B
'C' C
'Answer: B' A
'Answer: C' A
'C: NOT_ATTEMPTED' A

I also ran the real AbstentionServer.verify() with schema-validated requests and a mocked _call_judge response. The policy answer was \boxed{Lyon}, the question asked for France's capital, and the reference was Paris. No model server or external service was called.

Supplied judge response Reward Verdict Omniscience index
B 0.0 incorrect -1.0
C 0.5 abstain 0.0
Answer: B 1.0 correct 1.0
Answer: C 1.0 correct 1.0
Grade: B 0.0 incorrect -1.0
B: INCORRECT 0.0 incorrect -1.0
C: NOT_ATTEMPTED 1.0 correct 1.0
Unable to grade: API unavailable 1.0 correct 1.0

The bare A control returned reward 1.0 as expected. These are supplied-response tests of the verifier, not measurements of how often a live judge produces these strings.

Expected behavior

Parse an unambiguous grade token rather than a character inside another word. A B verdict must not become full correctness reward. Text with no valid grade should not become a successful judgment.

Configs

Default rewards: correct 1.0, abstain 0.5, incorrect 0.0. Default abstention token [IDK].

Environment details

Ubuntu 24.04.5, Python 3.13.17, nemo-gym 0.7.0rc0 at the source revision above. Core dependencies installed with uv sync --no-dev from the repository lockfile; openai 2.44.0 and pydantic 2.13.4. CPU-only reproduction.

Additional context

I searched existing issues and PRs for abstention grading and parse_judge_grade. #3329 updates the abstention data and configuration but does not change this parser. I can prepare a focused parsing fix and regression tests if the maintainers agree with the scope.

Activity

  1. added
    community-request
    on Oct 30, 2026
  2. added
    waiting-on-maintainers
    and removed
    waiting-on-maintainers
    on Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    community-request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions