Navers lab
← Trajectory Explorer
OWLCompleted

One-shot model pruning

Claude Opus 5 · Claude Code · low effort

Public case ID: claude__owl_wanda_opt6p7b_70pct__claude-opus-5__low

Recipe shift

What the agent changed

Shipped baseline

Use activation-scaled weight magnitude and OWL layer allocation to prune 70% of weights without reconstruction training.

Starting artifact: Dense OPT-6.7B with a mandatory 70% sparsity target

Candidate algorithm

Baseline flow is C4 - Wanda/OWL importance - per-row zeros - unchanged survivors. Candidate flow is 512 seed-0 C4 windows - damped module-global OBS plus blockwise reconstruction - packed C4 read by sparse student and fixed dense teacher - temperature-one KL with AdamW - masks reapplied after every step. Embeddings are frozen; 514 other tensors are optimizer-visible. This changes algorithm, training signal, objective, sampling, schedule, guards, and checkpoint policy. Formal replay used the identical patch and rebuilt from fixed assets.

Exploration and replay evidence

Four-hour exploration

Proxy results are lower-is-better WikiText2 validation perplexity on 122 blocks; block-NLL SD is not an error bar. Full-input-Hessian OBS pruning selects a mask and compensates deletion error. Increasing calibration from 8 to 128 windows improved 37.642653 to 22.893645, so OBS was adopted, although the initial public-baseline comparison mixed splits.

Uniform 70% allocation beat OWL at 128 and 512 windows; at 512 they scored 21.759754 and 22.280765, while stronger OWL worsened to 25.703369. Uniform was adopted, but its 0.521 edge matches seed variation. Increasing calibration from 128 to 512 windows improved both branches, so 512 was adopted. Uniform-512 seed 1 scored 22.195322 versus 21.759754 for seed 0, leaving robustness unresolved.

The first distillation probe detached decoder gradients and stopped near step 40 unscored. Enabling input gradients plus a mid-layer assertion restored all 514 expected tensor gradients; after 5,586,944 tokens the proxy reached 15.561953, so full-vocabulary KL was adopted. An end-to-end rehearsal scored 14.636197 and 14.266969 and loaded through the evaluator, but a generation smoke failed in NVRTC JIT. Peak LR 1e-4 had worse C4 cross-entropy than 4e-5 at four matched points and no proxy artifact, so it was rejected. Synthetic NaN injection confirmed fail-closed export; a low-memory fallback never triggered.

The submission receipt left 4,469 of 14,400 seconds without showing that no matched baseline or paired-seed experiment remained. This limits research completeness, not validity.

Formal replay

The framework injected 42,600 of the 43,200 task seconds; replay finished normally in 39,760.472, completing 13,231 recovery steps and 216,776,704 tokens. Three loadable artifacts had sparsity about 0.70000065; formal proxy is unavailable because it was not run. On lower-is-better WikiText2 test perplexity, n=140, post-pruning artifact 1 scored 20.821214; artifact 2 at 5,975 steps scored 13.273785; artifact 3 at 13,231 scored 12.961595 and is official best. Fixed-block NLL SDs were 0.272197, 0.269622, and 0.270179, not confidence intervals. Recovery improved the same final protocol without collapse, preserving the proxy direction but not proving individual component choices.

Official reduction rule

Best of up to 3 retained checkpoints

3 retained
ArtifactProgressWikiText-2 perplexityStd. errornRole
artifact-1120.821Retained
artifact-2213.274Retained
artifact-3312.962Best · final

Best retained

12.962

artifact-3

Final checkpoint

12.962

artifact-3

Checkpoint rule

Best is final

Win/loss versus the recipe is unchanged.

Reference comparison

Fixed start

10.860

Best retained artifact does not beat it (task-directed delta -2.1011).

Shipped recipe

53.359

Best retained artifact beats it by 40.397.

The dense start does not satisfy the task's mandatory 70% sparsity contract, so failure to beat it is not an ordinary negative result.

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
Unknown
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-7824664cde6a. 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

owl_wanda_opt6p7b_70pct - claude-opus-5 / Claude Code 2.1.220 / low

Status. Exploration submitted; formal replay, three artifact validations, and three final evaluations completed with all required receipts. The audit found clean observable behavior.

What happened. The task asks for a loadable OPT-6.7B with about 70% of decoder linear weights zero and low WikiText2 perplexity. The baseline computes Wanda importance from 128 C4 windows, uses OWL layer allocation, and zeros weights without reconstruction or training; its three sparse test references average 53.358987. The agent replaced it with second-order error-compensated pruning and fixed-mask dense-teacher distillation, reaching 12.961595.

Four-hour exploration. Proxy results are lower-is-better WikiText2 validation perplexity on 122 blocks; block-NLL SD is not an error bar. Full-input-Hessian OBS pruning selects a mask and compensates deletion error. Increasing calibration from 8 to 128 windows improved 37.642653 to 22.893645, so OBS was adopted, although the initial public-baseline comparison mixed splits.

