Navers lab
← Trajectory Explorer
Model SoupCompleted

CLIP weight averaging

Claude Sonnet 5 · Claude Code · xhigh effort

Public case ID: claude__model_soup_clip_imagenetv2__claude-sonnet-5__xhigh

Recipe shift

What the agent changed

Shipped baseline

Uniformly average all 72 ingredients; candidates must remain a complete affine weight-space combination.

Starting artifact: 72 frozen CLIP ViT-B/32 ingredient checkpoints

Candidate algorithm

Baseline flow: fixed ingredients - proxy predictions - top-1 selection - uniform/greedy weighted average - state dict (the exported model weights). Candidate flow: rank all ingredients and publish best-single (progress 1) and full strict greedy (progress 2); repeatedly run greedy on random halves to form out-of-bag (OOB), frequency, and stability candidates; paired-bootstrap the frozen pool on the whole proxy and publish its mean winner (progress 3). No trainable parameters, gradient loss, generated labels, or external data were added. The change is search/sampling, schedule, engineering, and checkpoint policy…

Exploration and replay evidence

Four-hour exploration

All proxy values use the same 2,000-row maximize-top-1 protocol. Baseline controls established the greedy fallback. Offset cross-tests and 20 paired 1,000/1,000 splits gave means uniform .6886, best .6919, greedy .6915 (greedy-best -.0005, SE .0012), so greedy was retained without claiming superiority to best-single. Continuous Adam/L2 weighting was unstable across folds; 15 refined-vs-equal splits gave .7017 versus .7028, so it was rejected. Twenty-four random-half greedy trials averaged .69425 held out (SD .01053) and motivated frequency/consensus candidate generation. A roughly 2,800-hypothesis add/remove/swap search reached .7070 but dropped model_69, so it was rejected as proxy overfit. Engineering added fast scoring, streaming averages, CPU memory fallback, deadlines, and three fallback checkpoints; a short smoke run exposed the consensus fallback path, then stability and challenger branches passed smoke and hull tests. The exploration-best proxy score was not the submitted method. Although the agent reported no active work, refine-CV took about 410 s, 24-way bagging about 694 s, and local search about 547 s; each fit within the remaining 3,354 s, making early submission a confirmed protocol failure.

Formal replay

Fresh formal construction used 41,759.96 seconds (96.67% of the 43,200-second budget), stopping at the 42,600-second deadline after the 900-second reserve; Stage A completed 751 replicates and Stage B 4,948. All three state dicts are loadable and in-hull. The top-level manifest labels termination agent_explicit_submit, while the construction log says the budget was reached; wrapper-level attribution is inconclusive, not a short-endpoint finding.

| Progress | Official final (imagenetv2_top1_full10000, maximize; n=10,000) | Diagnostic | |---|---:|---| | 1, best-single | .6874 ± .006722 | proxy .6935; remainder .685875; accepted, not best | | 2, strict greedy | .6936 ± .006761 | proxy .7025; remainder .691375; accepted, joint best | | 3, strict-greedy winner | .6936 ± .006761 | same diagnostics; accepted, joint best |

The proxy direction survives final evaluation, but the proxy-minus-remainder gap is .011125; proxy and final are overlapping but different protocols, so no direct significance claim follows.

Official reduction rule

Best of up to 3 retained checkpoints

3 retained
ArtifactProgressImageNet-V2 top-1Std. errornRole
artifact-110.68740.006710000Retained
artifact-220.69360.006810000Best
artifact-330.69360.006810000Final

Best retained

0.6936

artifact-2

Final checkpoint

0.6936

artifact-3

Checkpoint rule

Best is an earlier checkpoint

Win/loss versus the recipe is unchanged.

Reference comparison

Fixed start

0.6874

Best retained artifact beats it by 0.0062.

Shipped recipe

0.6859

Best retained artifact beats it by 0.0077.

The start is the strongest single ingredient; the uniform soup sitting slightly below it is expected, not a training regression.

Audit and provenance

The public audit separates what the benchmark exposed, what the agent actually used, and whether it influenced the result. “Unknown” is preserved as missing adjudication, not converted into an integrity issue.

