Skip to content

Add DeepSearchQA task (two grading implementations) - #360

Open
fabrahman wants to merge 8 commits into
mainfrom
fae-dsqa-02
Open

fabrahman wants to merge 8 commits into
mainfrom
fae-dsqa-02

Conversation

@fabrahman

@fabrahman fabrahman commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds the DeepSearchQA benchmark (Google DeepMind, arXiv:2601.20975) — 900 hand-crafted, multi-step information-seeking questions across 17 domains, each requiring either a single answer or a complete set of items, scored by item-set precision/recall/F1.
  • Registers two tasks sharing the same dataset/loading code (DeepSearchQABase), differing only in generation prompt and grading mechanic:
    • deepsearchqa — model ends with a discrete FINAL ANSWER: ... line, judged by index-matching two extracted item lists.
    • deepsearchqa_official_judge — mirrors the official paper prompt (Appendix A) verbatim: the judge grades the model's raw free-form response directly, no special output format required.
    • Both grade with an OpenAI model via build_openai_judge_fn (the official grader is Gemini 2.5 Flash, which olmo-eval's judge infra doesn't support), so absolute numbers from either task aren't directly comparable to the public Kaggle leaderboard — see DEEPSEARCHQA.md for the full writeup of what each deviates from and why.
  • Fixes a data-handling bug: 4 of the 900 rows encode "no items satisfy every constraint" as the literal text None in the source CSV, which the HF CSV loader silently coerces to a null; these were being dropped as malformed instead of scored as an empty gold-answer set. Both tasks now handle this correctly (900/900 instances load, not 896/900).
  • :mini variants (50-instance subset) registered for both tasks for quick iteration.
  • DEEPSEARCHQA.md documents both tasks, the data quirk above, and the secrets each requires (OPENAI_API_KEY always; S2_API_KEY/SERPER_API_KEY additionally for --harness dr_tulu).

Test plan

  • uv run ruff check src/ tests/ — passes
  • uv run ruff format --check src/ tests/ — passes
  • uv run ty check src/ alembic/ — passes (no new diagnostics)
  • uv run pytest tests/ --ignore=tests/integration — 2247 passed
  • Verified against the real google/deepsearchqa dataset end-to-end: all 900 rows load (including the 4 previously-dropped empty-answer-set rows), task inspect prompts render correctly for both tasks
  • Ran a live 5-instance smoke test with Qwen/Qwen2.5-7B-Instruct end-to-end (generation + judge scoring with OPENAI_API_KEY set)
  • Not yet run with search-tool keys for the intended --harness dr_tulu setup

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Judge-response JSON extraction uses a greedy brace regex in both tasks, which can mis-parse valid outputs and incorrectly trigger retries/zero scores in realistic LLM responses.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds the DeepSearchQA benchmark to olmo-eval with two task variants that share the same dataset loading but differ in prompting and grading, plus accompanying documentation and unit tests. The implementation also addresses the dataset quirk where some “empty gold set” rows are represented as None and were previously dropped.

Changes:

  • Introduces deepsearchqa (FINAL ANSWER extraction + index-based item matching judged by an OpenAI model) and deepsearchqa_official_judge (official Appendix A prompt grading on free-form responses).
  • Implements shared DeepSearchQA dataset loading with correct handling of empty gold answer sets for Set Answer rows.
  • Adds task documentation (DEEPSEARCHQA.md) and comprehensive unit tests for parsing/scoring and task registration (including :mini variants).
File summaries
File Description
src/olmo_eval/evals/tasks/deepsearchqa.py Core DeepSearchQA task + shared loader + index-matching judge/parsing/scoring.
src/olmo_eval/evals/tasks/deepsearchqa_official_judge.py Official-prompt variant with official-schema parsing and scoring.
src/olmo_eval/evals/tasks/DEEPSEARCHQA.md Usage + methodology write-up and explanation of deviations vs. official leaderboard.
tests/evals/tasks/test_deepsearchqa.py Unit tests for registration, doc processing, extraction, judge parsing, and scoring behavior.
tests/evals/tasks/test_deepsearchqa_official_judge.py Unit tests for official-judge variant registration, prompt behavior, parsing, and scoring.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@fabrahman fabrahman assigned fabrahman and unassigned fabrahman Sep 9, 2026

@gregorybchris gregorybchris left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This review was generated by an agent following REVIEW_GUIDE.md. It is not from a human reviewer. Reply in the PR thread and a maintainer will follow up.