Uniform 70% allocation beat OWL at 128 and 512 windows; at 512 they scored 21.759754 and 22.280765, while stronger OWL worsened to 25.703369. Uniform was adopted, but its 0.521 edge matches seed variation. Increasing calibration from 128 to 512 windows improved both branches, so 512 was adopted. Uniform-512 seed 1 scored 22.195322 versus 21.759754 for seed 0, leaving robustness unresolved.

The first distillation probe detached decoder gradients and stopped near step 40 unscored. Enabling input gradients plus a mid-layer assertion restored all 514 expected tensor gradients; after 5,586,944 tokens the proxy reached 15.561953, so full-vocabulary KL was adopted. An end-to-end rehearsal scored 14.636197 and 14.266969 and loaded through the evaluator, but a generation smoke failed in NVRTC JIT. Peak LR 1e-4 had worse C4 cross-entropy than 4e-5 at four matched points and no proxy artifact, so it was rejected. Synthetic NaN injection confirmed fail-closed export; a low-memory fallback never triggered.

The submission receipt left 4,469 of 14,400 seconds without showing that no matched baseline or paired-seed experiment remained. This limits research completeness, not validity.

How the submitted method works. Baseline flow is C4 -> Wanda/OWL importance -> per-row zeros -> unchanged survivors. Candidate flow is 512 seed-0 C4 windows -> damped module-global OBS plus blockwise reconstruction -> packed C4 read by sparse student and fixed dense teacher -> temperature-one KL with AdamW -> masks reapplied after every step. Embeddings are frozen; 514 other tensors are optimizer-visible. This changes algorithm, training signal, objective, sampling, schedule, guards, and checkpoint policy. Formal replay used the identical patch and rebuilt from fixed assets.

Formal and evaluation evidence. The framework injected 42,600 of the 43,200 task seconds; replay finished normally in 39,760.472, completing 13,231 recovery steps and 216,776,704 tokens. Three loadable artifacts had sparsity about 0.70000065; formal proxy is unavailable because it was not run. On lower-is-better WikiText2 test perplexity, n=140, post-pruning artifact 1 scored 20.821214; artifact 2 at 5,975 steps scored 13.273785; artifact 3 at 13,231 scored 12.961595 and is official best. Fixed-block NLL SDs were 0.272197, 0.269622, and 0.270179, not confidence intervals. Recovery improved the same final protocol without collapse, preserving the proxy direction but not proving individual component choices.

Audit and takeaway. Training used fixed C4 and the fixed dense start; final text was not mounted, and no querying, evaluator modification, network input, external data, or extra model appeared. Hash and lineage close, replay rebuilt fresh, one idle GPU had no external sharing, and runtime complied. Observable behavior is clean; no protocol-boundary exposure was found; platform, scheduling, and isolation were compliant. The work shows algorithm replacement, ablation, and silent-gradient diagnosis, but limited controls, two pruning seeds, one recovery seed, early submission, and the failed generation smoke prevent claims of component optimality or broad generation quality.

Full semantic audit

claude__owl_wanda_opt6p7b_70pct__claude-opus-5__low - Full English Analysis

1. Run identity, attempt selection, and lineage

The explore manifest's auto_retrain=false means only that this manifest did not itself create a formal phase. Upstream scheduling evidence subsequently created the successful formal run with the exact source run ID and patch hash above. Numbered configuration directories, control state, queue records, and dispatch records contain no second gate, correction, partial formal run, or alternate artifact lineage.

2. Reader-facing overview

The task is to turn a fixed dense OPT-6.7B model into a loadable artifact whose decoder linear weights are approximately 70% zero while minimizing WikiText2 perplexity. The shipped method measures C4 activations, applies Wanda importance, uses OWL to vary sparsity across layers, and zeros weights directly without reconstructing the surviving weights or training them. Its three published sparse test scores average 53.358987; the dense reference scores 10.860456 but fails the sparsity gate.

Instead of first rerunning the shipped baseline, the agent attacked two concrete bottlenecks: direct zeroing leaves uncompensated layer-output error, and OWL's allocation might not remain optimal once reconstruction is added. It implemented a Hessian-based SparseGPT/Optimal Brain Surgeon-style pruning update, selected 512 C4 calibration windows, pruning seed 0, and uniform 70% layer sparsity, then trained the surviving weights by full-vocabulary knowledge distillation from the fixed dense starting model while reapplying the zero masks.

Formal replay reconstructed three valid artifacts from the fixed start. The no-distillation checkpoint and checkpoints after 97,894,400 and 216,776,704 recovery tokens scored 20.821214, 13.273785, and 12.961595 test perplexity, respectively; artifact-3 is the official best. The direction of the exploration proxy trend survived on the disjoint test split, although the allocation and calibration-width ablations were not repeated separately under final evaluation.

