Skip to content
Preprint

A Comparison of Malware Image Transformations Using Grad-CAM and Hybrid Learning Models

Aug 2026 · 0 citations · 48 references
Computer Science

TL;DR

A key finding of this research is that for the malware image transformations considered, accuracy and explanation faithfulness do not coincide, e.g., image transformation techniques that produce the most faithful explanations yield only mid-tier accuracy.

Abstract

Recent studies have shown that binary-to-image representations can enable effective machine learning-based results for malware detection and classification. However, performance can vary significantly, depending on the technique used to convert binaries to images. Furthermore, the explainability and interpretability of image-based models is largely unexplored within the malware domain. In this research, we employ Gradient-weighted Class Activation Maps (Grad-CAM) as an eXplainable AI (XAI) tool, which we use to analyze eight distinct image types derived from malware samples. We provide quantitative faithfulness and stability metrics for Grad-CAM heatmaps and we compare these heatmaps to High-Resolution Class Activation Mappings (HiResCAM). We also show that Grad-CAM heatmaps can provide useful information for malware classification. 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. A key finding of this research is that for the malware image transformations considered, accuracy and explanation faithfulness do not coincide, e.g., image transformation techniques that produce the most faithful explanations yield only mid-tier accuracy.

View source

Similar papers

Sep 2026

Image-Based Malware Detection Using Deep Convolutional Autoencoder and Random Forest

Image-based analysis has been extensively used for malware classification by converting binary files into grayscale images to extract structural and behavioral patterns. However, common deep learning approaches generally suffer from problems such as non-interpretability, class imbalance, and computational overhead....

Shajjia Mazhar, Sadia Fatima, Irfanud Din et al. · 0 citations
Conference Aug 2026

Attention-Enhanced CNN for Malware Image Classification with Explainable AI

Malware classification is an essential cybersecurity task for detecting and mitigating harmful software threats. One kind of current deep learning method that has shown promising results in the classification of malware photos is convolutional neural networks (CNNs). Major challenges that remain include a lack of model...

B. R. Krishna, H. Narayanan, S. V. Sai et al. · 0 citations
Open access Sep 2026

Visualization based malware classification under extreme class imbalance: a transfer learning approach with systematic ablation

Malware detection and classification continues to be a major concern of cybersecurity since threat attackers are refining to come up with more advanced and elusive malicious code. Visualization-based solutions that transform raw binary executables into grayscale images and the use of convolutional neural networks t...

G. P. Raghudathesh, M. Pavan Kumar, Thimmaraja Yadava G et al. · 0 citations
Open access Sep 2026

A Hybrid CNN–LSTM Deep Learning Framework for Automated Malware Classification using Spatial–Sequential Feature Fusion

The high rate of growth of advanced and highly obfuscated malware has made the use of conventional signature detection mechanisms less viable. In order to overcome this problem, this paper suggests a hybrid framework for malware classification based on the combination of Convolutional Neural Networks (CNNs) and Long Sh...

Chevella Anil Kumar, Saradha S, Mithila Ayyavoo et al. · 0 citations
Open access 2026

Hybrid Convolutional-Hopfield Neural Networks for Image-Based Malware Classification

A novel hybrid CNN-Hopfield Neural Network (CNN-HNN) framework that replaces traditional dense classification heads with continuous Modern Hopfield associative memory layers is proposed, achieving top-tier accuracy and reducing classification-head parameter counts while reducing floating-point operations (FLOPs) and ac...

Uma Kannan, Rajendran Swamidurai · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.