Looks good overall! The data-loading fix for the four None rows is right (I confirmed 900/900 instances load with unique ids), the two-implementation split is clearly documented, and the tests cover the scoring arithmetic well. A few things we should address before merging.

I found three issues that affect task identity or persisted-result correctness, so they should be fixed before merge. The rest are non-blocking structure and diagnostics questions, plus nits. Verification: ruff, ruff format, and the PR's 55 tests pass locally; ty reports one diagnostic that is also present on main and is unrelated to this PR.

Blocking

  1. src/olmo_eval/evals/tasks/deepsearchqa.py:159 (and deepsearchqa_official_judge.py:138)
    The judge model and reasoning effort are read from OLMO_EVAL_JUDGE at scoring time and never reach TaskConfig. I reproduced this: get_task("deepsearchqa").config.to_dict() is byte-identical with OLMO_EVAL_JUDGE unset and with OLMO_EVAL_JUDGE=gpt-4.1-mini, and no judge_* key appears in the serialized config. Two runs judged by different models therefore collide on the same task hash and artifact name, and neither the default gpt-5.5:medium nor an override is recoverable from a stored result. TaskConfig already has serialized judge_model, judge_reasoning_effort, and judge_max_tokens fields for exactly this, and frontierscience.py shows the pattern: resolve the env override in __init__ via dataclasses.replace(config, ...), then build the judge from self.config.judge_* in scoring. researchqa.py has the same defect as this PR; that is a pre-existing fault, not a reason to repeat it. Please move the judge spec into the config on DeepSearchQABase (both tasks share it) and add a test asserting that changing the judge model changes to_dict().

    class DeepSearchQABase(Task):
        judge_model = "gpt-5.5"
        judge_reasoning_effort = "medium"
        judge_max_tokens = 1024
    
        def __init__(self, config: TaskConfig) -> None:
            if spec := os.getenv("OLMO_EVAL_JUDGE"):
                model, _, effort = spec.partition(":")
                config = replace(config, judge_model=model, judge_reasoning_effort=effort or None)
            super().__init__(config)
  2. src/olmo_eval/evals/tasks/deepsearchqa.py:321 (shared process_doc; consumed at deepsearchqa_official_judge.py:338)
    Splitting the gold answer on commas produces wrong gold sets on the real data. I checked the HF dataset: 22 of the 316 Single Answer rows contain commas ("Lincoln, NE", "Hasbro, Inc.", "July 3, 2001", "209,550,294"), so each becomes a two- or three-item gold set and a fully correct one-item answer can score at most recall 0.5 (or 0.33). Set rows are worse: "Wild Water Buffalo, 1965; Komodo Dragon, 1986; ..." is semicolon-delimited, and "Rebecca West (1969, 1970), Antonia Fraser (1970, 1971), ..." splits into 28 items for a 14-item set, halving the attainable recall. Since len(gold_items) is the recall denominator in both tasks, these persisted per-instance and aggregate numbers are wrong, not just noisy. The paper scores single-answer questions as binary exact match, so at minimum a Single Answer row must be a one-item gold set regardless of punctuation. For the official-judge task, the Appendix A prompt is designed to take the raw answer string, and rejoining gold_items with ", " also changes the text the "verbatim" prompt sees (newlines and semicolons become commas). Please pass answer through unchanged there and derive num_gold from the judge's Correctness Details length rather than a client-side split. For the index-matching task, could we either split on the delimiter the row actually uses or document that set rows with nested commas are mis-scored and list how many there are?

  3. src/olmo_eval/evals/tasks/deepsearchqa.py:423 (and deepsearchqa_official_judge.py:352)
    When the judge returns three unparseable replies, the instance is scored 0.0 across all four metrics and the only record is an aggregate log line. Nothing in output.metadata marks the instance as a judge failure, and the raw judge text is not stored, so in saved predictions a parse failure is indistinguishable from a genuine zero. Note that build_openai_judge_fn returns "" when a reasoning model spends its whole max_completion_tokens budget before emitting content, so with a 1024-token budget at medium effort this path may fire often (see non-blocking 3). Please write an explicit flag (for example deepsearchqa_judge_parse_failed: True) and the last raw judge response into output.metadata on this path, and record the raw response on success too; build_predictions already forwards a judge_result key so this survives to disk. A regression test that inspects the persisted metadata after exhausted retries would lock it in.

