Backstory. We had been circling this idea for a while. Our earlier project, ConceptGate [1], reads and steers concepts inside one frozen model by treating a concept as a direction in its activations. The next question was whether the same direction exists in a different model, and whether something simple could transfer it across. Then, in early November 2026, “Sparks of Weight-Space Programming” [2] showed an agent editing a small model’s weights by hand, with no training, and Barry [3] reduced its headline edit to one direction plus a linear program. That made the question concrete: can a weight-space program written for one model be transferred into another? This post reports what we found. The project is called weightmap.
Abstract. When two language models read the same text, each turns every token into a vector of numbers, its internal state. We ask whether the small model’s state can be computed from the large model’s by one linear formula, a map, fitted in a single closed-form step with no training, and whether that map can transfer anything from the large model into the small one. We test this on six models from four families, between 135M and 1.5B parameters (Qwen2.5, SmolLM2, Gemma-3, Pythia). (1) The map predicts about 65% of the variation in the small model’s state on held-out text (R² ≈ 0.65). A map that sees only the large model’s input embeddings, which encode just which token is present, already reaches 0.35–0.59, which is 54–82% of that score (34–69% under a rotation map). (2) Facts transfer partly: swapping mapped hidden states transfers 56–82% as many facts as swapping a model’s own states, and the subject’s token embeddings alone account for a third to nine tenths of that. (3) A steering direction does not transfer in behaviour. A “looping” direction found in Qwen-1.5B and mapped into SmolLM2-135M has cosine 0.82 with the small model’s own direction when the map is fitted on unrelated text, inside the range that random relabellings of the texts give, and steering with it leaves the loop rate at 18.5% against 21% unedited. An earlier version of this result (21% to 10%) came from fitting the map on the looping texts themselves. (4) A weight edit transfers in a dense form and not in a sparse one. Eight of the small model’s neurons cannot reproduce the large model’s loop trigger (R² 0.05). Re-expressed through 574 neurons and used to gate the small model’s own loop direction, the trigger cuts loops from 21% to 10%, where three unselective dense controls give 21.5% to 32%. The trigger was fitted with loop labels from the small model’s outputs. (5) Computation and ability do not transfer: a block of the large model run inside the small one through the map is worse than deleting the block, and no edit moved MATH accuracy. In these experiments the objects that transferred were distributed, and the compact ones that weight-space programming relies on, one direction or eight neurons, did not.
Everything here is training-free: forward passes, closed-form least squares, and linear programs, on one laptop. All numbers are from stored results in the weightmap repository. Sample sizes are small and stated with each result. References were checked against their primary sources.
In November 2026, “Sparks of Weight-Space Programming” [2] showed an AI agent fixing a fault in a small language model by editing its weights directly, with no training. A follow-up [3] reduced the fix to a few lines of maths. Both worked on one model at a time.
This report asks whether such a fix can be transferred from one model into another. Before that, it asks whether a small model’s internal space sits inside a large model’s, so that there is something to transfer the fix through. The tests use six small open models and no training. Three matter most below: we call SmolLM2-135M the tiny model, Qwen2.5-0.5B the small model and Qwen2.5-1.5B the large model. This is the short version. Turn on the Long form switch at the bottom of the screen for the full technical report.
The idea
The idea has two parts. First, there may be a mapping function between a smaller model and a larger one: a way to convert what happens inside one model into what happens inside the other. Second, the larger model’s space might contain the smaller model’s space, so that the small model corresponds to some part of the large one. If both hold, two questions follow: which part of the large model matches the small one, and can the mapping transfer what the large model has into the small one?
To test this, give two models the same sentence. Inside each one, every word becomes a long list of numbers that is rewritten layer by layer. We fit the mapping function, or map for short, so that it converts one model’s list into the other’s. It is solved in one step, the way a line is fitted through points. We test the map first on these internal states, where two models can be compared directly, and then on the weights themselves.
We turned this into five guesses, from modest to bold, and tested each one.
The map works, but much of it is the shared input word
The map predicts about 65% of the small model’s internal state. That sounds as if the two models think alike. But both are reading the same word, and the word alone predicts a lot. When we gave the map only the word, and nothing the large model had worked out about it, it still scored between 35% and 59%. What the models share beyond the word is 13% to 29%.
A claim that two models are similar inside should therefore say how much of the similarity is the input they were both given. Maps also chain: mapping from large to small to tiny scores about 95% as well as mapping from large to tiny directly. Concurrent work from a Stanford group reports a similar map for much larger models [11]; where the two overlap, the results agree.
What transfers: facts, and a detector spread over many neurons
Facts transfer. Copy one model’s internal state for one subject into another model while it is reading about a different subject, and the second model answers about the first subject. This works about three quarters as often as using the second model’s own state. In four of the six model pairs, more than half of that needs nothing the first model computed: the words that spell the subject are enough.
A detector transfers too, if it is spread over many neurons. The tiny model often gets stuck repeating itself. The large model did not repeat on any of the same 200 questions. Inside the large model, a few neurons detect when the tiny model’s text has started to repeat. We re-expressed that detector through 574 of the tiny model’s own neurons and wrote it into the tiny model’s weights, so that it switches on a push away from repeating. Repetition fell from 21% of answers to 10%. Three scrambled versions of the same edit did not help.
Two facts limit what this shows. The push itself is the tiny model’s own “repeating” direction, and the detector had been trained on the tiny model’s own repeating texts. So the large model’s detector can be rewritten in the tiny model’s neurons. That does not show the large model knows something the tiny one lacks. The tiny model’s own 8-neuron edit did slightly better, at 8.5%.
What does not transfer: compact edits, parts and skill
A steering direction does not transfer. We located the “repeating” direction inside the large model, mapped it across, and pushed the tiny model away from it. In our first run repetition fell from 21% to 10%. That was an artefact: we had fitted the map on the very texts in which the tiny model repeats. With a map fitted on unrelated text, repetition stayed at 18.5%.
The detector does not transfer in compact form either. Squeezed into 8 neurons, the size weight-space programming works with, it did not help. We first read that as “the large model’s neurons have no match in the tiny one”. With no limit on the number of neurons, the same detector works, so that reading was wrong.
We also replaced one layer of the small model with a layer from the large one, mapping on the way in and on the way out. The small model became worse than if we had deleted the layer.
No edit improved the small model’s maths. None of the problems it never solves became solvable. The models also largely succeed on the same problems: the large model solves 82% of the maths problems the small one solves. So a small model has little to give a large one, and what the large model has beyond the small one did not transfer.
Why
Our reading is this. Each model passes a running summary of the text from layer to layer. Both models are tied to the same words going in and coming out, so the summaries line up well enough to map as a whole. A compact edit is different. One direction, or a few neurons, is found inside one model from that model’s own activity, and in these tests it stayed specific to that model.
In short: a map between models transfers information in distributed form. The small edits that weight-space programming writes by hand stay with the model they were found in.
Limitations
These results come from small models and small tests. All six models have 1.5 billion parameters or fewer, and larger models may share more than these do. Most comparisons rest on 86 to 200 examples and some on fewer, so several of the differences reported here are within noise. We tested one behaviour, repetition, and one kind of weight edit. Two of our first conclusions reversed when we added controls. Two positive results have not had the same control: the large model’s detector, and one direction in the maths test, were both fitted on the texts under study. The word-only check is a lower bound, so the part the models share beyond the word may be smaller than 13% to 29%.
What’s next
Four next steps follow. First, test the idea with weight-space programming itself: let an AI agent read two models’ weights and try to transfer a fix from one to the other, a much freer search than the linear map used here. Second, repeat everything on larger general-purpose models, to see whether layers and neurons start to correspond as models grow. Third, compare a model with a fine-tuned copy of itself. The two share their neurons, so an edit may transfer over with no map at all, and the interesting question is how long that lasts as fine-tuning goes on. Fourth, take a small model that has been properly fine-tuned on one subject and ask whether it still fits inside a general large model, or whether it now knows things the large one does not.
The code and all results are on GitHub.
1. Introduction
This project grew out of two lines of work: steering a model through directions in its activations, and editing a model’s weights directly. This section connects them, states the problem, lists the hypotheses and summarises what we found.
1.1 Background: concept steering and weight-space programming
ConceptGate [1] works inside a single model: it estimates a concept direction from a few examples and adds or subtracts it during generation, as in activation steering [4]. Two facts make a cross-model version plausible. Different models’ representations become more alike as models improve [5], and steering vectors have been transferred between models through learned maps [6].
Weight-space programming [2] suggests a stronger use of such a map. If an agent can write a behaviour directly into weights, then a map between models might do more than translate activations. It might translate edits, or even transfer a larger model’s ability into a smaller one on the weights, without the training that distillation requires.
1.2 Problem statement
Is there a training-free mapping function between a small and a large language model, such that the large model’s internal space contains the small model’s? If there is, what can it transfer from the large model into the small one: states, facts, behaviours, weight edits, or ability?
Formally, let $S$ and $L$ be two pretrained language models, with $S$ the smaller and less capable of the two. When both read the same text, each produces a state vector for every token $t$ at every layer: $h^S_t \in \mathbb{R}^{d_S}$ in the small model and $h^L_t \in \mathbb{R}^{d_L}$ in the large one, with $d_S < d_L$. These vectors form each model’s residual stream, the representation its blocks read from and write to. Layer $\ell$ means the residual stream after block $\ell$, and block means the attention and MLP computation between two layers. We drop the layer index when the layer is fixed.
We look for a map $F : \mathbb{R}^{d_L} \to \mathbb{R}^{d_S}$ between a layer of $L$ and a layer of $S$ such that $F(h^L_t) \approx h^S_t$ on text that was not used to fit it. We restrict $F$ to maps obtained without gradient training, which in this report means linear maps with a closed-form solution. The restriction keeps the map cheap to compute and easy to analyse, and it matches the premise of weight-space programming, where edits are derived and applied without training.
The problem has two parts. The first is existence: whether such an $F$ can be found, and how much of its accuracy reflects structure the two models share, as opposed to the input they share. The second is use. Given $F$, an object defined inside $L$ can be moved into $S$: a state, a direction separating two sets of states, the state that encodes a fact, a block, or an edit to the weights. For each kind of object we ask whether the moved object has the effect in $S$ that the original has in $L$. The strongest form of the question is whether anything moved in this way gives $S$ an ability it does not already have. Figure 1 walks through the idea.
1.3 Hypotheses
We state the problem as five hypotheses, ordered from the weakest claim to the strongest. Each is given with the observation that would support it and the observation that would count against it. Figure 2 draws one sketch per hypothesis.
H1, related representations. At matched layers, the states of $S$ and $L$ on the same tokens are linearly related. Support would be a high held-out $R^2$ for a linear map between them. The claim is only interesting if the relation exceeds what the shared input explains, so it fails if a map fitted from $L$’s input embeddings alone does as well (§4.1, §4.2).
H2, a training-free map. A single linear $F$, fitted in closed form, predicts $S$’s states from $L$’s on held-out text, including when the two models come from different families. It fails if the fit depends on training, on a nonlinear map, or on the models sharing a tokenizer (§4.1, §4.3).
H3, containment. What $S$ represents and can do is a subset of what $L$ represents and can do. In representations, support would be $L$ predicting $S$ better than $S$ predicts $L$, and $S$ being recoverable from a subset of $L$’s coordinates. In behaviour, support would be the problems $S$ solves forming a subset of the problems $L$ solves (§4.3, §5.2).
H4, ability transfer. Objects moved from $L$ into $S$ through $F$ make $S$ more accurate on tasks where $L$ is better. Support would be a gain in held-out accuracy, and in particular $S$ solving problems it otherwise never solves. It fails if accuracy is unchanged, or if only problems $S$ could already solve some of the time are affected (§5.1).
H5, composition. For three models $M_1$, $M_2$, $M_3$, the composed map $F_{23} \circ F_{12}$ performs as well as a map fitted directly from $M_1$ to $M_3$. It fails if error accumulates along the chain (§4.4).
The weight-space programming results add two questions that the hypotheses above do not cover, and §6 tests them: whether $F$ relates the two models’ computation, so that a block of $L$ can run inside $S$, and whether a sparse weight edit found in $L$ can be transferred into $S$.
1.4 Findings
| Claim | Result | Evidence |
|---|---|---|
| H1, H2: a map exists | Yes, for representations | R² 0.64–0.73 held out; the large model’s input embeddings alone give 0.35–0.59 (§4.2) |
| H3: containment | Mostly, in behaviour | Large solves 82% of small’s MATH problems and 62% of its NQ answers; its overall accuracy is 42% and 12% (§5.2) |
| H4: ability transfer | No | MATH −0.9 points [−7.3, +5.5]; 0 of 9 “absent” MATH problems solved (§5.1) |
| H5: composition | Yes for prediction; unclear for behaviour | R² keeps 95% along a 3-step chain; fact swap keeps 53–78%, not significant at n = 86 (§4.4) |
| A steering direction transfers | No | Through an independent map: cosine 0.82, within the random-relabelling range; loops 18.5% against 21% (§5.3) |
| Facts transfer | Partly | 56–82% of the own-state ceiling; subject tokens alone give 26–62% (§5.4) |
| Blocks transfer | No | A transplanted block is worse than deletion (§6.2) |
| Weight edits transfer | Only when dense | Trigger in 8 neurons: no (R² 0.05). Trigger in 574 neurons, gating the small model’s own direction: loops 21% to 10%; unselective controls 21.5–32% (§6.4) |
2. Related work
Weight-space programming starts with Takehi et al. [2], who show an LLM agent reading and editing the weights of Qwen3.5-0.8B without training; their headline edit lifts MATH-500 from 7% to 51% by stopping repetition loops. Barry [3] shows that this edit is close to a single “looping minus productive” direction, and that a linear program finds an equivalent edit confined to eight columns of one matrix. Lin [7] writes a new conditional rule into a model’s weights in closed form. All of these edit one model at a time. None maps between models or ports an edit.
On the representation side, the Platonic Representation Hypothesis [5] argues that models converge to a shared representation. CKA [8] measures similarity between layers of different widths. Model stitching [9] joins the bottom of one network to the top of another through a small trained layer; our block transplant (§6.2) is a training-free stitch of a single block.
Closest to our behaviour experiment, Oozeer et al. [6] transfer steering vectors between LLMs with learned mappings. Our loop-direction result (§5.3) differs from theirs. Through a map fitted on unrelated text, the mapped direction does not reduce loops. We also compare it with the small model’s own direction and with random relabellings of the same texts.
In pruning, SliceGPT [10] shrinks a model’s residual width by deleting rows and columns of its weight matrices. §4.3 asks the reverse question of two independently trained models: does the small one look like a slice of the large one?
In concurrent work, Cheng et al. [11] fit a rotation plus one scale between twelve LLMs (1.5B–27B) and transfer factual recall by swapping hidden states.1 We adopt their swap test in §5.4 and add token-identity controls to it.
3. Experimental setup
Every experiment shares the same four ingredients: a set of models, a way to line up their tokens, a closed-form map between their states, and a held-out score. This section defines each. Individual experiments add their own tasks and controls where they are reported.
3.1 Models
| Role | Model | Layers | Width $d$ | MLP neurons |
|---|---|---|---|---|
| Large $L$ | Qwen2.5-1.5B-Instruct | 28 | 1536 | 8960 |
| Small $S$ | Qwen2.5-0.5B-Instruct | 24 | 896 | 4864 |
| Small | SmolLM2-360M | 32 | 960 | 2560 |
| Tiny | SmolLM2-135M | 30 | 576 | 1536 |
| Small, other family | Gemma-3-270M (base) | 18 | 640 | 2048 |
| Small, §4.4 only | Pythia-160M | 12 | 768 | 3072 |
The width $d$ is the number of values the model transfers per token between blocks (the residual stream). The two Qwen models share a tokenizer; the others use different ones. Unless stated otherwise, $S$ is Qwen2.5-0.5B-Instruct and $L$ is Qwen2.5-1.5B-Instruct, written Qwen-0.5B and Qwen-1.5B below. In §5.3 and §6.3 to §6.4 the small model is SmolLM2-135M, and each of those sections says so.
Checkpoints and hardware. All models are the public Hugging Face checkpoints, run in bfloat16 on one laptop (Apple M3 Max, 36 GB) through PyTorch MPS. The base SmolLM2-135M is used for the loop and edit experiments (§5.3, §6.4); its Instruct variant is used once, in §5.2, because the base model has no chat template.
Texts used to fit maps. Unless stated otherwise, maps are fitted on Qwen-1.5B’s own greedy answers to 120 MATH and 400 Natural Questions training prompts: 520 texts, answers only, with no chat template. Both models then read the same text.
Tasks.
| Task | Data | Prompt | Grading |
|---|---|---|---|
| Reasoning | MATH: 120 sampled from EleutherAI/hendrycks_math train for directions; 150 sampled from HuggingFaceH4/MATH-500 for evaluation |
System: “Please reason step by step, and put your final answer within \boxed{}.” Up to 512 new tokens | Last \boxed{} compared with math-verify |
| Facts | NQ-Open: 400 train, 400 validation | System: “Answer the question with a short factual answer (a few words). Do not explain.” Up to 24 new tokens | Normalised; correct if any gold alias is a substring of the first output line |
| Looping | GSM8K: 400 train prompts for directions, 60 for tuning, 200 test prompts | Plain question, up to 256 new tokens | Repetition detector (§5.3) |
| Fact swap | CounterFact, 6,555 prompts from 34 relations | Raw completion prompt | First answer token |
Decoding is greedy everywhere except the blocked/absent sampling of §5.1 (temperature 0.8, top-p 0.95). The experiments were sized to run in about 15 minutes each.
3.2 Aligning tokens
Two models can only be compared where both have read the same text. For each token we record the character offset where it ends, and keep positions where both tokenizers end a token at the same character (Figure 3). We sample up to 32 such positions per text and cap the total at 12,000. Position 0 is excluded, because models place very large activations there [12] [13]: in Qwen-0.5B the first token’s state has norm 1,556 against about 15 for the rest. States whose norm exceeds five times the median state norm are dropped for the same reason.
What a state is. For the text “Tom has 3 apples.” the Qwen tokenizer produces six tokens. Each token starts as one row of the embedding table (151,936 rows × 896 columns in Qwen-0.5B) and every block adds to that row. Requesting all hidden states returns 25 tables for Qwen-0.5B, the embedding plus one after each of 24 blocks, each of shape tokens × 896. The first four of 896 values per token, and the row norm:
| Token | Layer 0 (embedding) | Norm | Layer 9 | Norm |
|---|---|---|---|---|
Tom |
−0.034, 0.006, 0.013, 0.004 | 0.41 | −1.93, −8.62, −4.54, −0.63 | 1555.7 |
␣has |
−0.009, 0.025, 0.002, 0.010 | 0.38 | 1.16, 0.11, 0.70, 0.10 | 15.7 |
␣ |
−0.015, −0.013, −0.010, −0.008 | 0.60 | −0.31, −0.31, 0.90, 0.16 | 14.4 |
3 |
−0.011, −0.009, 0.003, −0.018 | 0.52 | 0.63, −0.03, 0.06, 0.63 | 14.1 |
␣apples |
−0.004, 0.012, −0.005, 0.005 | 0.42 | 0.08, 0.12, −0.01, 0.56 | 15.1 |
. |
−0.016, 0.005, −0.023, −0.000 | 0.53 | 0.08, 0.36, 0.57, 0.61 | 14.6 |
The individual coordinates transfer no labels. Meaning is spread over many coordinates, which is why two models cannot be compared coordinate by coordinate and a fitted map is needed. Qwen-1.5B describes the same six tokens with rows of 1,536 values; at its layer 10 the first token’s norm is 11,637.
Alignment example. If tokenizer A splits “unbelievable!” as un|believ|able|!, ending tokens at
characters 2, 8, 12, 13, and tokenizer B splits it as unbel|ievable|!, ending at 5, 12, 13, then the shared
end offsets are 12 and 13, giving two aligned pairs. At character 12 both models have read exactly
“unbelievable”. For the two Qwen models every position aligns.
3.3 Fitting the mapping function
Let $X \in \mathbb{R}^{n \times d_L}$ and $Y \in \mathbb{R}^{n \times d_S}$ hold the paired states. Row $t$ of $X$ is the state of $L$ at aligned token $t$, and row $t$ of $Y$ is the state of $S$ at the same token. For Qwen-1.5B and Qwen-0.5B, $d_L = 1536$ and $d_S = 896$, and $n$ is between a few thousand and 15,000 tokens.
We want a matrix $W$ for which $XW$ is close to $Y$. Minimising the squared error, with a penalty on the size of $W$,
is ridge regression, and its minimiser can be written down directly:
No iteration is involved. $W$ is obtained by solving one linear system of size $d_L \times d_L$, which takes under a second. This is what “closed form” and “training-free” mean in this report.
Before fitting, the mean of each column is subtracted from $X$ and from $Y$. A new state $x$ from $L$ is then mapped to $\hat{y} = xW + b$, where $b = \bar{y} - \bar{x}W$ restores the means. The penalty $\lambda$ stops $W$ from fitting noise along directions in which $X$ barely varies. It is chosen by fitting on four fifths of the training texts and scoring on the remaining fifth.
$W$ has $d_L$ rows and $d_S$ columns, $1536 \times 896$ for the Qwen pair. Column $j$ holds the weights with which the 1,536 coordinates of $L$ are combined to predict coordinate $j$ of $S$. The same $W$ is applied to every token.
Two properties of a linear map are used later. First, a difference between two states maps without the offset, since $(x_1 W + b) - (x_2 W + b) = (x_1 - x_2)W$. A direction, such as the difference between the mean states of two groups of tokens, is therefore transferred by a single matrix product (§5.1, §5.3). Second, maps compose by multiplication: applying $W_{12}$ and then $W_{23}$ is the single map $W_{12} W_{23}$ (§4.4).
For comparison, §4.2 also uses a more constrained map, orthogonal Procrustes. It allows only a rotation $R$ of the coordinates, a matrix with orthonormal columns that cannot stretch or re-weight individual coordinates, followed by one scale factor $s$: $\hat{y} = \bar{y} + s\,(x - \bar{x})R$. A rotation can relate two spaces only if they have the same shape up to orientation, so it is a stricter test of similarity than ridge.
The one-dimensional case. If each state were a single number, the map would be $y \approx wx$. Least squares gives $w = \sum x_i y_i / \sum x_i^2$, and a ridge penalty $\lambda w^2$ adds $\lambda$ to the denominator: $w = \sum x_i y_i / (\sum x_i^2 + \lambda)$. With training points (1, 1.2), (2, 1.9), (3, 3.2), (4, 3.9): $\sum xy = 30.2$, $\sum x^2 = 30$, so $w = 1.007$ at $\lambda = 0$ and $0.755$ at $\lambda = 10$. Figure 4 shows the effect of the penalty.
The matrix case. $X^\top X$ ($1536 \times 1536$) plays the role of $\sum x^2$ and $X^\top Y$ ($1536 \times 896$) the role of $\sum xy$. A toy with three $L$ coordinates, two $S$ coordinates and four tokens:
The top-left entry is row 1 of $X$ times column 1 of $W$: $1(0.5) + 0(0) + 2(0.5) = 1.5$. The real $W$ has about 1.38 million entries and is solved in one call.
Details of the fit. $\lambda$ is $\lambda_{\text{rel}}$ times the mean feature variance times $n$, with $\lambda_{\text{rel}}$ taken from a grid of four values between $10^{-4}$ and $1$. The controls of §4.2 and the chains of §4.4 choose $\lambda$ on an inner split of the training texts. The library fits used elsewhere (§4.1, the five-model comparison, the first map of §5.3 and the map of §6.4) choose it on the same held-out fifth that is reported, which is slightly optimistic with a four-value grid. Computation is float64 on CPU.
Rotation map. With centred $X$, $Y$ and the singular value decomposition $X^\top Y = U \Sigma V^\top$, the rotation is $R = UV^\top$ and the least-squares scale is $s = \operatorname{tr}(\Sigma) / \lVert XR \rVert_F^2$, giving $\hat{y} = \bar{y} + s\,(x - \bar{x})R$. $R$ has orthonormal columns, so it cannot re-weight coordinates the way ridge can.
3.4 Scoring
Map quality is $R^2$ on held-out texts:
Neighbouring tokens in one text have near-identical states, so we split by text. Our first measurement gave 0.85. Most of that excess came from chat-template tokens, which every text shares and both models encode alike; on answer text with whole texts held out the figure is 0.66. All numbers below use answer text only, with whole texts held out.
In §4.1, §5.1, §5.3 and the five-model comparison, layers are paired by linear CKA [8], which for one-dimensional data reduces to squared correlation. Matches roughly follow depth order (for example Qwen-0.5B layer 10 ↔ Qwen-1.5B layer 13).
Worked $R^2$. Targets $(2, 4, 6, 8)$, predictions $(3, 4, 5, 8)$, mean 5. Residual sum of squares $1 + 0 + 1 + 0 = 2$; total $9 + 1 + 1 + 9 = 20$; $R^2 = 1 - 2/20 = 0.90$. For vector targets both sums run over every coordinate of every held-out token.
Where 0.85 came from. A 2×2 on the Qwen pair (S10 ↔ L13 / S14 ↔ L17):
| Text used to fit and score | Token-level holdout | Text-level holdout |
|---|---|---|
| Answers only | 0.693 / 0.707 | 0.664 / 0.673 |
| Chat-formatted prompt + answer | 0.848 / 0.851 | 0.829 / 0.828 |
Holding out whole texts costs 0.02–0.03. Removing the chat template costs 0.17: every chat-formatted text contains the same system prompt and template tokens, both models encode them almost identically, and they lift the average. The number that describes content is 0.66.
CKA. With centred $X$ and $Y$,
For single columns this is $(\sum xy)^2 / (\sum x^2 \sum y^2)$, the squared correlation. For $x = (1, 2, 3)$ and $y = (2, 4, 7)$, centred: $\sum xy = 5$, $\sum x^2 = 2$, $\sum y^2 = 12.67$, CKA $= 25 / 25.33 = 0.987$. In the matrix case entry $(i, j)$ of $X^\top Y$ measures how coordinate $i$ of one model co-varies with coordinate $j$ of the other, and CKA sums the squares over all pairs. It is unchanged by rotating or uniformly scaling either side, so layers of different widths can be compared.
Layer correspondence. CKA on 5,000 tokens for all 23 × 27 layer pairs of Qwen-0.5B and Qwen-1.5B gives, for each $S$ layer, the best $L$ layer: 0→0, 1→2, 2→3, 3→6, 4→7, 5→7, 6→7, 7→12, 8→12, 9→13, 10→13, 11→16, 12→17, 13→15, 14→17, 15→18, 16→19, 17→20, 18→21, 19→21, 20→21, 21→25, 22→25. Peak CKA is 0.92–0.94 for layers 0–15 and falls to 0.81 at layer 22: the models agree most in early and middle layers.
Pairing rule. Choosing the $L$ layer by held-out $R^2$ instead of CKA picks different layers but the same quality (SmolLM2-360M from Qwen-1.5B, text-level holdout):
| SmolLM2-360M layer | CKA pairing | $R^2$ pairing | |—|—|—| | 10 | L2, 0.663 | L5, 0.655 | | 15 | L6, 0.680 | L6, 0.680 | | 20 | L17, 0.672 | L12, 0.670 |
4. The mapping function
We first establish how well the map predicts one model’s states from another’s, and then ask how much of that is explained by the two models receiving the same token. The remaining subsections test the map’s form, and whether it holds across model families and along chains of models.
4.1 Held-out fit
Predicting $S$’s mid-layer state from $L$ gives held-out R² of 0.64–0.67 for Qwen-0.5B and 0.66–0.73 for SmolLM2-135M. The reverse direction is lower: 0.60 to 0.63 for Qwen-0.5B and 0.54 to 0.57 for SmolLM2-135M, depending on the token sample. A map fitted on shuffled pairs scores −0.15. The map works across families: SmolLM2-360M from Qwen-1.5B reaches 0.66–0.68.
Full numbers (answer texts, text-level holdout, 6,193 tokens of which 1,302 are held out):
| Pair | $R^2$ $L \to S$ | $R^2$ $S \to L$ | Shuffled pairs | $S$ layer $\ell - 1 \to \ell$ |
|---|---|---|---|---|
| Qwen-0.5B L10 ↔ Qwen-1.5B L13 | 0.664 | 0.62 | −0.15 | 0.86–0.91 |
| Qwen-0.5B L14 ↔ Qwen-1.5B L17 | 0.673 | 0.63 | −0.15 | 0.86–0.91 |
| SmolLM2-360M L15 ↔ Qwen-1.5B L6 | 0.680 | lower by 0.07–0.12 |
The shuffled control fits the map on mismatched rows; a negative score shows the map depends on the token-level pairing. The last column predicts an $S$ layer from $S$’s own previous layer and is a reference for “very closely related”. Later scripts draw a different token subsample and report 0.64–0.65 for the same pair.
$L \to S$ beats $S \to L$ by 0.04 for the Qwen pair and by 0.07–0.12 for SmolLM2. Predicting a wider target is harder in any case, so the asymmetry alone is weak evidence for containment.
4.2 Token-identity control
Both models see the same token at an aligned position. Part of each state is therefore predictable from that alone, with no shared understanding of context. To measure this, we refit the map from two weaker inputs. The first is $L$’s embedding layer alone, which knows which token is present and nothing else. The second is an untrained copy of $L$, with the same architecture and tokenizer but random weights, which mixes in neighbouring tokens without having learned anything. Figure 5 shows how the map’s $R^2$ divides between these sources.
With ridge, the embedding-only map explains 0.35–0.59 and the trained model adds 0.13–0.29. $L$’s embedding is a learned table, so it also encodes which tokens are similar to each other; it is a generous version of “token identity”. The embedding of the untrained copy, which transfers identity and nothing learned, still explains 0.28–0.49, and no later layer of the untrained copy does better than its embedding. The rotation map fits less overall (0.53–0.56) but credits the embedding less (0.19–0.39), so its shared part is slightly larger (0.18–0.37). The embedding-only share of the headline number is 54–82% under ridge and 34–69% under the rotation map.
Figure 6 shows that the same headline $R^2$ can arise from different mixes of token identity and shared context. It is an idealised split of a state’s variance into three parts; it is not fitted to data. A perfect linear map explains the first two parts, and an embedding-only map explains the first.
Protocol. Same texts and positions as §4.1; about 4,250 inlier tokens per small model, of which 937 are in held-out texts. For every condition the best $L$ layer and $\lambda$ are chosen on an inner split of the training texts, so the weaker inputs get the same tuning as the real map. The untrained copy uses the same architecture and tokenizer with random initial weights (seed 0).
Ridge, held-out $R^2$ predicting the small model’s layer:
| Small model, layer | Trained $L$, best layer | $L$ embedding only | Untrained $L$, best layer | Small model’s own embedding | Reverse ($S \to L$) |
|---|---|---|---|---|---|
| Qwen-0.5B, 9 | 0.651 (L10) | 0.419 | 0.344 | 0.402 | 0.606 |
| Qwen-0.5B, 14 | 0.641 (L19) | 0.346 | 0.278 | 0.334 | 0.603 |
| SmolLM2-135M, 12 | 0.727 (L4) | 0.594 | 0.488 | 0.582 | 0.566 |
| SmolLM2-135M, 17 | 0.664 (L8) | 0.489 | 0.401 | 0.468 | 0.544 |
For the untrained copy the best layer is always its embedding layer: random blocks add nothing. The small model’s own embedding predicts its mid layer about as well as $L$’s embedding does, which confirms that this part is token identity and not something specific to $L$.
Rotation + scale on the same data:
| Small model, layer | Trained $L$ | $L$ embedding only | Untrained $L$ | Shared part (trained − embedding) |
|---|---|---|---|---|
| Qwen-0.5B, 9 | 0.554 | 0.253 | 0.164 | 0.301 |
| Qwen-0.5B, 14 | 0.557 | 0.190 | 0.114 | 0.367 |
| SmolLM2-135M, 12 | 0.562 | 0.386 | 0.236 | 0.176 |
| SmolLM2-135M, 17 | 0.527 | 0.303 | 0.184 | 0.224 |
Caveat. The embedding-only baseline is a lower bound on what token identity explains. A mid-layer state also encodes which tokens came before, and a model with no understanding could still mix neighbouring token identities. The share that reflects shared processing of context could therefore be smaller than the blue segment.
4.3 Nonlinear maps, coordinate subsets and embedding tables
A nonlinear map does not help at this data size. Adding 4,096 random Fourier features to the input lowers held-out R² from 0.638 to 0.605.
A subset of $L$’s coordinates predicts $S$ as well as all of them. Keeping 896 of $L$’s 1,536 coordinates, chosen by importance in the fitted map, predicts $S$ as well as all of them (0.641 vs 0.638). A random 896 give 0.577. Rotating to the top 896 principal components first does slightly worse (0.626). This is coordinate selection on activations, not pruning: Qwen-0.5B was not produced by slicing Qwen-1.5B as SliceGPT [10] would. It does suggest that individual residual coordinates are not interchangeable, consistent with a few coordinates transferring outsized values [13].
A weights-only map is weak. Fitting a map between the two models’ embedding tables, with no forward passes, gives R² 0.31 (Qwen → Qwen) and 0.42 (Qwen → SmolLM2-360M, shared token strings).
Linear versus nonlinear (ridge, with and without 4,096 random Fourier features approximating a Gaussian kernel; bandwidth swept over 0.5, 1 and 2 times the median distance):
| Pair | Linear | Linear + RFF, best | Gain |
|---|---|---|---|
| S10 ← L13 | 0.638 | 0.605 | −0.033 |
| S14 ← L17 | 0.650 | 0.620 | −0.030 |
The extra features overfit at this data size. With far more tokens a nonlinear map could still do better. At this scale the unexplained third is not structure a richer map recovers.
Subsets of $L$’s coordinates (S10 ← L13 / S14 ← L17). Axis selection keeps the $k$ coordinates with the largest weight in the full map, computed on training data:
| $k$ of 1536 | Axis selection | Top-$k$ principal components | Random axes | All 1536 |
|---|---|---|---|---|
| 896 | 0.641 / 0.650 | 0.626 / 0.641 | 0.577 / 0.588 | 0.638 / 0.650 |
| 448 | 0.620 / 0.625 | 0.584 / 0.607 | ||
| 224 | 0.557 / 0.563 | 0.530 / 0.560 |
896 of $L$’s 1,536 coordinates match the full map, and 448 keep 96–97% of its quality. The principal-component baseline is unsupervised while selection uses the target, so the safe statement is that selection reaches the optimum, not that axes beat rotations.
Embedding tables (one row per token, 80/20 split over tokens):
| Pair | Rows | $R^2$ $L \to S$ | $R^2$ $S \to L$ | Shuffled |
|---|---|---|---|---|
| Qwen-1.5B → Qwen-0.5B (same vocabulary) | 40,000 | 0.31 | 0.21 | −0.04 |
| Qwen-1.5B → SmolLM2-360M (shared token strings) | 39,237 | 0.42 | 0.30 | −0.04 |
The models agree about half as well in their raw input tables as after computation.
4.4 Five small models and composed maps
To see whether the map’s quality depends on the small model, we fitted it for five small models from four families, each mapped into Qwen-1.5B, and compared the fit with each model’s capability (Figure 7).
For the chain Qwen-1.5B → Qwen-0.5B → SmolLM2-360M → SmolLM2-135M we compose the step maps by matrix product and compare with a map fitted directly (Figure 8).
Atlas. Each small model is mapped to Qwen-1.5B at 40% and 60% depth with CKA pairing. Capability is bits per byte on the fitting texts, which does not depend on the tokenizer.
| Small model | Parameters | Bits per byte | $R^2$ small → $L$ | $R^2$ $L$ → small |
|---|---|---|---|---|
| Qwen2.5-0.5B-Instruct | 494M | 0.222 | 0.605 | 0.645 |
| SmolLM2-360M | 362M | 0.466 | 0.567 | 0.676 |
| Gemma-3-270M | 268M | 0.551 | 0.510 | 0.632 |
| SmolLM2-135M | 135M | 0.588 | 0.544 | 0.705 |
| Pythia-160M | 162M | 1.012 | 0.451 | 0.455 |
Only the small → $L$ direction tracks capability. $L$ → small is highest for the weakest SmolLM2: a weak model’s states are simple and $L$ contains them, so that direction measures containment. The fitting texts were generated by Qwen-1.5B, which favours the Qwen model on bits per byte.
The p-value by counting. Ranking by capability and by $R^2$ gives the same order except that Gemma-3-270M and SmolLM2-135M swap, so $\sum d^2 = 2$ and $\rho = 1 - 6 \cdot 2 / (5 \cdot 24) = 0.9$. Of the $5! = 120$ orderings, one has $\rho = 1$ and four have $\rho = 0.9$, so the one-sided p is $5/120 = 0.042$ and the two-sided p is 0.083.
Chain. Layers at about 45% depth (12, 10, 14, 13), tokens aligned across both tokenizers, 3,300 training and 900 test tokens.
| Step | $R^2$ | End to end | Direct | Composed | Ratio | Product of steps | |
|---|---|---|---|---|---|---|---|
| 1.5B → 0.5B | 0.645 | 1.5B → 360M | 0.653 | 0.637 | 0.975 | 0.42 | |
| 0.5B → 360M | 0.647 | 0.5B → 135M | 0.657 | 0.649 | 0.988 | 0.47 | |
| 360M → 135M | 0.730 | 1.5B → 135M | 0.659 | 0.629 | 0.955 | 0.30 |
Composition of linear maps is a matrix product, $x W_{12} W_{23}$. The product of the step scores is listed for scale. It is not what independent errors would predict for a composed linear map, so we draw no conclusion from the gap.
Composition in behaviour. In the fact swap (§5.4) from Qwen-1.5B to SmolLM2-135M, the direct ridge map transfers 22.1% of 86 facts and the composed three-step map 11.6% (19 against 10 facts, p ≈ 0.07); for the rotation map 20.9% and 16.3% (18 against 14, p ≈ 0.43). Neither difference is significant at this sample size. A map can keep nearly all of the variance and still lose the specific directions a downstream computation reads.
5. Transferring ability, behaviour and facts
This section uses the map to transfer task ability, a single behaviour and individual facts, from the broadest object to the narrowest. Between the first two, §5.2 compares which problems each model solves.
5.1 Steering towards the large model’s solved problems
Qwen-1.5B solves 38.7% of 150 held-out MATH problems and Qwen-0.5B 20.7%. Of the problems only $L$ solves, 62% are blocked ($S$ solves them in at least one of eight sampled attempts) and the rest are absent ($S$ never does).
We computed a direction in $L$ for “solved minus failed”: the mean answer-token state on $L$’s correct answers minus that on $S$’s wrong answers to the same problems. We mapped it into $S$ and steered $S$ with it during generation. We also tried writing $L$’s mapped states directly into $S$.
| Edit applied to Qwen-0.5B | MATH (n = 110) | Change [95% CI] | NQ (n = 300) |
|---|---|---|---|
| None | 25.5% | 11.0% | |
| $L$’s direction, mapped | 24.5% | −0.9 [−7.3, +5.5] | 7.3% |
| $L$’s states, mapped and written in | 25.5% | 0.0 [−6.4, +6.4] | 9.7% |
| $S$’s own direction | 11.8% | −13.6 [−21.8, −5.5] | 7.7% |
| $L$ itself | 38.2% | +12.7 | 12.3% |
Nothing improved. Of the 12 absent MATH problems, 9 fall in the evaluation set, and no edit solved any of them. With 9 problems this test has little power: zero successes is compatible with a true rate of up to about 30%. $L$’s mapped direction has cosine 0.85 with $S$’s own. The map was fitted on texts that include the positive examples, so this cosine is not evidence of a shared direction (§5.3).
Partition of problems (greedy):
| Split | n | $S$ correct | $L$ correct | Both | $L$ only | $S$ only | Neither |
|---|---|---|---|---|---|---|---|
| MATH train | 120 | 29.2% | 40.8% | 28 | 21 | 7 | 64 |
| MATH-500 test | 150 | 20.7% | 38.7% | 26 | 32 | 5 | 87 |
| NQ train | 400 | 5.2% | 10.0% | 15 | 25 | 6 | 354 |
| NQ test | 400 | 10.0% | 12.0% | 25 | 23 | 15 | 337 |
Absolute MATH accuracy is below published figures because of the 512-token cap. The cap is the same in every condition. Qwen-0.5B does not loop on these prompts; its failures are truncations and wrong answers.
Blocked versus absent. For each test problem only $L$ solves, $S$ is sampled eight times:
| Task | $L$ only | Blocked (at least 1 of 8) | Absent | Blocked share |
|---|---|---|---|---|
| MATH-500 | 32 | 20 | 12 | 62.5% |
| NQ-Open | 23 | 13 | 10 | 56.5% |
The NQ figure is an upper bound, because a short answer can be hit by chance in eight samples.
Directions. From the training problems only $L$ solves (21 MATH, 25 NQ) we form a positive text (prompt plus $L$’s correct answer) and a negative text (prompt plus $S$’s wrong answer), average states over the answer tokens and then over problems, and subtract. $u_S$ encodes the texts with $S$; $u_{L \to S}$ encodes the same texts with $L$ and maps the difference. Because the texts are identical, any advantage of $u_{L \to S}$ must come from $L$’s representation. Cosine between the two: 0.85 (MATH) and 0.73–0.75 (NQ). At layer 10, $\lVert u_S \rVert$ is 0.55 (MATH) against a median state norm of about 15.
Edits. All are applied at one block’s output in $S$. Here $\alpha$ is the steering strength, $\hat{u} = u / \lVert u \rVert$, and $\beta$ is a mixing weight:
| Condition | Edit |
|---|---|
| $S$’s own direction | add $\alpha \lVert u_S \rVert \hat{u}_S$ at every position |
| $L$’s direction, mapped | add $\alpha \lVert u_S \rVert \hat{u}_{L \to S}$, the same norm |
| Random | a random direction of the same norm |
| States written in | $h \leftarrow (1 - \beta) h + \beta\,\text{Map}(h_L)$ at prompt positions; needs $L$ at inference |
Grid: layer in {10, 14}, $\alpha$ in {1, 2, 4}, $\beta$ in {0.5, 1}. Settings are chosen on a tuning slice of the test split (40 MATH, 100 NQ problems) and reported on the remainder (110 and 300). Intervals are a paired bootstrap over problems, 5,000 resamples.
Held-out results, all conditions:
| Condition | MATH | Change [95% CI] | NQ | Change [95% CI] |
|---|---|---|---|---|
| None | 25.5% | 11.0% | ||
| $L$’s direction, mapped | 24.5% | −0.9 [−7.3, +5.5] | 7.3% | −3.7 [−6.0, −1.3] |
| States written in | 25.5% | 0.0 [−6.4, +6.4] | 9.7% | −1.3 [−4.0, +1.3] |
| $S$’s own direction | 11.8% | −13.6 [−21.8, −5.5] | 7.7% | −3.3 [−6.0, −1.0] |
| Random direction | 21.8% | −3.6 [−10.9, +3.6] | 9.7% | −1.3 [−4.0, +1.3] |
| $L$ itself | 38.2% | +12.7 [+4.5, +20.9] | 12.3% | +1.3 [−2.3, +5.0] |
By subgroup (MATH, held-out):
| Group | n | None | $L$ mapped | Written in | $S$ own | Random |
|---|---|---|---|---|---|---|
| Blocked | 13 | 30.8% | 30.8% | 23.1% | 15.4% | 23.1% |
| Absent | 9 | 0% | 0% | 0% | 0% | 0% |
| $S$ already correct | 23 | 91.3% | 87.0% | 87.0% | 43.5% | 69.6% |
$S$’s own direction does more damage than $L$’s mapped one, but the two were selected at different strengths (4 and 2), so this reflects strength more than direction. Writing $L$’s mapped states over $S$’s prompt states at the selected setting (layer 14, $\beta = 0.5$) leaves $S$ solving problems at its usual rate. The mapped states are usable by $S$’s later layers, and they add nothing.
An earlier grid scaled edits to 25–50% of the state norm, 7 to 14 times $\lVert u_S \rVert$. It collapsed MATH accuracy to 2.5–5% and was discarded.
5.2 Solved-problem overlap across model sizes
The ability result is easier to read next to a simpler measurement: which held-out problems each model answers correctly. We scored a tiny, a small and a large model on the same MATH and Natural Questions prompts and compared the sets of solved problems (Figure 9).
\boxed{}; strict grading gives small 31 and large 58. Tiny is SmolLM2-135M-Instruct. scripts/tiny_venn.py.On MATH the large model solves 28 of the 34 problems the small model solves (82%), and four of the tiny model’s five. On Natural Questions it answers 25 of the small model’s 40 (62%), and each model also answers questions the others miss. Both overlaps are well above the large model’s overall accuracy on the task, 42% on MATH and 12% on Natural Questions, so on both tasks the models largely succeed on the same items. The overlap is closer to complete on MATH. With five tiny-model problems and substring grading on Natural Questions, the data do not establish a difference in kind between reasoning and recall. For §5.1 the relevant point is narrower: most of what the small model solves, the large model solves too, so the useful direction of transfer is from large to small.
Protocol. The tiny model answers the same 150 MATH and 400 NQ test prompts with the same system
prompts, token budgets and greedy decoding. It never writes \boxed{}, so the strict grader gives it 0%
for format alone. The lenient grader takes the boxed answer if present and otherwise the last number in
the output, and is applied to all three models.
| Tiny | Small | Large | |
|---|---|---|---|
| MATH, strict | 0 | 31 | 58 |
| MATH, lenient | 5 | 34 | 63 |
| NQ | 34 | 40 | 48 |
| Region | MATH, lenient | NQ |
|---|---|---|
| All three | 4 | 13 |
| Small and large only | 24 | 12 |
| Tiny and small only | 0 | 6 |
| Tiny and large only | 0 | 5 |
| Tiny only | 1 | 10 |
| Small only | 6 | 9 |
| Large only | 35 | 18 |
| None | 80 | 327 |
Caveats. The one tiny-only MATH problem has a small-integer answer and may be a lucky last number. NQ grading is a substring match on short answers, so some single-model hits are chance. With those allowances, 80% of tiny’s MATH problems and 38% of its NQ facts are solved by every model; the first figure rests on five problems.
5.3 Transferring a loop direction
Here $S$ is SmolLM2-135M and $L$ is Qwen-1.5B. $S$ falls into repetition loops on 21% of held-out GSM8K prompts. $L$ loops on none of them. We built the loop direction $u = \text{mean}(h \mid \text{looping}) - \text{mean}(h \mid \text{productive})$ twice, from $S$’s own states and from $L$’s states mapped into $S$, and steered $S$ against each at layer 18: $h \leftarrow h - \alpha \lVert u_S \rVert \hat{u}$, where $u_S$ is $S$’s own loop direction, $\hat{u} = u / \lVert u \rVert$ and $\alpha$ is the strength.
How the map is fitted decides the result. In the first version of this experiment the map was fitted on $S$’s own outputs, the same texts that define the two groups. A map fitted to reproduce $S$’s states on those texts returns group differences close to $S$’s own by construction. The mapped direction had cosine 0.985 with $S$’s own. Random relabellings of the same texts, with the same group sizes, reached 0.92 on average. We therefore refitted the map on unrelated text, and added a map that reads only $L$’s input embeddings. Figure 10 shows the loop rate for each direction.
Through the independent map, the cosine with $S$’s own direction is 0.82. Random relabellings give 0.70 on average, with a range of 0.51 to 0.85, so this is not evidence of loop-specific content. Steering with the mapped direction does not work. The loop rate is 18.5% against 21% unedited, and no other strength does better. The large model’s loop direction therefore does not transfer as a working steering vector, and the reduction to 10% that the first version reported was produced by the choice of fitting texts.
Steering is fragile even inside $S$. Its own direction cuts loops to 5% at strength 2, has no effect at strength 1, and breaks the output at strengths 3 and 4. At strength 2 its coherence cost is already above the limit applied to weight edits in §6.4.
Protocol. SmolLM2-135M answers 400 GSM8K training prompts greedily, with 256 new tokens. A detector slides 16-token windows over the output and marks it as looping if a suffix of at least 64 tokens is at least 80% repeats. It labels 95 outputs looping and 305 productive. The loop direction is the mean state over loop regions minus the mean state over productive completions, at block 18 of $S$ and block 10 of $L$. $S$ is steered on 200 held-out GSM8K test prompts.
Maps. Three ridge maps into block 18 of $S$: from block 10 of $L$, fitted on the 400 outputs of $S$ (the original map, held-out $R^2$ 0.77); from block 10 of $L$, fitted on 175 unrelated texts, which are Qwen-1.5B’s answers to MATH and NQ prompts ($R^2$ 0.65); and from $L$’s input embeddings, fitted on the same unrelated texts ($R^2$ 0.47).
Direction agreement. Cosine with $S$’s own direction, for the loop direction and for 20 random relabellings of the same texts:
| Map | Loop direction | Random split, mean (range) |
|---|---|---|
| Original, fitted on the looping texts | 0.985 | 0.92 (0.86–0.97) |
| Independent | 0.82 | 0.70 (0.51–0.85) |
| Embedding only, independent | 0.64 | 0.49 (0.22–0.76) |
A random split has cosine 0.04 with the true loop direction on average. The map therefore transfers arbitrary group differences almost as well as the loop direction, and a high cosine through a map fitted on the same texts says little about looping.
Held-out results (200 prompts, layer 18):
| Direction | Strength | Loop rate [95% CI] | Accuracy | Early NLL |
|---|---|---|---|---|
| None | 21.0% [15.9, 27.2] | 2.0% | 1.44 | |
| $S$’s own | 1 | 23.0% [17.7, 29.3] | 2.0% | 1.43 |
| $S$’s own | 2 | 5.0% [2.7, 9.0] | 2.5% | 1.85 |
| $S$’s own | 3 | 19.0% [14.2, 25.0] | 3.0% | 2.60 |
| $S$’s own | 4 | 58.5% [51.6, 65.1] | 1.0% | 3.07 |
| $L$’s, original map | 2 | 11.0% [7.4, 16.1] | 3.0% | 1.70 |
| $L$’s, independent map | 1 | 28.0% [22.2, 34.6] | 2.0% | 1.35 |
| $L$’s, independent map | 2 | 18.5% [13.7, 24.5] | 3.0% | 1.57 |
| $L$’s, independent map | 3 | 31.5% [25.5, 38.2] | 2.0% | 2.25 |
| $L$’s, independent map | 4 | 60.5% [53.6, 67.0] | 0.0% | 2.94 |
| $L$’s input embeddings only, independent map | 2 | 26.5% [20.9, 33.0] | 2.0% | 1.51 |
| Random | 2 | 23.5% [18.2, 29.8] | 1.0% | 1.45 |
Early NLL is the average negative log-likelihood that Qwen-1.5B assigns to the first 48 generated tokens, a proxy for coherence. Full-text likelihood would reward loops, so only the start is scored. The limit used in §6.4 is 1.15 times the unedited value, 1.65 here.
An earlier run of the same comparison gave 6.5% for $S$’s own direction, 10% for the original map and 37% for a different random direction. Generation differs slightly between runs, and a random direction is one draw.
The large model. Qwen-1.5B answered the same 200 prompts. The same detector marked none of its outputs as looping, and 25% of its answers were correct.
Statistics. The Wilson interval for a rate $\hat{p}$ from $n$ trials with $z = 1.96$ is
For $\hat{p} = 0.21$ and $n = 200$ the centre is 0.2155 and the half-width 0.0562, giving [0.159, 0.272]. For two rates on $n$ problems each, $z = (p_1 - p_2) / \sqrt{2\bar{p}(1 - \bar{p})/n}$ with $\bar{p}$ their mean. For 0.21 against 0.185 this gives $z = 0.63$ and $p = 0.53$; for 0.21 against 0.11, $z = 2.73$ and $p = 0.006$. Every condition uses the same 200 prompts, so a paired test would be sharper; per-prompt outcomes were not saved.
Caveats. One behaviour, one layer. The unrelated texts are fewer and of a different kind than the looping texts, so the independent map is a weaker map as well as an independent one ($R^2$ 0.65 against 0.77). We did not fit a map on other GSM8K outputs of $S$, which would separate the two.
5.4 Fact transfer by hidden-state swap
This is the swap test of Cheng et al. [11] on our models, with CounterFact [14] prompts. Let A be a fact that both models answer correctly. The donor’s hidden state at the last token of A’s subject is mapped into the recipient and written over the recipient’s state at the last subject token of a different fact B, from the same relation but with a different answer. The swap succeeds if the recipient then outputs A’s answer. The donor is the model the state is taken from, and the recipient is the model it is written into.
We compare the ridge map and the rotation map against five references. The ceiling is the recipient’s own state for A, written into the prompt for B. The main control, subject tokens only, is a ridge map from the mean of the donor’s input embeddings of the subject’s tokens; it knows which tokens spell the subject and nothing the donor computed. Last token only is the same control built from the last subject token’s embedding. A random rotation and the recipient’s state for an unrelated fact give the chance level. Figure 11 shows the results for each pair of models.
The ridge map transfers 56–82% as many facts as the recipient’s own states, close to the 73% reported for larger models [11]. The subject-tokens control reaches 26–62% of the ceiling, which is between a third and nine tenths of what the map achieves. The map is ahead of the control in every pair. By an unpaired test the gap is significant at p ≤ 0.05 in three of the six pairs (Qwen-1.5B → Qwen-0.5B, Qwen-0.5B → SmolLM2-360M, Qwen-1.5B → Gemma-3-270M), and it is under four points in two (Qwen-1.5B → SmolLM2-135M and Qwen-0.5B → Qwen-1.5B). A swap at the subject token moves the subject’s identity, and much of that identity is available before either model has done any computation.
Data. Up to 200 prompts from each of the 34 CounterFact relations, 6,555 in total. A model “knows” a fact if its greedy next token equals the first token of the true answer. Facts known per model: Qwen-1.5B 986, SmolLM2-360M 718, Gemma-3-270M 611, Qwen-0.5B 597, SmolLM2-135M 409. Subjects are split 60 / 15 / 25 into training, validation and test. Facts whose subject key would fall on position 0 are dropped.
Keys. The key of a fact in a model is its hidden state at the last token of the subject. Keys are read at relative depths 0.1, 0.2, 0.3, 0.4 and 0.5 of each model, and the donor and recipient layers are paired at the same relative depth.
Maps. Fitted on the training facts both models know (214 to 307 per pair). Ridge chooses $\lambda$ by validation $R^2$. Each method’s depth is chosen by validation swap accuracy and reported on test facts.
Swap. For a test fact A, the host is a fact B in the same relation that the recipient knows, with a different subject and a different first answer token. A forward hook overwrites the recipient’s state at B’s last subject token with the mapped key, and the swap counts if the next token is A’s answer.
All pairs, test accuracy:
| Donor → recipient | Test facts | Own state | Ridge | Rotation | Subject tokens | Last token | Random rotation | Unrelated fact |
|---|---|---|---|---|---|---|---|---|
| Qwen-1.5B → Qwen-0.5B | 117 | 33.3% | 27.4% | 20.5% | 16.2% | 11.1% | 6.0% | 0.9% |
| Qwen-0.5B → SmolLM2-360M | 91 | 46.2% | 36.3% | 30.8% | 23.1% | 13.2% | 6.6% | 0.0% |
| SmolLM2-360M → SmolLM2-135M | 87 | 28.7% | 20.7% | 21.8% | 10.3% | 12.6% | 8.0% | 4.6% |
| Qwen-1.5B → SmolLM2-135M | 86 | 30.2% | 22.1% | 20.9% | 18.6% | 14.0% | 10.5% | 3.5% |
| Qwen-1.5B → Gemma-3-270M | 126 | 24.6% | 17.5% | 9.5% | 6.3% | 6.3% | 1.6% | 0.0% |
| Qwen-0.5B → Qwen-1.5B | 117 | 50.4% | 28.2% | 29.9% | 25.6% | 10.3% | 7.7% | 0.0% |
By depth (Qwen-1.5B → Qwen-0.5B, test):
| Relative depth | Layers | Own state | Ridge | Rotation | Subject tokens |
|---|---|---|---|---|---|
| 0.1 | L3 → L2 | 17.9% | 9.4% | 6.8% | 7.7% |
| 0.2 | L6 → L5 | 29.9% | 18.8% | 15.4% | 16.2% |
| 0.3 | L8 → L7 | 33.3% | 28.2% | 17.9% | 15.4% |
| 0.4 | L11 → L10 | 31.6% | 27.4% | 20.5% | 14.5% |
| 0.5 | L14 → L12 | 29.1% | 24.8% | 17.9% | 17.1% |
The map’s advantage over the subject-token control appears at depth 0.3 and beyond, where the donor has had time to compute something about the subject.
Caveats. Even a model’s own state transfers only 25–50% of the time, so the test is noisy. Success is a first-token match. The Qwen models are Instruct variants given raw completion prompts. The ridge maps are fitted from a few hundred facts in up to 1,536 dimensions and rely on the penalty. The random rotation keeps the recipient’s mean key, which explains why it scores above the unrelated-fact control. $R^2$ on keys is not reported for the rotation map: a few keys have very large norms, a rotation preserves them, and the score becomes negative even where swaps succeed.
6. Transferring computation: blocks and weight edits
The results so far operate on activations. Weight-space programming changes weights. This section tests whether $F$ relates the models’ computation.
6.1 Steering as a bias edit
Adding a fixed vector $c$ to the residual stream after a block is the same arithmetic as giving that block’s output matrix a bias $c$. We verified it: the steered model and the model with the folded bias differ by at most $1.4 \times 10^{-4}$ in float32. A constant steering vector is therefore already a weight edit.
Why it is the same arithmetic. A block computes $h_{\text{out}} = h + \text{Attn}(h) + W_{\text{down}} \, a$, where $a$ are the MLP neuron activations. Steering adds $c$ to $h_{\text{out}}$ at every position. Giving $W_{\text{down}}$ a bias $b = c$ yields $h + \text{Attn}(h) + W_{\text{down}}\,a + c$, the same expression.
Check. The selected steering vector of §5.1 was written as a bias on the layer-10 mlp.down_proj of
Qwen-0.5B: 896 parameters, 0.00018% of the model. In float32 the logits of the steered and folded models
differ by at most $1.4 \times 10^{-4}$ on a logit scale of about 32. In bfloat16 the difference is up to
0.81, from a different order of summation.
6.2 Block transplant
If $F$ translated between the models’ computation, a block of $L$ could run inside $S$:
$A$ and $B$ are ridge maps. We replace one block of Qwen-0.5B this way and measure next-token loss on held-out text. The score is the share of the deletion damage recovered: 0% is as bad as deleting the block, 100% matches the original block. Figure 12 shows the result for three blocks.
The strict transplant is worse than deleting the block at every depth (−10%, −283%, −341%). Refitting $B$ helps, but a random block does nearly as well at blocks 6 and 18, so most of the recovery comes from the refitted output map and not from $L$’s block. A linear stand-in that never touches $L$ beats every version. $A$ captures about 60% of $L$’s input variance. Whether the failure comes from that loss or from the block itself is not separated here (§7.1). At block 6 the strict transplant’s output is closer to the true output than the deleted block’s (R² 0.77 vs 0.63) yet its loss is worse: the model is sensitive to errors in a few directions that R² weights equally with the rest.
Protocol. $S$ = Qwen-0.5B (24 blocks), $L$ = Qwen-1.5B (28 blocks), same tokenizer, so every token aligns. Blocks are paired at matched relative depth: 6 ↔ 7, 12 ↔ 14, 18 ↔ 21. Maps are fitted on 140 texts with 64 positions each and evaluated on 35 held-out texts. Position 0 keeps $S$’s own output in every condition. $L$’s block is called with $L$’s own rotary position embeddings; re-running an $L$ block on $L$’s own input reproduces $L$’s output with relative error 0.0000.
Maps (validation $R^2$):
| Block | $A$: $S$ input → $L$ input | $B$: $L$ output → $S$ output | Linear stand-in | $B$ refit on $L$’s block | $B$ refit on random block |
|---|---|---|---|---|---|
| 6 | 0.637 | 0.696 | 0.841 | 0.793 | 0.784 |
| 12 | 0.602 | 0.663 | 0.904 | 0.854 | 0.823 |
| 18 | 0.598 | 0.618 | 0.885 | 0.802 | 0.808 |
Loss and recovery. NLL is the mean negative log-probability of the true next token; $e^{-\text{NLL}}$ is the typical probability assigned to it (0.67 for the intact model, 0.56 with block 6 deleted). Recovery is $(\text{NLL}{\text{deleted}} - \text{NLL}) / (\text{NLL}{\text{deleted}} - \text{NLL}_{\text{intact}})$.
| Block | Condition | NLL | Output $R^2$ against the true block | Recovery |
|---|---|---|---|---|
| 6 | Intact | 0.4075 | 1.000 | 100% |
| Deleted | 0.5871 | 0.628 | 0% | |
| Linear stand-in | 0.4785 | 0.864 | +60.5% | |
| Strict transplant | 0.6045 | 0.772 | −9.7% | |
| Output map refit | 0.5104 | 0.823 | +42.7% | |
| Random block, refit | 0.5177 | 0.815 | +38.6% | |
| 12 | Deleted | 0.5299 | 0.777 | 0% |
| Linear stand-in | 0.4658 | 0.905 | +52.4% | |
| Strict transplant | 0.8767 | 0.648 | −283% | |
| Output map refit | 0.4931 | 0.856 | +30.1% | |
| Random block, refit | 0.5167 | 0.831 | +10.8% | |
| 18 | Deleted | 0.5367 | 0.745 | 0% |
| Linear stand-in | 0.4830 | 0.883 | +41.6% | |
| Strict transplant | 0.9766 | 0.631 | −341% | |
| Output map refit | 0.5591 | 0.804 | −17.3% | |
| Random block, refit | 0.5448 | 0.810 | −6.3% |
A deleted block already scores $R^2$ 0.63–0.78 because a block changes its input only modestly. For block 6, the linear stand-in recovers $(0.5871 - 0.4785) / (0.5871 - 0.4075) = 0.605$.
What the controls say. At block 12 the refitted transplant beats the random block (30% against 11%), so $L$’s block contributes something there. At blocks 6 and 18 it does not. In no case does it reach the linear stand-in, which uses nothing from $L$.
6.3 The rank-1 edit as trigger and payload
Barry’s edit [3] changes the MLP output matrix of one block by a rank-1 term:
where $a$ is the vector of MLP neuron activations for a token and $\delta$ sets the strength of the edit. The scalar $\tau = v \cdot a$ is a trigger and $u$ is the payload. If $v$ is chosen so that $\tau \approx -1$ on looping tokens and $\tau \approx 0$ elsewhere, and $u$ is the loop direction, the edit applies the steering push of §5.3, but only on tokens that look like looping. Figure 13 illustrates the difference.
The trigger comes from a linear program over the model’s own neuron activations:
Here $t$ indexes tokens, $\xi_t \ge 0$ is a slack that lets a token violate its constraint at a cost $\mu$, and $\varepsilon$ is the tolerance on productive tokens. The $\ell_1$ objective makes $v$ sparse, so the program selects neurons as well as weights. We keep the eight neurons with the largest $|v_j| \cdot \text{std}(a_j)$ and re-solve on those. With eight columns of a $576 \times 1536$ matrix, the edit changes 4,608 weights.
Which weights change. $W_{\text{down}}$ is $576 \times 1536$ in SmolLM2-135M: column $j$ is what neuron $j$ writes into the residual stream. $\delta\,u v^\top$ changes only the columns where $v_j \neq 0$. On a looping token the block’s extra output is $\delta\,u\,\tau \approx -\delta\,u$, which with $u = \hat{u}$ and $\delta = \alpha \lVert u_S \rVert$ is the steering push of §5.3.
A toy program. Four neurons, three looping and three productive tokens, $\varepsilon = 0.1$, $\mu = 1$:
| Token | Activations $a$ | $\tau = v \cdot a$ | Constraint | Met |
|---|---|---|---|---|
| Looping 1 | (2.0, 1.0, 0.5, 1.0) | −1.00 | $\tau \le -1$ | yes |
| Looping 2 | (2.5, 1.5, 1.0, 0.0) | −1.25 | $\tau \le -1$ | yes |
| Looping 3 | (2.0, 1.0, 0.0, 0.5) | −1.00 | $\tau \le -1$ | yes |
| Productive 1 | (0.0, 0.5, 1.0, 0.5) | 0.00 | $\lvert \tau \rvert \le 0.1$ | yes |
| Productive 2 | (0.1, 0.0, 0.5, 1.0) | −0.05 | $\lvert \tau \rvert \le 0.1$ | yes |
| Productive 3 | (0.0, 0.5, 1.5, 0.0) | 0.00 | $\lvert \tau \rvert \le 0.1$ | yes |
The solver returns $v = (-0.5, 0, 0, 0)$ with objective 0.5 and no slack. Neuron 2 also fires more on looping tokens, but $v = (-\tfrac13, -\tfrac13, 0, 0)$ costs $\tfrac23$ and gives $-0.17$ on the first productive token, which violates its constraint. Figure 14 shows why the $\ell_1$ objective prefers the single-neuron solution.
Solving it. The absolute values are made linear by writing $v = v^+ - v^-$ with both parts
non-negative, and each two-sided constraint becomes two one-sided ones. The solver is HiGHS through
scipy.optimize.linprog. Settings: 400 looping and 400 productive tokens, $\varepsilon = 0.1$,
$\mu = 1$. To keep the program small, neurons are first screened to the 1,000 with the largest
$\lvert \text{mean}{\text{loop}} - \text{mean}{\text{prod}} \rvert / \text{std}$, in both models.
AUC. The trigger is scored on held-out tokens by the probability that a random looping token has a lower trigger value than a random productive one. With looping values $(-1.2, -0.9, -0.2)$ and productive values $(0.0, -0.3, 0.1)$, eight of the nine pairs are ordered correctly, so AUC is 0.89.
6.4 Porting the rank-1 edit from the large model
$S$ is SmolLM2-135M and $L$ is Qwen-1.5B. We first compare four edits of the same size, eight neurons each. $S$’s own edit takes both trigger and payload from $S$. The hybrid keeps $S$’s trigger and uses $L$’s loop direction, mapped into $S$, as the payload. The fully ported edit takes both halves from $L$: the mapped direction, and $L$’s trigger ported to $S$’s neurons by a second linear program, which is fitted so that eight $S$ neurons reproduce $L$’s trigger values on the same text. That matching step uses no loop labels; $L$’s trigger itself was fitted with them. The fourth edit writes to eight random columns, with random signs. Figure 15 shows how the strength was chosen and the held-out result.
| Edit (8 neurons) | Loop rate | vs none | Trigger AUC (held-out tokens) |
|---|---|---|---|
| None | 21.0% | ||
| $S$’s own | 8.5% | p ≈ 0.0004 | 0.72 |
| Hybrid | 14.0% | p ≈ 0.07 | 0.72 |
| Fully ported | 28.0% | no help | 0.61 |
| Random columns | 60.5% | harmful | 0.57 |
Weight-space programming works inside $S$: an eight-neuron edit cuts loops by more than half. The fully ported edit does nothing useful. Two controls decide how the rest should be read.
The first concerns the payload. The mapped direction used in the hybrid and ported edits comes from the map fitted on the looping texts, which returns $S$’s own direction almost exactly (§5.3). The hybrid is therefore close to $S$’s own edit, and it is not evidence that the payload transfers.
The second concerns the trigger. It fails under the eight-neuron limit, and not because $S$’s neurons lack the information. A ridge fit from all 1,536 of $S$’s neurons reproduces $L$’s trigger values with $R^2$ 0.46, and separates looping from productive tokens as well as $L$’s own trigger does (AUC 0.76 against 0.77). So about half of the trigger is linearly present in $S$’s neurons.
The edit uses a different fit: the port program with no limit on neurons, which keeps 574. That version tracks $L$’s trigger values less closely ($R^2$ 0.16, AUC 0.67). Used as a rank-1 edit that gates $S$’s own loop direction, it cuts loops from 21% to 10% at strength 2, at a small coherence cost (1.48 against 1.44). Three controls of the same size, fired through the same payload at the same strength, do not: the port program fitted to shuffled trigger values (30%), the real weights shuffled among the same 574 neurons (32%), and the real weights with random signs (21.5%).
| Trigger | Neurons | Strength | Loop rate | Early NLL |
|---|---|---|---|---|
| $S$’s own | 8 | 2 | 15.5% | 1.45 |
| $S$’s own | 8 | 4 | 8.5% | 1.60 |
| $L$’s, ported | 8 | 2 | 21.5% | 1.41 |
| $L$’s, ported | 8 | 4 | 28.0% | 1.42 |
| $L$’s, ported | 574 | 2 | 10.0% | 1.48 |
| $L$’s, ported | 574 | 4 | 7.0% | 1.85 |
| Control: port fitted to shuffled targets | 596 | 2 | 30.0% | 2.56 |
| Control: real weights, shuffled over the same neurons | 574 | 2 | 32.0% | 1.56 |
| Control: real weights, random signs | 574 | 2 | 21.5% | 1.87 |
The large model’s trigger can therefore be re-expressed in $S$ as a working edit through 574 neurons, which changes 330,624 weights, and not through eight, which changes 4,608. The trigger was fitted on $S$’s labelled outputs and the payload is $S$’s own direction, so this does not show that $L$ supplies information $S$ lacks.
Setup. Block 18 of SmolLM2-135M and block 10 of Qwen-1.5B, the pairing from §5.3. Tokens are taken after each text’s region start, 12 per looping text and 4 per productive text: 1,888 from training texts and 472 from held-out texts. The trigger programs use 400 looping and 400 productive training tokens, the port program 800, and the ridge fits all 1,888.
The port program. Let $y_t = v_L \cdot a_t^L$ be $L$’s trigger value on token $t$. The ported trigger $v’$ over $S$’s neurons solves
In the eight-column edits it is followed by the same reduction to eight neurons as §6.3. The eight neurons are chosen by that heuristic and are not a best-subset search.
Strength. $\delta = \alpha \lVert u_S \rVert$ with $\alpha$ chosen on 60 tuning problems using $S$’s own eight-column edit:
| Strength | Loop rate | Early NLL | Within 1.15× of unedited (1.567) |
|---|---|---|---|
| Unedited | 23.3% | 1.362 | |
| 2 | 18.3% | 1.396 | yes |
| 4 | 8.3% | 1.507 | yes, chosen |
| 8 | 6.7% | 2.414 | no |
| 16 | 40.0% | 3.450 | no |
Without the coherence condition, loops could be removed by an edit strong enough to produce text that neither repeats nor makes sense.
Eight-column edits, held-out (200 problems, strength 4, 4,608 weights changed in each):
| Edit | Loop rate [95% CI] | Accuracy | Early NLL |
|---|---|---|---|
| None | 21.0% [15.9, 27.2] | 2.0% | 1.436 |
| $S$’s own | 8.5% [5.4, 13.2] | 2.5% | 1.601 |
| Hybrid | 14.0% [9.9, 19.5] | 2.0% | 1.596 |
| Fully ported | 28.0% [22.2, 34.6] | 0.5% | 1.418 |
| Random columns | 60.5% [53.6, 67.0] | 1.0% | 1.872 |
The random-columns control is not neutral. Its weights have random signs and are scaled to the size of $S$’s trigger on looping tokens, so it fires on every token, and its high loop rate shows that an unselective edit of this size does damage. An untuned first run at strength 2 gave 15.5% for $S$’s own edit, 23% for the ported edit and 43.5% for random columns.
How many neurons does the trigger need? $L$’s trigger fitted from $S$’s neurons, scored on held-out tokens. $R^2$ is against $L$’s trigger values and AUC is for looping against productive tokens:
| Fit | Neurons | $R^2$ | AUC |
|---|---|---|---|
| Port program, reduced | 8 | 0.05 | 0.61 |
| Ridge on the same 8 | 8 | 0.12 | 0.63 |
| Ridge, top neurons of the dense fit | 8 | 0.12 | 0.58 |
| Ridge, top neurons of the dense fit | 32 | 0.25 | 0.68 |
| Ridge, top neurons of the dense fit | 128 | 0.40 | 0.72 |
| Ridge, top neurons of the dense fit | 512 | 0.45 | 0.75 |
| Ridge, all neurons | 1,536 | 0.46 | 0.76 |
| Port program, no limit | 574 | 0.16 | 0.67 |
| Reference: $L$’s trigger in $L$ | 8 | 0.77 | |
| Reference: $S$’s own trigger | 8 | 0.72 |
How selective is each trigger? Mean trigger value on held-out looping and productive tokens:
| Trigger | Looping | Productive |
|---|---|---|
| $S$’s own, 8 neurons | −0.68 | −0.37 |
| $L$’s, ported to 8 neurons | −0.43 | −0.32 |
| $L$’s, ported to 574 neurons | −0.62 | −0.29 |
| $L$’s trigger in $L$ | −0.79 | −0.24 |
Every trigger also fires on productive tokens, so each edit includes a constant push as well as a selective one. The dense ported trigger separates the two groups about as much as $S$’s own eight-neuron trigger does. A constant push of the same average size does not remove loops (§5.3, strength 1), so the effect of the dense edit is not explained by its constant part.
Caveats. The dense result comes from one setting, strength 2, reported after both strengths were run on the held-out prompts; it reproduced exactly in a second run. $L$’s trigger was fitted with loop labels from $S$’s outputs, and the port is fitted on the same texts. The dense result shows that $L$’s detector can be re-expressed in $S$’s neurons and still work as an edit. It does not show that $L$ supplies information that $S$ lacks. The payload in the dense edits is $S$’s own direction, since $L$’s does not transfer (§5.3). $S$’s own trigger before the reduction to eight neurons (450 neurons, AUC 0.83) works worse as an edit than after it, 20.5% at strength 2, which we do not have an explanation for. Accuracy is 0.5% to 3% in every condition: removing loops does not make this model solve GSM8K.
7. Discussion
The results divide by how compactly an object is expressed more than by where it lives in the model. §7.1 sets this out as a reading of the experiments. §7.2 relates the results to the claim that weight edits unlock abilities without adding them.
7.1 Distributed and compact objects
| Object | Form | Transfers across models? |
|---|---|---|
| Token state | distributed | Yes, R² ≈ 0.65; 54–82% of that from input embeddings under ridge |
| Fact key at the subject token | distributed | Partly; subject tokens alone give a third to nine tenths of it |
| Trigger in 574 neurons | distributed | Yes as an edit that gates $S$’s own direction, 21% to 10% |
| Steering direction | compact | No: cosine 0.82, within the random-relabelling range; loops 18.5% against 21% |
| Trigger in 8 neurons | compact | No, R² 0.05 |
| A whole block | structural | No, worse than deletion |
| Ability | not localised | No |
A state of several hundred numbers transfers well enough to predict the other model’s state and to transfer a fact. A summary of that state in one direction does not work as a steering vector in the other model. In neuron space, eight neurons do not reproduce the large model’s trigger, and several hundred partly do. In both spaces the distributed object transferred and its compact summary did not.
This is a reading of two cases and it has competitors. The steering result has a narrower explanation: $S$’s own direction works only at one strength, and a mapped direction with cosine 0.82 puts part of its push off that axis, which may be enough to miss the window. The state and fact results are largely token identity. And $S$’s own eight-neuron edit works, so what fails across models is the correspondence between compact objects, not compactness itself.
That last point connects to how weight-space programming finds its edits. The edits in [2], [3] and [7] are derived from the target model’s own activations. The activations identify which neurons to change, and the change is then written into the weights. Such an edit is small enough to read and to write by hand. Neurons can be permuted without changing a model’s function [15], and models of different widths have no one-to-one correspondence between neurons, so a particular handful in one model has no reason to match a handful in another. A dense readout does not need such a match.
The block transplant fails for a reason these experiments do not isolate. The maps into and out of $L$’s block have held-out $R^2$ of 0.60 to 0.70, comparable to the other maps in this report, yet the result is worse than removing the block. One reading is that agreement between two models’ states at the input and output of a block does not make the block’s function exchangeable. Another is that the input map is too lossy for any block to work on its output. A condition that feeds $L$’s block its true input and maps only the output would separate the two, and we did not run it.
The token-identity control changes how the first row of the table should be read. An $R^2$ of 0.65 between two models is often taken as evidence of shared structure. Under ridge, more than half of it is available from an embedding lookup, and the same holds behaviourally: in the fact swap, the subject’s token embeddings alone recover a third to nine tenths of what the full map transfers. Results that report cross-model similarity or transfer at a token position should include this baseline. The loop direction shows a second way for a transfer result to be produced by the setup: a map fitted on the texts under study returns the target model’s own statistics.
7.2 Unlocking versus adding ability
Takehi et al. conclude that their edits could remove an obstacle hiding an ability but could not add an ability the model lacked [2]. Our results are consistent with that conclusion and do not test it directly. No edit here improved accuracy on any task. That includes the problems $S$ solves in some sampled attempts, where the rate was 30.8% before and after steering, and it includes the loop fixes, which removed loops and left GSM8K accuracy between 0% and 3%. No problem that $S$ never solves was solved on MATH.
The overlap in solved problems matters for the original motivation. Most of what a small model solves, a large model solves too (§5.2), so the useful transfer is from large to small, and that is the direction in which nothing moved. What the map delivered to the small model was, in each case, something the small model could already produce.
Lin [7] writes a narrow conditional rule into weights in closed form. Neither that work nor ours adds a broad ability such as solving more MATH problems.
8. Limitations
Every model here has 1.5 billion parameters or fewer. Representation similarity is reported to grow with model capability [5], and the concurrent work finds usable maps up to 27 billion parameters [11], so larger models may share more than these do. Our negative results on blocks and neurons are for small models and should not be read as limits on large ones.
The samples are small. The loop tests use 200 problems, the fact swaps 86 to 126 facts per pair, the block transplant 35 held-out texts, and the atlas five models. The atlas correlation and the chain $R^2$ come from single runs; scripts for a ten-model atlas and a five-seed chain exist and have not been run (§9). Several comparisons that the text describes as differences, including the hybrid edit against no edit and the map against the subject-token control in individual pairs, are not significant by themselves.
Only one behaviour, looping, was tested as a portable edit, at one layer. Two conclusions of the first version of this report, on the loop direction and on the trigger neurons, reversed under controls added during review (§5.3, §6.4). The remaining positive results have not all had the equivalent control: the cosine of 0.85 in §5.1 comes from a map fitted on texts that include the positive examples, and the dense trigger port is fitted on the looping texts. Tone, refusal or factual-recall directions may behave differently.
Three choices affect comparability. The tiny model in §5.2 is the Instruct variant of SmolLM2-135M, while the loop and edit experiments use the base model. §5.2 grades MATH leniently for all three models, while the other MATH numbers use the strict grader. And the token-identity share depends on the map: it is larger under ridge than under a rotation (§4.2), so it is a property of the pair of models and the map together.
Finally, the embedding-only baseline is a lower bound on token identity, and early NLL is a proxy for coherence. Neither was validated against human judgement.
9. Future work
Four next steps follow from the results, and each would test a hypothesis that this report could only partly reach.
The first is to test the hypotheses with weight-space programming itself. Every map here is a closed-form linear fit, and the one weight edit we ported was a linear program. Weight-space programming as introduced by Takehi et al. [2] is broader: an agent reads the weights, forms a hypothesis about what a component does, and writes an edit. The same agent could be given two models and asked to port an edit between them, or to find the component in a small model that corresponds to one it has located in a large model. That would test H2 and H4 with a much less constrained search than a linear map. A first step follows from §6.4, where the large model’s detector worked in the small model once it was expressed through many neurons. That detector was fitted with labels from the small model’s own failures. The open test is a detector that only the large model can supply, for a failure that the small model’s activations do not reveal, transferred across in the same dense form. If it only matches what the small model can find in itself, the conclusion would be that a small model already contains the information needed to repair itself.
The second is to move to larger general models. Every model here has at most 1.5 billion parameters. Representation similarity is reported to increase with capability [5], and the concurrent work finds usable maps between models of up to 27 billion parameters [11]. The open question is whether the negative results change with scale: whether a block of a 30-billion-parameter model can stand in for a block of a 7-billion-parameter one, and whether neuron-level triggers begin to correspond. The token-identity control should be repeated at that scale, since it is cheap and decides how the positive results are read.
The third is to compare a model with its fine-tuned version. The hardest case for a map is two models trained independently. The easiest is a base model and a fine-tune of it, which share an architecture, an initialisation and most of their weights. There a neuron has the same address in both models, so an edit written for one may transfer to the other with no map at all. Measuring how quickly that breaks down as fine-tuning proceeds would separate two explanations for our negative results: that neurons fail to correspond because the architectures differ, or because training moved them. It is also the practical case, since an edit found once in a base model would ideally apply to every model fine-tuned from it.
The fourth is to set a fine-tuned small model against a general large one. Our containment result is for general-purpose models on general text. A small model fine-tuned thoroughly on one domain may know things in that domain that a general large model does not, in which case its solved problems would no longer be a subset of the large model’s (§5.2), and the map between them might degrade in that domain while holding elsewhere. Fitting and scoring the map per domain, before and after fine-tuning, would show whether containment is a property of model size or of training data, and whether a map can be used to tell what a fine-tune added.
Two smaller items remain from this report: the ten-model atlas and the five-seed chain, for which the scripts exist, and a second and third behaviour to port besides looping.
10. Conclusion
We asked whether a training-free map between a small and a large language model exists, and what it can transfer. A linear map exists, composes along chains of models for prediction, and works across model families. Its headline score overstates what the models share. Under ridge, more than half of it is available from the large model’s input embeddings, and the same control accounts for much of the fact transfer.
In these experiments, what transferred was distributed. Whole states predict each other. The state that encodes a fact transfers between models at about three quarters of the rate of a model’s own state. A trigger for a failure mode, re-expressed through several hundred neurons, works as a weight edit in the other model when it gates that model’s own direction. What did not transfer was compact or structural: a single steering direction, a trigger held in eight neurons, a transplanted block. Task ability did not transfer in any form we tried. We offer the distinction as a reading of a small number of experiments.
Two conclusions changed during review. The first version reported that a loop direction from the large model halved the small model’s loops, and that the trigger neurons had no counterpart. Both depended on a choice in the setup, a map fitted on the texts under study and a limit of eight neurons, and both reversed under controls. We report the controls next to the original numbers.
In its compact form, weight-space programming remains a per-model activity. In these tests, an edit small enough to read and write by hand stayed specific to the model it was found in.
11. Reproduce
Code and stored results: github.com/NISH1001/weightmap. The
library provides WeightMap(large, small).fit(texts), transport, steer and fold.
| Section | Script |
|---|---|
| §4.1, §5.1 | scripts/exp1_qwen_0.5b_1.5b/s1_generate.py to s4_steer.py |
| §6.1 | scripts/exp1_qwen_0.5b_1.5b/s5_fold.py |
| §4.2 | scripts/controls_baselines.py, scripts/rotation_vs_ridge.py |
| §4.3 | scripts/quick_tests.py |
| §4.4 | scripts/atlas_recursion.py |
| §5.2 | scripts/tiny_venn.py |
| §5.3 | scripts/loop_controls.py (controls); scripts/loop_diagnostic.py, scripts/loop_stats.py (first version) |
| §5.4 | scripts/fact_swap.py |
| §6.2 | scripts/block_transplant.py |
| §6.4 | SWEEP=1 scripts/lp_port.py; DENSE=1 and FOLLOWUP=1 to 3 for the dense fits and controls |
References
- Pantha, N. (2026). ConceptGate: Few-Shot Concept Reading and Steering in Frozen Language Models. Preprint, Zenodo. doi:10.5281/zenodo.24287378. link
- Takehi, R., Teoh, J., Zhang, A., & Khattab, O. (2026). Sparks of Weight-Space Programming: LLMs can natively read & write neural network weights. Blog post, MIT CSAIL, 2 Nov 2026. link
- Barry, N. (2026). Can a Linear Program Do Weight-Space Programming? Blog post, 9 Nov 2026. link
- Turner, A. M., et al. (2023). Steering Language Models With Activation Engineering. arXiv:2308.10248. link
- Huh, M., Cheung, B., Wang, T., & Isola, P. (2024). The Platonic Representation Hypothesis. ICML 2024. arXiv:2405.07987. link
- Oozeer, N., et al. (2025). Activation Space Interventions Can Be Transferred Between Large Language Models. arXiv:2503.04429. link
- Lin, J. (2026). Hiding a Rule Inside Another Model’s Weights. Blog post, 5 Nov 2026. link
- Kornblith, S., Norouzi, M., Lee, H., & Hinton, G. (2019). Similarity of Neural Network Representations Revisited. ICML 2019. arXiv:1905.00414. link
- Bansal, Y., Nakkiran, P., & Barak, B. (2021). Revisiting Model Stitching to Compare Neural Representations. NeurIPS 2021. arXiv:2106.07682. link
- Ashkboos, S., et al. (2024). SliceGPT: Compress Large Language Models by Deleting Rows and Columns. ICLR 2024. arXiv:2401.15024. link
- Cheng, V., Liu, J., Yau, M., & Ré, C. (2026). Plato’s Key. Blog post, Hazy Research, Stanford, 25 Nov 2026. link
- Xiao, G., et al. (2024). Efficient Streaming Language Models with Attention Sinks. ICLR 2024. arXiv:2309.17453. link
- Sun, M., et al. (2024). Massive Activations in Large Language Models. COLM 2024. arXiv:2402.17762. link
- Meng, K., Bau, D., Andonian, A., & Belinkov, Y. (2022). Locating and Editing Factual Associations in GPT. NeurIPS 2022. arXiv:2202.05262. link
- Ainsworth, S. K., Hayase, J., & Srinivasa, S. (2023). Git Re-Basin: Merging Models modulo Permutation Symmetries. ICLR 2023. arXiv:2209.04836. link
Citation
@misc{pantha2026weightmap,
author = {Pantha, Nishan},
title = {Weightmap: Training-Free Linear Maps Between Small and Large Language Models},
year = {2026},
month = nov,
howpublished = {\url{https://nishparadox.com/research/weightmap/}},
note = {Technical report}
}
Footnotes
-
Cheng et al. published on 25 November 2026, while this report was being written. Our map, atlas and chain experiments were committed to the project repository on 7–8 November 2026 and the loop-transfer experiment on 11 November. The two projects are independent. Theirs covers larger models and a functional test we did not have; the fact-swap experiment in §5.4 was added afterwards and follows their protocol. The rotation map in §4.2, the solved-problem overlap in §5.2 and the controls in §5.3 and §6.4 were also added after that date. ↩