候选生成策略如何影响 LLM 测试时扩展的能耗与性能

HuggingFace Daily Papers(社区热门论文)·2026-09-16 08:00·2天前
AI 导读

在 Phi-3-mini 和 Qwen2.5-1.5B 上,将候选数 N 从 1 增至 8 分别提升 GSM8K 准确率 8.4 和 18.4 个百分点,但候选数无法反映执行方式。

HuggingFace Daily Papers(社区热门论文)
40AI 编辑部评分,满分 100

候选生成策略如何影响 LLM 测试时扩展的能耗与性能

2026-09-16 08:00· 2天前
AI 导读

在 Phi-3-mini 和 Qwen2.5-1.5B 上,将候选数 N 从 1 增至 8 分别提升 GSM8K 准确率 8.4 和 18.4 个百分点,但候选数无法反映执行方式。

Test-time scaling can improve large language model reasoning by generating and combining multiple candidate responses. In sampling-based methods, the inference budget is often described by the number of generated candidates, N. However, N tells us how many candidates are generated, not how they are executed. The same candidate budget can be produced in one batched generation call or split across several sequential calls with smaller batch sizes. We first study the effect of increasing N on reasoning accuracy using Phi-3-mini and Qwen2.5-1.5B on 500 GSM8K prompts.

As expected, increasing N from 1 to 8 improves accuracy by 8.4 percentage points for Phi-3-mini and 18.4 points for Qwen2.5-1.5B. However, accuracy alone does not show the systems cost of using a larger candidate budget. We therefore fix N = 8 and compare four generation schedules: 1x8, 2x4, 4x2, and 8x1, where axb denotes a generation calls with b candidates per call. We measure latency, throughput, GPU-hours, and gross GPU-device energy while keeping the total candidate count fixed. On A100 GPUs, eight serial calls use 4.64-4.86x as much gross GPU-device energy and have 5.77-6.12x the P95 latency of one batched call with eight candidates.

The same pattern appears across three independently scheduled A100 nodes per model and in short-output SciQ/V100 experiments. These results show that candidate count alone is not enough to describe the systems cost of multi-candidate test-time scaling. When candidates are independent and memory allows it, fewer generation calls with larger batch sizes are more efficient. Evaluations should therefore report not only candidate count and accuracy, but also generation schedule and GPU-level systems metrics.

来源:HuggingFace Daily Papers(社区热门论文)· arxiv.org