DEV Community

Cover image for Two LLMs Can Trade a Fact With One Rotation. Where They Look Most Alike, They Almost Never Do
Sergei Parfenov
Sergei Parfenov Subscriber

Posted on Originally published at sergei-parfenov.com

Two LLMs Can Trade a Fact With One Rotation. Where They Look Most Alike, They Almost Never Do

SmolLM2-360M reads "People's Republic of Poland's capital is" and is about to say "Warsaw". I took the hidden state that a different model, Qwen2.5-0.5B, builds for "Lazio" in "Lazio's capital,", rotated it, scaled it, and wrote it over SmolLM2's hidden state at "Poland". SmolLM2 said "Rome".

Nothing was trained. Neither model's weights changed. The map between them is one SVD and one number, and it ran on a 4-core CPU.

The recipe comes from "Plato's Key", a post Hazy Research at Stanford published on November 25, 2026. Across 20 pairs of models from 1.5B to 27B parameters, the rotated state turned the recipient's answer into the donor's in a median 41% of swaps. When the authors chose the layers with the similarity score from the paper that named the Platonic Representation Hypothesis, the same swap worked a median 4.5% of the time.

I reran the recipe on three smaller models to see whether it holds below 1.5B parameters, and whether the similarity score fails the same way.

TL;DR: A Stanford team swapped one hidden state between two LLMs, mapped by a rotation and one scale with no training, and the recipient gave the donor's answer in a median 41% of swaps across 20 model pairs. I reran the recipe on three models of 360M to 1.5B parameters on a CPU. At the layers that did best on validation swaps, 303 of 895 test swaps moved the fact, against 358 for the recipients' own keys. At the layers where the models looked most alike by the similarity score behind the Platonic Representation Hypothesis, 15 did.

A fact has a key and a value

Interpretability work has described factual recall in transformers as a lookup (Geva et al., 2021; Meng et al., 2022; Geva et al., 2023). Early and middle layers build a representation at the last token of the subject, "France" in "The capital of France is". Later layers use it to pull the answer out of the weights. The representation is the key. "Paris" is the value.

Plato's Key swaps only the key. The recipient reads "The capital of Germany is", and its key at "Germany" is replaced with the donor's rotated key for "France". The recipient keeps its own later layers, so if the answer changes to "Paris", those layers produced it from a key they never built. Whether they looked "Paris" up in their own weights or read it off the donor's key, the swap alone does not say.

The map from one model's keys to another's:

z_B' = mu_B + s * R (z_A - mu_A)

mu_A, mu_B   each model's mean key
Z_A, Z_B     centered keys, one fact per column
R = U V^T    where U S V^T = svd(Z_B Z_A^T)
s = ||Z_B|| / ||Z_A||    Frobenius norms
Enter fullscreen mode Exit fullscreen mode

R solves the orthogonal Procrustes problem: of all maps that keep lengths and angles, it puts the donor's training keys closest to the recipient's keys for the same facts. It can rotate and reflect, and when the two models have different widths it is a semi-orthogonal map. It cannot stretch one direction more than another. s fixes the overall size. The fit uses fewer than 5,000 facts that both models answer correctly. It is closed form: one SVD, no gradient descent.

The swap layers, one in the donor and one in the recipient, are chosen on validation facts by how often the swap works. Results are reported on test facts whose subjects the fit never saw.

Their rotation kept a median 73% of what the recipient's own key did

Transfer accuracy counts how often the recipient produces the donor's answer after the swap. It is not the model's accuracy on the facts.

What they measured Result
Models 12 base LLMs from eight families, 1.5B to 27B parameters
Test bed 20 model pairs, 8,800 facts under 16 relations
Rotated donor key median 41% transfer accuracy, 34 to 46% across pairs
Recipient's own "France" key (self-swap) median 55%
Rotation as a share of self-swap median 73%, 60 to 93% across pairs
Best of 11 controls, including random and shuffled rotations at most 2.2% in any pair
Ridge regression without rescaling, a whitened rotation, a trained MLP significantly better than the rotation in 4 of 60 pair comparisons
Wasserstein Procrustes, fit with no paired facts median 87% of the rotation
Chain A to B to C, against direct A to C median 99%, none of 47 chains below 92%
Rotation in the top 256 principal components median 74% of the full rotation, 4% with 16 components

The self-swap row shows why 41% should be read against 55%, not against 100%. Put the recipient's own key for "France" in place of its key for "Germany", and it still fails to say "Paris" almost half the time. "Germany" is still present in other tokens and in the layers below the swap. The authors use self-swap as their reference because it needs no cross-model map. No pair's rotation beat its own self-swap. The closest reached 93% of it.

Similar is not interchangeable

The Platonic Representation Hypothesis (Huh et al., 2024) says that models trained separately converge toward a shared representation of the world. Most of the evidence for it is similarity scores. The main one in that paper is mutual nearest neighbors: take an item, find its 10 nearest neighbors in model A's space and in model B's, and count the overlap.

Plato's Key uses that score as a layer picker. On the same validation facts, layers picked by mutual nearest neighbors give a median transfer accuracy of 4.5%. Layers picked by transfer give about ten times that. In their models the similarity score usually peaks within the first 5% of the recipient's depth. Transfer peaks between 22 and 38% of it.

Similarity scores have known soft spots. Davari et al. show that CKA, another popular one, is sensitive to outliers and can be moved without much change in what the model does. If the claim is that two models can use each other's states, only a swap tests it.

I reran it on three small models

The smallest model in their set is Qwen2.5-1.5B. I wanted to know whether a rotation still carries a fact below that size, so I used Qwen2.5-0.5B, Qwen2.5-1.5B and SmolLM2-360M, a family they did not test. All three are base models. Everything ran on a 4-core cloud CPU without a GPU, in about 90 minutes of compute.

The setup follows the post as closely as I could from its text:

  • Facts: 12,630 from CounterFact, the dataset from the ROME paper, under 16 relations. A model knows a fact if greedy decoding produces the answer. Qwen2.5-0.5B knew 1,816, SmolLM2-360M 1,844 and Qwen2.5-1.5B 2,341.
  • Key: the hidden state at the last token of the subject, at one layer.
  • Map: the rotation and scale above, fit on the training facts both models know.
  • Split: by subject, 55% train, 20% validation, 25% test. Layers are chosen on validation swaps.
  • Swap: a donor fact and a recipient fact with the same relation, the same text before the subject, a different subject and a different answer. A hit means the recipient's greedy answer is the donor's answer.
  • Controls: a random rotation, a rotation fit on shuffled pairs, and the recipient's average key.
Donor to recipient Swaps Rotation Most similar layers Self-swap Share of self-swap Best control
Qwen 0.5B to SmolLM2 206 32.0% 0.0% 34.5% 93% 5.8%
SmolLM2 to Qwen 0.5B 206 31.1% 5.8% 45.6% 68% 7.8%
Qwen 1.5B to Qwen 0.5B 238 33.2% 0.0% 37.0% 90% 6.3%
Qwen 1.5B to SmolLM2 245 38.4% 1.2% 42.9% 90% 8.6%

"Most similar layers" is the rotation at the layers where mutual nearest neighbors rated the two models most alike.

What I take from it:

  • The rotation carries most of what a model's own key carries, even at 360M parameters. Across the four pairs it moved 303 of 895 test swaps (34%), against 358 (40%) for self-swap. Per pair it kept 68 to 93% of self-swap. The post reports 60 to 93%.
  • Both of my numbers are lower than theirs, the reference included. Self-swap in my models ran 35 to 46%, against their median of 55%. Smaller models, CounterFact prompts and my strict greedy check could each explain part of that. I cannot separate them.
  • My controls are higher: 6 to 9% for the best control in each pair, against their 2.2%. My test set has few distinct answers. "French" is the donor's answer in a quarter of the swaps, so a broken key that falls back on a common answer gets lucky more often.
  • A ridge regression rescaled to the recipient's spread did about as well as the rotation. It was within 2 points in three pairs and 5 points better in one. Plain ridge did worse in three of four. The post reports the same direction: rescaling makes ridge competitive. I did not test these differences, and with about 200 swaps per pair a gap of a few points could be noise.
  • Languages did most of the work. Language relations were 569 of the 895 test swaps and 247 of the 303 rotation hits. Citizenship barely moved: 5 of 97 rotation swaps, against 20 for self-swap.

That column is the one I did not expect. In all four pairs, mutual nearest neighbors peaked at 82 to 93% of depth, near the top of the network. The rotation at those layers moved 0, 12, 0 and 3 test swaps: 15 of 895 in total. Each of my three controls managed more, 36 to 58. The layers chosen by transfer sat at 25 to 63% of depth.

The post found the similarity peak usually at the other end, within the first 5% of the recipient's depth. I cannot tell why mine landed near the top. My score uses 171 to 201 validation facts per pair, and the post does not describe its own in that detail.

Where the score is allowed to look also matters. In an earlier run of the first pair, which still had the answer-in-subject facts described in the next section, the score searched only the layers my transfer search covered, up to two thirds of the depth. There it picked layers at 54 and 66% of depth, and the rotation moved 26% of test swaps, against 30% at the layers picked by transfer. So the near-zero numbers belong to the score's own favorite layers across the whole network.

The location differs from the post. The result does not: in the post and in all four of my pairs, the layers where the models looked most alike were not the layers where they could use each other's keys.

My first run picked layer 1 and counted facts that gave away the answer

My first run said the best donor layer was layer 1, the first layer of the network, and that transfer topped out at 15% on validation. Every donor layer above that gave nearly the same numbers. The code ran without an error.

Four facts caused it: iOS, Spain, iPad and iPhone. In Qwen's tokenizer each of those subjects is a single token at the very start of the prompt. In SmolLM2's, only "Spain" is. Neither model family adds a start-of-sequence token, so the first position is where these models keep massive activations. In Qwen2.5-0.5B the keys there were 28 to 146 times the norm of the median key at 19 of its 23 layers, and SmolLM2's "Spain" key reached 200 times. Two of the four landed in the training set, and in a centered least-squares fit two points that size outweigh the other 774. Dropping the four raised validation transfer for the same pair from 15% to 34%.

The second problem was found by two review agents I asked to break the experiment. A third of the facts my models "knew" had the answer written into the subject: "Toyota RAV4" is produced by Toyota, "Microsoft Windows" is developed by Microsoft. For those facts, recall can be copying from the prompt, not a lookup in the weights, and the lookup is what the swap is supposed to test. I dropped all 446 of them from the first pair, and the equivalent facts from the others, before computing the numbers above.

Neither problem raised an exception. Both produced a plausible number.

Dark memories: the answer was there and the model's own key missed it

The part of the post I find most useful is its smallest experiment. I did not rerun it.

The authors collect 2,600 misses: test facts the donor answers and the recipient does not. They call a miss a dark memory if the recipient still passes at least one of three checks: it answers correctly with three examples in the prompt, it answers a paraphrased prompt correctly, or it ranks the correct answer first among up to 50 answers from the same relation. By that test, 56% of the misses (1,463) are facts the recipient stores and fails to recall.

Swapping in the donor's rotated key recovered 267 of those 1,463 (18%), with no weight update. No control recovered more than 1.1%. Their example: asked who directed "Interstellar", the recipient says Denis Villeneuve with its own key and Christopher Nolan with the donor's.

In September I wrote about agents that recall a fact on a direct question and miss it when a task needs it. This is the same split one level down. The three checks say the value is in the recipient's weights. Its own key does not reach it, and a key built by a different model sometimes gets the right answer out. A swap cannot rule out that the donor's key carried the answer in with it. The authors read the result as recall failing because of the representation, not because of missing knowledge. That fits Gekhman et al., who found three open models encoding more facts internally than they express, with an average relative gap of 40%.

What this does not show

I have to be fair to the skeptical reading, of their post and of my run.

  • Their result is a blog post. I found no arXiv version and no released code on November 27, 2026. Their numbers above come from that one post.
  • The questions are one hop. Every fact is a subject, a relation and an answer. Multi-hop questions, such as the capital of the country where a person was born, are on the authors' own list of future directions, with post-trained models, larger models and other modalities.
  • "No paired facts" covers the fit, not the setup. As far as I can tell from the post, the Wasserstein map was compared at the same swap layers, and those were picked with paired validation facts. A fully unsupervised version would also need to find the layers.
  • My run is small. Four pairs, one random split, 206 to 245 test swaps each. Two of the pairs are the same facts in opposite directions. A bootstrap that resamples whole answers, so that every "French" swap moves together, gives a 95% interval of 21 to 40% for the rotation in the first pair.
  • My layer choice is optimistic. At the chosen layers, validation transfer ran up to 14 points above test.
  • My fits had fewer facts than dimensions. 462 to 550 training facts against widths of 896 to 1,536, so the rotation is unconstrained in some directions. The post fit on fewer than 5,000 facts per pair, with models 1,536 to 5,120 wide.
  • My facts are lopsided. Five of the 16 relations never reached any of my test sets: no model passed my strict greedy check on more than 19 of their facts, possibly in part because the models phrase those answers differently. Languages make up 64% of the test swaps.

The code, the per-swap results and the log of the broken first run are on GitHub.

A similarity score says two models look alike. A swap says one model can use what the other built. At the layers the score recommended, two of my four pairs moved nothing.


If you report a similarity score between two models anywhere, in a paper, a dashboard or a model-merging script: what happens when you swap the states at the layer it picks?

Sources

AI disclosure: the experiment code, the runs and this post were written with AI assistance (Claude Code). Two separate review agents checked the experiment before the final runs and caught the answer-in-subject problem. Another pass checked every number in this post against the Hazy Research post and my result files. I chose the framing and I stand behind the conclusions. Any errors that remain are mine.

Top comments (0)