arXiv:2601.09258cs.DCcs.LG2026-01被引 1

零侵入式实时监控大模型推理延迟,保障服务承诺时延

LatencyPrism: Online Non-intrusive Latency Sculpting for SLO-Guaranteed LLM Inference

  • 无需修改代码或重启服务,实现跨平台延迟精细拆解
  • 毫秒级触发告警,异常检测F1达0.98,区分正常波动与真实问题
  • 适合需要高可用大模型服务的生产环境,尤其关注延迟稳定的团队

大模型推理延迟直接影响用户体验和运营成本,在SLO约束下尤其关键。即使平均延迟达标,短暂延迟突增也会降低服务质量。现有方法受限于侵入式设计(需重启服务)或硬件绑定实现,难以适应异构框架与动态负载。本文提出首个零侵入式多平台延迟调控系统LatencyPrism,可分解推理延迟、主动预警异常并保障SLO达成,无需代码修改或服务中断。已在数千个XPUs上部署超六个月,支持批级低开销实时监控,告警响应在毫秒级。该方法能有效区分负载驱动的正常波动与底层问题引发的异常,F1-score达0.98。我们还开展大规模实验与根因分析,并首次推出LLM异常仿真工具包,以推动鲁棒、可预测推理系统研究。

原文摘要 · Abstract (English)

LLM inference latency critically determines user experience and operational costs, directly impacting throughput under SLO constraints. Even brief latency spikes degrade service quality despite acceptable average performance. However, distributed inference environments featuring diverse software frameworks and XPU architectures combined with dynamic workloads make latency analysis challenging. Constrained by intrusive designs that necessitate service restarts or even suspension, and by hardware-bound implementations that fail to adapt to heterogeneous inference environments, existing AI profiling methods are often inadequate for real-time production analysis. We present LatencyPrism, the first zero-intrusion multi-platform latency sculpting system. It aims to break down the inference latency across pipeline, proactively alert on inference latency anomalies, and guarantee adherence to SLOs, all without requiring code modifications or service restarts. LatencyPrism has been deployed across thousands of XPUs for over six months. It enables low-overhead real-time monitoring at batch level with alerts triggered in milliseconds. This approach distinguishes between workload-driven latency variations and anomalies indicating underlying issues with an F1-score of 0.98. We also conduct extensive experiments and investigations into root cause analysis to demonstrate LatencyPrism's capability. Furthermore, we introduce the first LLM anomaly simulation toolkit to facilitate future research in robust and predictable inference systems.

大模型推理延迟监控SLO保障零侵入

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