TL;DR
SEED (Semi-supervised Continual MalwarE Detection) is a new framework designed to keep malware detectors accurate as threats evolve over time, even when human-labeled data is scarce. By combining a semantic-structure-agnostic representation strategy with active learning and a "delayed" memory update, SEED significantly outperforms state-of-the-art methods on limited labeling budgets, particularly for complex Windows malware.
What Problem Does This Paper Address?
Machine learning models for malware detection face two major hurdles: concept drift and labeling costs.
Malware authors constantly obfuscate code and change behaviors to evade detection, while benign software also evolves. This "concept drift" means a model trained today will likely be obsolete in a few months. To stay relevant, models need to learn continuously. However, in the cybersecurity world, getting high-quality labels is an "arduous task." Human analysts are expensive and slow, and automated tools like VirusTotal often provide noisy, unstable labels that flip over time.
Existing state-of-the-art methods often rely on Contrastive Learning, which requires large amounts of labeled data to build "positive" and "negative" pairs. These methods also assume malware has a strong "semantic structure" (clear family relationships), which holds for some Android datasets but often fails for Windows malware. When labels are limited or the structure is messy, these models fall apart.
Methods
The authors propose SEED, a framework that is "semantic-structure-agnostic," meaning it doesn't care if your malware families are neatly organized. Its core components include:
- SVD-based Representation Space: Instead of using raw latent vectors, SEED uses Singular Value Decomposition (SVD) to find the basis vectors of the representation space. This captures the most salient features of the data while reducing noise and storage costs.
- Pairwise Similarity Learning: For unlabeled data, SEED doesn't rely on complex contrastive pairs. Instead, it projects an unlabeled sample into the SVD-constructed space, finds the "closest" labeled exemplar from past tasks, and uses a tailored Binary Cross-Entropy (BCE) loss to encourage the model to give them similar representations.
- Active Learning for Unseen Tasks: When faced with entirely new, unlabeled data, SEED quantifies uncertainty using cosine distance in the representation space. It selects the most "uncertain" samples for a human analyst to label, ensuring the labeling budget is spent on the most informative samples.
- Gradient Projection Memory (GPM): To prevent "catastrophic forgetting" (where learning new things makes the model forget old ones), SEED projects new gradients to be orthogonal to the gradient directions of past tasks.
- Delayed Buffer Update: To handle the fact that initial labels (e.g., from VirusTotal) are often wrong, SEED waits for a fixed period (1, 3, or 11 months) before adding samples to its replay buffer. This allows labels to "stabilize" before they are used to retrain the model.
Datasets
The authors evaluated SEED on three major benchmarks:
- BODMAS: A Windows PE malware dataset (134.4k samples) spanning 1.1 years. It is high-dimensional (2381 features) and lacks strong semantic structure.
- AndroZoo: An Android malware dataset (100k samples) spanning 3 years.
- APIGraph: An Android dataset (320.3k samples) spanning 7 years, specifically curated to maintain semantic structure via API calls.
Key Insights and Ideas
- Structure-Agnosticism is Key: The biggest "aha" moment is that you don't need to model complex malware family relationships to be robust. By focusing on simple representational consistency in a well-defined SVD space, SEED works where contrastive methods fail.
- SVD as a Denoising Filter: The ablation studies showed that using SVD basis vectors consistently improved performance, especially on high-dimensional datasets like BODMAS. It acts as a powerful feature selector that ignores the "noise" of concept drift.
- The Power of Patience: The "Delayed Buffer Update" is a simple but brilliant heuristic. In security, a label today might be wrong tomorrow. By introducing a delay, the authors effectively "filtered" out label noise, preventing the model from being poisoned by incorrect historical data during replay.
- Active Learning Refinement: The authors found that in highly imbalanced security data, traditional active learning (picking the most "different" samples) often biased the model toward benign apps. SEED’s approach of picking samples closest to known groups helped maintain a better stability-plasticity balance.
Key Results
The primary metric used was AUT (Area Under the Time curve) of the Precision-Recall AUC, which measures how well a model maintains performance over a long sequence of months.
- BODMAS: SEED achieved a 40% average improvement in AUT compared to HCL* (a semi-supervised version of the previous state-of-the-art).
- AndroZoo: SEED showed a 14% improvement in AUT.
- APIGraph: SEED remained competitive with HCL, proving that its agnostic approach doesn't hurt performance even when strong semantic structure is present.
As shown in the table below, SEED (proposed) significantly outperforms the semi-supervised adaptation of the previous state-of-the-art (HCL*).
Limitations and Future Work
- Memory Growth: While the authors used a labeling budget to regularize growth, the buffer memory still grows over time. Future work could look at more aggressive sample eviction policies.
- Adversarial Robustness: The paper focuses on "natural" concept drift. It does not explicitly test against adversaries who are intentionally trying to poison the SVD representation space or the active learning selection process.
- Unsupervised Directions: The authors suggest that the next frontier is developing fully unsupervised anomaly detection methods that can handle distribution shifts without needing any human analysts in the loop.
Summary updated