Forecasting a Coding Agent's Future Scores预测编程 agent 之后的分数
Setup设置
FrontierCS 2 records coding agents that work for hours on research-engineering problems. Each run leaves a sequence of submissions and the scores they received. The dataset drkylj/prophet turns these runs into forecasting tasks: it cuts a run at one moment, gives the predictor everything the agent had seen until then, and asks for the scores of the next submissions. It holds 15,106 tasks from 1,471 scored runs on 48 problems.
FrontierCS 2 记录了编程 agent 在研究工程问题上连续工作数小时的过程。每个 run 留下一串提交和它们得到的分数。数据集 drkylj/prophet 把这些 run 变成预测任务:在某一时刻切开一个 run,把 agent 到那时为止看到的一切交给预测者,让它预测之后几次提交的分数。数据集共有 15,106 个任务,来自 48 个问题上 1,471 个有分数的 run。
The predictor is Claude Code 2.1.335 running on Gemini 4 Carbon. It works in a sandbox whose only network exit is the model endpoint. The context is mounted read-only, and the predictor may read it but may not run the task's code.
预测者是运行在 Gemini 4 Carbon 上的 Claude Code 2.1.335。它在一个沙箱里工作,沙箱唯一的网络出口是模型的接口。上下文以只读方式挂载,预测者可以读,但不能运行任务的代码。
Each target is a score from 0 to 100. A forecast earns max(0, 1 − |error| / 10) on each target, and the task's reward is the mean over its targets. An error of 10 points or more earns nothing.
每个预测目标是 0 到 100 之间的分数。一个预测在每个目标上得到 max(0, 1 − |误差| / 10),任务的 reward 是所有目标上的均值。误差达到 10 分或更多时得 0。
Experiments实验
Answered已有结论Are the released tasks built correctly?发布的任务构建得对吗?
A forecasting task tests forecasting only if its context stops before the answer appears. A task set also weighs each run by the number of tasks cut from it, so a few long runs can dominate the average.
只有当上下文在答案出现之前结束时,预测任务才真正检验预测。任务集还会按每个 run 切出的任务数给它加权,所以少数很长的 run 可能主导平均分。
In the first release, v1, a task is cut at the moment the agent sends a submission. The agent usually benchmarks its code locally just before it submits, so the context often already shows the score of the first target. The predictor in our smoke trial did exactly this: it read the agent's own measured speedups and converted them into a score with the problem's scoring formula. We therefore moved the cut to the moment a score arrives. In this second version, v2, the context ends before the agent writes its next submission.
在第一版 v1 中,任务在 agent 发出一次提交的时刻被切开。agent 通常在提交前先在本地跑一遍基准,所以上下文里往往已经能看到第一个目标的分数。冒烟测试里的预测者正是这样做的:它读到 agent 自己测出的加速比,再用问题的计分公式换算成分数。因此我们把切点移到分数到达的时刻。在第二版 v2 中,上下文在 agent 写下一次提交之前就结束了。
We then audited the released set. We rebuilt every task from its source run with the released code; the 14,075 tasks whose source traces we hold came out byte for byte the same. Their scores, targets, grader and oracle are correct. The audit found three real defects in the builder:
然后我们审计了发布的任务集。我们用发布的代码从来源 run 重建每个任务;我们手上有来源 trace 的 14,075 个任务逐字节一致。它们的分数、预测目标、评分器和 oracle 都是对的。审计在构建程序中发现三个真实的缺陷:
- In 990 tasks, the list of earlier submissions shows a score that the agent had not yet seen at the cut.
- In 371 tasks, the folder of the judged submission holds the files of another submission.
- Submissions that never got a verifier result, or that failed for infrastructure reasons, are scored 0.
- 在 990 个任务中,之前提交的列表显示了一个 agent 在切点时还没看到的分数。
- 在 371 个任务中,被评分的那次提交的文件夹里放的是另一次提交的文件。
- 从未得到评测结果的提交,以及因基础设施故障而失败的提交,都记为 0 分。
The audit also sets the bar. A forecast that copies the last seen score already earns a reward of 0.647 over all 40,931 targets, with a mean absolute error of 10.6 points. A predictor must beat 0.647, not 0. This bar changes a lot from one FrontierCS task to another.
审计也给出了门槛。照抄最近一次已见分数的预测,在全部 40,931 个预测目标上已经得到 0.647 的 reward,平均绝对误差为 10.6 分。预测者要胜过的是 0.647,而不是 0。这个门槛在不同的 FrontierCS 问题之间差别很大。
Answered已有结论What does a cut at score receipt ask?在分数到达时切开,问的是什么?
A v2 task ends its context with the tool result that delivers the score of a train submission. It then asks for every later score of the run: each later train submission that passed verification, and the final submission, which is scored on hidden workloads. Each target is named by its index, its kind and its submit time in minutes after the cut. The task never says whether the final passed, and a failed final scores 0. Failed train submissions are not targets, and runs without a final submission give no tasks.
v2 任务的上下文以送达某次 train 提交分数的那条工具结果结束。然后它要求预测这个 run 之后的每一次分数:之后每一次通过验证的 train 提交,以及最终提交;最终提交在隐藏的工作负载上计分。每个预测目标标出它的序号、类型,以及它在切点之后第几分钟提交。任务从不说明最终提交是否通过,失败的最终提交得 0 分。失败的 train 提交不作为目标,没有最终提交的 run 不产生任务。
The submit times come from after the cut, so a v2 forecast is conditional on the run's schedule of submissions. On problems scored by latency, this schedule carries information. In the first panel the agent submits right after each evaluation ends, so the gap between two submissions grows with the number of denoising steps; the predictor fitted the scoring formula to the seen scores and read each later step count, and so each later score, from the given times.
提交时间来自切点之后,所以 v2 的预测是以这个 run 的提交时间表为条件的预测。在按延迟计分的问题上,这个时间表本身带有信息。在第一个子图中,agent 每次评测一结束就提交,所以两次提交之间的间隔随去噪步数增长;预测者用已见分数拟合出计分公式,再从给定的时间读出之后每次的步数,也就读出了之后每次的分数。
Answered已有结论Are the v2 tasks built correctly?v2 任务构建得对吗?
We built v2 from all 1,535 runs and drew a sample from it: one FrontierCS task per category, 14 in all, every run of each, and three cuts per run. A strict audit of the first build was not clean. Its rules for finding the delivering tool result were too loose: they paired a submission with a score from a neighbouring JSON object, accepted a poll reply about another submission, and matched a repeated earlier score. These errors touched 281 of the 1,172 sampled tasks.
我们用全部 1,535 个 run 构建了 v2,并从中抽样:每个类别一个 FrontierCS 问题,共 14 个,取它的每个 run,每个 run 切三个点。对第一版构建的严格审计没有通过。它寻找送达分数的工具结果的规则太松:会把一次提交和相邻 JSON 对象里的分数配在一起,会接受关于另一次提交的轮询回复,还会匹配到之前重复出现的分数。这些错误影响了 1,172 个抽样任务中的 281 个。
The fixed build accepts a delivery only when the submission's own id and its score sit in the same JSON object. It pairs each submission with its files by the platform's acknowledgement, removes crashes and infrastructure failures, and keeps the head of long transcripts. An independent re-audit then checked every sampled task against its source trace and dropped the tasks it could not confirm. The remaining 1,137 tasks, with 6,914 targets, are public as wchai/prophet-v2.
修复后的构建只在提交自己的 id 和它的分数位于同一个 JSON 对象里时才认定送达。它按平台的确认回执把每次提交和它的文件配对,去掉崩溃和基础设施故障,并保留长 transcript 的开头。随后一次独立的复审把每个抽样任务和它的来源 trace 逐一核对,删去无法确认的任务。剩下的 1,137 个任务、6,914 个预测目标已公开为 wchai/prophet-v2。
Answered已有结论How well does Gemini 4 Carbon forecast the released tasks?Gemini 4 Carbon 对已发布任务预测得多准?
The pilot runs 20 v1 tasks, all from the MLSys subset: seven GPU-systems problems (the k-means, DBSCAN, IVF-PQ and kNN kernels, sparse video attention, vLLM serving and KV compaction). We compare the predictor with the simplest forecast that needs no model: the last score the agent has seen, repeated for every target.
试点运行 20 个 v1 任务,全部来自 MLSys 子集:七个 GPU 系统问题(k-means、DBSCAN、IVF-PQ 和 kNN 的 kernel,稀疏视频注意力,vLLM 服务,KV 压缩)。我们把预测者与一个不需要模型的最简单预测相比:把 agent 最近一次看到的分数用作每个目标的预测。
On these 20 tasks, Gemini 4 Carbon earns a mean reward of 0.57. Copying the last seen score earns 0.39 on the same tasks. This is lower than the 0.647 of the whole set, because copy-last does worse than that on six of the seven MLSys problems. We therefore compare the model only with copy-last on the same tasks.
在这 20 个任务上,Gemini 4 Carbon 的平均 reward 是 0.57。在同样的任务上,照抄最近一次已见分数得到 0.39。这低于整个任务集的 0.647,因为在七个 MLSys 问题中的六个上,照抄上次分数的 reward 都低于这个值。所以我们只把模型与同一批任务上的照抄基线相比。
Paused已暂停How well does Gemini 4 Carbon forecast the v2 tasks?Gemini 4 Carbon 对 v2 任务预测得多准?
The v2 pilot ran 20 tasks that cover all 14 FrontierCS tasks of the sample. The full run then finished 17 tasks, all from the binary fuse filter problem, before we paused it on December 3 until the model's upstream errors are fixed. We again compare the model with the last seen score on the same tasks.
v2 试点运行了 20 个任务,覆盖抽样中的全部 14 个 FrontierCS 问题。之后全量运行完成了 17 个任务,全部来自 binary fuse filter 问题;12 月 3 日我们暂停了全量运行,等待模型上游的错误修复。我们仍然把模型与同一批任务上的最近一次已见分数相比。
Paused已暂停How well does it forecast every later score?它对之后每一次分数预测得多准?
A cut at score receipt lets a task ask for every later score of the run, not only the next three. Error against time after the cut then shows how far ahead the context still helps.
在分数到达时切开,任务就可以要求预测这个 run 之后的每一次分数,而不只是接下来三次。误差随切点之后时间的变化,能说明上下文能帮助预测到多远。
Paused已暂停What does the full run cost?全量运行要花多少?
Every model call goes through one shared key, which allows 60 calls per minute for all its users together. The time of the full run therefore depends on the calls per task. The v2 tasks need about 23 calls each, so the 1,137 tasks need about 26,000 calls. Our runs take only the capacity that other users leave on the key, about 3 to 10 calls per minute, so the full run needs about 2 to 6 days.
所有模型调用都经过同一个共享的 key,它对全部使用者合计每分钟只允许 60 次调用。所以全量运行的时间取决于每个任务的调用次数。每个 v2 任务大约需要 23 次调用,1,137 个任务共需约 26,000 次。我们的运行只使用其他使用者在这个 key 上剩下的容量,大约每分钟 3 到 10 次,所以全量运行需要约 2 到 6 天。
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{chai2026forecastscores,
title = {Forecasting a Coding Agent's Future Scores},
author = {Chai, Wenhao},
year = {2026},
howpublished = {Blog post},
url = {https://wenhaochai.com/exps/forecast-scores.html}
}