提出分层故障诊断方法,精准定位Transformer模型故障根源。
Hierarchical Fault Detection and Diagnosis for Transformer Architectures
- 构建故障传播图,基于组件级运行时数据追踪故障路径。
- 在5556个变异测试中实现0.826~0.909的F1值,诊断准确率提升至83.3%。
- 适用于开发者调试复杂Transformer模型,尤其适合高可靠性系统。
Transformer现广泛应用于工业与科研的各类关键AI系统中。然而其故障常在无运行时错误的情况下悄然改变模型行为,现有技术难以追溯故障来源。此类故障因损失和数值仍正常而难被察觉,且症状无法明确指向具体组件。本文提出DEFault++,一种分层学习型诊断方法:先检测故障,再定位受影响组件,最后识别其内部原因。该方法利用故障传播图(FPG)组织组件级运行时测量数据,建立架构依赖关系的结构先验,并提供诊断依据。为训练与评估,我们构建了DEFault-bench,涵盖7种模型、9项任务及编码器/解码器架构的5,556个标注变异测试样本。实验表明,DEFault++在四项基准方法上显著提升故障检测性能,F1值达0.826–0.909;在21名开发者的实证研究中,修复准确率从57.1%提升至83.3%。结果证明,变压器故障诊断需依赖组件级度量与架构感知推理,而非仅靠模型级行为。DEFault-bench为后续研究提供了基础平台。
原文摘要 · Abstract (English)
Transformers now underpin critical AI systems across industry and research. Yet their faults can silently alter model behavior without runtime errors, and existing techniques offer little support for tracing these failures to their component and root cause. Such faults evade detection because loss and numerical values stay normal, and the visible symptom rarely identifies the component responsible. We present DEFault++, a hierarchical learning-based technique that first detects a fault, then identifies the affected component, and finally the cause within it, helping developers effectively debug transformer models. DEFault++ organizes component-level runtime measurements with a Fault Propagation Graph (FPG), a structural prior over the architecture's dependency paths, and reports the evidence behind each diagnosis. To train and evaluate it, we construct DEFault-bench, a benchmark of 5,556 labeled runs from mutation testing across seven models, nine tasks, and both encoder and decoder architectures. DEFault++ improves fault detection over four prior techniques, reaching an F1 of 0.826--0.909, and in a developer study with 21 participants, it raises repair accuracy from 57.1% to 83.3%. These results show that transformer fault diagnosis benefits from component-level measurements and architecture-aware reasoning rather than model-level behavior alone, and DEFault-bench provides a foundation for further research on transformer fault diagnosis.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。