自适应截断采样提升长文本推理稳定性与准确性
Adaptive Nucleus Truncation for Long-Form Reasoning
- 根据熵动态调整采样范围,实现生成过程的自适应控制
- 在32K生成长度下,数学推理任务性能提升7点以上
- 适合长序列生成、高精度推理场景的模型优化
采样在长文本语言模型推理中至关重要。数千次解码步骤中,候选词集的微小变化会累积成不同的推理路径、稳定性和最终答案。现有截断方法如top-$p$、min-$p$和固定top-$nσ$采样虽优于无限制采样,但依赖固定阈值,无法适应熵变、任务难度、训练阶段或生成预算的变化。本文提出自适应核截断采样(ANTS),将top-$nσ$采样从固定规则升级为长序列生成的自适应滚动控制机制。ANTS在温度缩放前对最大对数概率周围的标准邻域进行选择,使用熵条件控制器动态调整截断宽度,并保留无截断回退策略以在截断不安全时稳定训练。在330亿参数/40亿活跃参数的稀疏专家混合模型上,相较于基于百分比的基准,ANTS在8K、16K、32K生成预算下分别提升+1.9、+3.8、+5.2分。最强增益出现在指令遵循和数学推理任务中,IFBench在32K下提升超10分,AIME 2025提升7分。代码生成显示显著预算交互效应:在Codeforces上,ANTS在8K时落后基线,但在16K和32K时反超并显著提升ELO评分。结果表明,采样器设计应被视为稳定和扩展长预算推理的核心机制。
原文摘要 · Abstract (English)
Sampling plays an important role in long-form language-model reasoning. Over thousands of decoding steps, small changes in the candidate token set can compound into different reasoning trajectories, stability profiles, and final answers. Existing truncation methods such as top-$p$, min-$p$, and fixed top-$nσ$ sampling improve over unrestricted sampling, but they rely on fixed thresholds that cannot adapt to changes in entropy, task difficulty, training stage, or generation budget. We introduce Adaptive Nucleus Truncation Sampling (ANTS), which extends top-\(nσ\) sampling from a fixed decoding rule into an adaptive rollout-control mechanism for long-form generation. ANTS selects standardized neighborhoods around the maximum logit before temperature scaling, adapts the truncation width using an entropy-conditioned controller, and retains a no-truncation fallback arm to stabilize training when truncation becomes unsafe. On a 33B-total / 4B-active sparse Mixture-of-Experts reasoning model, ANTS improves average performance over percentage-based benchmarks by +1.9, +3.8, and +5.2 points at 8K, 16K, and 32K generation budgets, respectively. The strongest gains appear on instruction following and mathematical reasoning, with IFBench improving by more than 10 points at 32K and AIME 2025 improving by 7 points. Code generation reveals an important budget interaction. On Codeforces, ANTS trails the baseline at 8K, but reverses this gap and substantially improves ELO at 16K and 32K. These results suggest that sampler design should be treated not just as a decoding hyperparameter, but as part of how we stabilize and scale long-budget reasoning.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。