beetle-phase-transition / docs /CASCADE_ROBUSTNESS.md
suchirsalhan's picture
periodic: docs
7243229 verified
|
Raw History Blame Contribute Delete
6.1 kB

Does the three-stage cascade survive without arbitrary thresholds?

Verdict: yes. The PTH -> IH -> AR ordering and the large IH->AR gap are not threshold artifacts. If anything the paper's current thresholds understate the gap.

Reproduce: PYTHONPATH=. python -m analyze.induction.cascade_free Outputs: results/evals_paper/21_induction/cascade_threshold_free.csv, ..._gaps.csv, ..._fracsweep.csv. Data: 24B models, 5 curricula (B1-B5), 81-104 checkpoints each, steps 1..91.5k.

1. The criticism, made precise

The paper's onsets come from best_pth > 0.5, best_ps > 0.3, ar_acc > 0.05 on metrics with incomparable ranges. Expressed as a fraction of each metric's own [floor, asymptote] range, those thresholds are:

stage metric floor asymptote paper threshold = fraction of range (min / median / max over B1-B5)
PTH best_pth 0.072 0.95-0.99 0.5 0.465 / 0.474 / 0.488
IH best_ps 0.028 0.72-0.77 0.3 0.368 / 0.373 / 0.394
AR ar_acc 0.000 0.12-0.22 0.05 0.227 / 0.278 / 0.419

The thresholds are not commensurable — but the bias runs the opposite way to the reviewer's worry. AR is declared "onset" at 28% of its range while PTH must reach 47%. The current recipe therefore gives AR a head start, so the reported 16.5k gap is a conservative estimate, not an inflated one.

2. Three threshold-free onset definitions

Per-curriculum onsets (steps), median over B1-B5:

definition PTH IH AR PTH->IH gap IH->AR gap AR/IH ratio
paper thresholds (reference) 1024 8000 24500 5952 16500 3.31
(1) changepoint (broken stick, log-step) 6 1024 18000 1018 16744 18.1
(2) crossing 25% of own range 168 7034 21898 6924 16831 3.44
(2) crossing 50% of own range 554 8567 32783 7964 26220 3.97
(2) crossing 75% of own range 956 11254 45776 10155 35233 4.07
(2) crossing 50%, asymptote = p95 (sensitivity) 566 8681 41234 8053 33883 4.75
(3) max d(metric)/d(log step) 632 8610 58032 7722 49234 (censored) 6.60

Per-definition spread of the IH->AR gap across the 5 curricula:

definition min median max
paper 15000 16500 20904
changepoint 15952 16744 17476
cross25 14303 16831 19612
cross50 14850 26220 31834
cross50 (p95 asymptote) 31665 33883 37384
cross75 33987 35233 43622
maxslope 35175 49234 72769

Ordering PTH <= IH <= AR holds in 5/5 curricula under all seven definitions (35/35 cases). IH <= AR specifically holds in every single case computed anywhere in this analysis.

3. The decisive test: a common-fraction sweep

If the cascade were manufactured by threshold choice, some single commensurable level applied to all three metrics would collapse it. We swept one shared fraction f of each metric's own range, f = 0.05 ... 0.95:

  • IH <= AR at every f, for every curriculum (95/95).
  • Median IH->AR gap over f in [0.10, 0.90]: 11500 to 42651 steps; the minimum median gap over the whole sweep is 11198 steps (at f = 0.05).
  • Smallest gap for any single curriculum at any f in [0.10, 0.90]: 10537 (B3, f = 0.10).
  • AR onset / IH onset ratio is remarkably flat: 2.9x - 5.1x across the whole sweep (3.4x-4.6x for f in [0.10, 0.90]). In log-step space — the space these curves actually live in — the separation is a stable multiplicative factor, not a level-dependent accident.

There is no choice of common fraction that brings AR onset near IH onset.

4. Where the analysis is genuinely fragile (stated plainly)

  1. AR is not plateaued at 24B tokens. still_rising is True for AR in 5/5 curricula, and the max-slope estimate sits at the log-grid boundary in 5/5 (maxslope_at_boundary = True). The AR max-slope onsets (46.7k-79.3k) are therefore right-censored lower bounds on the true inflection, and the AR "asymptote" used for rescaling is an underestimate. Both errors push AR onset earlier than truth, i.e. they shrink the gap. The reported gaps are floors.
  2. PTH change-point is unreliable for B2 and B5 (cp R^2 0.382 / 0.365 vs a straight-line null at 0.611 / 0.592 — the broken stick loses). Their hi-res grids start late so the pre-transition baseline is barely sampled. The IH and AR change points are sound everywhere (IH R^2 0.74-0.86 vs 0.67-0.76 linear; AR R^2 0.89-0.97 vs 0.30-0.49 linear — the AR broken stick is decisively better than a line).
  3. PTH vs IH is not always resolvable. In the sweep, PTH <= IH fails in 4/95 cases, all B4 at f <= 0.20, and all by 1.5-40 steps out of onsets under 300 — a tie, not a reversal. B4's PTH and IH both emerge very early. The PTH->IH gap is the softer of the two claims; the IH->AR gap is the robust one.
  4. Saturation edge. At f = 0.95 the crossing estimator degenerates (B3 gives a 1058-step gap) because both curves are then bumping against their own asymptote and the crossing is set by noise. Ignore f >= 0.90.

5. What to say in the paper

Replace "AR onset at step 24500 (ar_acc > 0.05)" with a range. Defensible claim:

Under seven onset definitions — the original thresholds, a piecewise-linear change point fitted in log-step space, normalised 25/50/75% crossings of each metric's own dynamic range, and the point of maximum growth rate per decade — induction-head onset precedes associative-recall onset in 5/5 curricula, by 14.3k-72.8k steps (median across definitions 16.5k-49.2k), equivalently a 3.3x-6.6x separation in training step. A common-fraction sweep confirms no single commensurable criterion collapses the gap.

The honest headline number for the IH->AR gap is ~15k-35k steps (3-5x in log-step), not a single 16500. The 16500 figure is at the low end of the threshold-free range because the paper's ar_acc > 0.05 fires at only 28% of AR's range against 47% for PTH.