← Lab /Security & privacy

Pretraining and augmentation raise malware image classifier macro-F1 to 0.693

Combining ImageNet pretraining, Mixup, TrivialAugment, and FPN yields macro-F1 0.6927 on MalNet-Image Tiny

Security & privacy arXiv 22 Apr 2026 Measurement Prototype evidence

Published as “Image-Based Malware Type Classification on MalNet-Image Tiny: Effects of Multi-Scale Fusion, Transfer Learning, Data Augmentation, and Schedule-Free Optimization”

Why it matters

The results show that relatively simple training tricks can raise malware type classification accuracy on a public benchmark, suggesting practical gains for static analysis pipelines that rely on image representations.

Summary

The best configuration (ImageNet pretraining, Mixup, TrivialAugment, and FPN) reaches macro-F1 0.6927 on MalNet-Image Tiny, improving over the reproduced ResNet18 baseline of 0.6510. Schedule-free AdamW slightly raises macro-F1 to 0.6535 while cutting training epochs from 96 to 10. The gains come mainly from pretraining and augmentation; FPN only boosts secondary metrics. Evidence is limited to the Tiny benchmark and may not generalize to the full dataset.

What they found 2

  1. Best configuration achieves macro-F1 0.6927 with improved precision, AUC, and lower test loss

    “the best configuration combines ImageNet pretraining, Mixup, TrivialAugment, and FPN, yielding F1macro = 0.6927, Pmacro = 0.7707, AUCmacro = 0.9556, and Ltest = 0.8536.”

  2. Schedule-free AdamW with unweighted cross-entropy slightly outperforms the baseline while using far fewer epochs

    “Experiment 6 shows that schedule-free AdamW with unweighted cross-entropy slightly exceeds this result at F1macro = 0.6535 while requiring 10 epochs rather than 96.”

Caveats 3

  • Adding FPN does not increase macro-F1, only secondary metrics
  • Adding FPN to the strongest pretrained and augmented configuration preserves F1macro but improves Pmacro from 0.7670 to 0.7707, AUCmacro from 0.9552 to 0.9556, and Ltest from 0.8731 to 0.8536.
  • Future work includes evaluation on the full MalNet-Image benchmark, improved handling of imbalance, refinement of the binary-to-image transformation, and dataset cleaning for label consistency.

What’s new here 3

  • Joint evaluation of multi-scale feature pyramid networks, schedule-free AdamW, ImageNet pretraining, and lightweight augmentations on the same MalNet-Image Tiny split
  • Ablation study isolating the impact of each component under a fixed ResNet18 backbone
  • Demonstration that schedule-free AdamW reduces training epochs without harming performance