Interpretability · Interim results

Can a frontier model read a small model's weights? Interim results from a controlled experiment

I gave Claude Opus 5.5 nothing but the raw weight values of a small language model. With no code and no way to run the model, it wrote out every number to change by hand, and took a task from 0% to 77.5%. The harder question is whether it was actually reading the numbers, or just familiar with the task.

TL;DR

  • With the output layer frozen, Opus edited the model by hand from the raw weights alone. Across 5 independent trials, task accuracy went from 0% to 77.5% on average. Without the weight values, all 3 trials stayed at 0%.
  • The edit touched only 8 rows of the input embedding embed_in (0.0073% of all parameters). When embeddings were off-limits, it turned 8 neurons in the layer-0 MLP into a lookup table instead, reaching 87.5%.
  • Decoy test: when the “target row” we showed it was secretly swapped for another word's row, the edited model produced the decoy word (79%) and never the real target (0%).
  • What it produced is not a gradient. The edit is nearly orthogonal to the true gradient; it is a one-shot, closed-form step along a path Opus derived itself.

The question

Whether one model can understand another model's weights comes up often, but it is hard to test. Even if a large model manages to fix a small one, it might just know the task, might have seen this public model's weights during training, or might have found a general trick that does not depend on the specific values at all. This experiment rules those explanations out one by one, in a setting small and controlled enough to check every number.

Setup

  • Small model: EleutherAI/pythia-14m: d_model 128, 6 layers, separate input and output embeddings.
  • Task: 8 random pairs of unrelated English words (for example stage→system). Whenever the last token is IN_i, the model's next-token prediction should be OUT_i. The original model scores 0%.
  • Subject: Claude Opus 5.5 with no tools, no code execution, no access to the model and no feedback, and only one attempt. It first chose which weights to read (up to 30,000 numbers). Then, in a fresh session, it wrote out every value to be written into the model explicitly.
  • Removing familiarity: Opus was never told the model's name, token strings or token ids, only labels such as IN_i and OUT_i. In addition, every trial applied a secret permutation to the 128 residual-stream dimensions and to the 512 MLP neurons in each layer. The model computes exactly the same function, but every number moves to a new position, so memorised Pythia weights are of no use.
  • Controls: no weight values; the same edit applied in the wrong coordinate system; random directions with the same positions and norms; and a decoy test that swaps numbers Opus sees.

Results

ConditionTrialsAccuracy
Original model—0%
With weights (output layer frozen)577.5% (31/40 pairs)
Without weights30% (0/24)
Same edit in the wrong coordinates / random direction260 evaluationsall 0
Decoy test, scored against the real target30% (0/24)
Decoy test, scored against the decoy word379% (19/24)
Transformer layers only287.5% (14/16); without weights 0/16

Accuracy is counted per pair. A pair counts as correct only if it is predicted correctly in all 64 held-out contexts; in practice every pair was either fully right or fully wrong. With vs without weights: Fisher's exact test p = 1.6×10⁻¹⁰.

What it changed, and how

Before reading any weights, the 5 independent Opus instances each arrived at the same plan. The model has no positional embedding, and every read of the residual stream goes through a LayerNorm, which ignores vector length. So if embed_in[IN_i] is replaced by a vector with a norm in the thousands, pointing along OUT_i's readout direction in the frozen output layer (ln_final.weight ⊙ unembed[OUT_i]), it drowns out everything the later layers add. The exact direction can only come from reading the weights.

Four heatmaps: the original 8 rows of embed_in, the values Opus wrote, the change, and the readout direction of each OUT_i in the frozen output layer. The change and the readout direction match pixel for pixel.
The 8 edited rows of embed_in in task202. From top to bottom: original values, the values Opus wrote, the change, and the readout direction the change should align with. Rows 3 and 4 match pixel for pixel, with a per-row correlation of 1.00.

Opus computed these values by hand while reasoning. For example, dimension 0 of IN_1 was 0.02689 originally; Opus wrote 241.5, and computing its own stated formula exactly gives 241.51. Of the 1,024 values it calculated in this trial, none was off by more than 1%.

When embeddings were off-limits, it used the layer-0 MLP instead. It picked the 8 least active neurons, set their input weights so that each fires only on its IN_i, and set their output columns to write the OUT_i direction, in effect installing an 8-row lookup table by hand. For comparison, full-parameter fine-tuning changes all 76 tensors.