Non-blocking

  1. src/olmo_eval/evals/tasks/deepsearchqa_official_judge.py:267
    The implementation that matches the paper's grader is registered under the qualified name, and the independently designed mechanic owns deepsearchqa. The guide's parity rule is that the reference-matching port gets the plain name and divergences are named. Could we swap them, so deepsearchqa is the official-prompt grader and the FINAL ANSWER variant becomes deepsearchqa_final_answer (or similar)? This is much cheaper to change before the first stored results exist than after.

  2. src/olmo_eval/evals/tasks/deepsearchqa.py:243 (and deepsearchqa_official_judge.py:225)
    All four DeepSearchQAScorer instances share name="deepsearchqa_f1" and differ only in score_key. I confirmed task._get_scorers() returns a single entry, and Scorer.score() reads output.metadata["deepsearchqa_f1"] while score_responses writes score:deepsearchqa_f1, so the scorer returns 0.0 whenever anything invokes it. Nothing on the scoring path does today, but analysis/pairwise.py resolves a metric profile by matching metric.scorer().name against the stored metric:scorer key, so precision, recall, and exact-match will fail to resolve their display format. Deriving name from score_key (or passing name=name in _metric) fixes both.

  3. src/olmo_eval/evals/tasks/deepsearchqa.py:164 and :363 (mirrored in the official-judge module)
    Two related judge-construction concerns. First, the runner calls score_responses with one response at a time (runners/asynq/results.py:224), so building the judge inside score_responses creates a fresh client and a fresh copy of the adaptive request-shape cache per instance; each of 900 instances rediscovers that gpt-5.5 rejects max_tokens and temperature. frontierscience.py caches the judge on the task for this reason. Second, max_tokens=1024 with reasoning_effort=medium is a shared budget for reasoning and output on chat completions; frontierscience uses 8192 and notes truncation as its parse-failure cause. From the five-instance smoke test, how many judge calls needed a retry? If any did, please raise the budget.

  4. src/olmo_eval/evals/tasks/deepsearchqa.py:393
    Only outputs[0] is judged; other samples get no score: metadata and output_score_aggregation is ignored. That is fine for a temperature-0 task, but please say so in a comment or raise on len(outputs) > 1 so a future :n8 variant does not silently score one sample.

  5. src/olmo_eval/evals/tasks/deepsearchqa.py:114
    When the marker is absent, the whole response is split on commas and sent to the judge as the "submitted set", which will usually produce dozens of items and a near-zero precision. That is a reasonable penalty, but nothing records that it happened. Could we write a deepsearchqa_format_correct boolean to output.metadata so format failures can be separated from wrong answers after the run?

  6. Both modules duplicate the placeholder scorer and metric classes, the judge builder, the JSON-object scan loop, the score_responses loop, and the retry loop nearly verbatim. Since the PR already introduces DeepSearchQABase, could the shared pieces move there so a future fix lands once? The JSON scan helper also looks generally useful next to common/scorers/citation.py::extract_json_from_response, which it improves on.

Nits

  • Nit: _JSON_OBJECT at deepsearchqa.py:152 and deepsearchqa_official_judge.py:131 is unused after the raw_decode change.
  • Nit: DEEPSEARCHQA.md:38 ("No other files were modified") is PR-description content that will be false after the next commit; the "Files" section as a whole reads as a changelog rather than documentation. This is also the first task doc under src/olmo_eval/evals/tasks/; consider whether it belongs beside the module or in the README's task docs.
  • Nit: extract_final_answer does not strip a leading <think>...</think> block, so a marker inside the trace is matched (I checked: "<think>FINAL ANSWER: x</think> ... y" returns "x</think> ... y"). researchqa.py strips the block first.

Before merge

Please address the three blocking items (judge config in the hash, gold-answer splitting on real rows, and per-instance judge-failure metadata), each with the regression test described. If the naming swap in non-blocking 1 is declined, that is fine, but please say so in the thread so the decision is on record. After that you may merge once CI is green and the branch is rebased on main.

"""Build the task's judge from ``$OLMO_EVAL_JUDGE`` or its own default."""
import os

spec = os.getenv("OLMO_EVAL_JUDGE", DEEPSEARCHQA_DEFAULT_JUDGE_SPEC)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agent review per REVIEW_GUIDE.md.

