arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.24173cs.LGcs.AI
收藏

轻量级Transformer模型用于设备端故障检测:资源受限部署的基准研究

Lightweight Transformer Models for On-Device Fault Detection: A Benchmark Study on Resource-Constrained Deployment

Department of Computer Science(计算机科学系);California State University, Fullerton(弗雷斯诺州立大学)

Disha Patel

AI总结:

针对资源受限硬件上的故障检测,比较传统ML与轻量级Transformer,发现Transformer在匹配精度时模型大小和延迟显著增加,但TinyBERT-4L和量化自适应流水线可缓解问题,同时揭示极端类别不平衡的局限性。

摘要:

设备端故障检测无需依赖云端即可实现实时诊断,但在资源受限硬件上部署机器学习模型需要在准确性、延迟和模型大小之间进行仔细权衡。我们提出了一个基准测试,比较传统机器学习方法(随机森林、XGBoost、SVM、逻辑回归)与轻量级Transformer架构(DistilBERT、TinyBERT-6L、TinyBERT-4L、MobileBERT)在三个公开数据集上的二分类故障检测性能:NASA C-MAPSS涡扇退化、SECOM半导体制造和UCI AI4I 2020预测维护。我们评估了分类性能(F1分数、AUC)、模型大小和CPU推理延迟,并进一步评估了INT8动态量化和两阶段自适应推理流水线。我们的结果表明,在分离良好的传感器数据(C-MAPSS)上,轻量级Transformer在F1达到87.8%时与传统ML相当,但模型大小增加100倍,延迟增加9000倍。TinyBERT-4L以55 MB和18 ms CPU延迟成为最易于部署的Transformer。INT8量化将模型大小减少25%,同时保持86.9%的F1分数。我们的自适应流水线通过量化分诊模型路由97.9%的预测,仅2.1%的预测交由更大的专家模型处理,实现了平均延迟19.5 ms下的87.6% F1分数。在严重不平衡的数据集(SECOM、UCI-PM)上,传统方法和Transformer方法均表现不佳,突显了当前方法在故障检测中处理极端类别不平衡的根本局限性。所有代码均已公开。

英文摘要:

On-device fault detection enables real-time diagnostics without cloud dependency, but deploying machine learning models on resource-constrained hardware demands careful tradeoffs between accuracy, latency, and model size. We present a benchmark comparing traditional ML methods (Random Forest, XGBoost, SVM, Logistic Regression) against lightweight transformer architectures (DistilBERT, TinyBERT-6L, TinyBERT-4L, MobileBERT) for binary fault detection across three public datasets: NASA C-MAPSS turbofan degradation, SECOM semiconductor manufacturing, and UCI AI4I 2020 predictive maintenance. We evaluate classification performance (F1-score, AUC), model size, and CPU inference latency, and further assess INT8 dynamic quantization and a two-stage adaptive inference pipeline. Our results reveal that on well-separated sensor data (C-MAPSS), lightweight transformers match traditional ML at 87.8% F1 but at 100x the model size and 9000x the latency. TinyBERT-4L emerges as the most deployment-friendly transformer at 55 MB and 18 ms CPU latency. INT8 quantization reduces size by 25% while preserving 86.9% F1. Our adaptive pipeline, routing 97.9% of predictions through a quantized triage model and only 2.1% to a larger expert, achieves 87.6% F1 at 19.5 ms average latency. On severely imbalanced datasets (SECOM, UCI-PM), both traditional and transformer methods struggle significantly, highlighting fundamental limitations of current approaches for extreme class imbalance in fault detection. All code is publicly available.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