Ensemble malware detection with 2 HPCs outperforms standard 8-HPC classifiers by up to 10%
Ensemble learning using only 2 hardware performance counters achieves higher detection accuracy than standard classifiers using 8 counters
AI/ML arXiv 2 Aug 2026 Measurement Prototype evidence
Published as “On the Performance of Malware Detection Classifiers Using Hardware Performance Counters”
Why it matters
Hardware malware detectors can be built with only four performance counters using ensemble methods, lowering hardware cost while preserving detection effectiveness.
Summary
Ensemble classifiers can keep malware detection performance while using only four hardware performance counters, a 75% reduction from the full 16-counter set. Random Forest reaches 98.33% accuracy with 16 HPCs and still 95.59% with 4 HPCs, but accuracy falls sharply with only 2 HPCs. The study evaluates 144 experiments across 18 classifiers, showing that boosting and bagging improve many tree-based models but not all. Evidence is based on measured accuracy and AUC; the results are consistent across the reported tables. The paper does not provide raw sample counts, so the exact statistical strength is limited.
What they found 2
- Random Forest achieves high accuracy even with reduced HPC counts
“RandomForest 98.33 97.12 95.63 95.59 95.59 89.19 89.05 88.92”
- Performance drops severely when reducing to 2 HPCs
“performance drops severely in the transition from the 4-HPC configuration to the 2-HPC configuration.”
Caveats 6
- The Random Forest boosted method loses performance when only 2 HPCs are used.
- Overall detection performance declines sharply when the number of monitored HPCs is reduced from 4 to 2.
- performance drops severely in the transition from the 4-HPC configuration to the 2-HPC configuration.
- The Random Forest has the best performance; it improves for both the boosted and bagging techniques, while for the boosted method in the case of 2 HPCs it loses performance.
- Since the other candidates in these two families didn’t show a minimum threshold in the performance even with the 16 HPC configuration, we could only shortlist the Bayes Net and the KNN classifier from those families.
- linear classifiers are inappropriate for malware detection, as hardware footprints in HPCs are nonlinear.
What’s new here 4
- Demonstrates that ensemble methods (boosting, bagging) can maintain detection accuracy with as few as 4 HPCs, reducing hardware monitoring overhead.
- Provides a systematic comparison of 18 classifiers across 4, 8, 16 HPC configurations, totaling 144 experiments.
- Introduces a combined performance metric (accuracy × AUC) to rank classifiers.
- Identifies specific HPC features (L1-dcache-loads, L1-dcache-stores) as especially effective for distinguishing malware.