How we know it was reading the numbers

  • Decoy test: same task, same secret coordinates, same stage-1 plan. The only difference was that the “OUT_i row” we showed it actually belonged to another word. After the edit, the model produced the real target 0% of the time and the swapped-in word 79% of the time.
  • Wrong coordinates break it: the identical edit, applied to the same model in a different but functionally equivalent coordinate system, scores 0.
  • The same dimension, found five times: ln_final.weight in the real model has one unusually small dimension (dimension 96). The 5 instances, each in its own secret coordinates, called it dimension 79, 55, 88, 78 and 88. All five map back to dimension 96.
  • Without the numbers, it says it cannot be done: all 3 instances in the no-weights group argued that which token OUT_i is lives only in the frozen rows they cannot see, so the task is impossible, and they submitted deliberately harmless edits. One of them described what it would do if it could see the numbers, which is exactly what the with-weights group did.

A surprise: with the output layer editable, 100% without reading anything

The first version allowed edits to any parameter. In that setting, Opus without the weights scored 100% twice. It wrote a set of orthogonal codewords of its own design into the input side and the same codewords into the output side. Since it wrote both ends, it never needed the existing values. In other words, fixing the task does not by itself prove the model read the weights. The main experiment therefore freezes the output layer, so that which token OUT_i is exists only in those frozen numbers.

Is this “providing a gradient”?

No. The edit is nearly orthogonal to the network's true local gradient: cosine −0.01 to 0.08, within random noise. It does align with the analytic gradient of the skip path from the embedding straight to the output layer, with a mean cosine of 0.64. Opus did not backpropagate through six layers in its head. It understood the computation, solved one key path in closed form, and filled in the numbers it had read. The result is a large non-local jump: moving just 5% of the way along the edit drops the task loss from about 11 to 0.2–2.8.

Limitations and what to test next

  • The model is tiny (14M), there is a single task type, and each condition has only 2–5 trials.
  • This task lets Opus bypass what the small model has learned and simply hijack the residual stream. It shows that Opus can locate, read and correctly use the relevant numbers. It does not yet test whether Opus can understand functions the model already has.
  • Every missed pair lost to an obscure subword token Opus could not see: it read only 48 of the output matrix's 50,304 rows.
  • After the edit, perplexity on unrelated text rose by 1.3%–19%, more than with well-tuned gradient fine-tuning.

The most important next step is a task that requires understanding existing functions. Examples: find a fact the model already stores and rewrite it, or tell from the weights alone what a particular attention head does. After that come larger models, multi-round reading and editing, and comparisons across models and reasoning-effort levels.

Interpretability · 阶段性结果

前沿模型能“读懂”小模型的权重吗?一次受控实验的阶段性结果

我让 Claude Opus 5.5 只看一个小模型的原始权重数字,不运行任何代码,手写出要改的每一个数,把一个原本 0% 的任务改到了 77.5%。更重要的问题是:它到底是在读数字,还是只是熟悉这个任务?

TL;DR

  • 输出层冻结时,Opus 只读权重数字、手写编辑,5 次独立试验的任务准确率从 0% 提升到平均 77.5%;不给它权重数字时,3 次都是 0%。
  • 改动只落在输入嵌入 embed_in 的 8 行(全部参数的 0.0073%)。禁止改嵌入时,它把第 0 层 MLP 的 8 个神经元改造成了查找表,准确率 87.5%。
  • 测谎组:把给它看的“目标行”偷换成别的词的行,改完的模型就去输出那个诱饵词(79%),真实目标 0%。
  • 它给出的不是梯度:编辑方向与真实梯度几乎正交,而是沿一条它自己推导出的路径一步到位的闭式解。

想回答的问题

“大模型能不能看懂另一个模型的权重”常被讨论,但不好测。就算它把小模型改好了,也可能只是因为熟悉任务、在训练数据里见过这个公开模型的权重,或者想出了一个根本不依赖具体数值的通用技巧。这次实验想在一个足够小、足够可控的设定里,把这些解释逐个排除。

实验设定

  • 小模型:EleutherAI/pythia-14m,d_model 128、6 层、输入和输出嵌入不共享。
  • 任务:随机抽 8 对没有语义关系的英文词(例如 stage→system)。只要最后一个 token 是 IN_i,模型的下一个词就要预测成 OUT_i。原模型的准确率是 0%。
  • 被试:Claude Opus 5.5,没有任何工具,不能运行代码或模型,也得不到任何反馈,只有一次机会。它先自己决定读哪些权重(最多 3 万个数),再在新会话里把要写入的每个数字显式写出来。
  • 去熟悉化:不告诉它模型名,也不给 token 字符串或 id,只给 IN_i / OUT_i 这样的标签。另外,每次试验都对残差流的 128 维和每层 512 个 MLP 神经元做一次秘密置换:模型的输出完全不变,但每个数字的位置都变了,所以背过 Pythia 的权重也没有用。
  • 对照:不给权重数字;把同一份编辑放到错误的坐标系下;在同样的位置换成范数相同的随机方向;测谎(偷换它看到的数字)。

结果