Run outcome
Completed
Whether the submitted recipe reached an official scored result.
Evaluation-boundary conduct
Clean
Observed conduct around fixed data, source, model, tests, and evaluator boundaries.
Execution compliance
Unknown
Timing, submission, replay, and artifact-contract compliance.
Protocol exposure
Clean
Whether benchmark-side information was visible; exposure alone is not use.
Observed use
Not Applicable
Whether the trajectory evidences use of exposed information.
Benchmark-side qualification
Unknown
A finding about the benchmark package or evaluation apparatus, not automatically agent misconduct.
Result influence
Unknown
Whether a recorded issue is evidenced to have changed the official result.
Public lineage. Source-only patch replayed from the frozen start. Validated artifacts: 3. Patch ID: PATCH-a7399bcbd8dc. No private filesystem or receipt path is included.

Trajectory analysis

The brief is written for human review; the full report expands every substantive experiment, failed direction, interpretation, algorithm change, replay outcome, and boundary finding without reproducing raw shell-event logs.

Human-readable brief

claude__model_soup_clip_imagenetv2__claude-sonnet-5__xhigh - claude-sonnet-5 / Claude Code / xhigh

Status. Exploration and submission completed; formal replay ran to its wall-clock deadline, all three artifacts passed validation, and final evaluation is official for all three because each has both summary.json and .complete. Boundary checks found no hidden-value exposure or external-input use. The key result is a fixed-ingredient strict-greedy soup scoring 0.6936 on the full final set, with a separate confirmed violation for submitting exploration while 3,354 seconds remained.

What happened. The task selects/weights 72 frozen OpenAI CLIP ViT-B/32 ingredients, keeping the exported state dict in their affine hull. The shipped baseline is their uniform average; proxy top-1 on 2,000 ImageNetV2 rows is the only selection signal before scoring. The agent measured uniform 0.6880, best-single model_69 0.6935, and strict greedy 0.7025, then treated proxy split variance as the main problem and submitted a wall-clock-aware bagged_greedy patch with safe checkpoints.

Four-hour exploration. All proxy values use the same 2,000-row maximize-top-1 protocol. Baseline controls established the greedy fallback. Offset cross-tests and 20 paired 1,000/1,000 splits gave means uniform .6886, best .6919, greedy .6915 (greedy-best -.0005, SE .0012), so greedy was retained without claiming superiority to best-single. Continuous Adam/L2 weighting was unstable across folds; 15 refined-vs-equal splits gave .7017 versus .7028, so it was rejected. Twenty-four random-half greedy trials averaged .69425 held out (SD .01053) and motivated frequency/consensus candidate generation. A roughly 2,800-hypothesis add/remove/swap search reached .7070 but dropped model_69, so it was rejected as proxy overfit. Engineering added fast scoring, streaming averages, CPU memory fallback, deadlines, and three fallback checkpoints; a short smoke run exposed the consensus fallback path, then stability and challenger branches passed smoke and hull tests. The exploration-best proxy score was not the submitted method. Although the agent reported no active work, refine-CV took about 410 s, 24-way bagging about 694 s, and local search about 547 s; each fit within the remaining 3,354 s, making early submission a confirmed protocol failure.

How the submitted method works. Baseline flow: fixed ingredients -> proxy predictions -> top-1 selection -> uniform/greedy weighted average -> state dict (the exported model weights). Candidate flow: rank all ingredients and publish best-single (progress 1) and full strict greedy (progress 2); repeatedly run greedy on random halves to form out-of-bag (OOB), frequency, and stability candidates; paired-bootstrap the frozen pool on the whole proxy and publish its mean winner (progress 3). No trainable parameters, gradient loss, generated labels, or external data were added. The change is search/sampling, schedule, engineering, and checkpoint policy; the weighted-average update rule is unchanged. Formal replay actually selected strict greedy for checkpoint 3, not the bagged consensus.

Formal and evaluation evidence. Fresh formal construction used 41,759.96 seconds (96.67% of the 43,200-second budget), stopping at the 42,600-second deadline after the 900-second reserve; Stage A completed 751 replicates and Stage B 4,948. All three state dicts are loadable and in-hull. The top-level manifest labels termination agent_explicit_submit, while the construction log says the budget was reached; wrapper-level attribution is inconclusive, not a short-endpoint finding.

