Experiments›Pushing the Accuracy-Compute Frontier of a Base Model推进基座模型的准确率-算力前沿
Nov 28, 2026

Pushing the Accuracy-Compute Frontier of a Base Model推进基座模型的准确率-算力前沿

By Wenhao Chai作者 Wenhao Chai

Setup设置

Karan and Du's Reasoning with Sampling shows that a base model sampled toward a sharpened version of its own distribution comes close to one trained with reinforcement learning, at about nine times the tokens of a single sample. We ask which sampling algorithm gets the most accuracy out of each forward token of a base model, and pose that question as a task for coding agents on Marin's Snowball-67B-A2B base, a pretrained mixture-of-experts model with 67B parameters and about 2B active per token. An agent submits a patch to the Python files of Marin's vLLM together with a solve() entry point, and a judge runs the submission end to end on eight H100s while it meters every token position the model's forward pass processes. The submission chooses its own compute. The score is its accuracy minus the accuracy of a baseline frontier at the same forward tokens: the best that majority voting over 1 to 16 samples, each cut at some length, reaches at that cost. One sample per problem, the starter, lies on the frontier and scores about zero. The final set is 100 hidden level-3 problems from MathArena's smallmath; agents develop on 692 other problems. Code

Karan 和 Du 的 Reasoning with Sampling 表明:让基座模型朝自身分布的锐化版本采样,推理能力可以接近强化学习训练过的模型,代价是约九倍于单个样本的 token。我们想知道哪种采样算法能从基座模型的每个前向 token 里换出最多的准确率,于是把这个问题做成编码 agent 的任务,模型是 Marin 的 Snowball-67B-A2B base:只做过预训练的混合专家模型,共 67B 参数,每个 token 约激活 2B。agent 提交一份针对 Marin vLLM Python 文件的补丁和一个 solve() 入口;评测程序在 8 张 H100 上端到端运行这份提交,同时计量模型前向处理的每个 token 位置。算力用多少由提交自己决定。得分是它的准确率减去基线前沿在同样前向 token 下的准确率;基线前沿是对 1 到 16 个样本做多数投票、每个样本按某个长度截断时,在各个 token 用量下能达到的最好准确率。每题一个样本的 starter 正好落在前沿上,得分约为 0。final 集是 100 道隐藏题,来自 MathArena smallmath 第 3 级;agent 用另外 692 道题开发。代码

8 GPUs · done8 卡 · 完成Measure测量Snowball baseSnowball base2,199 problems × 82,199 道题 × 8Pass rate 0.297通过率 0.29711Pumpkin · nextPumpkin · 下一步AgentAgentWrites a vLLM patch写 vLLM 补丁and task/solve.py和 task/solve.pyReads logits and可读 logitshidden states和隐状态Small heads ≤ 16 MiB小头 ≤ 16 MiB55Final setFinal 集100 problems, smallmath L3100 道题,smallmath 第 3 级Never seen by the agentagent 从未见过Dev setDev 集Lite 32, full 692lite 32 道,完整 692 道Visible to the agentagent 可见8 GPUs · ref run: images8 卡 · 参考运行:建镜像Train judge训练评测Runs solve() once运行一次 solve()Meter counts计量器统计forward tokens前向 tokenScore = accuracy得分 = 准确率− frontier there− 同 token 下的前沿33Run once只运行一次Final judge最终评测Runs solve() on final set在 final 集上运行 solve()Score = accuracy得分 = 准确率− frontier there− 同 token 下的前沿668 GPUs · done8 卡 · 完成Frontier基线前沿16 samples per problem每题 16 个样本Majority vote, length cut多数投票 + 长度截断Best accuracy per token各 token 下的最好准确率448 GPUs · done8 卡 · 完成Counter计数器Forward tokens, inside在 CUDA graph 内CUDA graphs计前向 tokenDraft heads free草稿头不计22split by pass rate按通过率切分submission提交score得分final最终submission提交frontier前沿meter计量
The task and its status任务流程与进度

Numbers give the order of the steps and grey names give where each step runs and how far it is; orange is the agent's path.编号是各步的先后顺序,灰色小字是每一步在哪里运行、进行到哪一步;橙色是 agent 的路径。

Details详细说明

