vae-malware-detection-eval
Leveraging VAE-Derived Latent Spaces for Enhanced Malware Detection with Machine Learning Classifiers — Ajayi et al. (2025) (arXiv:2503.20803, 2025)
What this evaluates
Evaluates the effectiveness of Variational Autoencoder (VAE)-derived latent space features for malware classification using traditional machine learning models. It probes robustness to data partitioning, random seed initialization, and computational efficiency without hyperparameter tuning.
Datasets
- EMBER — total ?; splits: 30/30 (30% train, 30% test, 40% holdout) (-1), 50/30 (50% train, 30% test, 20% holdout) (-1), 70/30 (70% train, 30% test) (-1)
- BODMAS — total ?; splits: 30/30 (32k train, 40k test) (-1), 50/30 (54k train, 67k test) (-1), 70/30 (75k train, 94k test) (-1)
Metrics
accuracy (primary) — range: [0, 1]
- Fraction of correctly classified instances out of the total number of instances in the test set.
AUC — range: [0, 1]
- Area Under the Receiver Operating Characteristic curve, measuring the model's ability to rank positive instances higher than negative ones across all classification thresholds.
Input / output format
Input: VAE-derived latent space feature vectors representing malware samples (dimensionally reduced, invariant features extracted from raw data).
Output: Predicted malware class label (multi-class classification).
Scoring recipe
def compute_metrics(y_true, y_pred, y_prob=None):
accuracy = (y_true == y_pred).mean()
auc = roc_auc_score(y_true, y_prob, multi_class='ovr') if y_prob is not None else None
return {'accuracy': accuracy, 'auc': auc}
Common pitfalls
- Performance is highly sensitive to the training-test split ratio, particularly for Decision Trees and Naive Bayes, so results cannot be directly compared across different partition schemes.
- Random Forest shows significant sensitivity to random seed initialization in specific splits (e.g., EMBER 50/30), unlike other classifiers which remain stable across seeds 42 and 123.
- The evaluation explicitly excludes hyperparameter tuning; comparing against tuned baselines or reporting tuned results violates the stated protocol.
Evidence (verbatim from paper)
The experiments rigorously evaluate model accuracy across different training-test split ratios (30/30, 50/30, and 70/30) and random seeds (42 and 123) to assess robustness. A key novelty of this approach is that no hyperparameter tuning was required, yet the models achieved high performance directly from latent space features... Random Forest exhibited the best classification performance overall. With a 30/30 split, it achieved cross-validation scores of 0.9498, test accuracy of 0.9523, and an AUC close to 0.9906.
Citation
@misc{ajayi2025vae,
title={Leveraging VAE-Derived Latent Spaces for Enhanced Malware Detection with Machine Learning Classifiers},
author={Ajayi et al. (2025)},
year={2025},
note={arXiv:2503.20803}
}
1---2name: vae-malware-detection-eval3description: Evaluates the effectiveness of Variational Autoencoder (VAE)-derived latent space features for malware classification using traditional machine learning models. It probes robustness to data partitioning, random seed initialization, and computational efficiency without hyperparameter tuning. Use when the user wants to benchmark on EMBER, BODMAS, or asks about evaluating this task. Reports accuracy.4---56# vae-malware-detection-eval78> Leveraging VAE-Derived Latent Spaces for Enhanced Malware Detection with Machine Learning Classifiers — Ajayi et al. (2025) (arXiv:2503.20803, 2025)910## What this evaluates1112Evaluates the effectiveness of Variational Autoencoder (VAE)-derived latent space features for malware classification using traditional machine learning models. It probes robustness to data partitioning, random seed initialization, and computational efficiency without hyperparameter tuning.1314## Datasets1516- **EMBER** — total ?; splits: 30/30 (30% train, 30% test, 40% holdout) (-1), 50/30 (50% train, 30% test, 20% holdout) (-1), 70/30 (70% train, 30% test) (-1)17- **BODMAS** — total ?; splits: 30/30 (32k train, 40k test) (-1), 50/30 (54k train, 67k test) (-1), 70/30 (75k train, 94k test) (-1)1819## Metrics2021- `accuracy` **(primary)** — range: [0, 1]22 - Fraction of correctly classified instances out of the total number of instances in the test set.23- `AUC` — range: [0, 1]24 - Area Under the Receiver Operating Characteristic curve, measuring the model's ability to rank positive instances higher than negative ones across all classification thresholds.2526## Input / output format2728**Input**: VAE-derived latent space feature vectors representing malware samples (dimensionally reduced, invariant features extracted from raw data).2930**Output**: Predicted malware class label (multi-class classification).3132## Scoring recipe3334```python35def compute_metrics(y_true, y_pred, y_prob=None):36 accuracy = (y_true == y_pred).mean()37 auc = roc_auc_score(y_true, y_prob, multi_class='ovr') if y_prob is not None else None38 return {'accuracy': accuracy, 'auc': auc}39```4041## Common pitfalls4243- Performance is highly sensitive to the training-test split ratio, particularly for Decision Trees and Naive Bayes, so results cannot be directly compared across different partition schemes.44- Random Forest shows significant sensitivity to random seed initialization in specific splits (e.g., EMBER 50/30), unlike other classifiers which remain stable across seeds 42 and 123.45- The evaluation explicitly excludes hyperparameter tuning; comparing against tuned baselines or reporting tuned results violates the stated protocol.4647## Evidence (verbatim from paper)4849> The experiments rigorously evaluate model accuracy across different training-test split ratios (30/30, 50/30, and 70/30) and random seeds (42 and 123) to assess robustness. A key novelty of this approach is that no hyperparameter tuning was required, yet the models achieved high performance directly from latent space features... Random Forest exhibited the best classification performance overall. With a 30/30 split, it achieved cross-validation scores of 0.9498, test accuracy of 0.9523, and an AUC close to 0.9906.5051## Citation5253```bibtex54@misc{ajayi2025vae,55 title={Leveraging VAE-Derived Latent Spaces for Enhanced Malware Detection with Machine Learning Classifiers},56 author={Ajayi et al. (2025)},57 year={2025},58 note={arXiv:2503.20803}59}60```6162- arXiv: 2503.20803