Skip to content

simpleqa, omniscience, ragtruth, imo_proofbench_judge: lenient parsing gives reward 1.0 to non-answers #5430

Open

Description

@jimmy-holdout

Describe the bug

Four verifiers can give reward 1.0 to non-answers. simpleqa and omniscience find grade letters inside words. ragtruth treats a missing verdict as "no hallucination". imo_proofbench_judge counts a blank boxed answer as equal to a blank expected answer. All four reproduce on main at 0c7ac5119c99.

Server Gets reward 1.0 Expected
simpleqa judge reply NOT ATTEMPTED, NOT_ATTEMPTED, Answer: B or Answer: C 0.0
omniscience judge reply D: NOT_ATTEMPTED, C: PARTIAL_ANSWER, NOT ATTEMPTED or Answer: B 0.0
ragtruth empty reply, plain text, truncated JSON or {}, on every case labelled "no hallucination" 0.0
imo_proofbench_judge a reply of just \boxed{ } on proof-only problems (33 of the 60 IMO-ProofBench problems); the judge is never called judged

The simpleqa and omniscience bugs are the same failure mode reported for abstention in #5380. The open PR #5403 proposes the standalone-grade matching that the fix PR reuses here.

simpleqa and omniscience: a grade letter inside a word

After the bare-letter checks, parse_judge_grade checks A, then B, then C (then D) and returns the first one that appears anywhere in the judge text (simpleqa, omniscience). The A in ATTEMPTED, PARTIAL or Answer wins, so these replies become grade A, which scores 1.0. simpleqa's leading-character check also reads the A in Answer. Both judge prompts list the word labels next to the letters, and simpleqa's prompt first says "Simply reply with either CORRECT, INCORRECT, NOT ATTEMPTED" (judge.yaml L71-L83). So word-form replies are not far-fetched.

The two parts have different origins. simpleqa's leading-character rule copies NeMo Skills: is_correct_judgement_label_matching in nemo_skills/evaluation/metrics/simpleqa_metrics.py accepts judgement[0], so Skills also reads Answer: B as A. The "any letter anywhere" fallback in both servers is not in Skills' SimpleQA matcher.

Through verify(), with the policy answer "I don't know." and the judge HTTP call mocked to return each text, every reply in the table scores reward 1.0 with verdict correct (omniscience also gets omniscience_index 1.0). The controls score 0.0: B: INCORRECT on both servers, and C: NOT_ATTEMPTED on simpleqa.

Impact: some judge replies that are not a bare letter, including the ones above, turn abstentions, partial answers or wrong answers into grade A. That inflates accuracy, F1 and the omniscience index, and rewards non-answers. I did not measure how often a given judge model replies this way.

ragtruth: a reply that is not a verdict counts as "no hallucination"

_parse_response returns None for empty or non-JSON text. _has_hallucination maps None, a missing key or a non-list value to False (L124-L128). verify() compares that with the gold label and gives 1.0 on a match (L200-L216). parse_fail is recorded but does not affect the reward, and it is 0 for {}. Through verify() on the five rows of data/example.jsonl (gold is_halu = T, F, T, F, T), each of the replies in the table gets rewards 0, 1, 0, 1, 0: exactly what a valid {"hallucination list": []} gets.

Impact: on the test split that prepare_ragtruth.py builds, 1,732 of 2,675 cases (64.7%) are labelled clean. On every one of them, an empty or truncated generation gets the same reward as a valid "no hallucination" verdict, and mean_reward counts it as correct. On hallucination-positive cases it gets 0. This is not about the binary-verdict design, which stays as documented.

imo_proofbench_judge: \boxed{ } equals a blank expected answer

Proof-only problems have no short answer. benchmarks/imo_proofbench/prepare.py copies the CSV's Short Answer column, which is a single space for 33 of the 60 problems (and in row 2 of data/example.jsonl). task_data.py notes it "may be empty or whitespace-only for proof-only problems" (L43-L49). verify() runs math_equal(expected_answer, extracted) before the judge and returns 1.0 on a match without calling it (L480-L498). search_boxed keeps the space in \boxed{ }, and math_equal only rejects an exactly empty prediction (L104-L105). Both strings normalise to "", so the literal fast path returns True (L120-L125).

