Repository navigation
IFEval scorer: score unverifiable instructions as not followed - #314
Conversation
A verifier that cannot be built or checked (e.g. dataset kwargs it does
not accept) previously raised out of IFEvalScorer.score and failed the
whole run. Score that instruction False and record the error in
output.metadata instead, matching the reference implementation's
behavior. Concrete trigger: one VGraf/ifeval_mt row passes
{'keyword': ...} where length_constraints:nth_paragraph_first_word
expects first_word.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B9VUctQuzfAtrdpk4wDjEx
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fa06f4113f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Catching every exception around both building and checking meant an environment fault was recorded as an instruction the response did not follow. Six ifbench verifiers call NLTK from check_following, and instructions_util downloads its corpora at import with quiet=True, so an offline worker imports cleanly and then raises LookupError per instance — silently depressing the metric with no failed run to investigate. Only the build step is now guarded, and only for the exceptions a bad dataset row produces: TypeError from kwargs the verifier does not accept, KeyError from an id absent from the registry. Both still score as not followed, matching the reference implementation. Anything raised while checking a built instruction surfaces. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ
|
Upstream data defect this PR guards against is now tracked as #325 — 🤖 Generated with Claude Code |
IFEvalScorer.scoreraised on any instruction whose verifier couldn't be built, killing the whole eval. oe-eval scores such an instruction False with a warning; this matches that, and records the reason inoutput.metadata["ifeval"]["errors"].Concrete trigger (reported by the cross-architecture SFT eval session at
ifeval_mt_wildchat_unused_withRewrite): exactly one row inVGraf/ifeval_mt(1 of 1774 instructions) passes{'keyword': 'schedule', 'num_paragraphs': 3}wherelength_constraints:nth_paragraph_first_wordaccepts only(num_paragraphs, nth_paragraph, first_word)— verified against both the installedifbenchpackage and the allenai/IFBench repo, so it's a dataset schema mismatch (keyword≈first_word), worth fixing upstream separately. The mt-ood slice (1,387 instructions) is clean;ifeval_oodcouldn't be audited (dataset 403).Not chosen: silently dropping unknown kwargs — for this verifier a missing
first_wordtriggers a random word draw (the #296 nondeterminism class), scoring the row against arbitrary criteria. Parity with oe-eval means deterministic False.Scope of the guard
Only
_build_instructionis guarded, and only forTypeError(kwargs the verifier rejects) andKeyError(an id absent from the registry — also silently scoring False before). Both are dataset problems and both stay False.Failures raised while checking an instruction that built successfully propagate, per @chatgpt-codex-connector's review. Six ifbench verifiers call NLTK from
check_following, andinstructions_utildownloads its corpora at import withquiet=True— so an offline worker imports cleanly and then raisesLookupErroron every affected instance. Scoring that False would depress the metric with no failed run to investigate.15 ifbench tests pass (unknown-id scores False; a check-time
LookupErrorsurfaces); full suite 1960 passed, ruff/ty clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