Repository navigation
Repair OMEGA answer extraction on the hill-climb variants - #417
Merged
Merged
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This was referenced Sep 26, 2026
omega_500:hillclimb and omega_500_out now use a repaired extraction cascade. The reference cascade from oe-eval reads "The answer is: 42" as ": 42", because no prefix consumes the colon. It also reads any unformatted answer as "", because the catch-all also matches the empty string at the end of the text and the last match wins. The repaired cascade consumes an optional colon after each prefix and requires the catch-all to match at least one character. omega_500 keeps the reference cascade, so it stays comparable with oe-eval and its task hash does not change. The hill-climb scorers are their own class, so those two task hashes change and stored results from the old extraction will not pair with new ones. Refs #320. Co-Authored-By: Claude Code <[email protected]>
abhishekraok
force-pushed
the
abhishekr/answer-extraction-320
branch
from
October 1, 2026 18:30
5cd1b1a to
6e3f2db
Compare
extract_answer and the scorers were two routes to the same cascade, so a variant that changed its scorers without overriding extract_answer would show one answer and score another. Omega500.extract_answer now asks the primary scorer, and the hill-climb override is gone. Addresses independent review on #417. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b8bc7c6308
ℹ️ 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".
A variant that overrides primary_metric (a MetricName, or another scorer) made extract_answer fail its scorer assertion. Co-Authored-By: Claude Opus 5.5 <[email protected]>
gregorybchris
approved these changes
Oct 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Written by the Claude Code session
ledger-worker(session id72ea05cb-832c-5396-b05b-5bece635b222), for hill-climb-evals (#378).Description
Part of upstream-defects-eval-port (#320). This fixes items 3 and 4, the answer-extraction defects. Items 1 and 2 are dataset/verifier defects and are left out.
The OMEGA extraction ported from oe-eval mis-reads two common answer shapes. Both reproduce on current main:
The answer is: 42,The final answer is: 42andTherefore, the final answer is: 42all extract: 42, andanswer is:\n42extracts:(the prefix path reads only the first line), because no prefix pattern takes the colon that follows it. Reordering the prefixes would not fix this."". The catch-all regex(.*)\.?also matches the empty string at the end of the text, and the last match wins, so42gives('', 0.1). Bothexact_matchandexact_match_flextherefore score 0 on every response that reaches the fallback.The hill-climb variants now use a repaired extraction path:
\s*:?appended, so it takes an optional colon;(.+), so it must match at least one character.The repaired path lives in its own scorer class,
OmegaRepairedExactMatchScorer, and is used byomega_500:hillclimband byomega_500_out, which inherits from it. The sharedextract/answer_format.pyis unchanged.Plain
omega_500is kept bug-compatible. It still uses the oe-eval-matched extraction, following the disposition on #320, so it stays comparable with published numbers. Its task hash is unchanged (4a504548233d37ea).Score impact:
omega_500:hillclimb(a108d0e58e67391f→cec7662fd1c8fd90) andomega_500_out(a1ae3ff5c5f05f16→db6ad61ad99ab35b), because the scorer class is part of the config. Results stored under the old extraction will not pair with new ones. The two tasks still share one scorer, so the pair stays comparable.answer_format_correctis now recorded as 0.0 instead of 0.1; the score is 0 either way..and then a line break (e.g.The answer is.\n42), the old path dropped to the next prefix, while the repaired path takes the next non-empty line. In a 200k-sample fuzz comparing the old and repaired paths, this accounted for 40 of 71,521 differing outputs, all contrived.The answer is: C) already extract correctly.Follow-up note (not in this PR): the shared
OLMO_3_ANSWER_REGEX_TEMPLATESused by GPQA and MMLU:cot include a case-insensitive(?i)\b($ANS$)\bpattern. It can grab the article "a" in a response as the answer letterA.Possible conflict: the
abhishekr/omega500-dev-tierbranch (omega-500 pin, 32K cap, gap report) may also touchomega_500.py. The two may need a trivial rebase.Type of Change
Testing
New
TestOmegaRepairedExtractionintests/evals/tasks/test_omega_500.py, covering both hill-climb tasks:extract_answerreturns42on the hill-climb task and: 42onomega_500;omega_500keeps its old behaviour.The existing fast-path equivalence test now also runs against the repaired path. Against main's
omega_500.py, 16 of the new cases fail; on this branch all pass.ruff checkandruff format --check: pass.ty check src/ alembic/: the same 11 diagnostics as on main (vllm/litellm providers, unused ignores); none are in the changed files.pytest tests/ --ignore=tests/integration: 2902 passed, 19 skipped.Unit tests pass locally (
pytest tests/ --ignore=tests/integration/)Integration tests pass (if applicable)
New tests added for new functionality
Review
extract_answerand the scorers were two routes to the same cascade;Omega500.extract_answernow asks the primary scorer and the hill-climb override is gone (2c1e080). Theanswer is:\n42example above was wrong and is corrected.Checklist
🤖 Generated with Claude Code