The pool temperature and anchor weight, without the embedding¶
We swept the pool temperaturePool temperature The temperature of the mellowmax, a smooth stand-in for the maximum, that pools the alignment over the positions of a context: small τ is close to the largest alignment, large τ close to the mean. The recipe uses 0.1. τ and the anchor weight λ_a together, with the in-context pull kept off the embedding slice. Leaving the embedding out keeps the latchLatch A pooled pull that settles on one cheap position that every context shares, a different one from run to run: here, a syntax token whose embedding comes to lie on e₁ (spill-by-position, E3). off the syntax embeddings over most of the plane, but at the recipe point the edit still spills about as much as on the every-slice runs without a latch, and the spill grows as the pool softens. The most selective trials tend to sit near a narrow edge, just soft enough for the edit to remove the op at all.
Spill-by-position found that most anchored runs of the recipe latch one syntax embedding onto e₁, and that a latched separator carries much of the spill of the edit. The no-emb pull of ex-2.2.21, which leaves the embedding slice out of the anchor and anti-subspace terms, never latched there and scored best on the task, but only at three seeds and 200 epochs. The backlog item on a softer τ asked a related question: whether spreading the pull over more positions would move the anchor where it is needed.
This page trains no-emb at the recipe length over a log-log plane of τ and λ_a, one seed per trial, and fits smooth surfaces over the plane in place of repeated seeds. A few every-slice trials along τ are the reference.
Observations¶
- Removal along τ (E1): below τPool temperature The temperature of the mellowmax, a smooth stand-in for the maximum, that pools the alignment over the positions of a context: small τ is close to the largest alignment, large τ close to the mean. The recipe uses 0.1. ≈ 0.07 the edit barely removes
differenceon most trials, and from there up it removes most of the way on every trial. The weight makes little difference, and removal hardly changes past the edge. - Where the anchor sits (E2): past the edge the anchor sits at the example answers. As the pool softens it spreads onto every
=, and the syntax embeddings come partway onto e₁, with no full latchLatch A pooled pull that settles on one cheap position that every context shares, a different one from run to run: here, a syntax token whose embedding comes to lie on e₁ (spill-by-position, E3).. At the sharpest pool, four of the six trials put the=embedding most of the way onto e₁, a latch in a new place. - Spill (E3): spill grows as the pool softens, together with the anchor at
=. At the recipe τ,no-embspills about as much as the every-slice runs that did not latch. The least spill, among trials that remove the op, is on the edge itself; the fits put the best point near τ = 0.07, λ_a = 0.13, though not with much confidence.
Scope¶
This is an exploratory study, with no preregistration and no gate. It trains 32 no-emb trials and 8 every-slice trials, each at its own model seed (800 to 839) and for 400 epochs, on the recipe of record: ex-2.2.21's corpus with 3 examples per context, the whole-line label, no cap. The no-emb trials are scattered over τPool temperature The temperature of the mellowmax, a smooth stand-in for the maximum, that pools the alignment over the positions of a context: small τ is close to the largest alignment, large τ close to the mean. The recipe uses 0.1. from 0.01 to 1 and λ_a from 0.025 to 0.4, both on log scales, by a scrambled Sobol sequence (a quasi-random pattern that covers a square more evenly than random draws). The every-slice trials are spaced evenly along τ, on a log scale, at the recipe weight of 0.1. Beside them are ex-2.2.23's 12 every-slice runs at 400 epochs, all at the recipe point (τ = λ_a = 0.1), which show how far runs differ by seed alone at one point.
The recipe sets the weight of the anti-subspace term as a multiple of λ_a, so the two terms move together and the ratio between them is the same on every trial. The sweep says nothing about the anti-subspace term relative to the pull.
With one seed per trial, how far a difference can be trusted comes from the fits (see below), which also estimate how much the trials scatter about the surface. At the recipe point, removal is nearly the same from seed to seed, and spill is not: its seed standard deviation is 0.13, as large as most of the differences in E3. So a single trial says little about spill, and a pattern has to show across several neighboring trials before we read anything into it.
The measurements¶
Each measurement is taken on ex-2.2.21's held-out set, as in ex-2.2.23. The edit is ex-2.2.22's: at every position and every slice, it removes a share (the dose) of the component of the state along e₁, the anchored direction.
- Removal: how far the drop on
differenceat full dose gets toward the target nullTarget null What the model would answer withoutdifference: the ideal predictor with that op removed from the posterior over ops., as a share of the way. Higher is better. - Spill: the largest drop on any other op, at any dose. Lower is better; ex-2.2.21 set a selectivity criterion of 0.02, which no trial here meets.
- α: the alignment with e₁ (the cosine between a state and the anchored direction), on
differencecontexts, averaged over slices 2 to 4: at the example answers, and at every=(the examples' and the query). - Syntax embeddings: the largest alignment with e₁ of any syntax token embedding (
?,=,,, ⏎). - Task cost: the seed mean of the controls minus the trial score.
Both edit measurements are net of the seed mean of ex-2.2.23's 12 controls at 400 epochs, so what the edit does to a model with no anchor is not counted. Ex-2.2.23 netted against the control at the same seed; here the trials have new seeds, and on ex-2.2.23's runs pairing by seed made little difference.
Each continuous measurement gets a Gaussian processGaussian process A smoother that fits a surface through scattered points and reports its own uncertainty at every point of the surface. Here it fits each measurement over log τ and log λ_a, with a separate term for how much single trials scatter about the surface. over the plane, fit in log τPool temperature The temperature of the mellowmax, a smooth stand-in for the maximum, that pools the alignment over the positions of a context: small τ is close to the largest alignment, large τ close to the mean. The recipe uses 0.1. and log λ_a on the no-emb trials, leaving out the four whose anchor sits on = (E2). The design also planned logistic fits for two yes/no outcomes, but neither varied: every trial made the second rise, the late jump in task skill when the model learns the three HSV ops (its worst HSV op ends above 0.3), and no no-emb trial latched a syntax embedding at spill-by-position's level of 0.9, though the = came close on four (E2). Task cost is small everywhere, at most 0.06, with no pattern over the plane; it is in the table at the end, and in E3 where it bears on the trials with the least spill.
Glossary¶
- Pool temperature
- τ
- The temperature of the mellowmax, a smooth stand-in for the maximum, that pools the alignment over the positions of a context: small τ is close to the largest alignment, large τ close to the mean. The recipe uses 0.1.
- Target null
- What the model would answer without
difference: the ideal predictor with that op removed from the posterior over ops. - Latch
- A pooled pull that settles on one cheap position that every context shares, a different one from run to run: here, a syntax token whose embedding comes to lie on e₁ (spill-by-position, E3).
- Gaussian process
- A smoother that fits a surface through scattered points and reports its own uncertainty at every point of the surface. Here it fits each measurement over log τ and log λ_a, with a separate term for how much single trials scatter about the surface.
Removal along τ (E1)¶
Where on the plane does the edit remove difference? The figure plots removal against τPool temperature The temperature of the mellowmax, a smooth stand-in for the maximum, that pools the alignment over the positions of a context: small τ is close to the largest alignment, large τ close to the mean. The recipe uses 0.1., with the weight as shade, and the anchor at the example answers beside it, since that is where the example-evidence report found it.
Removal and the anchor at the example answers, along τ. Circles are no-emb trials, shaded from light
(λ_a = 0.025) to dark (λ_a = 0.4), hollow where the anchor sits on =
(E2). Lines are the fits at three weights, with bands of one standard deviation; the fits leave out the
hollow trials, and where the lines coincide, the fit found no effect of the weight. Triangles are the every-slice trials at λ_a = 0.1;
the diamond, its whisker, and the faint dots are ex-2.2.23's every-slice runs at the recipe point.
Removal depends mostly on τ, through a sharp edge near τ = 0.07 (placed by eye). The fit rises again at the sharpest pool, but that rests on one trial. Above it, every no-emb trial removes the op most of the way, about as far as the every-slice runs at the recipe point, and softening the pool further changes little. Below it, most trials remove little. The every-slice trials follow the same edge, a little sharper.
The weight makes little difference. The fit finds no change with λ_a over the sixteenfold range of the sweep, and the shades mix on both sides of the edge. Just below it, the two trials that remove the op best are among the heavier ones, which is a hint at most.
The anchor at the example answers follows the same edge: below it, α there is low, and above it, α settles near 0.7 on every trial. So with a sharp pool, the pull is met somewhere the answer does not depend on, and the edit has nothing to remove. The trials at the sharpest pool that do remove the op are the exception, and E2 shows where their anchor went.
Where the anchor sits (E2)¶
Does the pool spread the anchor beyond the example answers as it softens, and does leaving out the embedding keep the syntax embeddings off e₁? The figure plots α at every = and the largest alignment of a syntax embedding.
The anchor at every = and on the syntax embeddings, along τ. As in the figure of E1. The right panel
has no fit: the syntax embedding with the largest alignment differs from trial to trial.
At the sharpest pool, the anchor of four trials moves to =. On those trials the = embedding lies most of the way along e₁, even though the embedding slice is not pulled, and α at every = is high on difference contexts, and on the contexts of other ops too. The pull at the output of the first block is cheapest to meet by moving a token that every context shares, so leaving out the embedding slice moves the latchLatch A pooled pull that settles on one cheap position that every context shares, a different one from run to run: here, a syntax token whose embedding comes to lie on e₁ (spill-by-position, E3). one slice up rather than removing it. On those trials the edit removes the op by removing = everywhere (E3 shows what that costs). The other two trials at the sharpest pool have no anchor in use.
From the edge up to τPool temperature The temperature of the mellowmax, a smooth stand-in for the maximum, that pools the alignment over the positions of a context: small τ is close to the largest alignment, large τ close to the mean. The recipe uses 0.1. ≈ 0.2 the anchor stays at the example answers, and the syntax embeddings stay near zero, as in ex-2.2.21. As the pool softens beyond that, α rises at every =, and the most aligned syntax embedding comes partway onto e₁, usually the line break or the separator. None reaches a full latch, and the weight makes little difference.
The every-slice pull latches at half the values of τ, much as it did at the recipe point: four of its 8 trials have one syntax embedding on e₁, and at the softest pool its syntax embeddings rise partway too.
Spill (E3)¶
How much does the edit spill across the plane, and does it follow where the anchor sits? The figure plots spill along τPool temperature The temperature of the mellowmax, a smooth stand-in for the maximum, that pools the alignment over the positions of a context: small τ is close to the largest alignment, large τ close to the mean. The recipe uses 0.1., as in E1.
Spill along τ. As in the figure of E1.
Past the edge, spill grows as the pool softens. Near the recipe τ (0.08 to 0.2), the no-emb trials spill about as much as the every-slice runs at the recipe point that did not latchLatch A pooled pull that settles on one cheap position that every context shares, a different one from run to run: here, a syntax token whose embedding comes to lie on e₁ (spill-by-position, E3)., and less than the ones that did. So leaving out the embedding slice takes away the extra spill of the latch, and leaves the rest. The four trials with the anchor on = spill most of all, since their edit removes = in every context. Below the edge, the trials spill little, and remove little.
The spill follows the anchor at =. Among the trials that remove the op, leaving out the four on =, the correlation between spill and α at every = is 0.69.
Spill against the anchor at every =. The trials whose removal is at least 0.5. Circles
are no-emb trials, shaded by weight as before, hollow where the anchor sits on = (E2); triangles are
every-slice trials and runs.
The trials that spread the anchor onto = spill most, and those that keep it at the example answers spill least, though even those spill well above the criterion of ex-2.2.21. The every-slice runs at the recipe point have little α at = and spill as widely as the no-emb trials, so = is one source of spill among others.
Putting removal and spill together, the most selective trials tend to sit near the edge, where the pool is just soft enough for the anchor to settle at the example answers and no softer. The three trials with the least spill among those that remove at least 0.7 of the way are no-emb-04 (τ = 0.08, λ_a = 0.39), no-emb-06 (τ = 0.19, λ_a = 0.10), and no-emb-20 (τ = 0.07, λ_a = 0.18). Two of them are among the few trials that cost the task something (no-emb-04 and no-emb-06, whose worst HSV op ends lower than on most trials), so a model that learned the task less well may account for part of their low spill. The third has no task cost, and it sits on the edge.
The fitted surfaces over the plane. Solid: removal at 0.5 and 0.7.
Dashed: spill. Dots are the no-emb trials, hollow where the anchor sits on =; triangles the every-slice
trials; the diamond the recipe point. The star is the point of least fitted spill where the fitted removal
reaches 0.7.
On the fitted surfaces, the point of least spill where removal reaches 0.7 is at τ = 0.07 and λ_a = 0.13. There the fits give removal 0.7 ± 0.1 and spill 0.1 ± 0.1. The edge is narrow along τ and the spill is noisy, so the region is a thin band beside a steep slope, rather than a broad plateau.
Discussion¶
The pull kept off the embedding slice does what spill-by-position hoped for over most of the plane: no syntax embedding latchesLatch A pooled pull that settles on one cheap position that every context shares, a different one from run to run: here, a syntax token whose embedding comes to lie on e₁ (spill-by-position, E3)., and the extra spill that a latched separator brings goes away. But the edit still spills at the recipe τPool temperature The temperature of the mellowmax, a smooth stand-in for the maximum, that pools the alignment over the positions of a context: small τ is close to the largest alignment, large τ close to the mean. The recipe uses 0.1., about as much as on the every-slice runs without a latch. So most of the spill on a fully trained model has some other source. A later re-analysis, where the lean comes from, traces it on the every-slice runs to lightness loaded onto e₁ in the color embedding table, and finds the no-emb trials here leaning the same way. The no-emb runs of ex-2.2.21 and ex-2.2.22 spilled little, and at 200 epochs on three seeds, that may have been the short training more than the pull, though this sweep has no 200-epoch arm to separate the two.
Leaving out the embedding slice also moves the latch rather than removing it, when the pool is sharp. At the sharpest τ the pull is met at the first slice it reaches, by putting the = embedding on e₁. That fits the account of the latch in spill-by-position, a pool that is close to a max is met most cheaply by a position every context shares, and it suggests that leaving out more slices might only move the latch further up at a sharp enough pool, though only the embedding slice was left out here.
Softening the pool spreads the anchor, as the backlog item expected, but onto = and the syntax tokens, and the spill grows with it. The anchor does reach the query =, though only together with every other =. So a softer pool does not help the edit here: by the time the anchor reaches the query, the spill has grown.
So within this plane, the least spill comes at the edge where the anchor first settles at the example answers. It is a narrow band beside a steep slope, and the noise in the spill is about as large as the differences along it, so we hold the proposed point loosely: with one trial per point, we cannot tell whether the spill drops on the edge or the trials there were lucky draws. Two of the three least-spilling trials also cost the task something (E3), which leaves one clean trial on the edge. If the spill does drop there, removal and spill are traded along τ, and λ_a barely enters removal; the spill fit varies with λ_a only through single trials. Since λ_a scales the anti-subspace term too, the ratio between the two terms is the same on every trial, so the sweep says nothing about a heavier anti-subspace term relative to the pull.
All trials¶
| trial | τ | λₐ | task cost ↓ | worst HSV op ↑ | top syntax embedding | α, answers | α, every = | removal ↑ | spill ↓ |
|---|---|---|---|---|---|---|---|---|---|
| no-emb-00 | 0.011 | 0.162 | +0.012 | 0.46 | , 0.09 | 0.20 | 0.01 | 0.60 | 0.09 darken |
| no-emb-31 | 0.012 | 0.082 | -0.003 | 0.49 | = 0.90 | 0.03 | 0.46 | 0.91 | 0.63 lighten |
| no-emb-15 | 0.015 | 0.037 | +0.003 | 0.48 | = 0.87 | 0.02 | 0.63 | 0.91 | 0.64 darken |
| no-emb-16 | 0.016 | 0.299 | +0.001 | 0.48 | = 0.74 | 0.00 | 0.25 | 0.87 | 0.63 lighten |
| no-emb-08 | 0.019 | 0.212 | +0.028 | 0.46 | , 0.06 | 0.10 | 0.02 | 0.04 | 0.07 lighten |
| no-emb-23 | 0.023 | 0.026 | +0.022 | 0.48 | = 0.77 | 0.02 | 0.66 | 0.90 | 0.62 lighten |
| no-emb-07 | 0.025 | 0.057 | +0.014 | 0.46 | , 0.09 | 0.07 | 0.02 | 0.06 | 0.04 darken |
| no-emb-24 | 0.031 | 0.116 | -0.000 | 0.48 | , 0.12 | 0.06 | 0.01 | 0.11 | 0.00 darken |
| no-emb-03 | 0.035 | 0.035 | -0.003 | 0.48 | = 0.07 | 0.34 | 0.02 | 0.48 | 0.06 darken |
| no-emb-28 | 0.038 | 0.283 | +0.002 | 0.48 | , 0.02 | 0.10 | 0.01 | 0.39 | 0.09 lighten |
| no-emb-12 | 0.046 | 0.129 | +0.000 | 0.48 | , 0.11 | 0.22 | 0.01 | 0.24 | 0.09 darken |
| no-emb-19 | 0.049 | 0.064 | -0.004 | 0.49 | ⏎ 0.09 | 0.09 | 0.02 | 0.13 | 0.00 hue-hsv |
| no-emb-11 | 0.058 | 0.091 | +0.001 | 0.49 | ? 0.11 | 0.14 | 0.01 | 0.29 | 0.01 mix |
| no-emb-20 | 0.072 | 0.181 | -0.002 | 0.47 | , 0.04 | 0.69 | 0.01 | 0.84 | 0.07 hue-hsv |
| no-emb-04 | 0.076 | 0.392 | +0.032 | 0.41 | = 0.03 | 0.65 | -0.00 | 0.81 | 0.05 darken |
| no-emb-27 | 0.094 | 0.050 | -0.002 | 0.49 | ⏎ 0.15 | 0.70 | 0.02 | 0.87 | 0.31 darken |
| no-emb-14 | 0.112 | 0.320 | -0.002 | 0.49 | ⏎ -0.02 | 0.69 | 0.01 | 0.85 | 0.27 darken |
| no-emb-17 | 0.120 | 0.040 | -0.002 | 0.48 | ⏎ 0.11 | 0.69 | 0.02 | 0.85 | 0.20 darken |
| no-emb-01 | 0.153 | 0.072 | -0.001 | 0.49 | , 0.16 | 0.72 | 0.03 | 0.89 | 0.17 hue-hsv |
| no-emb-30 | 0.163 | 0.148 | +0.012 | 0.49 | , 0.15 | 0.72 | 0.03 | 0.83 | 0.19 darken |
| no-emb-06 | 0.185 | 0.102 | +0.055 | 0.34 | ⏎ 0.09 | 0.71 | 0.03 | 0.87 | 0.07 darken |
| no-emb-25 | 0.229 | 0.052 | +0.004 | 0.48 | ⏎ 0.19 | 0.71 | 0.07 | 0.90 | 0.31 darken |
| no-emb-09 | 0.251 | 0.028 | -0.002 | 0.49 | ⏎ 0.18 | 0.80 | 0.06 | 0.90 | 0.24 darken |
| no-emb-22 | 0.311 | 0.224 | +0.013 | 0.47 | ⏎ 0.57 | 0.60 | 0.15 | 0.90 | 0.53 lighten |
| no-emb-13 | 0.349 | 0.066 | -0.003 | 0.48 | , 0.47 | 0.69 | 0.14 | 0.89 | 0.26 darken |
| no-emb-18 | 0.374 | 0.131 | +0.059 | 0.39 | ⏎ 0.75 | 0.65 | 0.22 | 0.88 | 0.42 darken |
| no-emb-02 | 0.457 | 0.239 | +0.037 | 0.45 | ⏎ 0.54 | 0.63 | 0.32 | 0.86 | 0.35 darken |
| no-emb-29 | 0.489 | 0.030 | +0.002 | 0.48 | ⏎ 0.24 | 0.72 | 0.11 | 0.86 | 0.12 value-hsv |
| no-emb-05 | 0.575 | 0.042 | +0.032 | 0.42 | ⏎ 0.40 | 0.66 | 0.14 | 0.84 | 0.19 value-hsv |
| no-emb-26 | 0.711 | 0.343 | +0.001 | 0.48 | , 0.31 | 0.67 | 0.52 | 0.90 | 0.59 lighten |
| no-emb-10 | 0.753 | 0.186 | -0.003 | 0.49 | ⏎ 0.40 | 0.68 | 0.43 | 0.91 | 0.43 darken |
| no-emb-21 | 0.931 | 0.092 | +0.046 | 0.42 | , 0.45 | 0.66 | 0.39 | 0.90 | 0.22 lighten |
| whole-00 | 0.010 | 0.100 | +0.010 | 0.48 | = 0.02 | 0.11 | 0.02 | 0.31 | 0.11 darken |
| whole-01 | 0.019 | 0.100 | +0.040 | 0.43 | , 1.00 | 0.07 | 0.02 | 0.17 | 0.08 lighten |
| whole-02 | 0.037 | 0.100 | +0.036 | 0.44 | ⏎ 1.00 | 0.08 | 0.03 | -0.01 | 0.01 darken |
| whole-03 | 0.072 | 0.100 | -0.003 | 0.49 | , 1.00 | 0.66 | 0.01 | 0.88 | 0.41 lighten |
| whole-04 | 0.139 | 0.100 | -0.001 | 0.48 | = 0.07 | 0.75 | 0.02 | 0.86 | 0.30 darken |
| whole-05 | 0.268 | 0.100 | -0.001 | 0.48 | ⏎ 0.97 | 0.73 | 0.09 | 0.89 | 0.38 hue-hsv |
| whole-06 | 0.518 | 0.100 | +0.007 | 0.48 | ⏎ 0.86 | 0.66 | 0.28 | 0.89 | 0.32 hue-hsv |
| whole-07 | 1.000 | 0.100 | -0.002 | 0.49 | , 0.73 | 0.73 | 0.40 | 0.90 | 0.41 hue-hsv |
| recipe, seed 700 | 0.100 | 0.100 | +0.008 | 0.48 | ? 0.03 | 0.69 | 0.02 | 0.86 | 0.28 darken |
| recipe, seed 701 | 0.100 | 0.100 | +0.001 | 0.48 | , 1.00 | 0.66 | 0.01 | 0.89 | 0.39 darken |
| recipe, seed 702 | 0.100 | 0.100 | -0.001 | 0.48 | = 0.06 | 0.69 | 0.02 | 0.86 | 0.13 darken |
| recipe, seed 703 | 0.100 | 0.100 | -0.002 | 0.49 | = 0.06 | 0.70 | 0.03 | 0.85 | 0.18 darken |
| recipe, seed 704 | 0.100 | 0.100 | -0.005 | 0.49 | , 1.00 | 0.68 | 0.01 | 0.90 | 0.33 lighten |
| recipe, seed 705 | 0.100 | 0.100 | +0.009 | 0.47 | , 1.00 | 0.69 | 0.03 | 0.86 | 0.52 darken |
| recipe, seed 706 | 0.100 | 0.100 | -0.000 | 0.49 | = 0.07 | 0.70 | 0.02 | 0.86 | 0.22 darken |
| recipe, seed 707 | 0.100 | 0.100 | -0.004 | 0.49 | ⏎ 1.00 | 0.67 | 0.01 | 0.89 | 0.01 hue-hsv |
| recipe, seed 708 | 0.100 | 0.100 | +0.003 | 0.48 | = 0.08 | 0.69 | 0.01 | 0.82 | 0.15 darken |
| recipe, seed 709 | 0.100 | 0.100 | +0.023 | 0.45 | , 1.00 | 0.68 | 0.03 | 0.83 | 0.31 darken |
| recipe, seed 710 | 0.100 | 0.100 | +0.010 | 0.45 | = 0.04 | 0.69 | 0.04 | 0.80 | 0.20 darken |
| recipe, seed 711 | 0.100 | 0.100 | -0.000 | 0.49 | = 0.04 | 0.69 | 0.03 | 0.84 | 0.28 darken |
Every trial. The 32 no-emb trials in order of τ, then the 8
every-slice trials, then ex-2.2.23's every-slice runs at the recipe point (τ = λₐ = 0.1). Task cost is the
seed mean of the controls minus the trial score; the worst HSV op is its score on the held-out set; the top
syntax embedding is the one most aligned with e₁; α is averaged over slices 2 to 4 on
difference contexts. Removal and spill are net of the control seed mean, and the spill names the op
it lands on.