Repository navigation
Add AA-Briefcase-Lite benchmark and artifact-aware judging - #3417
Conversation
Signed-off-by: Dan Zhao <[email protected]>
Fix Briefcase judging so each binary check receives its declared artifacts and a consistently selected, capable judge. - Route panel members through separate model adapters; retain model, reward and execution-mode environment overrides. - Preserve subtitle text and LaTeX source, label attached PDFs accurately, and insert artifacts at the released prompt’s submission marker. Shared SRT support can also change GDPval judge inputs for subtitle submissions. - Retry empty or malformed judgments without repeating valid votes. Log each binary transport attempt with timing and outcome metadata, without request content or credentials. Exhausted failures remain unscored and require coverage reporting. - Add the prepared-task schema and five genuine public-reference examples for Gym’s data validation contract. Claude currently uses adaptive thinking with **medium effort and a 48k output budget**. Medium deliberately differs from AA’s published maximum-effort setting; both choices remain under validation. GPT and Gemini retain AA’s published high-reasoning settings. JSON formatting, retry policy and local pairwise scoring are implementation choices, not a reproduction of AA’s unpublished harness or Elo calculation. Validation: 38 resource tests and pre-commit checks pass for the latest change. Final live validation remains incomplete. Stored public examples were generated under earlier judge settings, as documented in the resource README. [AA methodology](https://artificialanalysis.ai/methodology/intelligence-benchmarking#aa-briefcase) · [Released prompts and rubric](https://huggingface.co/datasets/ArtificialAnalysis/AA-Briefcase-Lite/tree/main) --------- Signed-off-by: Adam Rajfer <[email protected]>
Signed-off-by: Adam Rajfer <[email protected]>
Signed-off-by: Adam Rajfer <[email protected]>
AdamRajfer
left a comment
There was a problem hiding this comment.
Notes on the judge settings and why Briefcase needs the changes to the shared agent and artifact reader.
| name: aa_briefcase_lite_claude_judge_model | ||
| media_mode: native_pdf | ||
| create_params_overrides: | ||
| extra_body: {thinking: {type: adaptive}, output_config: {effort: medium}} |
There was a problem hiding this comment.
I chose medium effort deliberately; it differs from AA's maximum-effort reference setup. Keeping it explicit makes that choice visible rather than relying on a provider default. We still need to verify its effect on judging quality and comparability before treating it as equivalent.
| create_params_overrides: | ||
| extra_body: {thinking: {type: adaptive}, output_config: {effort: medium}} | ||
| temperature: null | ||
| max_tokens: 49152 |
There was a problem hiding this comment.
This is the configured output budget, not a measured minimum. We should verify that 49,152 tokens are necessary and sufficient for complete, valid judgments across the supported artifact types. The value alone does not establish equivalence with AA's setup.
|
|
||
| if tavily_api_key or _os.environ.get("TAVILY_API_KEY"): | ||
| if not allow_web_tools: | ||
| tools = [tool for tool in tools if not isinstance(tool, WebToolProvider)] |
There was a problem hiding this comment.
Briefcase must run offline, so its task strategy disables web tools even when search credentials happen to be present. Previously the shared wrapper could install the web provider from the environment. The default stays enabled for other tasks, preserving their existing behavior.
| "tool_response_as_user": True, | ||
| "skip_input_file_listing": is_gdpval, | ||
| "tool_response_as_user": tool_response_as_user, | ||
| "skip_input_file_listing": skip_input_file_listing or is_gdpval, |
There was a problem hiding this comment.
Briefcase needs tool results to remain tool messages and uses the released task prompt without an extra automatic file listing. These options let its task strategy select that behavior instead of changing the shared wrapper globally. GDPval retains its existing user-message setting and skips the listing through the existing is_gdpval condition.
| else: | ||
| home_spec = self._home_dir | ||
| network_section = "--net --network none" if self._disable_network else "" | ||
| shell_command = f"env HOME={shlex.quote(self._home_dir)} bash" if self._isolated_home else "bash" |
There was a problem hiding this comment.
Briefcase writes deliverables under /home/user, so the shell and its child processes need HOME to agree with the mounted home directory. The bind alone does not reliably set HOME when the image's user entry points elsewhere. Setting it inside the isolated shell avoids Apptainer's HOME environment override warning; callers that do not opt into an isolated home retain the previous path.
| "pptx": {"type": "DOC", "converter": _convert_to_pdf, "mime_type": "application/pdf"}, | ||
| "xlsx": {"type": "DOC", "converter": _convert_to_pdf, "mime_type": "application/pdf"}, | ||
| "txt": {"type": "TXT", "converter": _load_raw_text, "mime_type": None}, | ||
| "srt": {"type": "TXT", "converter": _load_raw_text, "mime_type": None}, |
There was a problem hiding this comment.
Briefcase includes an SRT deliverable alongside the video. Without this entry, the shared reader does not pass the subtitle text through as a supported text artifact, leaving the judge without part of the submission. This belongs in the shared reader, so GDPval subtitle submissions also gain the same handling.
| ) | ||
| judgement = parse_judgement(response_text) | ||
| if judgement is not None: | ||
| break |
There was a problem hiding this comment.
Briefcase opts into retrying an empty or malformed verdict for the same judge and A/B positions. The break preserves the first valid vote instead of sampling again after a usable result, and an exhausted invalid response still is not scored as a tie. The default remains zero formatting retries for existing callers; request_attempts separately avoids multiplying outer retries when the client already retries transport failures.
Signed-off-by: Adam Rajfer <[email protected]>
Signed-off-by: Adam Rajfer <[email protected]>
Signed-off-by: Adam Rajfer <[email protected]>
…lite-devel Signed-off-by: Adam Rajfer <[email protected]>
… LibreOffice Office deliverables reach the judge as a PDF rendering. The judge stage held only the requested files, so a render already sitting beside a deliverable never got there and conversion ran regardless, failing at judge time on a host without LibreOffice, after the rollouts were spent. Stage an existing render when it is attributable to exactly one Office source (<stem>.pdf, or the injective <name>.pdf sidecar when two Office files share a stem), keeping the Office original as the deliverable, and refuse to start when conversion is enabled and LibreOffice is unavailable. Signed-off-by: Adam Rajfer <[email protected]>
… from the model Office deliverables are graded through a PDF rendering, and two paths still sent the judge something else. With preconvert_office_to_pdf=false and no render beside an Office deliverable, staging produced a filename-only stub and grading continued, so a model was scored on a deliverable the judge never saw. Staging now raises instead. With conversion on, a PDF found beside an Office file was carried into the stage and replaced the conversion, so a PDF the model wrote itself could be graded in place of its spreadsheet. Renders are carried only when we do not convert. The startup guard moves into its own method so it can be covered by a test. Signed-off-by: Adam Rajfer <[email protected]>
…ssion callers The staging tests in test_app.py still called _stage_submission without the carry_renders argument. The render cases move into test_office_render_staging.py, where an absent or unattributable render now asserts the raise rather than a silent skip, and the server fixture stubs model_post_init so construction does not look for a dataset on disk. Signed-off-by: Adam Rajfer <[email protected]>
…3693) Add `pairwise_references`, one entry per opponent. A reference can point at a local run's deliverables (`task_<id>/repeat_<n>`) instead of the shipped submissions, and can list judges that must not score it, so a judge never compares a submission against its own model family. `pairwise_reference_ids` keeps working unchanged when `pairwise_references` is empty. A reference with no submission for a task, or whose exclusions leave no judge, is recorded as skipped with no vote counts instead of failing the whole comparison, so it cannot be mistaken for a tie. The pairwise precondition now checks the resolved references rather than the legacy list. Signed-off-by: Adam Rajfer <[email protected]>
dznvidia
left a comment
There was a problem hiding this comment.
Tested PR head f26df8d against gdpval-devel base 9d7c400
Validation results:
Snapshot preparation passed: job 7744094.
All 10 Office-render staging tests passed: job 7744324.
Trusted XLSX and PPTX PDF preparation passed: job 7745138.
Live four-task binary judge passed: job 7745205.
Result coverage was 4/4 rows and 55/55 checks.
Invalid judge responses were zero.
The previous Office failure no longer occurs. Existing trusted PDF renders are staged correctly. The server also fails early when runtime conversion is enabled without LibreOffice.
This resolves my Office staging and host-LibreOffice review concerns. The scores are local and are not AA leaderboard results.
One fresh policy-generation GPU smoke test on this updated head remains recommended because the PR also changes the Stirrup and Apptainer paths.
The updated PR passed snapshot validation, Office-render tests, trusted preconversion, abd the complete four-task live judge. Approving this PR.
Adds the four-task public AA-Briefcase-Lite benchmark on top of
gdpval-devel, with dataset preparation, an offline Stirrup task strategy, binary judging and local pairwise comparisons against the released reference artifacts.Changes
Validation
Local pairwise scores are not AA's unpublished Elo calculation. Claude uses adaptive medium effort with a 49,152-token budget; GPT binary judging uses high effort with 16,384 tokens, and Gemini uses high effort. These settings and retry behavior are documented implementation choices.
Public dataset and prompts