Snowball-67B-A2B is Marin's pretrained mixture-of-experts model: 26 layers, 256 experts with four active per token, about 2B active parameters, exported at step 157,000 with a 262,144-token context. It needs all eight H100s as one engine, data parallelism 8 with expert parallelism, because its five KV heads do not split across GPUs; Marin's vLLM GPU release serves it. The task first used Inkling 2 Mini and then Qwen3.5-4B-Base. Inkling has no base release, and the Qwen3.5 base writes long reasoning traces learned in mid-training, so the task moved to Snowball. A submission may change any Python file of the pinned vLLM tree, including the scheduler, the sampler and the model runner, and may read logits and the hidden states of any layer; the CUDA extensions come from the pinned wheel and the weights are read-only. The patch may add small trained heads, up to 16 MiB in all; no other model, no network and no verifier. The meter counts prefill positions not served from the prefix cache, decode positions and the positions that verify drafted tokens; engine start-up and the dummy steps of an idle rank do not count.

Snowball-67B-A2B 是 Marin 只做过预训练的混合专家模型:26 层,256 个专家,每个 token 激活 4 个,约 2B 激活参数;导出的是第 157,000 步,上下文 262,144 个 token。它要把 8 张 H100 当作一个引擎来用:数据并行 8 加专家并行,因为它的 5 个 KV 头不能拆到多张卡上;由 Marin 的 vLLM GPU 版本运行。任务先用过 Inkling 2 Mini,后来用过 Qwen3.5-4B-Base。Inkling 没有发布基座版本,Qwen3.5 的基座在中期训练里学会了写很长的推理过程,所以任务换成了 Snowball。提交可以修改固定版本 vLLM 源码树中的任何 Python 文件,包括调度器、采样器和模型运行器,也可以读取 logits 和任意层的隐状态;CUDA 扩展来自固定版本的 wheel,模型权重只读。补丁可以加入训练过的小头,总大小不超过 16 MiB;不能用其他模型,不能联网,也不能用验证器。计量器计入没有命中前缀缓存的预填充位置、解码位置和验证草稿 token 的位置;引擎启动和空闲 rank 的假步不计入。

Experiments实验

Answered已有结论Which problems are still hard for Snowball base?哪些题对 Snowball base 仍然难?

Research-level sets and smallmath from level 4 up, where under 4% of samples are correct; MATH500 passes at 0.74 and smallmath level 3 at 0.29.

研究级题集和 smallmath 第 4 级及以上,答对的样本不到 4%;MATH500 的通过率是 0.74,smallmath 第 3 级是 0.29。

We drew eight samples, at temperature 1.0 and up to 4,096 tokens each, for 2,199 problems: the 1,699 integer-answer problems of the pool (every final-answer set of MathArena, older AIME, BeyondAIME and the hardest of Omni-MATH) and MATH500. A zero-shot Problem/Solution prompt scored 0.469 on a 64-problem test, against 0.426 for four-shot Minerva and 0.125 for the paper's prompt, under which 30% of samples ended at once, so every run uses it. Only 0.5% of samples reach the cap. The final set is smallmath level 3 (pass rate 0.289; 65 of its 100 problems between 0.1 and 0.9); dev holds every other problem with a pass rate between 0.05 and 0.95 (692 problems, 0.477), and dev lite 32 of them (0.438).

我们对 2,199 道题各抽 8 个样本,温度 1.0,每个最多 4,096 个 token:题池里 1,699 道整数答案题(MathArena 的全部最终答案题集、较早的 AIME、BeyondAIME 和 Omni-MATH 中最难的部分)加上 MATH500。在 64 道题的测试里,零样本 Problem/Solution 提示得 0.469,四样本 Minerva 提示得 0.426,论文的提示只得 0.125,而且 30% 的样本一开始就结束了,所以所有运行都用 Problem/Solution 提示。只有 0.5% 的样本写满上限。final 集是 smallmath 第 3 级(通过率 0.289;100 道题中 65 道在 0.1 到 0.9 之间);dev 集是其余所有通过率在 0.05 到 0.95 之间的题(692 道,0.477),dev lite 是其中 32 道(0.438)。

Answered已有结论Does an in-graph token count match what the model processes?在 CUDA graph 内计数,计到的是模型真正处理的 token 吗?

Yes: the count is the same with CUDA graphs and in eager mode, and every counted token is a position the model computes.