Through verify() on data/example.jsonl, with the judge mocked to always answer "Judgement: No": on row 2 (expected_answer=" "), \boxed{ } and \boxed{\ } each score 1.0 with 0 judge calls. \boxed{x} scores 0.0 after one judge call, and \boxed{} scores 0.0 on the existing no-answer path. On the four rows with a short answer, \boxed{ } goes to the judge and scores 0.0.

The existing test test_verify_prefill_no_expected_answer_calls_judge expects a problem with no short answer to go to the judge, but it uses expected_answer=None (tests L680-L702). The real data uses " ", which skips the judge. With None, a reply of \boxed{None} also matches, because math_equal compares str(None).

This matches NeMo Skills. Its prefill_judgement (nemo_skills/utils.py) compares str(predicted).strip() == str(expected).strip(), and Skills' IMO-ProofBench data stores the same " ", so Skills also scores \boxed{ } on these problems as "two answers are identical". It looks like an unintended consequence of the blank short answers in the source CSV rather than a design choice, given the None test above.

Impact: on 33 of the 60 IMO-ProofBench problems, a reply with no proof is scored as solved and the judge is never consulted. That inflates pass@k and the per-category and per-level breakdowns. Matching non-blank short answers still skip the judge, which is the intended Skills-parity shortcut (see #4519), and is not changed here.

Steps/Code to reproduce bug

From the repository root, after uv sync --extra dev and installing imo_proofbench_judge/requirements.txt:

from resources_servers.imo_proofbench_judge.app import math_equal, search_boxed
from resources_servers.omniscience.app import parse_judge_grade as omniscience_grade
from resources_servers.ragtruth.app import _has_hallucination, _parse_response
from resources_servers.simpleqa.app import parse_judge_grade as simpleqa_grade

print([simpleqa_grade(t) for t in ("NOT ATTEMPTED", "NOT_ATTEMPTED", "Answer: B", "Answer: C")])
# ['A', 'A', 'A', 'A']
print([omniscience_grade(t) for t in ("D: NOT_ATTEMPTED", "C: PARTIAL_ANSWER", "NOT ATTEMPTED", "Answer: B")])
# ['A', 'A', 'A', 'A']
print([_has_hallucination(_parse_response(t)) for t in ("", "ok", '{"hallucination list": [', "{}")])
# [False, False, False, False]  -> reward 1.0 whenever is_halu is False
print(math_equal(" ", search_boxed(r"\boxed{ }")), math_equal(" ", r"\ "), math_equal(None, "None"))
# True True True

The verify() results above use each server's real verify(), with only ServerClient.post (the judge call) mocked. The fix PR adds them as tests.

Expected behavior

The grade replies and ragtruth replies above score 0. A blank expected answer never produces a symbolic match, so a non-empty boxed answer on a proof-only problem goes to the judge, and an empty box keeps the existing no-answer path. A suggested fix:

  • simpleqa / omniscience: count only standalone grade letters, and keep the existing fallback (C for simpleqa, B for omniscience) when there is no grade or more than one distinct grade, as fix(abstention): match standalone judge grades #5403 proposes for abstention.
  • ragtruth: score any reply that is not a JSON object with a hallucination list array as 0. It can stay a negative prediction in precision / recall / F1, so the paper metric does not change.
  • imo_proofbench_judge: return False from math_equal when the expected answer is blank or None.

A PR with one commit per server follows.

Configs

Default configs: resources_servers/{simpleqa,omniscience,ragtruth,imo_proofbench_judge}/configs/*.yaml.

Environment details

Ubuntu 24.04.5, Python 3.13.14, uv sync --extra dev at 0c7ac5119c99, plus math-verify==0.8.0 and latex2sympy2_extended. CPU only. No model server or external API was used for the reproduction.

Activity

  1. added
    community-request
    on Nov 1, 2026
  2. added
    waiting-on-maintainers
    and removed
    waiting-on-maintainers
    on Nov 4, 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