Skip to content

feat(catalogue): add GPQA - #695

Merged
aitianshi merged 7 commits into
mainfrom
feat/add-gpqa
Dec 2, 2026
Merged

aitianshi merged 7 commits into
mainfrom
feat/add-gpqa

Conversation

@aitianshi

@aitianshi aitianshi commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

What

  • Adds GPQA (idavidrein/gpqa at 56686c0): Diamond 198, Main 448 and Extended 546 multiple-choice questions, read from the upstream's password-protected archive and never written to disk.
  • Original is the authors' run_baseline.py: its AnswerPredictor, the five prompt types that still run, the paper's gpt-4 and gpt-3.5-turbo-16k-0613. Model runs any model in their place.
  • As the authors' script does, Original never asks the 70th question of a file and counts it wrong. An agent is asked every question.
  • A catalogue agent gets their zero-shot prompt; their own parser reads the letter.
  • Main is the default dataset, as the README's command. Diamond and Main are declared subsets of Extended: a recipe takes one.
  • The authors' script loads any .env above it; the driver stops that before it is imported.
  • The driver answers preflight.
  • Harbor route: gpqa-diamond/gpqa-diamond.
  • Not offered: the open-book baselines (Bing's Search API is retired), the answer-only classifiers.

The fidelity table is in the first comment.

Before and after

A new card and page. Headless Chromium, light and dark at 1280 px, light at 390 px: no error, no sideways scroll. No image attached.

Verified

  • prove, every unit of the three datasets: leak, nop 0, oracle all pass. The record names no unit.
  • Against the authors' script on whole files, stand-in model: the same requests and verdicts for all five prompt types.
  • On OpenAI: the Model setup, zero-shot on 2 questions and self-consistency on 1 (20 calls); Codex on 2. All ran and were scored.
  • A gated test: the 70th question, self-consistency's vote, the .env, no unit id in the entry or its page.
  • Backend 3,663, routes 967, on main of 2026-12-02.
  • Not run: Original with the paper's models (OpenRouter alone still serves them), the Harbor route.

Risk

  • A run's folder holds the questions in clear: not to be published.
  • Undo: delete the folder, regenerate the docs.

Agents

  • Claude Code, Fable 5.2
  • Claude Code subagents, unknown
  • Claude Code, Opus 5.5

@aitianshi

aitianshi commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator Author

Upstream vs Nullius: GPQA

Read from idavidrein/gpqa at 56686c0 and from the entry's driver.

Original (the authors' baseline answerer)

Upstream (baselines/run_baseline.py) Nullius Same?
Runner README: python baselines/run_baseline.py main --model_name gpt-4 --data_filename dataset/gpqa_main.csv --prompt_type <type> --verbose; AnswerPredictor.main() over the whole file Original = the same AnswerPredictor, unchanged, at the pinned commit, one question at a time: its create_prompts, then sample_answer (sample_consistent_answer for self-consistency) ✅ same requests and verdicts as main() on whole files
Models Accepts gpt-4, gpt-3.5-turbo-16k-0613, gpt-4-1106-preview, five completion models, claude-2; README: only the first two "implemented"; no default in code gpt-4 (default), gpt-3.5-turbo-16k-0613; Model setup: any model, the code told gpt-4 ⚠️ OpenAI retired both: served by OpenRouter
Prompt types zero_shot (default), 5_shot, zero_shot_chain_of_thought, chain_of_thought, self_consistency, retrieval, retrieval_content The first five ✅; ❌ retrieval: Bing's Search API is retired
System message "You are a very intelligent assistant, who follows instructions directly." Sent by its own select_and_call_model ✅
Temperature and output tokens temperature 0.0, 0.7 for each of self-consistency's 20 samples; max_tokens=1000 The same call; the relay changes the model name alone ✅
Dataset README's command: gpqa_main.csv Main by default; Diamond, Extended offered ✅
.env load_dotenv() from baselines/ up to / Not loaded by design
Choice order and seed load_examples: random.seed(seed) once, each row's four choices shuffled in file order; seed 0 The same call on the whole file; seed option, default 0 ✅
Questions asked Every row but the 70th: no call, logged not correct, kept in the denominator The same: not asked, scored 0, the guard read from main()'s source ✅
Retries MAX_NUM_RETRIES = 5, waits 1 to 81 s; then the script ends with no accuracy The same function; then that question is an error and the others run ⚠️ a failed question does not end the run
Caches cache_<model>.pkl kept where it runs None kept ⚠️ by design
Answer parsing parse_sampled_answer, then LETTER_TO_INDEX[letter] == correct_index The same function and comparison ✅
Accuracy correct / len(examples), plus a refusal fraction Passed / questions ✅; ⚠️ refusal fraction not reported

Any catalogue agent

Upstream Nullius Same?
Prompt Its zero_shot prompt as the user message The same text from its create_prompts ✅
Prompt types Five Zero-shot only by design
System message, model, temperature, tokens, retries Its own The agent's own by design
Tools, loop None: one call The agent's own by design
Questions asked All but the 70th Every question ⚠️ one more than Original
Choice order and seed As above The same loader call ✅
Answer parsing On the reply The same function on the agent's last message ✅
Time No limit 3,600 s a question ⚠️ ours

Where scores can differ

  • Served model. OpenAI has retired the paper's two models; OpenRouter still lists both. Not checked by a call.
  • A call that keeps failing. The upstream ends after six tries with no accuracy. Here that question is an error and the rest are scored.
  • Agents. One more question than Original, and an hour a question.
  • The paper. Its runs drew the choice order from a 564-question working file; the published files give another.

@github-actions github-actions Bot added the merge conflict Conflicts with its base: merge or rebase it label Dec 2, 2026
# Conflicts:
#	app/tests/test_catalog.py
#	docs/agents/supported/README.md
#	docs/agents/supported/claude-code.md
#	docs/agents/supported/codex.md
#	docs/agents/supported/digitalmate.md
#	docs/agents/supported/goose.md
#	docs/agents/supported/jiuwenswarm.md
#	docs/agents/supported/mini-swe-agent.md
#	docs/agents/supported/opencode.md
#	docs/agents/supported/swe-agent.md
#	docs/agents/supported/terminus-2.md
@github-actions github-actions Bot added merge conflict Conflicts with its base: merge or rebase it and removed merge conflict Conflicts with its base: merge or rebase it labels Dec 2, 2026
# Conflicts:
#	app/tests/test_catalog.py
#	app/ui_tests/test_catalogue_routes.py
#	docs/agents/supported/README.md
#	docs/agents/supported/claude-code.md
#	docs/agents/supported/codex.md
#	docs/agents/supported/digitalmate.md
#	docs/agents/supported/goose.md
#	docs/agents/supported/jiuwenswarm.md
#	docs/agents/supported/mini-swe-agent.md
#	docs/agents/supported/opencode.md
#	docs/agents/supported/swe-agent.md
#	docs/agents/supported/terminus-2.md
@github-actions github-actions Bot removed the merge conflict Conflicts with its base: merge or rebase it label Dec 2, 2026
@aitianshi
aitianshi marked this pull request as ready for review December 2, 2026 09:55
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added ci failing A check failed on its latest commit merge conflict Conflicts with its base: merge or rebase it labels Dec 2, 2026
# Conflicts:
#	docs/agents/supported/README.md
#	docs/agents/supported/codex.md
#	docs/agents/supported/jiuwenswarm.md
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added merge conflict Conflicts with its base: merge or rebase it and removed merge conflict Conflicts with its base: merge or rebase it ci failing A check failed on its latest commit labels Dec 2, 2026
# Conflicts:
#	docs/agents/supported/README.md
@github-actions github-actions Bot removed the merge conflict Conflicts with its base: merge or rebase it label Dec 2, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot added the merge conflict Conflicts with its base: merge or rebase it label Dec 2, 2026
# Conflicts:
#	docs/agents/supported/README.md
#	docs/agents/supported/claude-code.md
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

🔴 PR judge · 3 of 4 yes · #695, no linked issue

Merge risk 🔴 MAJOR the judge's reading of the diff
Depth 🟡 MEDIUM the deepest path is app/nullius/catalogue/benchmarks/gpqa/benchmark.json
Question Verdict
Changes do what the issue asks –
Issue and pull request describe the same change –
Description matches the diff ✅ yes
Diff stays in scope ✅ yes
Risk named in the description ✅ yes
Before and after shown · 0 images · the diff touches what is visible ❌ no
Checks the script runs itself, 4 of 4 pass
No machine attribution trailer in the commits or the description ✓
New code under app/, docs/, .github/, .agents/ or .claude/ ✓
No Flask import under the backend package ✓
No key-shaped string in the diff ✓

some of the diff was cut before the judge read it

@github-actions github-actions Bot removed the merge conflict Conflicts with its base: merge or rebase it label Dec 2, 2026
@aitianshi
aitianshi merged commit ff39118 into main Dec 2, 2026
3 checks passed
@aitianshi
aitianshi deleted the feat/add-gpqa branch December 2, 2026 10:30
@aitianshi aitianshi mentioned this pull request Dec 2, 2026
1 task
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.

1 participant