是的:CUDA graph 和 eager 模式下计数一致,计到的每个 token 都是模型真正计算过的位置。

vLLM replays the forward pass as CUDA graphs, so Python code in the model does not run at every step. The meter therefore adds each step's token count on the GPU inside the captured graph. We ran 16 problems with 1, 2, 4 and 8 samples each, in both modes, and compared the count with the prompt and output tokens. On Snowball, which runs as eight data-parallel ranks, the meter counts 0.6% to 1.5% above the engine's prompt-once plus generated tokens on every rank, the same overhead. Engine start-up counted 72,982 tokens per rank, set by engine settings rather than by work on the problems, so the judge now pauses the meter during memory profiling, warm-up, graph capture and the dummy steps of an idle rank; with the pause, the judge's meter counts 0.9% above the engine (177,159 against 175,621 tokens).

vLLM 以 CUDA graph 重放前向,模型里的 Python 代码不会每一步都执行。因此计量器在捕获的 graph 内、在 GPU 上累加每一步的 token 数。我们用 16 道题,每题抽 1、2、4、8 个样本,在两种模式下运行,并把计数与提示和输出的 token 数对比。 在 Snowball 上(8 个数据并行 rank),计量器在每个 rank 上都比引擎报告的「提示一次 + 生成」多 0.6% 到 1.5%,是同样的开销。引擎启动每个 rank 计入 72,982 个 token,这个数由引擎设置决定,和解题的工作无关,所以评测现在在内存探测、预热、graph 捕获和空闲 rank 的假步期间暂停计量;暂停后,评测的计量器比引擎多 0.9%(177,159 对 175,621 个 token)。

Answered已有结论What does majority voting reach at each token cost?多数投票在各个 token 用量下能达到多少?

About 30 points more than one sample: on the final set it rises from 0.261 at 120k tokens to 0.571 at 1.77M, with 16 samples each cut at 3,072 tokens.

比单个样本高约 30 个百分点:在 final 集上,从 12 万 token 时的 0.261 升到 177 万 token 时的 0.571,即 16 个样本、每个截断在 3,072 个 token。

We drew 16 samples per problem, up to 8,192 tokens each, for all 2,199 problems. For each k from 1 to 16 and each length cut L from 256 to 8,192 tokens, majority voting over the k samples that finish within L gives an expected accuracy and an expected token cost, averaged over random subsets of the 16; the cost counts the prompt once, since the prefix cache serves it to the other samples. The frontier is the best accuracy at each cost, and the judge stops a run at its last point, 12 to 15 times the starter's tokens.

我们对全部 2,199 道题每题抽 16 个样本,每个最多 8,192 个 token。对 1 到 16 的每个 k、256 到 8,192 的每个截断长度 L,在 L 之内写完的 k 个样本上做多数投票,得到期望准确率和期望 token 用量,期望取自 16 个样本的随机子集;用量里提示只算一次,因为前缀缓存把它供给其余样本。前沿是每个用量下的最好准确率;评测在前沿的最后一点停止运行,约为 starter 用量的 12 到 15 倍。

Details详细说明

The Inkling 2 Mini runs of the task's first version (M0 w5518, the counter w5522, the calibrations w5642 and w5658) and the Qwen3.5-4B-Base measurement (w5723) stay in the record below.

任务第一版在 Inkling 2 Mini 上的运行(M0 w5518、计数器 w5522、校准 w5642 和 w5658)以及 Qwen3.5-4B-Base 的测量(w5723)保留在下面的记录里。

Testing检验中Can a sampler beat the majority-voting frontier at equal compute?同样的算力下,采样算法能超过多数投票的前沿吗?

Reference solutions go through the judge next: the starter, then power sampling. Agents then search for better algorithms. The first end-to-end reference run on Snowball is building its images.

接下来参考解法走一遍评测:先是 starter,然后是 power sampling。之后由 agent 寻找更好的算法。Snowball 上第一次端到端的参考运行正在构建镜像。

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{chai2026llmsampling,
  title        = {Pushing the Accuracy-Compute Frontier of a Base Model},
  author       = {Chai, Wenhao},
  year         = {2026},
  howpublished = {Blog post},
  url          = {https://wenhaochai.com/exps/llm-sampling.html}
}
Experiments Back to top回到顶部