返回列表
论文卡
compute-optimal revisions/search 的 scaling curves 与相对 14 倍大模型的 FLOPs-matched 条形图。
自适应策略的收益强烈依赖题目难度、budget 和 inference/pretraining load;简单题更能用 test-time compute 换取性能。 原文图源 ↗

论文详情

Scaling LLM Test-Time Compute Optimally can be More Effective than Scaling Model Parameters

按题目自适应扩展测试时计算可优于扩展模型参数

Charlie Snell、Jaehoon Lee、Kelvin Xu、Aviral Kumar · 预印本 · arXiv:2408.03314 · 论文原文 ↗

固定 inference budget 不应对每道题用同一策略:easy questions 可能只需 best-of-\(N\),中等题可受益于 sequential revision 或 verifier search,超出 base model 能力的 hardest questions 则可能怎么搜都无效。论文问:能否以 model-relative difficulty 为近似 sufficient statistic,为每题选择 compute allocation,使 test-time scaling 比统一 best-of-\(N\) 更高效?

正式评级:未评级

研究问题

  • 固定 inference budget 不应对每道题用同一策略:easy questions 可能只需 best-of-\(N\),中等题可受益于 sequential revision 或 verifier search,超出 base model 能力的 hardest questions 则可能怎么搜都无效。论文问:能否以 model-relative difficulty 为近似 sufficient statistic,为每题选择 compute allocation,使 test-time scaling 比统一 best-of-\(N\) 更高效?

背景

  • 研究分两类机制:改变 proposal distribution 的 sequential self-revision,以及保持 proposal model、用 PRM 在 best-of-\(N\)、beam search、lookahead search 中选择。难度按 base model 从 2048 samples 估计的 pass@1 分成五个 quantiles;部署近似则用 verifier predicted score 代替 ground truth。
  • compute-optimal policy 不是新网络,而是在给定 budget \(N\) 和 difficulty bin 下,经 two-fold cross-validation 选择表现最好的 test-time hyperparameters/strategy。

模型与方法

  • revision model 逐次读取先前答案并生成修订;PRM 为每个 reasoning step 打分。作者比较 parallel samples、sequential revisions 及其混合比例,并比较 best-of-\(N\)、beam 与 lookahead search。
  • FLOPs exchange 用 pretraining \(X\approx6P D_{\rm pre}\)、inference \(Y\approx2P D_{\rm inf}\) 估算。把参数放大 \(M\) 倍与给小模型增加 inference tokens 做总 FLOPs matching,并显式考察 \(R=D_{\rm inf}/D_{\rm pre}\) 的不同负载。

核心结果与证据

  • Figure 1 汇总主结果:按 difficulty 自适应选择 revision/search policy 后,曲线相对 uniform/parallel baselines 上移;revision 设置可用约 4× 更少 test-time compute 超过 best-of-\(N\),PRM search 在低/中 budget 也接近相同量级的节省。
  • 顺序修订的 pass@1 随 revision steps 持续提高,甚至超过训练时的 4 steps;但高 budget 下纯 sequential 并非总是最优,parallel–sequential 存在随难度与 budget 变化的最佳比例。beam search 低 budget 较好,随后收益饱和,lookahead 的额外展开并未在等 compute 下获益。
  • 与约 14× 参数模型做 FLOPs matching 时,小模型+test-time compute 只在 easy/intermediate bins 或低 inference load \(R\ll1\) 下常占优;hardest bins 与 \(R\gg1\) 时,更多 pretraining 更有效。标题结论因此是条件性的,不是统一替代参数 scaling。
Figure 1 · compute-optimal gains集中在 base model 已有非平凡成功率的 prompts。 物理解读:The result is conditional on MATH, the studied models, difficulty estimator, and serving-load ratio. 来源:paper.pdf \(p\). 2, Figure 1

有效性与局限

  • oracle difficulty 用 2048 samples 和 ground-truth correctness,部署不可直接获得;model-predicted difficulty 仍需额外 inference,论文没有把这一探索成本完整计入主预算。策略又在相同 500-test-question pool 上 two-fold 选择,bin 内样本量有限。
  • 实验只覆盖 MATH、PaLM 2-S*、特定 PRM/revision checkpoints;FLOPs 采用 \(6PD\)/\(2PD\) 近似,忽略 memory、latency、parallel hardware 和 serving reuse。对 base model 几乎从不答对的题,test-time compute 增益很小,因此不能把“14×”理解为普遍模型替代率。

复现与资源

  • 原文:https://arxiv.org/abs/2408.03314。全文 38 页,PDF SHA-256:ded7b20b51493258c5ce2a1a024cd33dd752de1fa3373d1207620da4cfe24545。
  • 复现需固定 PaLM 2-S*/PRM/revision checkpoints、MATH split、2048-sample difficulty estimation、five-bin boundaries、two-fold policy selection、generation token accounting、search branching、verifier aggregation 与 \(R\) scenarios。
  • Evidence status: full-text verified; no independent reproduction performed.

阅读指南

  • 先看 Figure 1,但把左侧 2–4× efficiency 与右侧 14× FLOPs-matched 条件分开。再读 Eq. (1) 的 per-prompt optimal policy 和 difficulty construction;随后比较 Figures 3、6–8 的 search/revision regimes,最后读 Figure 9,确认 pretraining 与 inference compute 不是一比一可交换。

Discussion

评论与讨论

在 GitHub 查看

评论公开保存在 GitHub Discussions;阅读无需登录,发表评论需要 GitHub 账号。