Noise robustness — GPT-2 XL

CIFAR MNIST Modular addition Language Models Go
GPT-2 XL (1.56B) GPT-2 medium (355M) Pythia-70m (70M) Pythia-410m (405M) Gemma 3 270M (268M)
Overview 1d perturbations 2d perturbations Cells
tokenshost promptembedblock 0block 1…block k…block 47final normunembedlogitsnext tokenL01600 last positionL11600Lk1600 before block k's normfinalreadout, pre-norm not a cut
GPT-2 XL: a cut Lk is the residual stream entering block k, at the last token of the host prompt. L0 is the embedding; the stream after the last block is the final readout, not a cut. The host's other positions are held at their own values at the same depth.
ln_1attentioncausal, 64-d headsln_2MLP4d, gelu_newLk1600 pre-ln_1Lk+11600
GPT-2 XL block: pre-layer-norm, attention then MLP, each with its own addition. The cut is the raw stream before ln_1.
ArchitectureGPT-2 XL: 48 blocks, residual width 1600, 1.5B parameters. Plain-torch forward from the cached weights, outside inference_mode, so the rate-of-change estimates can differentiate through it. Cuts: the residual stream before each block, L0–L47.
Site conventionState = the residual vector at the final token of a ten-token prompt. An injection replaces that position only, and causal masking confines its effect to that position onwards. A block needs a whole sequence rather than one vector, so the surrounding prompt is part of the measurement: it is a fixed host drawn from the bank by a declared rule and named in the bank line below.
ReadoutsL2 at every cut deeper than the injection, L2 on the stream after the last block (final), and the forward KL of the perturbed logits to the base logits. Depth is what the plateau grows with, so the readout is a control rather than a fixed choice: 50 of them on this network.
Substrategpt2:48L
Bankopenwebtext(front 50000)[n=4000,ctx=10] host=#0, 4000 inputs
Checkpoints0
PartitionSmooth: no linear regions, so no exact partition.

Activation scale at each cut

cutwidthmedian normmedian radiuscentre / spread
L016001.5281.2730.6602
L1160023.1215.11.138
L2160042.3423.91.431
L3160055.529.11.597
L4160064.4333.611.611
L5160069.4937.081.567
L6160073.3940.331.507
L7160076.7843.671.435
L8160079.1746.881.354
L9160082.1350.191.291
L10160085.6653.711.25
L11160089.0757.111.205
L12160093.3360.461.176
L13160097.7864.021.152
L141600101.767.331.126
L151600106.271.071.103
L161600111.675.231.083
L171600116.2791.063
L181600121.483.211.045
L191600127.487.691.033
L201600133.692.561.021
L211600139.897.21.014
L221600146.6102.41.005
L231600154.6109.10.9919
L241600163.2115.30.9906
L251600170.3121.70.9732
L261600179.5129.10.9608
L271600190136.90.9579
L281600201.1145.60.9525
L291600214.3156.10.9515
L301600225.51650.9528
L3116002361740.9548
L321600249.4184.10.9633
L331600262.5194.90.9699
L341600276.8206.40.9777
L351600293.5219.10.9961
L361600307.7231.21.01
L371600324.7244.81.036
L381600342.1260.71.054
L391600360.5276.71.074
L401600380.1296.41.091
L411600405.6317.11.112
L421600429338.71.131
L431600462.4362.71.153
L441600498.6388.31.181
L451600553.5416.61.246
L461600624.14431.34
L471600668.1457.31.403

The median radius is the sphere a rotation rides on and the median norm is what relative displacement is divided by, so both sit in the denominators of every panel below. Centre over spread says how far the activations sit from the origin relative to their own scatter: where it is large, rotating about the origin and about the bank mean are materially different measurements.

Provenance

WeightsPublic gpt2-xl, final weights only. One checkpoint, so the training axis every other page in this family will carry is absent here by construction rather than by omission.
SweepEvery one of the 48 cuts × %%SEED_COUNT%% seeds (%%SEED_LIST%%) × two rotation frames (about the origin, about the bank mean) × two base families, %%SCANS%% scans each over %%ANGLES%% angles from 0° to 90°: %%ENSEMBLES%% ensembles. The seed redraws the base and every direction, so the spread across seeds is what says whether a depth trend is real or is one unlucky base repeated down the network.
Analysiscells_developmental.experiments.scan_1d; perturbation geometry executed from the vendored Heimersheim gist rather than transcribed (77ee738d4c66…). Conventions: docs/conventions.md.