Repository navigation
Conversation
11 tasks done
GDP.pdf pairs 100 professional documents with a question and a hand-written rubric, 1,275 criteria in all. Each criterion is graded by its own judge call that sees only the response and that criterion, and the benchmark reports `all_pass` (every criterion satisfied) and `mean_criteria` (the fraction satisfied). The judge mirrors the published harness: verbatim prompt, strict JSON schema, strict parsing, and five attempts before a criterion is left unscored. Unscored criteria leave the `mean_criteria` denominator and drop their response from `all_pass`, so grading that does not complete reads as coverage loss rather than as failure, and `n_unscored` reports it. Attempts wait a randomized exponential backoff, and the judge model is configurable, defaulting to OpenAI rather than the leaderboard's Gemini. The published harness attaches the PDF itself, which suits models with native document input. Vision-language models take images, so documents are rendered to page images, lazily and per worker. Documents run 8-192 pages, past what a short-context model can hold: `gdp_pdf` attaches every page and `gdp_pdf_first16` attaches a prefix.
The published harness leaves judge sampling at the provider default; this port fixes temperature and seed so a re-run reproduces its numbers. Measured on the same responses and judge model, that costs about 0.02-0.03 of `mean_criteria` and raises the judge's agreement with itself from roughly 86% to 98%.
jason718
force-pushed
the
jasonr/gdp-pdf
branch
from
September 28, 2026 17:40
a5df3b6 to
cfbf1cd
Compare
This branch has not been deployed
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.
Adds GDP.pdf (Surge AI): 100 professional documents, each with a question and a hand-written rubric — 1,275 criteria in all, 3-30 per task, across healthcare, insurance, construction, real estate and other domains. Ported from the published harness
surge-ai/gdp-pdf; data fromsurgeai/GDP.pdf.Draft — the port is implemented and smoke-tested, but not yet validated against the published leaderboard. See Open below.
Tasks
gdp_pdfgdp_pdf_first16Documents run 8-192 pages (mean 62). The published harness attaches the PDF itself, which suits models with native document input; vision-language models take images, so pages are rendered here (lazily, per worker, via a picklable callable — building instances rasterizes nothing).
gdp_pdf_first16therefore measures a model on a prefix of each document and is not comparable to the leaderboard.Metrics
all_pass— every criterion satisfied (the leaderboard headline)mean_criteria— fraction of criteria satisfiedn_unscored— criteria the judge never returned a usable verdict forGrading is one judge call per criterion, the judge seeing only the response and that criterion — never the prompt or the document. A criterion that fails to parse after five attempts is left unscored: it leaves the
mean_criteriadenominator and drops its whole response fromall_pass. Grading that does not complete therefore reads as coverage loss rather than as a low score — the failure mode that recently turned a CharXiv run into 273 silent zeros (#337).Faithful to the published harness
Verbatim judge prompt, strict JSON schema (
scoreenum"0"/"1"), fence-stripping strict parse, decimal coercion, pass iffscore.round(4) >= 1, five attempts.Two deliberate deviations, both in the module docstring:
GDP_PDF_JUDGE_MODEL), defaulting to OpenAI rather than the leaderboard'sgemini-3.5-flash, so numbers are not leaderboard-comparable unless the official judge is selected.Verification so far
mean_criteria0.909 (10/11), a vague one 0.0,n_unscored0; aggregate metrics compute correctly.ruff check/ruff format --checkclean; 2054 tests pass.Validated against the published harness
Ran the published harness (gpt-4o, native PDF, gpt-4o judge) on 10 tasks, then graded its exact responses with this port's judge and metrics — same responses, same judge model, so any difference is the port.
all_passmean_criteriatemperature=0temperature=0)103 criteria over 10 tasks. With sampling matched the aggregate lands within 0.004 of the published harness. Per-criterion agreement falls under matched sampling (86.4%) because at the provider's default temperature both sides are independent noisy draws — agreement drops while the expectation converges, which is judge noise rather than a porting error. Fixing temperature raises the judge's agreement with itself to 98.1% at a cost of about 0.02-0.03
mean_criteria; the port keeps the deterministic setting and documents it, so re-runs reproduce.Open
Rebased onto
mainThe
visionbranch is superseded (#316–#324 merged), so this PR now targetsmainand follows its layout: the task lives atevals/vision/benchmarks/gdp_pdf.py(registered inbenchmarks/__init__.py) and the judge atevals/vision/scoring/gdp_pdf_judge.py;pymupdfjoinsty's allowed unresolved imports as a task-installed dependency. Same two commits, same content otherwise. On main: ruff/format/tyclean, 2,812 tests pass, both tasks build their 100 instances (11 rubrics on the first, lazy page rendering), and no existing task hash changes.