Experiments›Perplexity is intelligence (on what?)困惑度就是智能(在什么上?)
Nov 21, 2026

Perplexity is intelligence (on what?)困惑度就是智能(在什么上?)

By Wenhao Chai作者 Wenhao Chai
[Cover animation: the page's main figure drawn in motion, once its runs finish]【封面动画:主图的 run 跑完后,把主图动态画出来】

Setup设置

We score terminal-agent trajectories with each language model and ask which tokens' losses rank the models as Terminal-Bench 2.1 does. The probe holds 1,446 multi-turn trajectories from Terminal-Wrench and Terminal-Lego, rendered in each model's own chat template in the Terminus-2 format, and each model scores every token once with vLLM. The targets are Artificial Analysis's Terminal-Bench 2.1 scores of instruct models with reasoning on and off; 25 models of 2–14B and 59–128B parameters serve research, and the 15 models of 21–37B stay held out until the final rules are fixed. Coding agents search for rules on the research models alone, and a judge measures each final rule once on the held-out models by Spearman ρ against both scores and by the share of probe bytes the rule reads, beside plain perplexity and active parameters.

我们用每个语言模型给终端 agent 的轨迹打分,再问:哪些 token 的 loss 给模型排出的名次和 Terminal-Bench 2.1 一致?探针有 1,446 条多轮轨迹,来自 Terminal-Wrench 和 Terminal-Lego,按 Terminus-2 格式套进每个模型自己的对话模板,每个模型用 vLLM 给每个 token 打一次分。目标是 Artificial Analysis 测的 instruct 模型的 Terminal-Bench 2.1 分数,分推理和非推理两种模式;25 个 2–14B 和 59–128B 的模型用于研究,15 个 21–37B 的模型留作 lockbox,最终规则定下之前不碰。编码 agent 只在研究模型上找规则;judge 在 lockbox 上把每条最终规则只测一次:和两种分数的 Spearman ρ,以及规则读了探针字节的多少,并和普通困惑度、激活参数量比较。

Details详细说明

A rule is a program that names the bytes it reads and turns each model's per-token bits on them into one number. Three runs of a Carbon coding agent searched for rules with the same budget, and each submitted at most four programs. During the search an agent could measure its programs on the research models and score new passes on them; the held-out models' losses were never shown. The judge's share is the bytes a program keeps over the bytes of the rendered probe, averaged over the models. Flint, a reference language model, scores the probe twice, with and without the terminal output, and the difference is its observation gain at each token. The three final judges hit a harness bug that the fixed code avoids, so each final submission was measured again, unchanged, with the fixed code. Only nine of the fifteen held-out models have a non-reasoning score.

一条规则是一个程序:它指定要读哪些字节,再把每个模型在这些字节上的逐 token bits 变成一个数。Carbon 编码 agent 跑了三次搜索,预算相同,每次最多提交四个程序。搜索时 agent 可以在研究模型上测自己的程序,也可以在研究模型上打新的分;lockbox 模型的 loss 从不给它看。judge 报告的比例是程序保留的字节除以渲染后探针的字节,再对模型取平均。参考模型 Flint 给探针打两次分,一次有终端输出,一次没有,两者之差就是每个 token 上的观察增益。三次最终 judge 都碰到了 judge 程序的一个 bug,修好后的代码不会出这个问题,所以每个最终提交都原样用修好的代码重测了一次。15 个 lockbox 模型里只有 9 个有非推理分数。

Experiments实验

Answered已有结论Which part of an agent's trajectory predicts Terminal-Bench?智能体轨迹的哪一部分能预测 Terminal-Bench?

The agent's own commands: the loss on action tokens ranks the research models with Terminal-Bench, while plain perplexity ranks them backwards.

是 agent 自己输入的命令:action token 上的 loss 给研究模型排出的名次和 Terminal-Bench 一致,而普通困惑度排出的名次是反的。

Every byte of a trajectory belongs to one part: the task, the agent's thought, its action (the command it types), the terminal output, or the chat template's markup. We average each model's loss over each part.

轨迹的每个字节都属于一个部分:任务、agent 的思考、它的动作(它输入的命令)、终端输出,或者对话模板的格式标记。我们在每个部分上对每个模型的 loss 取平均。

Answered已有结论Do token rules that agents find on research models hold on unseen models?agent 在研究模型上找到的 token 规则,在没见过的模型上还成立吗?

Yes on reasoning scores: all twelve final programs beat plain perplexity and active parameters on the fifteen held-out models, and random action tokens at the same budget fall well short.

在推理分数上成立:12 个最终程序在 15 个 lockbox 模型上都超过普通困惑度和激活参数量,同样预算下的随机 action token 差得多。

Three agent runs each submitted four programs. A pre-registered baseline, fixed before any held-out number was read, draws action tokens at random after the first terminal output at the two budgets of the cheapest programs, with twenty seeds each.

三次 agent 运行各提交了四个程序。一条预注册的基线在读任何 lockbox 数字之前就固定下来:在第一次终端输出之后随机抽 action token,预算取最便宜的程序的两档,每档 20 个种子。

Answered已有结论What do the agents' rules measure?agent 的规则测的是什么?

Mostly the loss on the agent's commands: on the research models random action tokens carry most of the signal, Flint's observation gain adds a little, and the signal survives without the terminal output.

主要是 agent 命令上的 loss:在研究模型上,随机 action token 已经有大部分信号,Flint 的观察增益只多一点,而且没有终端输出时信号还在。

All four programs on the frontier read action tokens after the first terminal output and keep those that a reference model, Flint, predicts far better once it has read that output: its observation gain. We test that property on the research models alone, with random sets of about 0.02% of the tokens.

前沿上的四个程序都读第一次终端输出之后的 action token,并且只留下参考模型 Flint 读了终端输出之后才能猜准的那些,也就是观察增益高的 token。我们只在研究模型上检验这个性质,每次随机取约 0.02% 的 token。

Testing检验中Does the choice of tokens matter more inside a size band?在同一个尺寸档里,挑哪些 token 更重要吗?

On the held-out models, which share one size band, random action tokens fall far behind the agents' programs. The research models form two size bands, so we compare the same programs and the same random baseline inside each band; the programs were fitted to these models.

lockbox 模型都在同一个尺寸档里,在那里随机 action token 远不如 agent 的程序。研究模型分成两个尺寸档,所以我们在每一档里比较同样的程序和同样的随机基线;这些程序本来就是在这些模型上调出来的。

Answered已有结论Does run-to-run noise in scoring change the ranks?打分的重跑噪声会改变排名吗?

No: two runs of a mixture-of-experts pass differ on most tokens, but the model ranks from as few as 0.01% of the tokens stay the same.

不会:同一个混合专家模型的 pass 跑两次,大多数 token 的 bits 都不一样,但只用 0.01% 的 token 排出的名次仍然一样。

Agents rescore models while they search, with other batches and other numbers of GPUs, so the same pass can differ between runs. Each research model has two runs of its base pass.

agent 搜索时会给模型重新打分,batch 和 GPU 数都可能不同,所以同一个 pass 两次跑出的结果可能不同。每个研究模型的 base pass 都有两次运行。

Takeaways核心结论

Acknowledgements致谢

The author is pleased to acknowledge that the work reported on in this post was substantially performed using the Princeton Research Computing resources at Princeton University. Princeton Research Computing is a consortium of groups including the Princeton Institute for Computational Science and Engineering (PICSciE) and Research Computing at Princeton University.

本文报告的工作主要使用普林斯顿大学 Princeton Research Computing 的计算资源完成。Princeton Research Computing 是由普林斯顿计算科学与工程研究所(PICSciE)和普林斯顿大学 Research Computing 等团队组成的联合体。

Experiment record实验记录

Citation

@misc{chai2026pretrainppleval,
  title        = {Perplexity is intelligence (on what?)},
  author       = {Chai, Wenhao},
  year         = {2026},
  howpublished = {Blog post},
  url          = {https://wenhaochai.com/exps/pretrain-ppl-eval.html}
}
Experiments Back to top回到顶部