D2.2: figures for the post¶
Figures for the post on D2.2, drawn here so the post can upload them from the bundle of this page. This page is not an experiment. The results behind each figure are in the reports it names, which hold the claims and their evidence; the design doc has the recipe the figures describe.
Pooling the pull¶
The anchor term pulls the states of each labeled context toward the anchor axis. It pools that pull twice before averaging over the batch: a mellowmax over the positions of the context, and then a mellowmax over slices. The mellowmax is a soft minimum, so each pool lets the term choose which states to pull, within a context and across depth. The ex-2.1.9 report introduced the pool over positions and drew the first version of this diagram; the pool over slices is new in D2.2.
The anchor term pools the pull over positions, then over slices, then averages over the batch.
Where the op sits¶
The figures from here on are drawn from eight runs of the recipe of record at seeds 712 to 719, without the end anneal of the pull and anti weights: the cooldown experiment carried the runs of the fixed confirmation on with the anneal taken out, and found that it changes neither the edit nor the task. αAlignment How far a state points along e₁: the cosine between the state and e₁, which for a unit-length state is its component along e₁; 1 on the anchor direction and 0 off it. is the cosine between a state and the anchored axis e₁, averaged over the probe contexts of an op. Below, it is taken at whichever position is highest at each slice; from slice 1 on, that is the query answer on every run.
Where the op sits on the anchored axis, by slice, at the end of training. Top: α, the max over
positions of the mean over probe contexts, for the contexts of difference (circles) and of
the other six ops (squares): the mean over the eight runs of the recipe of record, with each run as a
faint dot and a bar spanning them. Bottom: the weights at each slice: the peak pull weight
\(\lambda_a\), and the anti-subspace weight \(\lambda_{\bar s}\) at its hold.
The same runs by position in a context, at every slice:
Where the anchored axis is used. The cosine between the state and e₁ at each position of a held-out
context, one row per slice, the embedding at the bottom. Red: difference contexts, the mean over the
eight runs, with each run behind it as a hairline; grey: the other ops. Shaded columns are the = positions,
where each answer is predicted. The bars sit on the positions,
and the thin lines between them only join them up.
The states at the example answers, in the plane of the two class means:
Every example answer (42,000 per panel) of one run of each kind at seed 715, in the plane of the two class
means: the non-fitting mean points right, and up is the part of the fitting mean at right angles to it, which in
an anchored run is e₁ (▼). Each tick is turned and colored by how well its example fits difference (the
posterior on difference given that example alone), from flat and grey to upright and red. The rings mark the
two class means (fitting and non-fitting), the ticks on the rim their directions, and the arc the angle between
them. Columns: control, anchored. Rows: slices 3 and
2.
How far along the arc each kind of example sits, by its distance from |a − b|:
| example answers | n | control, slice 3 | control, slice 2 | anchored, slice 3 | anchored, slice 2 |
|---|---|---|---|---|---|
fits only difference | 5,404 | 1.05 | 1.06 | 1.04 | 1.09 |
| partial fit | 819 | 0.72 | 0.68 | 0.88 | 0.65 |
| 1 step off | 1,327 | 0.36 | 0.33 | 0.11 | 0.33 |
| 2 steps off | 2,911 | 0.17 | 0.16 | 0.02 | 0.14 |
| 3 steps off | 4,448 | 0.06 | 0.06 | -0.01 | 0.02 |
| 4 steps off | 5,395 | 0.00 | 0.01 | -0.02 | -0.03 |
| 5+ steps off | 21,696 | -0.08 | -0.07 | -0.03 | -0.09 |
How far along the arc, by distance from difference's answer. Median position of the example answers
between the two class means (0 at the non-fitting mean, 1 at the fitting mean, so the angle from the
non-fitting mean over the angle between them), by how far each answer is from |a − b|, in grid steps summed
over the channels. Every example answer of one run of each kind at seed 715; the same examples in
both runs. The means lie 16° and 25°
apart in the control (slices 3 and 2), 83° and
57° in the anchored run.
How the arc's direction (fitting minus non-fitting mean, at the example answers) lines up with the directions the post-hoc methods fit:
| direction | control, slice 3 | control, slice 2 | anchored, slice 3 | anchored, slice 2 |
|---|---|---|---|---|
| difference in means, LEACE, example answers | 1.00 (0.99–1.00) | 1.00 (0.99–1.00) | 1.00 (1.00–1.00) | 1.00 (1.00–1.00) |
| ridge probe, INLP's first direction, example answers | 0.72 (0.56–0.78) | 0.86 (0.58–0.90) | 0.35 (0.23–0.42) | 0.57 (0.39–0.69) |
| INLP, rank 4 (span), example answers | 0.96 (0.87–0.97) | 0.97 (0.91–0.98) | 0.89 (0.65–0.95) | 0.96 (0.91–0.98) |
| difference in means, LEACE, every position | 0.87 (0.78–0.96) | 1.00 (0.74–1.00) | 0.99 (0.98–0.99) | 1.00 (0.99–1.00) |
| ridge probe, INLP's first direction, every position | 0.70 (0.52–0.75) | 0.88 (0.51–0.91) | 0.28 (0.23–0.49) | 0.72 (0.44–0.84) |
| INLP, rank 4 (span), every position | 0.91 (0.78–0.95) | 0.98 (0.67–0.99) | 0.92 (0.91–0.96) | 0.99 (0.94–0.99) |
| e₁ | – | – | 0.76 (0.73–0.78) | 0.87 (0.83–0.91) |
The arc's direction against the post-hoc directions. |cos| between the arc's direction (the fitting
minus the non-fitting class mean at the example answers) and each direction the post-hoc comparison fits,
refitted on the held-out set with the comparison's code: at its example-answer site and pooled over every
position, with the binary label (the context's op is difference). For INLP's rank-4 span, the length of
the arc's projection onto it. Median over the eight runs of each kind at 712 to 719, with the range. The
graded label (the posterior on difference) changes no entry by more than 0.05. Last row: the
arc's cosine with e₁ in the anchored runs.
Training¶
The training record of the same runs, with the schedules underneath on the same epoch axis.
Training the recipe of record. Top: the task score (expected exact match) on held-out contexts: the mean over ops and runs, with a band spanning the runs, and each op of each run behind it as a hairline. The tick past the end of training marks the score ideal₇ would give on the same contexts, where ideal₇ is the Bayes-optimal predictor over all seven ops. Middle: the pull weight \(\lambda_a\) and the anti-subspace weight \(\lambda_{\bar s}\) at each slice, with the middle slices thinner. Bottom: the pooling temperatures \(\tau_p\) (over positions) and \(\tau_\ell\) (over slices). The schedules are the same for every run. The ramp underneath names the phases of training, with labels at the keyframes of the schedules.
The same figure with a line for each op:
Training the recipe of record. Top: the task score (expected exact match) of each op on held-out contexts, as the mean over the eight runs, with each run behind it as a hairline in the same color. The ticks past the end of training mark the score ideal₇ would give for each op on the same contexts, where ideal₇ is the Bayes-optimal predictor over all seven ops. Middle: the pull weight \(\lambda_a\) and the anti-subspace weight \(\lambda_{\bar s}\) at each slice, with the middle slices thinner. Bottom: the pooling temperatures \(\tau_p\) (over positions) and \(\tau_\ell\) (over slices). The schedules are the same for every run. The ramp underneath names the phases of training, with labels at the keyframes of the schedules.
Loss and learning rate, which the training figure leaves out:
Loss and learning rate. Top: validation loss, the mean over the eight runs with a band spanning them. Bottom: the learning rate, the same for every run.
Where the answers go¶
Op confusion: for the contexts of each op (rows), how much mass a model puts on the answers each op could give (columns), with one bar per model in each cell. The first figure has the models with every op, beside ideal₇, the Bayes-optimal predictor over all seven ops; the second has the models with difference taken out, by the edit or in training, beside ideal₆, the same predictor with difference taken out (the target nullTarget null Where a removal should land: what an ideal predictor that had lost one op and nothing else would answer. It is the Bayes posterior over ops given the examples, with the removed op set to zero and the rest renormalized, so it still weighs the other ops by how well they fit.). These come from the same seeds before the cooldown experiment took the end anneal out (the filtered-corpus report draws the same matrices as heatmaps), since that experiment kept no answer distributions.
Where the answers go. Rows: the op of the context. Columns: the mass on the colors the column op can give for the query operands and the row op cannot, so a color several ops can give counts in each of their columns. On the diagonal (outlined), the mass on the answers of the row op. A full cell is a mass of 1. ideal₇ is the Bayes-optimal predictor over all seven ops; the models are seed means over eight runs.
With difference taken out:
Where the answers go, with difference taken out. Laid out as the earlier figure. ideal₆ is the
Bayes-optimal predictor with difference taken out (the target null); retrained is the control trained from scratch with
the loss masked on difference contexts (sans-diff in the earlier reports). Both edited models are under the same edit of the anchored axis;
the control holds nothing there, so its edit leaves the op in place. Faint bars behind show each one before
difference was taken out: ideal₇ for ideal₆, the control for retrained, and the unedited
model for the edited ones.
The same with the two post-hoc erasers that removed the op best without role labels in the post-hoc comparison:
Where the answers go, with difference taken out after training. Laid out as the earlier figures. LEACE
and INLP are post-hoc erasers fitted to the control without role labels, at the settings the post-hoc
comparison chose; beside them, the anchored model under its edit and ideal₆. Faint bars behind show
each one before the edit (for ideal₆, ideal₇). Seed means over eight runs.
Removal and spill by method¶
One figure above each result table of the post: removal and spillSpill The side effect of an edit on the other ops: the largest drop in the score of any op other than the one removed, net of what the same edit does to a control trained without the anchor. The selectivity criterion of D2.2 allows at most 0.02 at any dose. per method, the median over the eight runs with the range and each run.
Pooled fits:
Removal and spill by method, pooled fits: removal at the spill criterion, spill at matched removal. The dot is the median over the eight runs at 712 to 719, the line the range, and each tick one run. Spill is in points of expected exact match, and the dashed line marks the criterion of 2. SCA is the same in every table; the dotted line marks its median.
Fits keyed to the example answers:
Removal and spill by method, fits keyed to the example answers: removal at the spill criterion, spill at matched removal. The dot is the median over the eight runs at 712 to 719, the line the range, and each tick one run. Spill is in points of expected exact match, and the dashed line marks the criterion of 2. SCA is the same in every table; the dotted line marks its median.
Slices 1 to 3, chosen on the other seven runs:
Removal and spill by method, slices 1 to 3, chosen on the other seven runs. The dot is the median over the eight runs at 712 to 719, the line the range, and each tick one run. Spill is in points of expected exact match, and the dashed line marks the criterion of 2. SCA is the same in every table; the dotted line marks its median.
Every slice, chosen on the other seven runs:
Removal and spill by method, every slice, chosen on the other seven runs. The dot is the median over the eight runs at 712 to 719, the line the range, and each tick one run. Spill is in points of expected exact match, and the dashed line marks the criterion of 2. SCA is the same in every table; the dotted line marks its median.
Retrained and SCA¶
Removal and spillSpill The side effect of an edit on the other ops: the largest drop in the score of any op other than the one removed, net of what the same edit does to a control trained without the anchor. The selectivity criterion of D2.2 allows at most 0.02 at any dose. of SCA beside the model retrained without the loss on difference. Retrained has no edit, so its
spill is the gap to the control at the same seed, which carries the differences between two separately trained
models, so it is drawn as the reference row.
SCA beside retraining. Retrained is the control trained from scratch with the loss masked on difference
contexts, measured against the control at the same seed. The dot is the median over the eight runs at 712 to 719,
the line the range, and each tick one run. Retrained has no edit, so its spill is the gap between two separately
trained models. The dotted line marks the median of retrained, and the dashed line the spill criterion of 2.