arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.13233cs.LGcs.AI
收藏

ReSET: 通过步骤感知温度缩放实现精确的延迟关键型NVFP4推理

ReSET: Accurate Latency-Critical NVFP4 Reasoning via Step-Aware Temperature Scaling

Hanyang University(汉阳大学);Xenoscube Korean Inc.(Xenoscube韩国公司)

Sihwa Lee, Janghwan Lee, Donghoon Yoo, Jae Gon Kim, Hanyul Ryu, Soojung Ryu, Jungwook Choi

AI总结:

针对大型推理模型在NVFP4低精度推理中精度下降和延迟问题,提出基于推理步骤熵的温度缩放方法ReSET,并设计CUDA小M核,在多个基准上提升精度约2点,解码速度提升2倍。

摘要:

大型推理模型(LRMs)通过生成长中间推理轨迹来改进复杂问题求解,但这大幅增加了推理成本。NVFP4推理通过硬件支持的低精度执行提供了一种减少计算和内存成本的有前景方法。然而,直接将NVFP4应用于LRMs引入了两个实际限制:量化下推理精度下降,且现有NVFP4核在小型批处理自回归解码中未完全实现延迟优势。在这项工作中,我们分析了NVFP4量化对推理过程中token级不确定性的影响。我们表明,量化增加了低熵符号token的错误采样,同时导致在高不确定性推理步骤中过度集中于少量token。基于这一观察,我们提出了\textbf{ReSET},一种基于推理步骤熵的温度缩放方法,它在线估计步骤级不确定性,并使用token级和步骤级熵信号自适应调整解码温度。为解决延迟差距,我们进一步设计了一个CUDA核心的小型$M$ NVFP4核,用于延迟关键的自回归解码。在推理基准和模型规模上,ReSET将NVFP4推理精度相比NVFP4基线提升高达$\sim\!$2个点。我们的CUDA核心小型$M$核进一步改善了延迟关键解码,相比NVFP4 vLLM提供高达$2.5\!\times$的核级加速,相比BF16提供约$2\!\times$的端到端解码加速。代码可在该https URL获取。

英文摘要:

Large reasoning models (LRMs) improve complex problem-solving by generating long intermediate reasoning traces, but this substantially increases inference costs. NVFP4 inference offers a promising approach to reduce both computational and memory costs through hardware-supported low-precision execution. However, directly applying NVFP4 to LRMs introduces two practical limitations: reasoning accuracy degrades under quantization, and existing NVFP4 kernels do not fully realize latency benefits in small-batch autoregressive decoding. In this work, we analyze the effect of NVFP4 quantization on token-level uncertainty during reasoning. We show that quantization increases incorrect sampling at low-entropy symbolic tokens, while causing over-concentration on a small set of tokens in high-uncertainty reasoning steps. Based on this observation, we propose \textbf{ReSET}, a reasoning-step entropy-based temperature-scaling method that estimates step-level uncertainty online and adapts the decoding temperature using both token-level and step-level entropy signals. To address the latency gap, we further design a CUDA-core small-$M$ NVFP4 kernel for latency-critical autoregressive decoding. Across reasoning benchmarks and model scales, ReSET improves NVFP4 reasoning accuracy by up to $\sim\!$2 points over the NVFP4 baseline. Our CUDA-core small-$M$ kernel further improves latency-critical decoding, delivering up to $2.5\!\times$ kernel-level speedup over NVFP4 vLLM and approximately $2\!\times$ end-to-end decoding speedup over BF16. Code is available at https://github.com/aiha-lab/ReSET.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