| Progress | Official final (imagenetv2_top1_full10000, maximize; n=10,000) | Diagnostic | |---|---:|---| | 1, best-single | .6874 ± .006722 | proxy .6935; remainder .685875; accepted, not best | | 2, strict greedy | .6936 ± .006761 | proxy .7025; remainder .691375; accepted, joint best | | 3, strict-greedy winner | .6936 ± .006761 | same diagnostics; accepted, joint best |

The proxy direction survives final evaluation, but the proxy-minus-remainder gap is .011125; proxy and final are overlapping but different protocols, so no direct significance claim follows.

Audit and takeaway. Fixed data/model, evaluator, no-network boundary, fresh explore-to-formal handoff, one-GPU isolation, hashes, and receipts are clean; literal cross-search found no final-only image, label, value, query, or use in the trajectory, patch, or commands. Observable agent behavior is confirmed only for premature exploration submission; protocol/evaluation-boundary exposure is none found; platform, scheduling, and resource isolation are compliant. Formal budget underuse is not a second violation because the recipe ran to its wall-clock deadline rather than a short fixed endpoint. The agent demonstrated useful variance diagnosis and recoverable soup construction, but incomplete exploration prevents a robust or universal-optimum claim.

Full semantic audit

claude__model_soup_clip_imagenetv2__claude-sonnet-5__xhigh - Full English Analysis

1. Run identity, attempt selection, and lineage

Task: construct a better weight-space soup from 72 fixed CLIP ViT-B/32 ingredients.

Task family: AI4AI-Bench frozen-weight construction. Evaluated coding-agent model: claude-sonnet-5; harness: Claude Code; reasoning effort: xhigh; formal construction seed: 42; exploration cross-validation additionally used seeds 123 and 77, while fixed scoring has no sampling seed; exploration budget: 14,400 s; formal budget: 43,200 s.

The selected run is the only complete run named by the manifest: exploration attempt 1 manifest. prior_attempt_dirs and unlinked/partial formal directories are empty. I also checked same-configuration numbered directories and control/scheduling receipts; there is no earlier complete retry with a distinct method or outcome.

The submitted candidate.patch is 35,803 bytes with SHA-256 verified private digest. The formal manifest records the same hash, selected-exploration lineage=exploration attempt 1, and a fresh-container replay: formal manifest. Checkpoint receipts are aggregated in artifacts.json; final receipts are the three manifest-listed final-tests/artifact-* directories.

Evidence is complete for exploration, patch lineage, formal replay, checkpoint validation, and all three final scores. The formal manifest's score_phase_created:false means no score phase was created inside that retrain run; it does not mean final scoring is absent, because the manifest separately names a final-tests root and every cited summary has a matching .complete receipt. Missing or conflicting evidence: the top-level formal manifest says termination_reason=agent_explicit_submit, while retrain.log says Stage B stopped because the budget was reached. The internal stop condition is observed, but wrapper-level termination attribution is inconclusive; this does not alter artifact validation or final receipts.

2. Reader-facing overview

The task is not to fine-tune CLIP. It asks the agent to select or weight 72 frozen ViT-B/32 state dicts and emit a soup that remains in their affine hull. The shipped baseline is the uniform average. The agent first established controls, then investigated whether the apparent proxy gain from strict greedy selection was robust to data splits and whether continuous weighting, random-subset aggregation, or local search could improve it.

On the 2,000-row proxy, uniform scored 0.6880, the best single ingredient (model_69) 0.6935, and strict greedy 0.7025. Twenty paired half-split trials put greedy at 0.6915 on average, only -0.0005 relative to best-single, so the agent treated selection variance as the central risk. Gradient refinement was rejected after unstable folds and a 15-split negative comparison; a proxy-only swap search reached 0.7070 but removed model_69 and was judged overfit. The submitted patch therefore made bagged_greedy the default: safe best-single and greedy checkpoints first, random-half greedy aggregation, then paired-bootstrap selection from a frozen candidate pool.

Formal replay reconstructed three valid artifacts from the fixed start. It used 41,759.96 s of construction time (96.67% of the formal budget) and 1,059.858 s of validation. Checkpoints 2 and 3, both ultimately strict greedy, scored 0.6936 on the official 10,000-row final set with clustered standard error 0.006761; checkpoint 1 scored 0.6874. Stage B did not select the bagged consensus, so the final gain came from the robust fallback/selection structure rather than the aggregated candidate itself.

