Download docs/PRUNING_AND_DEPTH.md from suchirsalhan/beetle-phase-transition: direct link, hf CLI and curl.
- Browser
- Download file 10.1 kB
-
https://huggingface.co/datasets/suchirsalhan/beetle-phase-transition/resolve/main/docs/PRUNING_AND_DEPTH.md
- Command line
-
hf download hf://datasets/suchirsalhan/beetle-phase-transition/docs/PRUNING_AND_DEPTH.md
-
curl -L -o PRUNING_AND_DEPTH.md https://huggingface.co/datasets/suchirsalhan/beetle-phase-transition/resolve/main/docs/PRUNING_AND_DEPTH.md
Over-recruitment / pruning (N2) and depth-vs-identity (N4)
Generated by analyze/induction/pruning.py from results/evals_paper/21_induction/head_grid_*.csv, ih_traj_*_24b.csv and ih_hires_*_24b.csv. Every number below was computed by that script; machine-readable form in pruning_and_depth.csv.
Data reality (read this before any number)
head_grid_*.csvcovers 63 models but is not a per-head trajectory product: 2-6 checkpoints per model across 14 mutually non-aligned step grids.- 14 models have no pre-transition snapshot (no checkpoint with
1 < step <= 1024); they are excluded from N4 rather than interpolated. The exclusion is not random - it is the dense-late grid family. - Head counts are taken at each model's own final checkpoint, which ranges 8192-91552.
N2 - over-recruitment then pruning
Post-onset window per model: checkpoints at or after the model's own induction onset (first ih_traj step with best_ps > 0.3). 44 of 63 models have >=3 such checkpoints (range 3-5, mean 4.11). Every N2 number rests on those 44 models.
Head-count trend, fixed vs self-normalised thresholds
| criterion | mean rho(step, n_heads) | Wilcoxon p | first -> last | down/flat/up |
|---|---|---|---|---|
ps_repeat > 0.2 |
-0.534 | 5.3e-05 | 6.32 -> 5.57 | 24/14/6 |
ps_repeat > 0.3 (paper) |
-0.458 | 0.00019 | 5.34 -> 4.77 | 25/11/8 |
ps_repeat > 0.4 |
-0.355 | 0.00077 | 4.11 -> 3.84 | 24/9/11 |
> 0.5 x max_ps (this checkpoint) |
-0.668 | 9.1e-07 | 5.55 -> 4.11 | 34/7/3 |
> 0.25 x max_ps (this checkpoint) |
-0.606 | 1.8e-05 | 6.93 -> 5.66 | 31/8/5 |
> 0.5 x max_ps (model's own max) |
-0.476 | 5.3e-05 | 4.34 -> 4.05 | 25/11/8 |
> 0.25 x max_ps (model's own max) |
-0.503 | 6.7e-05 | 6.39 -> 5.59 | 28/9/7 |
NEXT_ANALYSES_2.md reports mean rho = -0.565, p = 3.0e-5, 5.48 -> 4.77 for the ps_repeat > 0.3 row. Recomputed here it is -0.458, p = 0.00019, 5.34 -> 4.77 on the same 44 models: same sign, same significance, same endpoint, a weaker mean rho and a lower starting count. The direction and the conclusion are unaffected; the exact rho depends on how ties in the count series are handled across the 3-5 point windows.
Strength and mass over the same window
mean_spearman_step_vs_max_ps_repeat= 0.3114 (wilcoxon_p=0.00107)mean_max_ps_repeat_first= 0.6077mean_max_ps_repeat_last= 0.7345mean_spearman_step_vs_induction_mass_all_layers= -0.3091 (wilcoxon_p=0.00674)mean_induction_mass_all_layers_first= 3.2385mean_induction_mass_all_layers_last= 3.2499mean_spearman_step_vs_induction_mass_layer13= -0.2932 (wilcoxon_p=0.0103)mean_induction_mass_layer13_first= 2.6209mean_induction_mass_layer13_last= 2.4783
Function control (vs Singh et al. 2023 ICL transience)
Over the same post-onset window, ar_acc from the behavioural trajectories (44 models with >=3 trajectory points in the window): mean Spearman(step, ar_acc) = +0.636, 41/44 positive, Wilcoxon p = 1.03e-07; mean ar_acc 0.0248 -> 0.1741.
Where do the dropped heads land?
55 head-slots clear ps_repeat > 0.3 at some post-onset checkpoint and are below it at the final one, in 31 models. Their final ps_repeat: median 0.199; 25% land above 0.25 (i.e. hovering just under the bar), 9% below 0.10 (collapsed). Median peak before dropping: 0.402.
Cross-model control for final step
ps_repeat > 0.2: rho(final_step, count) = -0.163 (p=0.203), n = 63ps_repeat > 0.3(paper): rho(final_step, count) = -0.223 (p=0.0794), n = 63ps_repeat > 0.4: rho(final_step, count) = -0.253 (p=0.0451), n = 63> 0.5 x max_ps(this checkpoint): rho(final_step, count) = -0.280 (p=0.0264), n = 63> 0.25 x max_ps(this checkpoint): rho(final_step, count) = -0.332 (p=0.00781), n = 63> 0.5 x max_ps(model's own max): rho(final_step, count) = -0.319 (p=0.0109), n = 63> 0.25 x max_ps(model's own max): rho(final_step, count) = -0.369 (p=0.00294), n = 63
Partial version (both ranks residualised on the model's own max_ps rank, which is the distribution-shift confound):
ps_repeat > 0.2: partial r = -0.269 (p=0.0331)ps_repeat > 0.3(paper): partial r = -0.333 (p=0.0077)ps_repeat > 0.4: partial r = -0.365 (p=0.00324)> 0.5 x max_ps(this checkpoint): partial r = -0.322 (p=0.00998)> 0.25 x max_ps(this checkpoint): partial r = -0.389 (p=0.00161)> 0.5 x max_ps(model's own max): partial r = -0.366 (p=0.00319)> 0.25 x max_ps(model's own max): partial r = -0.429 (p=0.000453)
Second null: is it the bottom of the queue that gets pruned?
Ranking the heads that clear 0.3 at the first post-onset checkpoint within their layer (rank 1 = strongest), normalised to [0,1]: pruned heads sit at mean normalised rank 0.859 (n = 46) vs 0.524 for survivors (n = 187), Mann-Whitney one-sided p = 5.89e-13. 0% of pruned heads were rank 1 in their layer.
Onset-definition sensitivity
The two onset definitions select the same post-onset checkpoint set in every model (the grid is coarse relative to the onset), so the rows are identical - the trend is not an artefact of how onset is defined.
| head-count criterion | onset definition | mean rho | Wilcoxon p | first -> last | n models |
|---|---|---|---|---|---|
ps_repeat > 0.3 (paper) |
traj_best_ps | -0.458 | 0.00019 | 5.34 -> 4.77 | 44 |
ps_repeat > 0.3 (paper) |
head_grid_any_head | -0.458 | 0.00019 | 5.34 -> 4.77 | 44 |
> 0.5 x max_ps (this checkpoint) |
traj_best_ps | -0.668 | 9.1e-07 | 5.55 -> 4.11 | 44 |
> 0.5 x max_ps (this checkpoint) |
head_grid_any_head | -0.668 | 9.1e-07 | 5.55 -> 4.11 | 44 |
Matched budget (cross-model counts controlled for final step)
Grids do not align, so each model contributes the checkpoint nearest 65536 in log-step (median |log2 offset| = 0.16 octaves, n = 63). Mean head count at that matched budget vs at each model's own final checkpoint:
| criterion | matched budget | own final checkpoint |
|---|---|---|
ps_repeat > 0.2 |
6.03 | 5.90 |
ps_repeat > 0.3 (paper) |
5.19 | 5.11 |
ps_repeat > 0.4 |
4.30 | 4.13 |
> 0.5 x max_ps (this checkpoint) |
4.65 | 4.49 |
> 0.25 x max_ps (this checkpoint) |
8.57 | 8.48 |
> 0.5 x max_ps (model's own max) |
4.59 | 4.44 |
> 0.25 x max_ps (model's own max) |
8.56 | 8.43 |
N4 - depth is predictable, identity is not
49 models have both a pre-transition snapshot (1 < step <= 1024, the latest such checkpoint) and a final snapshot; 14 are excluded. Positives = slots with ps_repeat > 0.3 at the final checkpoint. AUCs are Mann-Whitney rank AUCs computed per model and averaged; the pooled column in the CSV pools within-model normalised ranks.
| pre-transition predictor | AUC all 168 slots | 95% CI | AUC within layers 11-13 | 95% CI | n models (band) |
|---|---|---|---|---|---|
attn_concentration |
0.791 | [0.723, 0.853] | 0.483 | [0.428, 0.538] | 48 |
ps_repeat |
0.424 | [0.359, 0.488] | 0.596 | [0.554, 0.636] | 48 |
ps_norepeat |
0.382 | [0.331, 0.435] | 0.569 | [0.532, 0.608] | 48 |
position_dependence |
0.314 | [0.257, 0.373] | 0.567 | [0.521, 0.610] | 48 |
repeat_dependence |
0.508 | [0.448, 0.568] | 0.527 | [0.477, 0.574] | 48 |
Occupancy at the final checkpoint (which layers ever host an induction head, slot-counts summed over models): L11=55, L12=9, L13=195
Within layer 13: sign of the pre-transition predictor
| predictor | mean Spearman(pre-value, final ps_repeat) | n negative / n | Wilcoxon p |
|---|---|---|---|
attn_concentration |
-0.259 | 39/48 | 3.05e-05 |
ps_repeat |
+0.231 | 15/48 | 0.000351 |
ps_norepeat |
+0.178 | 20/48 | 0.00731 |
position_dependence |
+0.237 | 10/48 | 3.58e-05 |
repeat_dependence |
+0.075 | 15/48 | 0.0633 |
Verdicts
N2 - over-recruitment then pruning: SURVIVES its threshold control, with two qualifications. At the paper's fixed ps_repeat > 0.3 the decline is mean rho = -0.458 (p = 0.00019, 5.34 -> 4.77, n = 44 models). Under self-normalisation to each checkpoint's own max the decline gets stronger, not weaker (half-max rho = -0.668, p = 9.1e-07; quarter-max -0.606, p = 1.8e-05), and it also survives normalisation to the model's own global max (-0.476 / -0.503). So the decline is not an artefact of a rising distribution crossing a fixed bar.
Qualification 1 (function). This is not Singh et al. 2023's ICL transience: over the identical window ar_acc rises in 41/44 models (mean rho = +0.636, p = 1.03e-07, 0.0248 -> 0.1741) and peak ps_repeat rises too. Function improves while the circuit contracts; in Singh's setting the function is what degrades. The two are opposite in sign.
Qualification 2 (magnitude). Layer-13 induction mass falls only slightly (2.62 -> 2.48) and all-layer mass is flat (3.24 -> 3.25), so this is closer to redistribution into fewer, stronger heads than to mass destruction. And a quarter of the heads that drop out land above 0.25, i.e. just under the bar. The honest statement is contraction of the thresholded circuit at constant total induction mass and rising peak, not the deletion of a quarter of the circuit.
N4 - depth predictable, identity not: HOLDS, and the sign reversal holds too. attn_concentration reaches AUC 0.791 over all 168 slots and 0.483 - chance - within layers 11-13; its whole apparent power is depth. Within the band the best predictor is ps_repeat at 0.596, with ps_norepeat (0.569) and position_dependence (0.567) almost matching it - so the within-band signal is a generic head ordering, not a repetition-specific precursor. Within layer 13 pre-transition attn_concentration relates to the final ordering with mean Spearman -0.259 (39/48 negative, p = 3.05e-05): tomorrow's induction heads are today's most diffuse heads.
All N4 numbers rest on 49 models with a usable pre-transition checkpoint; the 14 without one are excluded, not interpolated. The AUC rows use the 48 of those that have both a positive and a negative slot inside layers 11-13 (one model's induction heads fill the band, leaving no negatives).