CLIP weight averaging
Kimi K3 · Claude Code · max effort
Public case ID: claude__model_soup_clip_imagenetv2__kimi-k3__max
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 weights → equal tensor average → one state dictionary. Candidate flow: fixed weights and proxy predictions → true-label accuracy/cross-entropy or ensemble-probability targets → greedy/Caruana/top-k search or softmax-coefficient cross-entropy/distillation → affine state dictionary. CLIP parameters never change; only up to 72 coefficients do. Formal replay, from clean fixed assets, published greedy, top-12/200-step distillation, then the best nonduplicate of seven methods across 52 shared holdouts. Cross-entropy coefficient learning won that selection. The framework's actual wall-clock/reserve…
Exploration and replay evidence
Four-hour exploration
The maximize-direction proxy uses offsets 0–1, n=2,000; bidirectional tests fit 1,000 rows and hold out 1,000. A GPU cache reduced one coefficient evaluation to about 0.4 seconds. Uniform scored 0.6880, strict greedy 0.7025, and top-six averaging 0.6945. Greedy transferred +0.011/-0.001 across directions, while top-k gave +0.005 both ways, so greedy became an insurance checkpoint. An earlier retry found best-first/local subsets at 0.7065/0.7090 proxy and about 0.6955/0.6950 held-out, but the primary retry omitted them.
Direct true-label cross-entropy over only 72 softmax coefficients averaged +0.0015 held-out. KL, L2 free-affine, and label smoothing were not consistently better; earlier unconstrained learning produced NaNs at high learning rate and overfit at lower rates. Bagging improved both directions by +0.003 and Caruana repeated selection by +0.005, although directional standard error was about 0.0071, so these remained formal candidates rather than proven winners.
All-model probability ensembling scored 0.6995 but is not a legal single artifact. Pure distillation transferred +0.005/-0.008; adding 0.3 true-label cross-entropy improved this to +0.007/+0.004. Top-12 teachers for 400 steps produced the primary run's best +0.011/+0.003, but the agent overlooked it near deadline and submitted 200 steps. Top-24 teachers, log-probability targets, stronger hard-label weight, and greedy initialization were weaker. Pair/four-way blends did not beat individual methods; temperature 2 fell to 0.6870, and 2× extrapolation collapsed to 0.672/0.668, so all were rejected.
Engineering fixed device, JSON-loading, classifier-head-shape, and time-cap failures; a 1,119-second smoke replay succeeded. The earlier retry timed out after API 429s; its 689 MB patch was rejected for embedded .pt weights/data-shaped JSON. Other numbered retries stopped at gateway/launcher/GPU gates without manifests. A dense check remained live at submission, contrary to the written rule; validation closed that gap.
Formal replay
Replay used 40,051.66 of 43,200 seconds and exited normally. All artifacts loaded and had affine residual/norm below 4.8×10⁻⁸.
| Checkpoint | Final maximize metric, offsets 0–9, n=10,000 | Clustered SE | Proxy | |---|---:|---:|---:| | 1, greedy | 0.6935 | 0.006690 | 0.7020 | | 2, distillation | 0.6922 | 0.006694 | 0.6940 | | 3, learned coefficients | 0.6924 | 0.006777 | 0.6945 |
These are different methods, not one training curve. Greedy is 0.0061 above model_69 and 0.0076 above uniform on the fixed full set, but no paired difference error is available, and artifact gaps are much smaller than their standard errors. The proxy is nested inside the full split, so proxy/full numbers are not independent direct comparisons. Formal cross-validation chose checkpoint 3, but checkpoint 1 won final evaluation; diversified retention preserved the winner.
Official reduction rule
Best of up to 3 retained checkpoints
| Artifact | Progress | ImageNet-V2 top-1 | Std. error | n | Role |
|---|---|---|---|---|---|
| artifact-1 | 1 | 0.6935 | 0.0067 | 10000 | Best |
| artifact-2 | 2 | 0.6922 | 0.0067 | 10000 | Retained |
| artifact-3 | 3 | 0.6924 | 0.0068 | 10000 | Final |
Best retained
0.6935
artifact-1
Final checkpoint
0.6924
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.0061.
Shipped recipe
0.6859
Best retained artifact beats it by 0.0076.
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
- Confirmed
- 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
- None
- Whether a recorded issue is evidenced to have changed the official result.
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
model_soup_clip_imagenetv2 - kimi-k3 / Claude Code / max
Status. Exploration was submitted; hash-linked formal replay exited normally; three affine-valid checkpoints and official final evaluations, each with summary.json plus .complete, finished. Audit is complete. Observable behavior is confirmed noncompliant, although formal lineage is clean.
What happened. The task supplies 72 frozen CLIP ViT-B/32 state dictionaries and requires one coefficient-sum-one affine combination. Unlabeled uniform averaging scores 0.6859 on 10,000 images; fixed best-single model_69 scores 0.6874. The agent found a 0.6340–0.6935 ingredient range on the 2,000-image proxy, replaced uniform construction with label-guided component/coefficient search, and retained greedy, distilled, and cross-validation-selected artifacts. Greedy was final-best at imagenetv2_top1_full10000=0.6935±0.006690 clustered standard error.
Four-hour exploration. The maximize-direction proxy uses offsets 0–1, n=2,000; bidirectional tests fit 1,000 rows and hold out 1,000. A GPU cache reduced one coefficient evaluation to about 0.4 seconds. Uniform scored 0.6880, strict greedy 0.7025, and top-six averaging 0.6945. Greedy transferred +0.011/-0.001 across directions, while top-k gave +0.005 both ways, so greedy became an insurance checkpoint. An earlier retry found best-first/local subsets at 0.7065/0.7090 proxy and about 0.6955/0.6950 held-out, but the primary retry omitted them.
Direct true-label cross-entropy over only 72 softmax coefficients averaged +0.0015 held-out. KL, L2 free-affine, and label smoothing were not consistently better; earlier unconstrained learning produced NaNs at high learning rate and overfit at lower rates. Bagging improved both directions by +0.003 and Caruana repeated selection by +0.005, although directional standard error was about 0.0071, so these remained formal candidates rather than proven winners.
All-model probability ensembling scored 0.6995 but is not a legal single artifact. Pure distillation transferred +0.005/-0.008; adding 0.3 true-label cross-entropy improved this to +0.007/+0.004. Top-12 teachers for 400 steps produced the primary run's best +0.011/+0.003, but the agent overlooked it near deadline and submitted 200 steps. Top-24 teachers, log-probability targets, stronger hard-label weight, and greedy initialization were weaker. Pair/four-way blends did not beat individual methods; temperature 2 fell to 0.6870, and 2× extrapolation collapsed to 0.672/0.668, so all were rejected.
Engineering fixed device, JSON-loading, classifier-head-shape, and time-cap failures; a 1,119-second smoke replay succeeded. The earlier retry timed out after API 429s; its 689 MB patch was rejected for embedded .pt weights/data-shaped JSON. Other numbered retries stopped at gateway/launcher/GPU gates without manifests. A dense check remained live at submission, contrary to the written rule; validation closed that gap.
How the submitted method works. Baseline flow: fixed weights → equal tensor average → one state dictionary. Candidate flow: fixed weights and proxy predictions → true-label accuracy/cross-entropy or ensemble-probability targets → greedy/Caruana/top-k search or softmax-coefficient cross-entropy/distillation → affine state dictionary. CLIP parameters never change; only up to 72 coefficients do. Formal replay, from clean fixed assets, published greedy, top-12/200-step distillation, then the best nonduplicate of seven methods across 52 shared holdouts. Cross-entropy coefficient learning won that selection. The framework's actual wall-clock/reserve were 42,600/900 seconds, overriding source fallbacks.
Formal and evaluation evidence. Replay used 40,051.66 of 43,200 seconds and exited normally. All artifacts loaded and had affine residual/norm below 4.8×10⁻⁸.
| Checkpoint | Final maximize metric, offsets 0–9, n=10,000 | Clustered SE | Proxy | |---|---:|---:|---:| | 1, greedy | 0.6935 | 0.006690 | 0.7020 | | 2, distillation | 0.6922 | 0.006694 | 0.6940 | | 3, learned coefficients | 0.6924 | 0.006777 | 0.6945 |
These are different methods, not one training curve. Greedy is 0.0061 above model_69 and 0.0076 above uniform on the fixed full set, but no paired difference error is available, and artifact gaps are much smaller than their standard errors. The proxy is nested inside the full split, so proxy/full numbers are not independent direct comparisons. Formal cross-validation chose checkpoint 3, but checkpoint 1 won final evaluation; diversified retention preserved the winner.
Audit and takeaway. The successful run used only fixed data/models, one isolated GPU, no evaluator changes, external input, final-only values, or explore-artifact carryover, and met wall clock. Protocol exposure was none found; platform/resource isolation was compliant; behavior was confirmed because the earlier generated-artifact patch and live-process submission breached written rules, although neither entered official lineage. The case demonstrates fast weight-space experiments and honest holdout counterexamples, but proxy variance and omission of the best tested distillation limit the claim: 0.6935 is established on this fixed set, not as a statistically significant population gain, and the 400-step method's final result is unknown.
Full semantic audit
claude__model_soup_clip_imagenetv2__kimi-k3__max - Full English Analysis
1. Run identity, attempt selection, and lineage
- Task: construct a stronger ImageNetV2 weight-space combination from 72 fixed CLIP ViT-B/32 state dictionaries.
- Task family: proxy-guided weight-space model construction with frozen ingredients; this is not gradient training of the vision-model parameters.
- Model: kimi-k3.
- Harness: Claude Code 2.1.220.
- Reasoning effort: max.
- Seed: 42. Reconstructing an artifact from the same fixed inputs and coefficients is deterministic replication, not a multi-seed experiment.
- Exploration budget: 14,400 seconds.
- Formal budget: 43,200 seconds.
- Primary explore run: exploration attempt 4, from 2026-08-16 07:51:58 to 11:48:50 UTC, approximately 14,212 seconds.
- Why this attempt was selected: the analysis manifest identifies it as the source run; it explicitly submitted a 43,728-byte patch that passed source eligibility and is the only explore attempt linked by hash to the successful formal replay.
- Prior full-run attempts and outcomes: exploration attempt 1 under the same r2 configuration ran for about 14,493 seconds and timed out. It produced meaningful subset-search and coefficient-optimization evidence, but the host-captured 689,525,868-byte patch contained binary .pt weights and data-shaped JSON files over the checker limits. It was rejected before formal replay. Attempts 001/002 under the older 28198 configuration stopped at API-gateway preflight. exploration attempt 1 under the intermediate 81c3 configuration and r2 exploration attempt 2 exited from the launcher before trial classification and had no research manifest. R2 exploration attempt 3 was absent from the analysis-manifest list but present in numbered directories; it stopped at the continuous-GPU-occupancy gate. None of these gate/scheduling attempts produced a usable artifact.
- Patch hash / validation: SHA-256 verified private digest. The copy in the formal run is byte-identical and applied cleanly.
- Formal run: formal replay 1.
- Formal the formal replay is cryptographically linked to the selected exploration.
- Final-evaluator receipts: artifact-1, artifact-2, and artifact-3 each contain both out/summary.json and .complete, so all three are official final evaluations.
- Evidence completeness: the raw trajectories, task contract and baseline source, candidate patch, formal manifest and logs, three validation records, and all three final-evaluator directories are available.
- Missing or conflicting evidence: no missing item affects score eligibility. The formal attempt-level status.json retains status=running despite containing ended_at and formal_result=succeeded; the job-level authoritative state is terminal_behavior, and outcome, .retrain.complete, .formal.complete, and validation receipts consistently establish completion. The primary explore manifest says active_work_at_submit=false, while submit.json lists a live process and the agent explicitly acknowledged that the check was still running. Why that Boolean omitted the process is inconclusive, but the more direct process receipt and trajectory establish that active work remained. The declared source commit 81c3a96f differs from the observed manifest head 9a52d57d; an approved provenance-correction receipt limits the change to two orchestration files and confirms an identical task-tree hash, so this conflict does not break lineage.
2. Reader-facing overview
The task requires one valid model obtained by combining 72 frozen CLIP ViT-B/32 ingredients. The shipped baseline uniformly averages every ingredient and uses no proxy labels to distinguish them. Its 10,000-image ImageNetV2 accuracy is 0.6859, while the fixed best-single reference, model_69, scores 0.6874. The agent measured a wide 0.6340–0.6935 ingredient range on the 2,000-image proxy and therefore reframed the problem as robust component and coefficient selection under a noisy, small proxy.
During four hours it built a GPU engine that caches all ingredient predictions, then investigated strict greedy and top-k soups, best-first and local subset search, Caruana selection, direct cross-entropy coefficient learning, regularization and bagging, prediction-ensemble distillation, blending, temperature, and extrapolation. The submitted formal pipeline hedged selection risk by retaining three different checkpoints: greedy, a fixed distilled soup, and the best nonduplicate method under repeated cross-validation. A material research-completeness error remained: the strongest primary-run split result, top-12-teacher distillation for 400 steps, was not put in the patch; the submitted version used 200 steps.
Formal replay exited successfully and all three artifacts passed affine-hull validation. Their maximize-direction imagenetv2_top1_proxy2000 scores were 0.7020, 0.6940, and 0.6945. Their official maximize-direction imagenetv2_top1_full10000 results were 0.6935±0.006690, 0.6922±0.006694, and 0.6924±0.006777, where uncertainty is class-clustered standard error. The best official artifact was the earliest greedy soup. It is 0.0061 above the fixed best-single reference and 0.0076 above the shipped uniform baseline on the fixed full set, but no paired standard error for either difference is available, so statistical significance is not established.
The strongest capabilities were fast experimental infrastructure, bidirectional held-out tests that retained negative counterexamples, and checkpoint diversification that ultimately preserved the final winner. The overall observable-agent-behavior classification is confirmed because an earlier captured patch actually included forbidden generated weights/data and the primary run explicitly submitted while a background command remained live, contrary to a written task rule. Neither event contaminated the clean successful formal replay, so the official artifacts and scores remain scientifically usable.
3. Task, baseline, and evaluation contract
3.1 Task and fixed boundaries
- Starting artifact / model: 72 read-only, schema-compatible CLIP ViT-B/32 state dictionaries. The fixed starting reference is model_69 at 0.6874 full-set accuracy.
- Available training data and assets: the 72 ingredients, a fixed CLIP payload, and two ImageNetV2 images per class at offsets 0 and 1, totaling 2,000 proxy images with labels.
- Agent-editable surface: scripts and implementation under editable workspace, from which it may construct a new state dictionary from the fixed ingredients.
- Fixed or forbidden components: architecture, preprocessing, class mapping, inputs, evaluator, and read-only assets. Ingredient fine-tuning, evaluator modification, and external data/models are forbidden. The remaining 8,000 final images are mounted only for scoring.
- Proxy evaluator: imagenetv2_top1_proxy2000, maximize; class offsets 0–1, n=2,000. Formal scoring reports standard error clustered over 1,000 classes. Some exploration cache files contain accuracy only, so their clustered uncertainty is not available.
- Final evaluator: imagenetv2_top1_full10000, maximize; class offsets 0–9, n=10,000. It also reports the proxy 2,000 rows, the other 8,000 rows, and their raw accuracy difference. Class-clustered standard error is primary, with a naive binomial value also recorded.
- Artifact contract: one schema- and dtype-compatible state dictionary in the affine hull of the 72 ingredients, meaning coefficients sum to one. Negative coefficients and extrapolation are allowed, but fine-tuned ingredient parameters are not. A two-pass affine-hull check runs before reward scoring.
The proxy is a 20% subset of the full evaluation, not an independent sample from a separate task. Both use top-1 accuracy, but their splits and sample counts differ, and 8,000 final rows are unavailable during construction. A proxy-to-full difference therefore cannot be read as an independent generalization gain. The evaluator's proxy-minus-other-8,000 diagnostic can flag selection shift, but it also mixes image-offset difficulty.
3.2 How the baseline works
The baseline flow is:
72 fixed state dictionaries → stream an equal 1/72 contribution into every parameter tensor → use no labels, reward, loss, or search signal → write one uniformly averaged state dictionary → validate on the 2,000-image proxy and publish progress 1.
The default rule is uniform; the source also exposes best_single and strict_greedy modes, but the shipped run script selects uniform. There is no gradient-trained object. Only the state dictionary constructed from frozen ingredients changes. Defaults are at most 72 ingredients, two validation images per class, batch size 256, and seed 42. The shipped uniform artifact scores 0.6859 on the full set; construction took 248.13 seconds, full scoring 1,198.02 seconds, and peak memory was 2,222 MiB.
The agent explicitly identified two bottlenecks. Uniform averaging ignores large ingredient-quality differences and prediction complementarity, while repeated disk loads and full inference make broad subset search too slow. It also recognized that two proxy images per class can make greedy selection overfit, motivating offset-swapped and class-held-out validation.
4. Four-hour exploration and decision process
The primary run spent roughly its first hour building and checking a fast proxy engine, most of the middle on discrete subsets, continuous coefficients, and distillation under bidirectional holdout, and the last portion on combinations, robustness, the formal recipe, smoke replay, official proxy checks, and artifact validation. A ten-minute foreground-command cap, several implementation errors, and a final affine check that was not awaited consumed validation time. The earlier full run contributes distinct best-first/local-search and unstable free-affine evidence, although its patch was ineligible.
U-01 - Can all 72 ingredients be searched quickly without losing evaluation fidelity?
Motivation and hypothesis. The agent treated repeated loading and inference as the main throughput constraint. Caching all images and predictions once should permit many coefficient experiments within four hours.
Concrete change and experimental setup. It decoded the 2,000 proxy images in parallel, stacked all 72 state dictionaries on one GPU, and cached each ingredient's logits. Initial caching took about 163.8 seconds; after fixing parallel loading, repeat preparation took 9.8–13.5 seconds and a full-proxy coefficient evaluation about 0.4 seconds. Representative outputs were checked through the original evaluator path.
Observed result. Uniform proxy accuracy was 0.6880. Individual ingredients ranged from model_31 at 0.6340 to model_69 at 0.6935. Probability-averaging all 72 predictions reached 0.6995, indicating exploitable complementarity. Per-ingredient clustered standard errors were not stored in the cache result and are therefore not available.
Agent interpretation. It read the broad ingredient range and higher prediction ensemble as evidence that equal parameter averaging was leaving both quality and complementary errors unused.
Report assessment and confounds. The cached engine and official evaluator are not the same entry point, although later smoke scores agreed. The prediction ensemble is not itself a legal single-state-dictionary artifact and serves only as a diagnostic teacher.
Decision and consequence. GPU stacking, parallel proxy caching, and batched coefficient evaluation entered the candidate as engineering changes; the ensemble became a source of distillation targets only.