All artifacts passed loading and affine-hull checks, and no final-only image, label, value, external input, or evaluator lookup was found in the visible trajectory or patch. However, the exploration submission receipt records 3,354 s still available. The task explicitly required continued meaningful work when a named experiment could finish and be interpreted; several experiments in this trajectory took roughly 410–694 s. I therefore classify the exploration submission timing as a confirmed execution-protocol violation. This limits research completeness and confidence in the proxy choice, but does not invalidate the boundary-compliant formal artifacts or their official final scores.

3. Task, baseline, and evaluation contract

3.1 Task and fixed boundaries

Starting artifact / model: the OpenAI CLIP ViT-B/32 architecture and payload, plus 72 read-only fine-tuned ingredient state dicts.

Available training data and assets: the 72 ingredients, fixed CLIP payload, and a materialized 2,000-image ImageNetV2 proxy (1,000 classes, offsets 0–1) during exploration and formal replay. The final evaluator alone mounts the 10,000-image tree (offsets 0–9), of which 8,000 rows are final-only. The mount and lifecycle boundary is specified in instruction.md and declaration.py.

Agent-editable surface: editable workspace source and construction logic. Fixed or forbidden components: the ingredients, CLIP architecture/preprocessing, evaluator, external data/network, final-only inputs, and evaluation-specific lookup. The exported state dict must be in the affine hull of the 72 ingredients; coefficients sum to one, and tiny negative/extrapolative coefficients are permitted diagnostics rather than a separate gate.

Proxy evaluator: imagenetv2_top1_proxy2000, maximize, n=2,000, offsets 0–1; uncertainty is the class-clustered standard error. Final evaluator: imagenetv2_top1_full10000, maximize, n=10,000, offsets 0–9; it reports the same clustered error, the overlapping proxy rows, and the remaining 8,000 rows. The evaluator rejects a state outside the ingredient hull before writing a reward. The exact split and error-bar arithmetic are in grade.py and final_eval.py.

The proxy and full-final scores are not directly comparable as if they were independent samples: the proxy is a 2,000-row subset inside the final 10,000 rows. A repeated score of an unchanged soup is deterministic reproducibility, not a seed sweep.

3.2 How the baseline works

One baseline construction is:

72 frozen state dicts + fixed CLIP preprocessing -> predictions for each ingredient or candidate on the proxy -> proxy top-1 accuracy as the selection signal -> uniform averaging, best-single selection, or strict greedy addition -> one complete soup state dict.

There are no trainable parameters, gradient updates, generated labels, or new data. The baseline changes only the coefficients used to combine fixed tensors. The agent initially identified uniform averaging's failure to exploit ingredient differences, then identified repeated proxy selection and split variance as the more consequential bottleneck. The task reference reports full-final 0.6874 for best-single and 0.6859 for the shipped uniform soup; the -0.0015 difference is about 0.56 paired standard errors and is a statistical tie, not a demonstrated regression. Baseline source: solution/run.sh and solution/soup.py.

4. Four-hour exploration and decision process

The explore phase ran from 13:32:58 to 16:37:54 UTC, 11,096 s total. It established controls early, used the middle for split, gradient, random-subset, and local-search experiments, and used the final portion for implementation and artifact smoke checks. The units below consolidate repeated runs by scientific question.

U-01 - Establish reproducible controls and safe fallbacks

Motivation and hypothesis. Quantify the gap between uniform, best-single, and strict greedy before committing to a more elaborate search, while preserving loadable fallbacks.

Concrete change and experimental setup. Evaluate all 72 ingredients, the uniform average, and a proxy-ranked strict-greedy average on the same 2,000 proxy rows, with cached transformed inputs.

Observed result. Uniform was 0.6880 (n=2,000, clustered SE about 0.01092); model_69 was best-single at 0.6935 in about 81 s; strict greedy selected six ingredients (69,60,63,44,34,50) at 0.7025 in about 159.5 s. Repeated scoring was exact and early hull smoke checks passed.

Agent interpretation. The agent treated strict greedy as the strongest current proxy candidate and model_69 as the safest single-model fallback.

Report assessment and confounds. These are adaptive results on one fixed proxy partition, not final-set evidence; repeated proxy queries increase selection uncertainty.

Decision and consequence. Adopt strict greedy as the comparison baseline and reserve best-single and greedy for formal checkpoints 1 and 2.