利用少样本微调语言模型预测间歇性作业失败类别以进行诊断
Predicting Intermittent Job Failure Categories for Diagnosis Using Few-Shot Fine-Tuned Language Models
AI总结:
本文提出FlaXifyer方法,通过预训练语言模型预测间歇性作业失败类别,实现84.3%的宏F1和92.0%的Top-2准确率,同时提出LogSift技术提升日志分析效率。
摘要:
在原理上,持续集成(CI)流水线故障为开发者提供了关于代码错误的有价值反馈。然而,实际上,流水线作业常常由于非确定性测试、网络中断、基础设施故障、资源耗尽等问题而间歇性失败。这些间歇性(易波动)作业失败导致显著的效率低下:重复运行浪费计算资源,并且需要大量诊断时间,使开发者无法专注于核心任务,通常需要专门团队介入。先前的工作提出了机器学习技术来检测间歇性故障,但并未解决后续的诊断挑战。为此,我们引入FlaXifyer,一种基于少样本学习的方法,利用预训练语言模型预测间歇性作业失败类别。FlaXifyer仅需作业执行日志,并在每个类别仅使用12个标记示例时,实现了84.3%的宏F1和92.0%的Top-2准确率。我们还提出了LogSift,一种可解释性技术,能够在一秒内识别影响日志语句,减少审查工作量74.4%,同时在87%的情况下揭示相关故障信息。在TELUS的2,458个作业失败评估中,FlaXifyer和LogSift证明了有效自动分拣,加速了故障诊断,并为间歇性作业故障的自动化解决铺平了道路。
英文摘要:
In principle, Continuous Integration (CI) pipeline failures provide valuable feedback to developers on code-related errors. In practice, however, pipeline jobs often fail intermittently due to non-deterministic tests, network outages, infrastructure failures, resource exhaustion, and other reliability issues. These intermittent (flaky) job failures lead to substantial inefficiencies: wasted computational resources from repeated reruns and significant diagnosis time that distracts developers from core activities and often requires intervention from specialized teams. Prior work has proposed machine learning techniques to detect intermittent failures, but does not address the subsequent diagnosis challenge. To fill this gap, we introduce FlaXifyer, a few-shot learning approach for predicting intermittent job failure categories using pre-trained language models. FlaXifyer requires only job execution logs and achieves 84.3% Macro F1 and 92.0% Top-2 accuracy with just 12 labeled examples per category. We also propose LogSift, an interpretability technique that identifies influential log statements in under one second, reducing review effort by 74.4% while surfacing relevant failure information in 87% of cases. Evaluation on 2,458 job failures from TELUS demonstrates that FlaXifyer and LogSift enable effective automated triage, accelerate failure diagnosis, and pave the way towards the automated resolution of intermittent job failures.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。