OneRec-V2 的量化推理
Quantized Inference for OneRec-V2
AI总结:
OneRec-V2通过FP8后训练量化技术实现推理延迟降低49%和吞吐量提升92%。
摘要:
量化推理在大型语言模型中已显示出显著的系统级优势,同时保持了模型质量。然而,在工业环境中可靠地应用低精度量化到推荐系统仍然具有挑战性。这种困难源于训练范式、架构模式和计算特性之间的差异,导致权重和激活值的数值行为不同。传统推荐模型通常表现出高幅度和高方差的权重和激活值,使其更容易受到量化引起的扰动影响。此外,推荐工作负载经常受到硬件利用率有限的限制,限制了低精度计算的实用增益。在本工作中,我们重新审视生成推荐中的低精度推理。通过经验分布分析,我们显示OneRec-V2的权重和激活值统计显著更受控,并更接近大型语言模型的统计特性。此外,OneRec-V2表现出更计算密集的推理模式,具有显著更高的硬件利用率,从而在低精度计算中实现更多的端到端吞吐量增益。利用这一特性,我们开发了一个FP8后训练量化框架,并将其集成到优化的推理基础设施中。所提出的联合优化实现了端到端推理延迟减少49%和吞吐量增加92%。广泛的在线A/B测试进一步证实,FP8推理在核心指标上没有降级。这些结果表明,随着推荐系统向大型语言模型范式演进,LLM领域中建立的算法级和系统级优化技术可以有效适应大规模推荐工作负载。
英文摘要:
Quantized inference has demonstrated substantial system-level benefits in large language models while preserving model quality. In contrast, reliably applying low-precision quantization to recommender systems remains challenging in industrial settings. This difficulty arises from differences in training paradigms, architectural patterns, and computational characteristics, which lead to distinct numerical behaviors in weights and activations. Traditional recommender models often exhibit high-magnitude and high-variance weights and activations, making them more sensitive to quantization-induced perturbations. In addition, recommendation workloads frequently suffer from limited hardware utilization, limiting the practical gains of low-precision computation. In this work, we revisit low-precision inference in the context of generative recommendation. Through empirical distribution analysis, we show that the weight and activation statistics of OneRec-V2 are significantly more controlled and closer to those of large language models than traditional recommendation models. Moreover, OneRec-V2 exhibits a more compute-intensive inference pattern with substantially higher hardware utilization, enabling more end-to-end throughput gains with low-precision computation. Leveraging this property, we develop a FP8 post training quantization framework and integrate it into an optimized inference infrastructure. The proposed joint optimization achieves a 49\% reduction in end-to-end inference latency and a 92\% increase in throughput. Extensive online A/B testing further confirms that FP8 inference introduces no degradation in core metrics. These results suggest that as recommender systems evolve toward the paradigms of large language models, algorithm-level and system-level optimization techniques established in the LLM domain can be effectively adapted to large-scale recommendation workloads.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。