arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.09319cs.PF
收藏

LLM推理系统的统计建模与不确定性估计

Statistical Modeling and Uncertainty Estimation of LLM Inference Systems

Kaustabha Ray, Nelson Mimura Gonzalez, Bruno Wassermann, Rachel Tzoref-Brill, Dean H. Lorenz

AI总结:

针对LLM推理性能难以准确统计表征的问题,提出ALA框架融合分析吞吐量模型、ML预测、模拟退火误差预测与向量空间不确定性量化,在多样工作负载上实现低中位误差并适应新场景。

摘要:

大型语言模型(LLM)推理系统由于动态工作负载变化、多样的硬件架构以及模型规模、批处理和吞吐量需求之间的复杂交互,在统计性能表征方面面临重大挑战。准确的统计表征能够实现更好的工作负载调度、自适应资源供给和成本感知的推理优化,因此对于提升大规模AI部署的效率至关重要。传统分析模型具备可解释性,但无法覆盖现实世界工作负载的巨大多样性,因而不可能预先对每种场景进行基准测试。机器学习(ML)方法能够有效预测未基准测试情形的性能,但在外推到观测训练空间之外时会遇到困难。为解决LLM推理系统中的这些局限,我们提出了一个Analytical with Learning Augmentation(ALA,分析与学习增强)框架,将分析建模与ML相结合,用于LLM推理工作负载的稳健统计预测和不确定性估计。我们的方法采用一个分析吞吐量模型,其参数针对已基准测试的工作负载进行估计,随后利用ML预测扩展到未观测的配置。我们通过模拟退火对此加以增强,以利用工作负载数据点组合的子集,并开发一个误差预测器。最后,我们基于新工作负载与已观测工作负载之间的向量空间相似性来量化不确定性,以确保稳健的泛化能力。通过在多样的LLM推理工作负载上进行大量实验,我们证明该框架实现了较低的中位误差,同时保持了对新推理场景的适应性。

英文摘要:

Large Language Model (LLM) inference systems present significant challenges in statistical performance characterization due to dynamic workload variations, diverse hardware architectures, and complex interactions between model size, batch processing, and throughput requirements. Accurate statistical characterization enables better workload scheduling, adaptive resource provisioning, and cost-aware inference optimization, making it crucial for improving efficiency in large-scale AI deployments. Traditional analytical models provide explainability but cannot cover the vast diversity of real-world workloads, making it impossible to benchmark every scenario in advance. Machine learning (ML) approaches effectively predict performance for non-benchmarked cases but struggle when extrapolating beyond their observed training space. To address these limitations for LLM inference systems, we propose an Analytical with Learning Augmentation (ALA) framework that bridges analytical modeling with \ml for robust statistical prediction and uncertainty estimation in LLM inference workloads. Our method employs an analytical throughput model with parameters estimated for benchmarked workloads, then extends to unobserved configurations using \ml predictions. We enhance this with simulated annealing to exploit subsets of the workload data point combinations and develop an error predictor. Finally, we quantify uncertainty based on vector space similarity between new and observed workloads to ensure robust generalization. Through extensive experimentation on diverse LLM inference workloads, we demonstrate that our framework achieves low median errors while maintaining adaptability to new inference scenarios.

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

↑