Baseline Fidelity Report — Paper Conformance of the Published Baselines#
Trust artifact for the benchmark baselines: for every shipped method, which paper and which official repo it claims to implement (at a pinned commit), which contract items are verified, which deviations from the paper/official code exist and are admitted here, and which test pins each contract item. The pinned commits below are what the verification was performed against.
Reading rule: anything not listed as a deviation and not flagged below is implemented per the cited paper section / official file. Where paper and official code disagree, the authority order is paper text > official repo > this implementation, and the disagreement itself is recorded.
1. Scope#
The framework ships 8 published optimization methods (registry: raw, cot, hill_climb, evoprompt, opro, ape, protegi, spo).
The compare machinery (COMPARE_EVAL capability, validate_assembly, the
PairwiseJudge extension point) stays implemented and tested: SPO’s OvO
(one-vs-one) selection exercises it, and the assembly-rejection guarantee is pinned by a
synthetic in-test compare-only fixture (tests/contract/test_core.py:: test_compare_only_fixture_rejected_from_accuracy_board).
3. Cross-method decisions and framework-side fixes#
Decisions that apply across methods:
Judge / optimizer model identity. Compare judging and OvO ballots use the same deployment model as generation; there is no separate judge model. This is a deliberate decision (it keeps the cost profile honest and the deployment surface single-knob).
AnswerPairwiseJudgevsDefaultPairwiseJudge.AnswerPairwiseJudge(registry nameanswer) is answer-vs-answer, the paper’s OvO: two model answers to one question, verdict A/B/tie, no reference field at all.DefaultPairwiseJudgecompares instruction texts (the frameworkCompareEvalModelpath). SPO selection structurally cannot see gold labels.Extraction profiles (
eyas/engine/genio.py).single_bracket(opro),single_tag(evoprompt, spo, protegi edits/synonyms) andlines(multi-line instruction pools, viaparse_instructions, available to custom methods) replace the one-size line-split. APE does not take a profile: oneclean_instructionpass yields its single candidate. The 500-char cap lives inclean_instruction(and therefore inlines) and is registered as a deviation there (D6).Split-qualified, type-tagged record store (schema stamp 3). Outcome rows are keyed by
(namespace, prompt_id, sample_id, split)(the store’s namespace plus the prompt’s content hash), and the prediction column is type-tagged (s:str /j:JSON / NULL for None), so a free-text answer that merely looks like JSON round-trips as a str (resume byte-fidelity); a store written under a different schema is refused at open with an explicit version-mismatch error (silent record-miss replay would hide the mismatch). Such stores are deliberately not resume-compatible and there is no migration tool; starting a fresh run dir is the supported path.Deterministic ranking. All strategy sorts key on
(-score, prompt_hash)(tests/engine/test_ranking.py). The larger-evidence tie-break lives inArchive.add(notArchive.ranked): on an equal score the record with the larger per-sample evidence set replaces the incumbent, so a tied subset record cannot permanently mask the closing full-split record; equal score and equal size keep the first writer.Archive.rankeditself only sorts by descending score with remaining ties broken ascending by prompt id.Decision.items(typedWorkItem(prompt, sample_ids)): an evaluate round carrying explicit work items;budget.takeover(round_idx)tells allocators the round’s load is strategy-owned (BanditBudget discards its arm state and re-baselines). Primitives for SPO’s per-round sampling; pinned intests/contract/test_budget.py. The loop callsobserveunconditionally after every evaluate round, including a strategy-owned one, so a post-takeoverBanditBudget.observeis a documented no-op (nothing to credit: the arms were discarded; the nextpropose_loadre-baselines UCB).BudgetAllocator.rank(): beam ordering by pooled bandit Q̂ for ProTeGi (implemented byBanditBudget,Noneelsewhere → archive-score “Unif” fallback).Sampling tiers (
eyas/engine/sampling.py,DEFAULT_TIERS):generate/evolve/gradient/synonym/compare(noevaltier: evaluation rendering rides the evaluator’s deployment sampling); the deployment layer owns thinking/seed for generation/eval rendering (the judging channel is pinned greedy by design, docs/10 §6). No perturbation tier exists.Resume fidelity protocol: one mid-round resume-equivalence test per strategy (
tests/runs/test_resume.py), checkpoint→resume→byte-identical continuation. Checkpoints are written only at round boundaries, so a mid-phase resume re-derives the in-flight round’s generations from the checkpointed state (round-atomic redo: the generation work is redone, never replayed from a store; “the generation stream replays byte-identically” is a test-side property of the deterministic responder, not a framework guarantee).
4. Per-method conformance#
4.1 raw / cot (framework baselines, no paper)#
Contract item |
Implementation |
Test |
|---|---|---|
raw = task seed prompt, one train round + final_eval |
|
|
cot = seed prompt + CoT guidance rendered into the task prompt ( |
task-side |
|
No deviations: these make no paper claim.
4.2 ape — ICLR 2023 (Zhou et al.)#
Contract verified against the author repo (keirp/automatic_prompt_engineer,
forward induction path):
# |
Contract item |
Authority |
Verified by |
|---|---|---|---|
A1 |
Candidates are few-shot induction instructions built from forward demos, then scored on the eval set |
paper §2 (instruction-induction framing); |
|
A2 |
Demo format |
|
|
A3 |
MCQ phrasing: |
framework adaptation (see A2) |
|
A4 |
One candidate survives per proposal; the completion is cleaned by marker stripping + first-segment selection ( |
verified against the pinned commit; |
|
Deviations (registered):
# |
Deviation |
Why |
|---|---|---|
D1 |
Pool size 4 per call (paper/official default 50 candidates via multiple rounds) |
budget scaling; registered as a deviation in this section |
D2 |
Initial task instruction stays in the candidate pool as a monotonicity floor; the official pipeline scores only generated candidates |
deliberate guard against crowning a degenerate best (the paper text does not claim the initial prompt is a candidate); design decision recorded in |
D3 |
Demos are drawn from the selection split (the loop’s eval split) |
the loop split is the optimization data per the two-stage protocol; paper uses the training set |
D4 |
No multi-stage top-k% candidate filtering (paper Alg. 1 lines 2–9) — flat full-split evaluation of every candidate |
ranking-equivalent endpoint, cost-saving stages dropped; budget simplification |
D5 |
Demo draws are stratified by label ( |
class coverage can only improve; pinned by |
D6 |
List-valued references are rendered through a top-level |
the official templates never pin the text form of a multi-value answer |
D7 |
Two demos per induction prompt ( |
budget scaling; the demo count is also the per-request image bound ( |
D8 |
Empty references produce a blank |
unreachable in practice with shipped tasks |
Scoring matches the official pipeline: candidates are ranked by their exact evaluation score (rank_by_score), no softening, no floor.
4.3 opro — ICLR 2024 (Yang et al.)#
# |
Contract item |
Authority |
Verified by |
|---|---|---|---|
O1 |
Trajectory = (instruction, score) pairs; the top-k scoring entries are kept |
|
|
O2 |
Displayed ascending (low score first) |
official sorts ascending at |
same test |
O3 |
One candidate per completion via |
echo guard: our design (spec-inherited); official pipeline cites at the pinned commit |
|
O4 |
Score displayed as integer percent (×100) |
official meta-instruction format |
|
O5 |
Meta-prompt carries the regularizer sentence (“concise, effective, generally applicable”) |
official meta-instruction text ( |
|
O6 |
3 train exemplars, text-only (question + gold answer; images excluded from optimizer prompts) |
design decision for cost |
|
O7 |
Selection signal = the candidate’s full-selection-split mean score, re-measured over the whole split every round ( |
official evaluates every candidate over the entire train index ( |
|
O8 |
Termination = the round budget; the paper’s prose “unable to propose new solutions” stop clause fires only after one same-meta-prompt retry of an empty generation round ( |
official code has no early stop ( |
|
Deviations (registered):
# |
Deviation |
Why |
|---|---|---|
D1 |
Cap 8 (paper 20), K 4 (paper 8), rounds/temp ladder at shipped values |
budget scaling; the shipped values are the registered deviations |
D2 |
The official display filter |
display-bandwidth knob unshipped; the asymmetry is registered here |
D3 |
Proposal temperature 0.9 vs official fixed 1.0 — and temperatures are owned by the deployment layer (tiers), never hard-coded per method |
framework deployment contract |
D4 |
Over-cap overflow truncates the tail instead of dropping oldest entries |
display-bandwidth equivalence; identity of kept entries matches official for ≤ cap |
D5 |
Exemplars are the first-N of the selection split, not random per step (the paper’s own criterion options admit more than random) |
resume determinism |
D6 |
Displayed percent is |
verified at the pinned commit |
D7 |
|
ours, spec-inherited; paired with the O3 marker-echo mechanism |
Paper-vs-code disagreement: the paper’s prose describes score-bias orderings;
the official code simply keeps the top-max_num_instructions by score. We
follow the code (authority order §2 rationale). Official candidate filtering
beyond the trajectory display is md5 dedup + a 500-char length skip
(opt_utils.py:785-806); our over-cap behavior is a tail
truncation (D4) and no length skip is shipped.
4.4 evoprompt — ICLR 2024 (Guo et al.)#
# |
Contract item |
Authority |
Verified by |
|---|---|---|---|
E1 |
GA: two-step crossover → mutation templates, one-shot example, ported semantics |
GA prompt templates |
|
E2 |
DE four-step: identify differences → mutate parts → combine with the historical champion ( |
paper Alg. 2; DE prompt templates ( |
|
E3 |
Donors r1 ≠ r2, both ≠ base index |
|
|
E4 |
Parent selection defaults to roulette wheel; tournament is a knob ( |
official |
|
E5 |
Population: evaluate full seed pool, then truncate to popsize by rank |
documented semantics: the seed pool is evaluated in full before truncation |
|
E6 |
|
checkpoint/resume contract (§3) |
|
Deviations (registered):
# |
Deviation |
Why |
|---|---|---|
D1 |
DE donor slots are padded when population \ {base} has fewer than two members, so the per-slot trial shape still runs (a single individual cannot supply distinct donors; the official code hard-requires popsize ≥ 4). GA has no pad — an initial pool under 2 distinct members raises at |
fixed-point degeneracy guard, DE-only by design |
D2 |
DE tie ( |
tie rule stated explicitly here |
D3 |
Roulette second parent is drawn from the renormalized remainder (no self-pairing), vs official replace-true twins; equal-fitness case is exactly uniform, first-parent marginal exact |
immaterial micro-deviation, design decision |
D4 |
Evolve temperature 0.7 vs official 0.5; the two operators share one tier ( |
deployment-layer temperature |
D5 |
Templates are text-only (no image token — the renderer adds the image) |
framework rendering contract |
D6 |
Initial-pool provenance: the official pipeline LLM-generates the N_P=10 initial instructions per task at run time; ours ships 10 curated static English seed prompts per dataset via |
reproducibility discipline (the official pool changes with the generator model/temperature); pools live in the 4 quickstart cells, the bench-scale cells inherit them verbatim through the dataset prompt asset in |
D7 |
No silent single-prompt fallback for evoprompt GA: |
fail-fast (no silent fallback): structural infeasibility must never reach the GPU; the configurator fixes configs (same doctrine: the configurator owns sample quantities) |
E-note |
Official defaults: |
naming alignment, recorded |
4.5 protegi — EMNLP 2023 (Pryzant et al.)#
# |
Contract item |
Authority |
Verified by |
|---|---|---|---|
P1 |
Two-call textual gradient → edit: separate critique request (“write N reasons why the prompt got these examples wrong”) and edit request (“revise the prompt using this feedback: {gradient}”) |
|
two-call sequence fingerprint |
P2 |
Error groups sampled randomly (size 4), never a head slice |
paper §3 (random minibatches of errors) |
|
P3 |
Paraphrase expansion pass, separate sampling tier |
paper §3 paraphrase step; official |
|
P4 |
Beam truncation by pooled bandit Q̂ ranking ( |
paper §3.4 UCB formulation; official |
|
P5 |
Flat-budget full-evaluation remains as the paper’s “Unif” comparator (opt-in) |
paper’s uniform-sampling baseline variant |
bandit config pins + Unif fallback tests |
P6 |
Beam order = |
paper Alg. 1 |
|
P7 |
|
checkpoint/resume contract (§3) |
|
P8 |
One beam parameter b (expansion breadth + |
recorded erratum; traceability comment in |
Deviations (registered):
# |
Deviation |
Why |
|---|---|---|
D1 |
Error pool is built from durable |
framework cache-first contract; semantically the same pool with replayed scores |
D2 |
UCB exploration constant |
simplification recorded |
D3 |
Paper-derived config defaults (minibatch size, expansion factor, mc samples) scaled down for benchmark budgets |
registered as a deviation in this section |
D4 |
|
wording drift, semantics pinned by fingerprint |
D5 |
Numbered-without-tags gradient output merges into one gradient (parser strictness) |
parser trade-off, registered |
D6 |
|
registered as a deviation in this section |
D7 |
The bandit’s last pull may be a PARTIAL window: the official algorithm draws a fixed-size batch of N per round (paper Ar. explicitly reuses samples across rounds), so our fixed sequential windows deviate in two registered ways: no inter-round reuse, and a shorter final round when the split is not a multiple of |
the official caps are fixed while the selection split is whatever the benchmark provides — the configurator, not the runtime, reconciles the two; registered so a short final round is not mistaken for a bug |
D8 |
Official 8×32 does not fit the quickstart toy splits — the four quickstart protegi cells run on 74 (pets) / 100 (sroie, textvqa) / 110 (cub) sample selection splits, i.e. only |
fail-fast contract (“no silent fallback”): the error must carry actionable remediation for the configurator; silent degradation and silent adaptation are both excluded |
4.6 spo — Findings of EMNLP 2025 (Xiang et al.)#
# |
Contract item |
Authority |
Verified by |
|---|---|---|---|
S1 |
Loop = OvO answer voting: incumbent vs challenger on paired samples; accept iff |
paper §3 + abstract (“simple yet effective” pairwise preference); official paired-swap evaluation |
|
S2 |
ABBA position swap with 4 votes per pair; unparsable/tie tally 0.5 per side |
official |
|
S3 |
Selection vote is structurally gold-free: |
paper §3 framing; official prompt templates |
|
S4 |
Optimize prompt carries the incumbent + its wrong samples’ |
official optimize-prompt templates ( |
|
S5 |
Pair schedule: split ids shuffled once, consumed without replacement across rounds; exhausted schedule appends a reshuffled cycle |
deterministic-resume contract (§3) |
|
S6 |
Seed pass + one closing full-split evaluate when the incumbent lacks a full record; |
framework contract (§3 |
|
S7 |
Phases/incumbent/challenger/cursor/schedule/gens_served persisted; resumed runs never resample voted pairs; |
state-persistence/resume contract (§3) |
|
S8 |
Generations reuse the record store; judge calls billed to the |
framework cost convention |
|
Deviations (registered):
# |
Deviation |
Why |
|---|---|---|
D1 |
Shipped matrix uses |
20 sits in the appendix’s scan region but is above the published rows — knob values are ours, registered |
D2 |
Zero offspring dedup (official keeps a deduplicated pending set) |
accepted drift; identity via prompt_hash only |
D3 |
Neutral tie smoothing: unparsable/tie → 0.5/0.5 split per side (official: missing verdict loses the ballot) |
deliberate smoothing, stated in docs/07 §6 |
D4 |
|
task-protocol adaptation (framework contract) |
D5 |
Seed derivation is deterministic per run ( |
reproducibility discipline |
D6 |
The shipped spo cells (the four quickstart bases, inherited by every bench cell) all carry two seeds while the loop carries one: |
fail-fast discipline; |
D7 |
|
budget scaling — the larger window buys a stabler ABBA vote at the shipped round count; stated in the series bridge (article 06) |
5. Benchmark generation status (read before quoting any number)#
All published numbers (docs/07 §3/§4/§5, docs/08 and the README
scoreboard) are emitted mechanically by
scripts/aggregate_bench_results.py from the runs’ result.json, so every
published table row can be regenerated by re-running that script over the run
directories. Per-sample prose observations come from the same runs’ durable
per-sample records. docs/08 and the README scoreboard come from the bench run set
(7 tags × 6 datasets × 8 methods × 3 seeds = 126 sweeps / 1008 runs, the
Qwen3.8-27B extension column included): every run completed, every bill cold
except the six nextqa 2B cells whose loop replayed from the record store (the
spend was billed on an earlier attempt of the same wave, and their cost means
say so); docs/07
comes from the quickstart run set (15 sweep invocations covering 90 E2 cells and
6 E1 arm cells) and is unchanged by the bench regeneration. The seed-42 directional readings all reproduced in the full-method
q9b sweep, which supplies the published 9B columns; the whole chain
(configs → runs → tables) is one generation.
6. Reproduction pointers#
Re-clone each authority repo at the pinned commit of §2 and read the cited files; a clone at any other hash is not authority.
Contract evidence lives in
tests/(fast tier, zero GPU): per-method fingerprints intest_contract.py, extraction intest_genio.py, resume fidelity intest_resume.py, ranking pins intest_ranking.py, store/schema intest_record_store.py, pairwise judging intest_pairwise.py, config allocator pinning intest_configs.py.Method end-to-end matrices run against
ScriptedMockBackend; every claim in §4 that cites a test is reproducible withuv run pytest.