将大模型量化技术适配推荐系统,实现49%延迟降低
Quantized Inference for OneRec-V2
- 针对OneRec-V2设计FP8后训练量化框架
- 推理延迟降49%,吞吐提升92%,核心指标无下降
- 适合追求高吞吐的工业级推荐系统部署
量化推理在大语言模型中已展现显著系统优势,但在工业推荐系统中仍面临挑战。这源于训练范式、架构模式和计算特性差异,导致传统推荐模型权重与激活值具有高幅值和高方差,对量化扰动更敏感,且推理常受限于硬件利用率。本文聚焦生成式推荐,通过实证分析发现OneRec-V2的权重与激活统计特性更接近大语言模型,数值行为更可控。同时其推理模式更具计算密集性,硬件利用率更高,更利于低精度计算收益。据此,我们构建了FP8后训练量化框架,并集成优化推理基础设施。联合优化使端到端推理延迟减少49%,吞吐量提升92%。大规模线上A/B测试确认FP8推理未影响核心指标。结果表明,随着推荐系统向大语言模型范式演进,大语言模型领域的算法与系统优化技术可有效迁移至大规模推荐场景。
原文摘要 · Abstract (English)
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.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。