条件试验数准确率
原模型—0%
看权重(输出层冻结)577.5%(31/40 对)
不看权重30%(0/24)
同一编辑放到错误坐标系 / 换成随机方向260 次评测全部 0
测谎:按真实目标评分30%(0/24)
测谎:按诱饵词评分379%(19/24)
只许改 Transformer 内部层287.5%(14/16);不看权重 0/16

准确率按配对计:一个配对在全部 64 个留出上下文上都预测对才算对,实际结果全是“全对或全错”。看权重 vs 不看权重,Fisher 精确检验 p = 1.6×10⁻¹⁰。

它改了哪里、怎么改的

5 个互相独立的 Opus 实例在读权重之前,各自想到了同一个思路:这个模型没有位置嵌入,而每次读残差流都要先经过 LayerNorm,LayerNorm 不关心向量的长度。于是只要把 embed_in[IN_i] 换成一个范数几千、方向对准冻结输出层里 OUT_i 读出方向(ln_final.weight ⊙ unembed[OUT_i])的大向量,就能压过后面所有层的贡献。方向的具体数值只能从权重里读出来。

四行热图:8 行 embed_in 的原始值、Opus 写入的新值、改动量,以及冻结输出层中对应 OUT_i 的读出方向。改动量与读出方向的花纹逐像素一致。
task202 中被改动的 8 行 embed_in,从上到下依次是原值、Opus 写入的值、改动量,以及它应当对准的读出方向。第 3 行和第 4 行的花纹逐像素一致,逐行相关系数为 1.00。

这些数是它在思考过程里手算的。例如 IN_1 的第 0 维,原值 0.02689,Opus 写入 241.5;按它自己声明的公式精确计算是 241.51。这一次试验的 1024 个手算数字里,误差超过 1% 的一个都没有。

禁止改嵌入时,它改用第 0 层 MLP:挑出 8 个最不活跃的神经元,把输入权重设成“只对 IN_i 激活”,输出列设成“写出 OUT_i 方向”,相当于手工装了一张 8 行的查找表。作为对比,全参数梯度微调会改动全部 76 个张量。

怎么确认它真的在读数字

  • 测谎:同一个任务、同一个秘密坐标系、同一份第一阶段计划,唯一的区别是把它看到的“OUT_i 那一行”换成了另一个词的行。改完后,模型 0% 输出真实目标,79% 输出被偷换进来的词。
  • 换坐标系就失效:数字完全相同的编辑,放到函数等价但坐标不同的同一个模型上,准确率为 0。
  • 找到了同一个维度:真实模型 ln_final.weight 里有一个异常小的维度(第 96 维)。5 个实例在各自的秘密坐标系里分别把它叫作第 79、55、88、78、88 维,映射回真实坐标全都是第 96 维。
  • 不给数字,它自己说做不到:不看权重组的 3 个实例都论证了“OUT_i 是谁只存在于冻结的那几行里,看不到就不可能做对”,并提交了刻意无害的编辑。其中一个还写下了“如果能看到这些数字我会怎么改”,写的正是看权重组实际做的事。

一个意外:输出层能改时,不读权重也能 100%

最早的版本允许改任何参数。结果不看权重的 Opus 两次都做到了 100%:它在输入端写一组自己设计的正交码字,再在输出端写同一组码字,两头都由它自己写,根本不需要知道原来的数字。也就是说,“能把任务改好”本身不能证明“读懂了权重”。所以正式实验冻结了输出层,让“OUT_i 是谁”这个信息只存在于那几行冻结的数字里。

这算“提供梯度”吗?

不算。它的编辑与网络真实的局部梯度几乎正交(余弦 −0.01~0.08,在随机噪声范围内)。但它和“嵌入直接到输出层”这条跳连路径的解析梯度对齐,平均余弦 0.64。Opus 并没有在脑子里对 6 层网络做反向传播;它理解了计算结构,对一条关键路径求了闭式解,再用读到的数字手算出来。这是一步非局部的大跳跃:沿这个方向只走 5%,任务损失就从约 11 降到 0.2~2.8。

局限,以及接下来想验证的

  • 模型很小(14M),只有一种任务,每组只做了 2~5 次试验。
  • 这个任务允许 Opus 绕开小模型已经学到的东西,直接“劫持”残差流。它证明了 Opus 能定位、读取并正确使用相关的数字,但还没有检验它能不能理解模型已经学会的功能。
  • 没改对的配对全部输给了它看不到的生僻子词 token:它只读到了输出矩阵 50304 行中的 48 行。
  • 改完后,无关文本上的困惑度上升了 1.3%~19%,比调好参数的梯度微调大。

接下来最想验证的是需要理解现有功能的任务,比如找到模型里已经存储的某个事实并改写它,或者只看权重找出某个注意力头在做什么。其次是更大的模型、允许多轮读写,以及不同模型和推理力度之间的对比。