Blocking. This judge spec never reaches TaskConfig, so to_dict() (and the task hash) is identical with and without OLMO_EVAL_JUDGE set; I reproduced that with gpt-4.1-mini vs the default. TaskConfig already has judge_model / judge_reasoning_effort / judge_max_tokens, and frontierscience.py resolves the env override in __init__ via dataclasses.replace so it is hashed. Please do the same on DeepSearchQABase and add a test that changing the judge changes to_dict().

return None
gold_items: list[str] = []
else:
gold_items = split_answer_set(answer)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agent review per REVIEW_GUIDE.md.

Blocking. On the real dataset 22 of 316 Single Answer rows contain commas ("Lincoln, NE", "Hasbro, Inc.", "July 3, 2001"), so this produces 2-3 gold items and caps recall for a correct answer at 0.5 or 0.33. Set rows use semicolons and parenthetical commas too ("Rebecca West (1969, 1970), Antonia Fraser (1970, 1971), ..." becomes 28 items for a 14-item set). The paper scores single-answer questions as binary exact match, so a Single Answer row should be a one-item gold set regardless of punctuation.

scores = compute_deepsearchqa_official_scores(len(gold_items), 0, 0)
return scores, base_metadata, 0

answer_text = ", ".join(gold_items) if gold_items else "None"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agent review per REVIEW_GUIDE.md.

Blocking (same root cause). Rejoining the comma-split items changes the text the "verbatim" Appendix A prompt sees (semicolons and newlines in the source become commas), and len(gold_items) becomes a wrong recall denominator on the rows noted in the summary. The official grader takes the raw answer string; please pass answer through unchanged and derive num_gold from the judge's Correctness Details length instead of a client-side split.

if attempt < DEEPSEARCHQA_JUDGE_ATTEMPTS - 1:
await asyncio.sleep(2**attempt)

matched_gold, matched_pred = parsed if parsed is not None else (set(), set())

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agent review per REVIEW_GUIDE.md.

Blocking. After three unparseable replies this scores 0.0 on all four metrics with no per-instance record: no flag in output.metadata, no raw judge text. In saved predictions that is indistinguishable from a genuine zero. Please write an explicit parse-failed flag and the last raw response into output.metadata (and the raw response on success); build_predictions already forwards a judge_result key.

if attempt < DEEPSEARCHQA_JUDGE_ATTEMPTS - 1:
await asyncio.sleep(2**attempt)

num_matched, num_excessive = parsed if parsed is not None else (0, 0)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agent review per REVIEW_GUIDE.md.

Blocking (mirror of the same finding in deepsearchqa.py). Exhausted retries score 0.0 with no per-instance parse-failure flag or raw judge response in output.metadata.

class DeepSearchQAScorer(Scorer):
"""Placeholder scorer; DeepSearchQA scores are computed in ``score_responses``."""

name: str = "deepsearchqa_f1"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agent review per REVIEW_GUIDE.md.

All four scorer instances share this name and differ only in score_key; task._get_scorers() returns one entry, and score() reads the unprefixed key while score_responses writes score:..., so it returns 0.0 whenever called. analysis/pairwise.py matches metric.scorer().name against the stored metric:scorer key, so precision/recall/exact-match will not resolve their display profile. Deriving name from score_key fixes both.

) -> Sequence[Response]:
"""Judge each response's answer set against the gold answer set."""
self._extract_answers(responses)
judge_fn = build_deepsearchqa_judge_fn()

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agent review per REVIEW_GUIDE.md.

The runner calls score_responses with a single response (runners/asynq/results.py:224), so this builds a fresh OpenAI client and a fresh adaptive request-shape cache per instance; every instance re-learns that gpt-5.5 rejects max_tokens and temperature. frontierscience.py caches the judge on the task for this reason. Also, max_tokens=1024 at medium effort is a shared reasoning+output budget on chat completions; how many judge calls needed a retry in the smoke test?

DEEPSEARCHQA_OFFICIAL_METRICS = (F1_METRIC, PRECISION_METRIC, RECALL_METRIC, EXACT_MATCH_METRIC)


@register("deepsearchqa_official_judge")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agent review per REVIEW_GUIDE.md.

Question: the implementation that matches the paper's grader lives under the qualified name, while the independently designed mechanic owns deepsearchqa. The guide's parity rule gives the plain name to the reference-matching port and names the divergence. Could we swap (e.g. deepsearchqa = official prompt, deepsearchqa_final_answer = index matching) before the first stored results exist?

