Skip to content

feat: [GDPval-AA v2 Updates 4 / n] - Re-Run Failed Tasks and Judgements Only - #1846

Merged
agronskiy merged 6 commits into
mainfrom
vadams/gdpval-task-judge-rerun
Jul 1, 2026
Merged

agronskiy merged 6 commits into
mainfrom
vadams/gdpval-task-judge-rerun

Conversation

@vadam5

@vadam5 vadam5 commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a task re-run mode (rerun_incomplete) to the Stirrup agent that resumes an evaluation by re-executing only the tasks that didn't finish, instead of re-rolling every task. Composes with execute_only, judge_only, and multi-stage ELO.

Changes

  • rerun_incomplete mode (responses_api_agents/stirrup_agent/app.py): a task is treated as finished if a finish_params.json marker exists under persist_deliverables_dir. Finished tasks skip the rollout; tasks that never finished are rolled out again.
  • Cached judgements: /verify results are persisted next to each deliverable so already-judged tasks return their cached result instead of re-judging. Un-judged finished tasks are scored once; in execute_only the cached payload is returned as-is.
  • rerun_incomplete + judge_only: judges only tasks with no cached judgement, returning cached results for the rest.
  • Multi-stage ELO support: the verify cache is keyed by the stage's reference subset (repeat_<n>_verify_response_<refset-hash>.json, order-independent). A resumed stage that reselects the same references reuses its cached judgement; a stage scoring a different subset judges once and caches separately. The agent stays agnostic to the verify payload (no benchmark-specific reconstruction).
  • Config + docs: rerun_incomplete exposed via RERUN_INCOMPLETE env in benchmarks/gdpval/config.yaml and stirrup_gdpval.yaml; READMEs document execute_only, judge_only, rerun_incomplete, and the re-run behavior matrix.
  • Tests: _task_finished (marker-only), and TestReferenceKeyedVerifyCache covering cache-path uniqueness/order-independence, same-set reuse, and different-set re-judging.

Benefits

  • Cheap resumes: only unfinished tasks are re-rolled and only unjudged tasks are re-judged — big compute/cost savings on interrupted or partial runs.
  • No wasted judge calls: cached judgements avoid re-running the (often expensive) judge on work already scored.
  • Correct under multi-stage ELO: reference-set keying guarantees a cached judgement is only reused for the exact references it scored.
  • Composable: works with execute_only, judge_only, and multi-stage without new flags beyond rerun_incomplete.
  • Low complexity: additive to the existing flow; the agent remains benchmark-agnostic.

@copy-pr-bot

copy-pr-bot Bot commented Jul 1, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@vadam5 vadam5 changed the title feat: [GDPval-AA v2 Updates 4 / n] - Re-Run Failed Judgements Only feat: [GDPval-AA v2 Updates 4 / n] - Re-Run Failed Tasks and Judgements Only Jul 1, 2026
@vadam5
vadam5 requested a review from agronskiy July 1, 2026 05:43
Signed-off-by: Virginia Wu <[email protected]>
@agronskiy
agronskiy merged commit 9fa5d87 into main Jul 1, 2026
9 checks passed
@agronskiy
agronskiy deleted the vadams/gdpval-task-judge-rerun branch July 1, 2026 12:13
agronskiy added a commit that referenced this pull request Jul 1, 2026
## Multi-judge panel for GDPVal

***Depends on #1846

Grades GDPVal deliverables with a **panel** of LLM judges instead of a
single model. One panel member is sampled per scoring call, so the
reward pools verdicts across models. Applies to **every** judge mode —
rubric (text / visual / structured) and pairwise comparison, including
multi-stage ELO. Matches [GDPval-AA
v2](https://artificialanalysis.ai/methodology/intelligence-benchmarking#gdpval-aa)
benchmark description:

### What's new

- **`judge_panel` config**: a list of members, each a distinct model +
reasoning config. Default panel: GPT-5.5 (medium), Gemini 3.1 Pro
Preview (high), Claude Opus 4.8 (thinking). All route through the single
`gdpval_judge_model` proxy and differ only by model id + reasoning
knobs; a member can point at its own `model_server`. Per-member `weight`
controls sampling odds.
- **Per-member sampling**: rubric text/visual samples one judge per task
(`judge_name` recorded); structured rubric and comparison sample per
trial. Comparison responses carry `judge_panel`, pooled per-member
`per_judge` counts, and per-matchup `trial_judges`.
- **Reproducible selection**: sampling is seeded from a stable identity
(`(task_id, "rubric")` / `(task_id, ref_id, ref_repeat)`) so reruns draw
the same judges; `judge_sampling_seed` (`JUDGE_SAMPLING_SEED`) shifts
the stream. Keeps multi-stage ELO reruns (with `RERUN_INCOMPLETE`)
replayable per reference subset.
- **Audio/video routing**: tasks with audio/video files (detected by
extension, including inside `.zip` archives) are routed to the member(s)
flagged `handles_audio_video: true` — Gemini by default. Comparison
responses set `av_routed: true`; falls back to the full panel if none
are AV-capable.

### Implementation

- **New `resources_servers/gdpval/judge_panel.py`** — shared primitives:
`ResolvedJudge`, `sample_judge` (weighted, seedable), `make_rng`,
`merge_create_kwargs` (per-member overrides; `None` drops a default),
`panel_summary`, and AV detection/selection.
- **`app.py`** — `JudgePanelMember` config + `judge_panel` /
`judge_sampling_seed` fields; `_effective_panel()` /
`_resolve_judges()`; both verify paths sample the panel, seed the RNG,
and route AV tasks.
- **`comparison.py` / `scoring.py`** — `run_trials` and all three
scorers take a panel + rng and sample per trial; per-member reasoning
overrides merged into `chat.completions.create`.
- **`benchmarks/gdpval/config.yaml`** — default 3-member panel (model
ids overridable via `JUDGE_GPT_MODEL` / `JUDGE_GEMINI_MODEL` /
`JUDGE_CLAUDE_MODEL`), Gemini flagged AV-capable, `judge_sampling_seed`.
- **Docs** — new *Multi-judge panel* section in
`benchmarks/gdpval/README.md` + cross-reference in the stirrup agent
README.

### Backward compatibility

A single judge is just the degenerate one-member panel synthesized from
the existing `judge_model_server` +
`judge_responses_create_params_overrides`, so existing configs are
unchanged. Set `judge_panel=null` to force single-judge behavior.

---------

Signed-off-by: Virginia Wu <[email protected]>
Signed-off-by: Alex Gronskiy <[email protected]>
Co-authored-by: Alex Gronskiy <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
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.

2 participants