TL;DR
Machine learning malware detectors degrade over time due to distribution drift, but continuous manual labeling is prohibitively expensive. This paper introduces a model-agnostic framework combining Active Learning (AL) and Semi-Supervised Learning (SSL) that slashes manual labeling costs by up to 90% while matching full-retraining performance. It also introduces a novel feature-level stability metric that directly correlates feature drift with detector performance decay.
What Problem Does This Paper Address?
In the real world, both legitimate software and malware constantly evolve. This creates a phenomenon known as distribution drift, causing machine learning models trained on static data to rapidly lose accuracy when deployed in the wild. To keep up, models must be continuously updated with new data.
However, obtaining ground-truth labels for new software requires expensive, time-consuming manual analysis by security experts. While Active Learning (AL) and Semi-Supervised Learning (SSL) have been proposed to minimize labeling costs, prior research has been heavily siloed—restricted to specific model architectures or isolated to a single domain (e.g., only Windows or only Android). Furthermore, the community has lacked a standardized, model-independent methodology to diagnose why these models degrade and how retraining strategies actually refresh a model's understanding of evolving features.
Methods
The authors propose a model-agnostic, two-stage retraining pipeline that elegantly combines AL and SSL to maximize label efficiency.
- Stage 1: Active Learning (AL): When a new batch of unlabeled data arrives, an AL strategy evaluates the samples and selects a tiny fraction (e.g., 1–2%) of the most informative or uncertain instances. These are sent to human experts for labeling, and the model is partially updated to create an intermediate detector.
- Stage 2: Semi-Supervised Learning (SSL): This intermediate detector is then used to automatically assign "pseudo-labels" to high-confidence samples from the remaining unlabeled pool using either Symmetric (ST) or Asymmetric Thresholding (AT). Finally, the model is fully retrained on both the expert-labeled and pseudo-labeled data.
Feature-Level Drift Analysis
To understand drift independently of model internals, the authors introduce a feature stability score ($\beta$). Using the Wilcoxon-Mann-Whitney statistical test, $\beta$ tracks whether the discriminative relationship between specific features and their classes (malware vs. benign) remains stable or flips between the training set and incoming real-world data over time.
Datasets
The framework was rigorously evaluated on two distinct, large-scale datasets to prove its domain-agnostic capabilities:
- EMBER (Windows): 1.5 million Portable Executable (PE) files characterized by 2,381 features, processed as a monthly stream across 2017 and 2018.
- ELSA (Android): 212,500 applications featuring 10,000 Drebin-style features, split into quarterly batches from 2017 to 2022. This dataset reflects a realistic, highly imbalanced 9:1 benign-to-malware ratio.
Key Insights and Ideas
- SSL Alone is Dangerous: Relying solely on semi-supervised learning under distribution drift actually performs worse than not retraining at all. Without true labels to anchor the model, SSL reinforces existing classification biases and rapidly propagates errors.
- The Power of the Hybrid: Applying AL before SSL acts as a vital stabilizing step. The small budget of expert-labeled samples adapts the decision boundary just enough so that subsequent pseudo-labeling becomes highly reliable.
- Feature Stability Drives Performance: The proposed $\beta$ metric reveals that performance drops are almost always preceded by a drop in feature-class association stability. If a feature that traditionally signified "benign" suddenly starts appearing frequently in malware, an un-updated model will inevitably fail.
Key Results
- 90% Cost Reduction: Across both Android and Windows domains, the hybrid AL+SSL approach achieved detection performance comparable to full-label retraining while reducing manual annotation costs by up to 90%.
- BADGE Dominates: Among the 8 active learning strategies tested, BADGE (Batch Active Learning by Diverse Gradient Embeddings) emerged as the top performer, especially in ultra-low budget regimes (1–2% labeling budgets).
- Drift Correlation Validated: The feature stability metric $\beta$ demonstrated a strong, statistically significant positive correlation with the models' F1 scores ($r = 0.579$ on ELSA, $r = 0.721$ on EMBER), proving its efficacy as a model-agnostic diagnostic tool.
Limitations and Future Work
While highly effective, the framework currently relies on fixed, hand-crafted static features (Drebin and EMBER) rather than modern, richer representation learning techniques (such as transformer-based embeddings). Additionally, the examined AL heuristics do not explicitly account for adversarial drift, where malware authors intentionally manipulate features to evade detection.
The authors suggest that future work should focus on developing adaptive policies that dynamically adjust the labeling budget and trigger retraining based on real-time drops in feature stability ($\beta$), rather than relying on fixed monthly or quarterly schedules.
Summary updated