Regression-Aware Continual Learning for Android Malware Detection

Daniele Ghiani, Daniele Angioni, Giorgio Piras, Angelo Sotgiu, Luca Minnei, Srishti Gupta, Maura Pintor, Fabio Roli, Battista Biggio

TL;DR

While standard Continual Learning (CL) focuses on preventing "catastrophic forgetting" (average performance drops), this paper highlights a more insidious issue: security regression, where a model update causes it to miss specific malware samples it previously caught. The authors formalize this problem and introduce a "regression-aware" penalty called Positive Congruent Training (PCT) that forces model updates to remain consistent with past correct predictions, significantly reducing newly introduced vulnerabilities without sacrificing overall detection power.

What Problem Does This Paper Address?

Malware is a moving target. To keep up, detection models must be updated constantly. However, retraining a model from scratch on billions of samples is computationally impossible. This leads researchers to Continual Learning (CL)—updating models incrementally on new data.

The traditional metric for CL is "catastrophic forgetting," which measures the drop in average accuracy on old data. The authors argue that in security, average accuracy isn't enough. They identify security regression: a phenomenon where an updated model suddenly fails to detect a specific malware sample that the previous version correctly identified.

Even if the new model is 99% accurate overall, if it "regresses" on a previously known threat, it creates a silent hole in the security chain and undermines user trust. This paper aims to quantify these "negative flips" and provide a way to prevent them.

Methods

The authors propose a two-pronged approach: formalizing the metric and providing a mitigation strategy.

  1. Negative Flip Rate (NFR): They adapt the concept of "negative flips" to the CL setting. NFR measures the fraction of samples that were correctly classified by the old model ($f_{k-1}$) but are misclassified by the new model ($f_k$). They evaluate this in two modes:
  2. Backward Mode: Regressions on previously seen data.
  3. Forward Mode: Regressions on future, drifting data (specific to the Domain-Incremental setting).
  4. Positive Congruent Training (PCT): Originally proposed for computer vision, the authors adapt PCT as a "plug-in" for malware detection. PCT adds a distillation-based regularization term to the standard training loss.
  5. The Logic: It specifically penalizes the model if its output for a sample deviates from the previous model's output, but only if the previous model got that sample right.
  6. Focal Distillation: It uses a weighting factor ($\beta$) to prioritize samples the old model was confident about, ensuring the "knowledge" of what constitutes malware is preserved across updates.

Datasets

The study utilizes three prominent Android malware benchmarks:

  • ELSA: 75,000 apps (2017–2019) used for Domain-Incremental Learning (DIL).
  • Tesseract: ~237,000 apps (2014–2018), specifically designed to evaluate models under temporal constraints and concept drift.
  • AZ-Class: A dataset of 100 malware families used for Class-Incremental Learning (CIL), where the model must learn to recognize entirely new types of threats over time.

All datasets use "Drebin-style" features (binary indicators of permissions, API calls, and hardware features) extracted from the apps' APK files.

Key Insights and Ideas

  • Forgetting $\neq$ Regression: A model can have zero "forgetting" (its average accuracy stays the same) while still having high "regression" (it misses new things but catches old things it previously missed). In security, the consistency of detection is just as important as the rate of detection.
  • Malware is More Volatile: The authors found that regressions happen much more frequently on malware samples than on "goodware" (legitimate apps). This suggests that the "malware" boundary in feature space is much more unstable during updates.
  • Model-Agnostic Defense: PCT acts as a "versatile plug-in." It can be added to existing CL strategies like EWC (Elastic Weight Consolidation), SI (Synaptic Intelligence), or Replay-based methods without changing the underlying neural network architecture.
  • The Buffer Synergy: While increasing the "replay buffer" (storing old samples to re-show the model) helps reduce regression, adding PCT provides a significant boost even when memory buffers are very small.

Key Results

  • Significant NFR Reduction: On the ELSA dataset, standard CL methods like Synaptic Intelligence (SI) had a malware NFR of 3.40%. Integrating PCT slashed this to 1.19%—a nearly 65% reduction in regressions.
  • Stability in Tesseract: In the more challenging Tesseract environment, the combination of Replay + SI + PCT achieved an NFR of 1.43%, compared to nearly 3% for the baseline, while maintaining a competitive F1-score.
  • Improved Accuracy in CIL: In the Class-Incremental scenario (AZ-Class), adding PCT actually improved overall accuracy (e.g., SI rose from 72.46% to 78.12%) while simultaneously reducing the rate of forgotten malware families.
  • Trade-offs: The authors noted that while PCT drastically improves precision and consistency, it can lead to a slight drop in recall in some scenarios, as the model becomes more "conservative" about changing its decision boundaries.

Limitations and Future Work

  • Clean Label Assumption: The study assumes that all training data is correctly labeled. In real-world scenarios, label noise (malware mislabeled as goodware) could interfere with the PCT penalty.
  • Access to Previous Model: PCT requires keeping the previous iteration of the model active during the training of the new one to generate "logits" for comparison, which increases the computational overhead during the training phase.
  • Temporal Structure in CIL: The authors noted that the AZ-Class dataset lacks a strict temporal structure, which may not perfectly reflect how malware families emerge in the real world.
  • Future Directions: The team suggests exploring Active Learning to identify which samples are most likely to cause regressions, allowing for even more targeted updates with less labeled data.

Summary updated

BibTeX
@article{ghiani2026regression,
  author = {Daniele Ghiani and Daniele Angioni and Giorgio Piras and Angelo Sotgiu and Luca Minnei and Srishti Gupta and Maura Pintor and Fabio Roli and Battista Biggio},
  title = {{Regression-Aware Continual Learning for Android Malware Detection}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2026},
  doi = {10.1109/tifs.2026.3714132},
}
Figure