Both lists hold the 0-based indices (into the lists above) of the items \
that were matched."""

_JSON_OBJECT = re.compile(r"\{.*\}", re.DOTALL)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agent review per REVIEW_GUIDE.md.

Nit: unused after the raw_decode change (same in deepsearchqa_official_judge.py:131).

@wu-ming233 wu-ming233 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went through the automated reviews, and I agree with the major blocking items:

  • the comma-based splitting does not work for the set-based answers, and instead should be giving the raw string to LLM to judge
  • judge information should be included in TaskConfig for hashing purposes
  • the failed judgements should explicitly warn

The other automated reviews are non-blocking to me.

I implemented these fixes here, for your reference.

Additionally, I changed our own judge to also use the official judge prompt (with a small tweak) to try to follow original eval as much as possible, so both deepsearchqa.py and deepsearchqa_official_judge.py use official prompt, except we extract FINAL ANSWER: in deepsearchqa.py.

@fabrahman

Copy link
Copy Markdown
Contributor Author

I went through the automated reviews, and I agree with the major blocking items:

  • the comma-based splitting does not work for the set-based answers, and instead should be giving the raw string to LLM to judge
  • judge information should be included in TaskConfig for hashing purposes
  • the failed judgements should explicitly warn

The other automated reviews are non-blocking to me.

I implemented these fixes here, for your reference.

Additionally, I changed our own judge to also use the official judge prompt (with a small tweak) to try to follow original eval as much as possible, so both deepsearchqa.py and deepsearchqa_official_judge.py use official prompt, except we extract FINAL ANSWER: in deepsearchqa.py.

@wu-ming233 The fix looks great and clean. Thanks!
Merging the fix.

@fabrahman
fabrahman removed the request for review from wu-ming233 September 24, 2026 23:43
@gregorybchris

Copy link
Copy Markdown
Collaborator

This review was generated by an agent following REVIEW_GUIDE.md. It is not from a human reviewer. Reply in the PR thread and a maintainer will follow up.

The fixes from the last round landed well. The judge settings are now in the task hash, the gold answer is passed through unsplit, and exhausted judge retries leave a record. A few things we should address before merging.

I found two issues that affect persisted results, so they should be fixed before merge. The rest are non-blocking items (several carried over from the previous review) and nits. Verification: ruff check, ruff format --check, and ty pass (ty's one diagnostic is also on main), and the 154 DeepSearchQA tests pass. I reproduced each finding below with a short script against this branch.

Blocking

  1. src/olmo_eval/evals/tasks/deepsearchqa.py:263
    call_deepsearchqa_judge catches every exception from the judge call and handles it like an unparseable reply. I ran score_responses with OPENAI_API_KEY unset: all four metrics were 0.0, and _count_infrastructure_scoring_errors returned 0, so the task finishes with no error. An invalid key, an exhausted quota, or sustained 429s end the same way. The only backoff is 1s and then 2s, so a burst of rate limits across 900 instances becomes a run of zeros. This turns infrastructure failures into scores. Please follow frontierscience.py:284: wrap the judge call in retry_with_backoff, retry only the parse failures, and raise ScoringIncompleteError when the API still fails after retries. The runner then marks the task incomplete (_format_scoring_error sets infrastructure). Please add a test where the judge raises on every call and assert that the task result carries an error. Part of this is a framework fault: _infrastructure_error in runners/asynq/preparation.py:350 assumes every such failure comes from the sandbox, and its message should be made general.

  2. src/olmo_eval/evals/tasks/deepsearchqa.py:519 (and deepsearchqa_official_judge.py:241)
    On a successful judge call, none of the judge's diagnostics reach the saved predictions. build_predictions copies only certain metadata keys (runners/io/builders.py:73-104). deepsearchqa_submitted_answer, deepsearchqa_gold_answer, and deepsearchqa_official_num_gold / _num_matched / _num_excessive are not among them. I confirmed the saved model_output entry contains only text, extracted_answer, num_chars, and sample_metrics. The raw judge response is also not stored on success, which the previous review asked for. This matters more now that the recall denominator comes from the judge (the number of keys in Correctness Details): a stored recall of 0.2 cannot be checked after the run. Please write judge_result on success too, with the status, the raw response, and the three counts. That key is already copied to disk. A test that runs build_predictions on a scored response and inspects judge_result would lock this in.

Non-blocking

  1. src/olmo_eval/evals/tasks/deepsearchqa.py:316 and :345
    All four metrics share one scorer named deepsearchqa_f1, so the stored aggregate keys are deepsearchqa_recall:deepsearchqa_f1 and so on. Each instance's precision entry also carries a stray deepsearchqa_f1: 0.5 inner key. Could we name the scorer deepsearchqa_judge, matching frontierscience_judge? It changes the stored keys, so it is cheapest before any results exist.

    name: str = "deepsearchqa_judge"
  2. src/olmo_eval/evals/tasks/deepsearchqa.py:367 and :362
    gpt-5.5 is an alias that can change underneath stored results. frontierscience.py pins gpt-5.5-2026-04-23. Could we pin the same snapshot here, and set revision= on the DataSource so the dataset is pinned too?

  3. src/olmo_eval/evals/tasks/deepsearchqa_official_judge.py:158
    This task sets judge_max_tokens = 1024 while deepsearchqa uses 8192, even though both now send the same prompt and expect the same output. At medium effort, reasoning shares that budget, and build_openai_judge_fn returns "" when it runs out, which counts as a judge failure. Please remove the override.

  4. src/olmo_eval/evals/tasks/deepsearchqa_official_judge.py
    Now that the prompt and parser are shared, the two tasks differ only in format_request, extract_answer, and the metric prefix. The score computation, scorer, metric, judge builder, score_responses, and _score_single are copied nearly line for line, and DEEPSEARCHQA_OFFICIAL_JUDGE_PROMPT and parse_deepsearchqa_official_judge_response only pass through to the shared versions. Could these move onto DeepSearchQABase, parameterized by a metric prefix, so a future fix lands once?

  5. src/olmo_eval/evals/tasks/deepsearchqa_official_judge.py:152
    Both tasks now use the official judge prompt, so the name deepsearchqa_official_judge no longer describes the difference. The difference is the answer format: free-form versus a FINAL ANSWER: line. Could we rename them, for example deepsearchqa for the free-form task (the one that matches the paper) and deepsearchqa_final_answer for the other? This is cheap until results are stored.

  6. src/olmo_eval/evals/tasks/deepsearchqa.py:19-27 and src/olmo_eval/evals/tasks/DEEPSEARCHQA.md:55-112
    The docs still describe grading that was removed. The module docstring says the task uses "an independently written judge prompt" and index matching. DEEPSEARCHQA.md describes index matching (lines 66-94), calls the prompt verbatim (line 99), says matched counts are capped (line 103), and points to "index-matching metadata" (line 111). The comment at deepsearchqa.py:118 says the output format was rewritten as a JSON template, so the prompt is not verbatim. Please update both, and state exactly how the prompt differs from the notebook.

  7. src/olmo_eval/evals/tasks/deepsearchqa.py:488
    Only outputs[0] is judged. With two samples, the second output gets no score: keys, and output_score_aggregation is ignored. Please either score every output or raise when len(outputs) > 1, so a future sampling variant does not score one sample silently.

  8. src/olmo_eval/evals/tasks/deepsearchqa.py:112
    When the FINAL ANSWER marker is missing, nothing records it. build_predictions already saves a standard answer_format_correct key (builders.py:103). Could extract_answer set it?

  9. src/olmo_eval/evals/tasks/deepsearchqa.py:224
    The parser returns the first JSON object that decodes, even if it is not the verdict. 'Note {"a": 1}. {<valid verdict>}' returns None and triggers a retry. Could it skip objects that lack "Answer Correctness"?

Nits

  • Nit: deepsearchqa.py:243: if the judge repeats a gold key in Correctness Details, JSON keeps only one copy, so num_gold is too low ({"Smith": true, "Smith": false} parses to (1, 0, 0)).
  • Nit: deepsearchqa.py:240: a missing "Excessive Answers" key is treated as an empty list, which gives full precision. Treating it as a parse failure would be stricter.
  • Nit: deepsearchqa.py:493: the summary warning requires len(responses) > 1, but the runner always passes one response, so it never fires.
  • Nit: deepsearchqa.py:106: extract_final_answer still matches a marker inside a <think> block, since this task does not set strip_thinking.
  • Nit: DEEPSEARCHQA.md:23-36: the "Files" section, including "No other files were modified", reads as a changelog.

Before merge

Please fix the two blocking items (judge API errors become zeros, and judge diagnostics are not persisted), each with the test described. Non-blocking items 1 and 5 change stored metric keys and task names, so they are much cheaper now than after the first results exist. If you decline them, please say so in the thread so the decision is on record. The existing "Changes requested" review will also need a re-review or dismissal. After that, you may merge once CI is green.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants