Rotations Transfer Factual Keys Between Frozen LLMs at 41% Median Accuracy
Key point
A closed-form rotation and global scale transferred factual keys between frozen LLMs with 41% median accuracy, without gradient descent.
Details
- Vivien Cheng, Jerry Liu, Morris Yau and Chris Ré find that a rotation and one global scale can transfer factual keys between frozen LLMs without gradient descent.
- Across 20 model pairs, rotation transfer reached 41% median accuracy (34–46%); it retained 73% (60–93%) of recipient self-swap accuracy, with 75% for cross-family pairs and 69% for same-family pairs.
- In 2,600 cases where a donor answered but the recipient failed, 1,463 (56%) met at least one dark-memory verification test; donor-key rotation recovered 267 (18%), while controls recovered no more than 1.1%.
- Chaining rotations retained a median 99% of direct-transfer accuracy; 40 of 47 chains retained at least 95%, and none fell below 92%.
Method and evaluation
- Factual recall uses a subject token’s key to retrieve an answer value; the test swaps the key, not the value. A closed-form orthogonal Procrustes map and scale were fit using fewer than 5,000 facts recalled by both models, with subject-based train, validation and test splits.
- Evaluation covered 12 base LLMs from 8 families—Llama, Mistral, Gemma, Qwen, DeepSeek, Falcon3, Granite and GLM—with 1.5B–27B parameters; it used 8,800 facts and 16 relations. Maps included reflections and semi-orthogonal mappings for models with different hidden dimensions.
- Recipient self-swaps reached 55% median accuracy; random and shuffled-rotation controls reached at most 2.2%.
Comparisons and limitations
- Ridge regression without rescaling, whitened rotation and trained MLP significantly beat rotation in 7% of comparisons combined; rescaled ridge was competitive, while least-squares scaling added no significant gain. Wasserstein Procrustes, which used no paired facts, reached 87% of rotation’s median accuracy.
- PRH’s mKNN layer selection yielded 4.5% median transfer accuracy, about one tenth of selection by transfer accuracy. mKNN typically peaked within the first 5% of recipient depth, versus 22–38% for transfer accuracy.
Compression and dark memories
- At model widths of 1,536–5,120 dimensions, top principal components retained these median shares of full-rotation accuracy: 16 dimensions, 4% (IQR 3–4%); 32, 13% (11–16%); 64, 35% (30–38%); 128, 57% (52–62%); 256, 74% (70–81%); 512, 87% (80–89%); and 1,024, 90% (87–94%). Remaining recipient components were set to the training mean.
- The authors interpret the findings as functional evidence that LLM representations are partly interchangeable, and suggest that rotated keys can query another model’s memory. Dark memories qualified through three checks: 3 in-context examples, a paraphrased prompt, or ranking the correct answer first among up to 50 answers for the same relation.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.