Grad-CAM features boost malware family classification
A Random Forest model using Grad-CAM features achieves 0.777 test accuracy on 17 malware families, surpassing the prior 0.750 benchmark
Security & privacy arXiv 12 Aug 2026 Measurement Prototype evidence
Published as “A Comparison of Malware Image Transformations Using Grad-CAM and Hybrid Learning Models”
Why it matters
Combining multiple image transformations and leveraging Grad-CAM overlays can materially improve malware family classification while highlighting a trade-off between accuracy and explanation quality.
Summary
A Random Forest classifier trained on a 4096-dimensional feature vector that combines CNN embeddings from both original and Grad-CAM overlay images across all eight malware image transformations achieves a test accuracy of 0.777, surpassing the prior best of 0.751. The study also finds that classification accuracy and explanation faithfulness do not align, with some transformations yielding highly faithful explanations but lower accuracy. Evidence is based on a 17,000-sample dataset of 17 malware families.
What they found 2
- Random Forest on combined 4096-dimensional features reaches 0.777 accuracy, exceeding the previous benchmark
“Specifically, we show that a Random Forest model trained on features extracted from Grad-CAM images via a MobileNetV2 Convolutional Neural Network (CNN) model achieves a test accuracy of 0.777 across 17 malware families, exceeding a previous benchmark of 0.750 for this same dataset.”
- Classification accuracy and explanation faithfulness are not correlated
“A central finding of the faithfulness evaluation is that classification accuracy and explanation faithfulness do not align.”
Caveats 4
- For bigram-based transformations, overlay images perform slightly worse than the original images.
- Even with the best 0.777 model, some families remain poorly classified (e.g., Noon 0.560, Androm 0.573).
- The exclusive use of MobileNetV2 as a backbone is a limitation of our research.
- Another obvious limitation is the computational cost of generating full Grad-CAM datasets.
What’s new here 4
- Systematic evaluation of eight binary-to-image transformations with Grad-CAM explanations
- Quantitative faithfulness and stability metrics for Grad-CAM heatmaps on malware images
- Use of Grad-CAM overlay images as input features for downstream classification
- Hybrid feature combination across all transformations achieving higher accuracy than prior HOG-XGBoost baselines