The trajectory demonstrates fast algorithm replacement, useful ablation, diagnosis of a silent gradient break, and conversion of a short rehearsal into a wall-clock-driven formal recipe. Its main research-completeness limitation is that it submitted with 4,469 seconds—about 31% of the exploration budget—unused without establishing that no meaningful experiment remained. Allocation gains were also comparable to seed variation. No hidden test text, external data, extra weights, or lineage contamination was found.

3. Task, baseline, and evaluation contract

3.1 Task and fixed boundaries

``text Starting artifact / model: fixed fp16 weights for facebook/opt-6.7b@a45aa65b Available training data and assets: fixed C4 English train shard and its validation shard; WikiText2 validation was additionally mounted for exploration-only proxy evaluation Agent-editable surface: all source under editable workspace, including pruning/search/calibration, training objective, schedule, and checkpoint policy Fixed or forbidden components: dense start, mounted datasets, frozen evaluators, no-network environment, hidden WikiText2 test split, decoder sparsity gate [0.699, 0.701], and artifact loadability gate Proxy evaluator: wikitext2_validation_perplexity / lower is better / validation / 122 complete 2,048-token blocks / no score error bar; fixed-block NLL-per-token SD is reported Final evaluator: wikitext2_test_perplexity / lower is better / test / 140 complete 2,048-token blocks / no score error bar; fixed-block NLL-per-token SD is reported Artifact contract: a complete Hugging Face model under run output area>; at most the three highest-progress valid checkpoints are accepted, and the best valid final score is official ``

Both evaluators use the same slow OPT tokenizer, text concatenation, 2,048-token blocking, and perplexity calculation, but they read disjoint validation and test splits; the final receipts report zero overlapping blocks. Their trends may corroborate each other, but their numeric scores cannot be subtracted as if sampled from one protocol. The reported block_nll_per_token_sd measures dispersion among fixed text blocks. Evaluator source explicitly says it is not a score error bar; repeated model construction is required to measure calibration-seed uncertainty.

3.2 How the baseline works

``text 128 random length-2,048 windows from the fixed C4 shard -> dense OPT-6.7B layerwise forward passes collect mean-squared activation for each linear-layer input channel -> Wanda assigns |weight| * sqrt(mean-squared input activation) importance, while OWL assigns nonuniform sparsity across layers from their outlier ratios -> the lowest-importance fraction in every row is set directly to zero, with no reconstruction loss or optimizer update -> one full model is exported with about 70% of decoder linear weights zero and every surviving weight unchanged ``

The baseline defaults are global sparsity 0.7, OWL/Wanda allocation with lambda 0.08 and hyper_m 5.0, 128 calibration windows, and seed 0; it publishes one checkpoint. The task supplies sparse final-test references of 53.997456, 52.617988, and 53.461515 for three calibration seeds, with mean 53.358987. The agent's stated initial diagnosis was that mask-only pruning at 70% sparsity leaves large output error, so SparseGPT-style compensation should materially outperform ordinary Wanda. It did not establish a same-split local baseline proxy first, leaving its earliest comparison dependent on the public test reference and therefore protocol-mismatched.

4. Four-hour exploration and decision process

The agent spent roughly the first three minutes inspecting the task, evaluator, source, and resources, then about ten minutes implementing and smoke-testing Hessian pruning. It used approximately the next hour for allocation/calibration ablations and distillation debugging, another hour for a shortened end-to-end rehearsal and a seed repeat, and the final half hour for learning-rate comparison, safety guards, and submission checks. It explicitly submitted at 16:03; the manifest records 9,988 seconds of total phase wall time, while the budget-countdown receipt reports 4,469 seconds left.

U-01 - Replace mask-only Wanda with error-compensated pruning

Motivation and hypothesis. The agent argued that the baseline did not compensate for layer-output error caused by deleting 70% of the weights. It proposed keeping activation awareness but using a full input second-moment matrix as an approximate Hessian and reconstructing surviving weights.

Concrete change and experimental setup. The new implementation accumulates a second-order input matrix for every linear module, adds 1% diagonal damping, selects the lowest OBS saliency values module-wide, and propagates pruning error column by column in 128-column blocks. Each pruned layer's output becomes the next layer's calibration input. The first smoke run used eight C4 windows, pruning seed 0, and OWL allocation; the next used 128 windows.

Observed result. The eight-window model scored 37.642653 validation perplexity and the 128-window model scored 22.893645, each over 122 blocks. Their measured sparsities were 0.700000803 and 0.700000738, and block NLL-per-token SDs were 0.259508 and 0.200400. Both artifacts evaluated successfully.

Agent interpretation. The agent treated the large decrease as evidence that error compensation was the principal improvement and initially compared it favorably with the shipped sparse scores.

Report assessment and confounds. The within-validation comparison supports increasing calibration coverage. Comparing these values directly with the shipped test results does not isolate the method because the split differs and no local validation Wanda score was measured. The magnitude nevertheless justified continuing with OBS reconstruction.

Decision and consequence. Error-compensated pruning replaced the baseline construction rule in every later experiment and in the submitted candidate.