XGBoost achieves top detection while TreeSHAP costs differ, selective explanations cut compute
XGBoost provides the strongest overall predictive profile for IoT intrusion detection, with low explanation cost and acceptable stability
AI/ML arXiv 11 Aug 2026 Measurement Prototype evidence
Published as “Beyond Detection Accuracy: Measuring Explanation Cost, Stability, and Utility for Resource-Aware IoT Intrusion Detection”
Why it matters
The study shows that explainable IoT IDS can be made operationally viable by choosing models like XGBoost for combined predictive and explanation efficiency and by applying selective explanation policies to cut compute by up to one-third while retaining most security-relevant coverage.
Summary
XGBoost offers the strongest overall predictive profile, but Random Forest achieves the lowest false-positive rate and Decision Tree has the lowest absolute explanation latency. Explanation cost varies dramatically by model: TreeSHAP needs 700.8 s for Random Forest versus 1.47 s for XGBoost on 5,000 samples. Selective explanation can save 28-32% of compute at ~90% false-negative coverage on a balanced test, but savings drop to ~3% on the attack-heavy natural distribution. Evidence comes from a single leakage-safe CICIoT2023 binary benchmark measured on a host machine, without external-dataset validation or edge-device timing.
What they found 5
- XGBoost has the strongest overall predictive profile
“XGBoost provided the strongest overall predictive profile, while Random Forest produced the lowest false-positive rate.”
- Random Forest yields the lowest false-positive rate among tree models
“Random Forest produced the lowest false-positive rate.”
- Explanation cost differs sharply by architecture
“TreeSHAP required 700.759 s for Random Forest and 1.471 s for XGBoost.”
- Selective explanation can save ~28-32% compute at 90% false-negative coverage on balanced test
“At approximately 90% false-negative coverage on the balanced test, compute savings were 28.35% for Decision Tree, 31.17% for Random Forest, and 32.22% for XGBoost.”
- Savings are much smaller on the attack-heavy natural test
“At the 90% target, Decision Tree, Random Forest, and XGBoost saved 3.25%, 3.58%, and 3.66%, respectively.”
Caveats 6
- Random Forest achieves the lowest false-positive rate, challenging the claim that XGBoost is uniformly best.
- Decision Tree’s absolute TreeSHAP latency is far lower than Random Forest’s despite a high overhead ratio, indicating that XGBoost is not the only low-cost option.
- Dataset scope. The primary empirical conclusions are based on CICIoT2023 and binary attack-versus-benign classification.
- External validity. No external-dataset validation has yet been conducted.
- Host-based timing. Training, prediction, and TreeSHAP measurements were obtained on the experimental host, not on a Raspberry Pi, production IoT gateway, or other constrained device.
- Memory measurement. Stage-5 memory observations used before/after process resident-set-size differences. This method can miss transient allocation peaks and must not be interpreted as true peak-memory measurement.
What’s new here 4
- Constructs a leakage-safe CICIoT2023 corpus using exact-feature hash deduplication and deterministic partitioning.
- Jointly evaluates predictive performance, TreeSHAP explanation cost, local attribution stability, and selective-explanation policies.
- Provides absolute wall-clock explanation latency per model architecture and batch size.
- Introduces validation-calibrated selective explanation to trade off workload against false-negative coverage.