Abstract
Machine learning for malware classification shows encouraging results, but real deployments suffer from performance degradation as malware authors adapt their techniques to evade detection. This phenomenon, known as concept drift, occurs as new malware examples evolve and become less and less like the original training examples. One promising method to cope with concept drift is classification with rejection in which examples that are likely to be misclassified are instead quarantined until they can be expertly analyzed. We propose TRANSCENDENT, a rejection framework built on Transcend, a recently proposed strategy based on conformal prediction theory. In particular, we provide a formal treatment of Transcend, enabling us to refine conformal evaluation theory—its underlying statistical engine—and gain a better understanding of the theoretical reasons for its effectiveness. In the process, we develop two additional conformal evaluators that match or surpass the performance of the original while significantly decreasing the computational overhead. We evaluate TRANSCENDENT on a malware dataset spanning 5 years that removes sources of experimental bias present in the original evaluation. TRANSCENDENT outperforms state-of-the-art approaches while generalizing across different malware domains and classifiers. To further assist practitioners, we showcase optimal operational settings for a TRANSCENDENT deployment and show how it can be applied to many popular learning algorithms. These insights support both old and new empirical findings, making Transcend a sound and practical solution for the first time. To this end, we release TRANSCENDENT as open source, to aid the adoption of rejection strategies by the security community.
1. Introduction
In the adversarial landscape of cybersecurity, the independent and identically distributed (i.i.d.) assumption—the bedrock of most machine learning models—frequently fails. Malware authors continuously evolve their tactics to bypass detection systems, leading to a phenomenon known as concept drift. As a model's training data becomes increasingly disconnected from the current threat landscape, its predictive accuracy inevitably declines.
To address this, we present TRANSCENDENT, an open-source framework that implements "classification with rejection." Rather than forcing a binary decision on every sample, TRANSCENDENT identifies inputs that do not conform to the model's training distribution. These "non-conforming" samples are rejected and quarantined for manual expert analysis, preventing unreliable predictions from compromising system security.
2. Methodology: Conformal Prediction and Rejection
TRANSCENDENT is built upon the principles of Conformal Prediction theory. For every new sample, the framework generates a p-value that quantifies its "credibility"—how well it fits into the known classes based on training data. By setting thresholds on these p-values, the system can distinguish between high-confidence predictions and those likely to be affected by drift.
A key strength of TRANSCENDENT is its model-agnostic nature. It can be integrated with a wide variety of underlying classifiers, from traditional statistical methods to modern deep learning architectures. The framework defines a rejection region (often visualized in feature space) where the model's output is considered untrustworthy.
3. Efficient Conformal Evaluators
The original Transcend framework utilized a Transductive Conformal Evaluator (TCE), which required retraining the model for every new data point—a computationally prohibitive requirement for large-scale deployments. TRANSCENDENT introduces two highly efficient alternatives:
- Inductive Conformal Evaluator (ICE): By splitting data into training and calibration sets, ICE achieves a massive reduction in computational overhead, moving from years of CPU time to mere hours.
- Cross-Conformal Evaluator (CCE): This approach uses k-fold cross-validation to maximize the utility of available data while maintaining computational feasibility.
Furthermore, we replaced exhaustive grid searches for optimal rejection thresholds with a Random Search strategy. This significantly accelerates the deployment process, especially in multi-class scenarios where the search space is high-dimensional.
4. Experimental Evaluation
We validated TRANSCENDENT across three diverse malware domains to ensure its generalizability:
- Android Malware: Utilizing a dataset of over 250,000 apps from AndroZoo (2014–2018), we employed the Tesseract framework to maintain realistic temporal splits and eliminate experimental bias.
- Windows PE Malware: Evaluation on the EMBER v2 dataset using Gradient Boosted Decision Trees (GBDT).
- PDF Malware: Testing on the Hidost dataset with Random Forest classifiers.
5. Key Results and Insights
Our evaluation demonstrates that TRANSCENDENT significantly extends the operational lifespan of malware classifiers. In the Android domain, the framework maintained an F1-score above 0.8 for two years, effectively doubling the time before a model requires retraining.
Computational efficiency gains were equally stark: for the Android dataset, ICE reduced calibration time from an estimated 1.9 CPU years to just 11.5 CPU hours. Crucially, TRANSCENDENT often achieved a zero-error rate on rejected samples, meaning it successfully identified nearly all instances where the underlying model would have failed. Our analysis also revealed that concept drift is primarily driven by changes in the malicious class, while the benign distribution remains relatively stable over time.
6. Conclusion
TRANSCENDENT transforms classification with rejection from a theoretical concept into a practical tool for security practitioners. By providing a formal theoretical grounding and efficient implementation strategies, we enable more resilient malware detection systems. While the manual labeling of rejected samples remains a resource constraint, the framework's ability to maintain high precision in the face of adversarial drift represents a significant advancement in secure machine learning. Future work will explore the synergy between rejection strategies and drift-resistant feature engineering.
Summary updated