arXiv:2605.10886cs.LGcs.AI2026-05中稿 · ISCA'26被引 1

让低精度计算在大规模推荐模型中高效可用

LoKA: Low-precision Kernel Applications for Recommendation Models At Scale

论文配图:LoKA: Low-precision Kernel Applications for Recommendation Models At Scale
图 1 · 摘自论文原文
  • 通过实时统计分析定位可安全使用低精度的层
  • 设计模型和硬件协同优化方案,提升精度与速度
  • 适合追求高效率推荐系统部署的研究者与工程师

最新一代GPU通过低精度计算(如FP8)实现了更高的浮点运算性能。尽管在大语言模型中已成功应用,但在大规模推荐模型(LRMs)中推广受限。这是因为推荐模型数值敏感,以小规模矩阵乘法(GEMM)为主,并伴随归一化操作,且训练过程通信密集。直接应用FP8常导致模型质量下降并延长训练时间。这些挑战源于推荐模型的固有特性,仅靠改进FP8内核无法解决。为此,本文提出LoKA(Low-precision Kernel Applications)框架,通过三原则实现FP8在推荐模型中的实用化:基于真实分布进行性能评估以识别低精度安全区域,模型组件与硬件协同设计以扩展安全范围,跨内核库调度最大化收益。具体而言,LoKA Probe 是一种基于统计的在线基准测试方法,用于学习激活值与权重分布,量化各层误差,从而确定可安全使用FP8的层;LoKA Mods 提供可复用的模型适配模块,增强数值稳定性和执行效率;LoKA Dispatch 在运行时利用探测结果,选择满足精度要求的最快FP8内核。

原文摘要 · Abstract (English)

Recent GPU generations deliver significantly higher FLOPs using lower-precision arithmetic, such as FP8. While successfully applied to large language models (LLMs), its adoption in large recommendation models (LRMs) has been limited. This is because LRMs are numerically sensitive, dominated by small matrix multiplications (GEMMs) followed by normalization, and trained in communication-intensive environments. Applying FP8 directly to LRMs often degrades model quality and prolongs training time. These challenges are inherent to LRM workloads and cannot be resolved merely by introducing better FP8 kernels. Instead, a system-model co-design approach is needed to successfully integrate FP8. We present LoKA (Low-precision Kernel Applications), a framework that makes FP8 practical for LRMs through three principles: profile under realistic distributions to know where low precision is safe, co-design model components with hardware to expand where it is safe, and orchestrate across kernel libraries to maximize the gains. Concretely, LoKA Probe is a statistically grounded, online benchmarking method that learns activation and weight statistics, and quantifies per-layer errors. This process pinpoints safe and unsafe, fast and slow sites for FP8 adoption. LoKA Mods is a set of reusable model adaptations that improve both numerical stability and execution efficiency with FP8. LoKA Dispatch is a runtime that leverages the statistical insights from LoKA Probe to select the fastest FP8 kernel that satisfies the accuracy requirements.

推荐系统低精度计算模型优化FP8

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。