当日志解析移除关键信息时:检测分布式GPU工作负载中的故障
When Log Parsing Removes What Matters: Detecting Failures in Distributed GPU Workloads
AI总结:
该研究推出GF-Bench框架与数据集,评估多种日志分析方法在分布式GPU工作负载故障检测中的表现,发现通用日志解析会丢失关键上下文,而原始日志结合LogPrompt可实现高检测精度但成本更高。
摘要:
大型AI模型越来越依赖分布式GPU执行,但目前尚不清楚已有的故障分析方法能否有效迁移到该场景。我们推出GF-Bench,这是一个基于PyTorch的框架和数据集,用于生成分布式GPU工作负载中的各类故障。该框架支持可扩展的工作负载和故障注入逻辑;基于此设计,当前版本针对多GPU通信日志中可见的故障,提供了220个带标签的双GPU执行案例,涵盖正常运行、CUDA内存不足的故障停止型故障,以及持续拖慢的故障缓慢型故障。利用GF-Bench,我们在解析后的日志上评估了三种基于序列的方法(DeepLog、LogAnomaly和LogBERT)以及基于大语言模型的LogPrompt,还在原始日志上评估了LogPrompt。在解析后的输入上,没有任何方法能可靠地检测两类故障,最高的整体F1分数为0.667。原始输入将上下文LogPrompt的整体F1分数提升至0.983,但其平均输入令牌使用量是原来的9.0倍,每次运行的成本是原来的8.7倍。这些结果揭示了有效性与效率之间存在重大权衡:通用日志解析降低了操作成本,但丢弃了准确故障检测所需的分布式执行上下文。GF-Bench为研究高性价比的分析方法提供了可复现的基础,且可扩展至更多GPU工作负载和故障类型。
英文摘要:
Large AI models increasingly rely on distributed GPU execution, yet it remains unclear whether established anomaly detection methods transfer effectively to this setting. We introduce GF-Bench, a PyTorch-based framework for generating controlled failures in distributed GPU workloads, and a dataset produced with it. The framework supports extensible workload and fault-injection logic; based on this design, the current release targets failures visible in multi-GPU communication logs and provides 220 labeled two-GPU runs covering normal behavior, CUDA out-of-memory fail-stop faults, and persistent-straggler fail-slow faults. Using GF-Bench, we evaluate three sequence-based methods (DeepLog, LogAnomaly, and LogBERT) and the large language model (LLM)-based LogPrompt with in-context learning (ICL) and chain-of-thought (CoT) prompting strategies on parsed logs, and additionally evaluate LogPrompt on raw logs. On parsed inputs, no method reliably detects both failure classes, and the highest overall F1 score is 0.667. Raw inputs raise the overall F1 score of ICL-LogPrompt to 0.983, at 9.0x its average input-token usage and 8.9x its per-run cost. These results reveal a trade-off between effectiveness and efficiency: parsed inputs reduce LLM token use and inference cost but can discard the distributed execution context required for accurate failure detection. GF-Bench provides a reproducible basis for studying cost-efficient anomaly detection methods and can be extended to additional GPU workloads and failure types.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。