Steering with the end-of-turn vector
A quick replication on the 27B of a result posted for a smaller Qwen: adding the end-of-turn unembedding vector mid-depth makes replies end; random directions of the same size do not.
6. Steering with the end-of-turn vector: a replication of Sauers_ on the 27B (persona-fable, 2026-11-18 night)
Sauers_ (X, 2026-11-18) added the <|im_end|> unembedding vector at layer 18 of 36 on a smaller Qwen: replies shrank with strength, at 4x 29 of 30 ended at once, and random directions made replies longer. Here: the 27B's bf16 lm_head row of <|im_end|> (id 248046), unit length, times strength x the layer-31 residual median (the atlas dose convention), added at layers.31.residual on every token. Controls: three random unit directions at the same size (cosine with the vector under 0.03). Greedy, no system prompt, thinking off. Script endtok_steer.py; rows and score.json on Quincy /mnt/nvme/persona_weights/endtok/steer/. The pass rule was written to plan.json before the run: replicates only if the median short reply at 2x is at most half the baseline, at 4x at least 24 of 30 end at once, and each random direction ends fewer than 6 of 30 at once at 4x. All three hold: it replicates.
Short prompts (30, cap 200 tokens): median tokens / ended at once (2 tokens or fewer, stopped) / hit the cap
| arm | 0.25x | 0.5x | 1x | 2x | 4x | 8x |
|---|---|---|---|---|---|---|
| end-of-turn vector | 162.5 / 0 / 13 | 129.5 / 0 / 9 | 10 / 10 / 0 | 1 / 30 / 0 | 1 / 30 / 0 | 1 / 30 / 0 |
| random 1 | 24 / 2 / 1 | 200 / 0 / 28 | 200 / 0 / 30 | |||
| random 2 | 119.5 / 0 / 12 | 200 / 0 / 30 | 200 / 0 / 30 | |||
| random 3 | 112.5 / 0 / 9 | 200 / 0 / 30 | 200 / 0 / 30 |
No steering: 155 / 0 / 13. The switch sits between 0.5x and 1x and is complete at 2x. At 1x the reply shortens without breaking ("I am Qwen, a large language model developed by Alibaba Group." and stop). Random directions never end at once and run to the cap from 2x, but those replies are not longer answers: they are broken output that does not stop ("The question is..." repeated, runs of "&", 200 tokens of blank space).
Hard 30 (cap 512): exact answers / stopped on its own / median tokens
| arm | exact | stopped | median tokens |
|---|---|---|---|
| none | 25 | 29 | 209 |
| end-of-turn 0.5x | 24 | 27 | 272 |
| end-of-turn 1x | 2 | 30 | 4.5 |
| end-of-turn 2x | 0 | 30 | 1 |
| random 1 at 1x | 0 | 19 | 158.5 |
| random 1 at 2x | 0 | 0 | 512 |
At 0.5x reasoning is intact (24 against 25). At 1x the model stops before it has worked the problem. A random direction of the same size at 1x already destroys the answers (0 of 30) without making the model stop, so the end-of-turn vector is the gentler push at equal size up to 0.5x and a different effect beyond it.
Six long prompts on the Holmes lace (holmes-look1, cap 4,096; the case this notes file started from, where the lace's long answers never end)
| arm | stopped on its own | tokens | flagged looping |
|---|---|---|---|
| none | 0 of 6 | 4096 x 6 | 6 |
| end-of-turn 0.25x | 4 of 6 | 3051 to 4096 | 5 |
| end-of-turn 0.5x | 6 of 6 | 1487 to 3436 | 5 |
| end-of-turn 1x | 5 of 6 | 8 to 28, one at 4096 | 1 |
| end-of-turn 2x | 6 of 6 | 1 each | 0 |
New here, and not in the original post: a small push (0.5x) makes all six laced long answers end on their own where none did, at a strength that cost one hard-30 answer. It does not cure the loop: five of six are still flagged as looping before they end. n = 6 prompts, one seed, one character; a candidate for the loop work, not a result.
Limits: one layer (31), one seed, greedy only; "typical residual norm" is the atlas residual median, not his definition; the hard-30 random control is one direction.