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

📅 2026-06-23
📈 Citations: 0
Influential: 0
📄 PDF
🤖 AI Summary
This study addresses the trade-offs among accuracy, latency, and model size when deploying fault detection models on resource-constrained devices, particularly under extreme class imbalance where existing approaches often underperform. The work presents the first systematic comparison of lightweight Transformers—including DistilBERT, TinyBERT, and MobileBERT—against traditional machine learning models such as XGBoost and SVM across three public datasets. Furthermore, it proposes an efficient deployment strategy combining INT8 dynamic quantization with two-stage adaptive inference. Experimental results show that TinyBERT-4L achieves an F1 score of 87.8% on the C-MAPSS dataset; post-quantization, model size is reduced by 25% with only a marginal F1 drop to 86.9%. The adaptive inference scheme attains an F1 of 87.6% at an average latency of 19.5 ms, though performance degrades significantly on highly imbalanced data.
📝 Abstract
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.
Problem

Research questions and friction points this paper is trying to address.

on-device fault detection
resource-constrained deployment
class imbalance
lightweight transformers
model efficiency
Innovation

Methods, ideas, or system contributions that make the work stand out.

lightweight transformers
on-device fault detection
adaptive inference pipeline
INT8 quantization
resource-constrained deployment
🔎 Similar Papers
2024-07-062024 IEEE Annual Congress on Artificial Intelligence of Things (AIoT)Citations: 6
💼 Related Jobs
No related jobs found.
D
Disha Patel
Department of Computer Science, California State University, Fullerton