arXiv:2608.01975cs.SEcs.CL2026-08中稿 · the 41st IEEE/ACM …

无需修改模型即可定位大模型推理故障根源。

TELLER: Non-intrusive Cross-Layer Root-Cause Analysis for LLM Inference

论文配图:TELLER: Non-intrusive Cross-Layer Root-Cause Analysis for LLM Inference
图 1 · 摘自论文原文
  • 通过采集原始追踪与日志,重建请求级调用链并对齐执行步骤。
  • 提出结构化编码压缩技术,使单步追踪长度减少80%以上且保持诊断准确率。
  • 适合运维人员快速排查跨层故障,尤其在分布式推理场景下表现优异。

大语言模型(LLM)推理已从离线任务演变为持续运行的服务,但故障根因分析困难,因单个请求横跨推理引擎、Python/C++后端、主机CUDA API、GPU内核及分布式通信。现有剖析工具仅提供原始时间线,日志诊断常丢失跨层执行语义与请求级结构。本文提出TELLER:一种非侵入式、基于追踪与日志的LLM推理根因分析框架。TELLER无需修改模型二进制文件,收集NVTX/CUPTI追踪与服务日志,重构每请求调用链树,并将日志行与对应执行步骤对齐。引入依赖感知的因果上下文切片,保留父子结构、时序关系与通信关联;设计追踪对编码(TPE)分词器,将此类切片压缩为含父节点、深度、持续时间属性的紧凑结构化序列。在此基础上,融合数值候选定位与多模态根因模型,联合预测异常步骤、定位可疑算子并生成自然语言解释。在多节点GPU推理负载上实验显示,适度压缩(中等TPE词表)使单步追踪长度减少超80%,同时在横向(跨节点通信)与纵向(节点内执行栈)视图上均取得最佳性能;而更激进压缩显著降低诊断质量。低故障先验、强化基线、模态消融、解释质量验证与追踪开销分析进一步表明,TELLER可为LLM推理根因分析提供实用的初步排查与证据定位基础。

原文摘要 · Abstract (English)

Large language model (LLM) inference has evolved from an offline workload into a continuously operated software service, yet root-cause analysis remains difficult because a single request spans the inference engine, Python/C++ backend, host CUDA APIs, GPU kernels, and distributed communication. Existing profilers expose raw timelines, while log-based diagnosis often misses cross-layer execution semantics and request-level structure. We present TELLER, a non-intrusive Trace- and Log-aware LLM inference Root-cause analysis framework. TELLER first collects NVTX/CUPTI traces and service logs without modifying model binaries, then reconstructs per-request call-chain trees and aligns log lines with the corresponding execution steps. We introduce a dependency-aware causal-context slice that preserves parent-child structure, temporal order, and communication relations, and a Trace Pair Encoding (TPE) tokenizer that compresses such slices into compact structural token sequences with parent, depth, and duration attributes. On top of these representations, TELLER combines numeric candidate localization with a multimodal root-cause model that jointly predicts abnormal steps, localizes suspicious operators, and generates natural-language explanations. Experiments on multi-node GPU inference workloads show a clear compression-accuracy trade-off: a moderate TPE vocabulary reduces per-step trace length by more than 80% while achieving the best overall performance on both horizontal (cross-node communication) and vertical (within-node execution stack) views, whereas more aggressive compression substantially degrades diagnosis quality. Further analyses under low-fault priors, strengthened baselines, modality ablations, explanation-quality checks, and tracing overhead show that TELLER provides a practical triage and evidence-localization substrate for LLM inference RCA.

根因分析大模型推理故障诊断非侵入式

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