Introduction
Deep learning models are essential for modern security analytics, yet they struggle with a fundamental challenge: data shift. In the security domain, this shift manifests in two ways. First, temporal drift occurs as attackers evolve their techniques, rendering older models obsolete. Second, representation shift occurs when tools must process data at varying levels of abstraction, such as moving from source code to obfuscated binaries.
Standard models suffer from "catastrophic forgetting," where fine-tuning on new data overwrites previous knowledge. While Continual Learning (CL) aims to solve this, most existing methods require "data replay"—storing old data to retrain the model. In security, strict privacy regulations like GDPR and proprietary policies often make data retention impossible. RETROFIT is a novel framework designed for data retrospective-free CL, allowing models to adapt without ever revisiting old data.
The RETROFIT Framework
RETROFIT employs a "model consolidation" approach, using the previous version of the model as a proxy for past knowledge. Its architecture is built on three pillars:
- Low-Rank Model Adaptation: Inspired by LoRA, RETROFIT restricts updates to a small, task-relevant subspace. By modifying only a fraction of parameters, it minimizes the interference between new and old knowledge.
- Knowledge Arbitration: An arbitration module decides whether to prioritize the "old" model (stability) or the "newly adapted" model (plasticity). It uses Hard Arbitration for classification tasks (e.g., malware detection) and Soft Arbitration for generative tasks (e.g., code summarization) based on confidence scores.
- Sparse Mask Learning: Using Group-Lasso regularization, the system learns a "mask" to identify which low-rank components are vital for specific tasks, ensuring they occupy independent parts of the parameter space.
Evaluation and Results
The authors evaluated RETROFIT across two security-critical domains: Android malware detection (temporal drift) and binary summarization (representation shift).
Key Findings
- Malware Detection: RETROFIT improved the "Past-Task Retention" (PTR) score by an average of 30.29% over other CL baselines. While standard models saw F1-scores plummet below 0.80 within three years due to forgetting, RETROFIT maintained high performance over the entire five-year study period (2014–2018).
- Binary Analysis: In summarizing "stripped" (obfuscated) binaries, RETROFIT achieved over 2x the BLEU score of standard transfer learning methods. The framework effectively transferred structural understanding from "easy" decompiled code to "hard" stripped binaries.
- Bounded Forgetting: The paper provides mathematical guarantees that "prediction drift"—the degree to which a model changes its mind on old data—is strictly bounded by the rank of updates and arbitration tightness.
Conclusion
RETROFIT demonstrates that "bounded forgetting" can serve as a powerful regularizer, sometimes even outperforming "Oracle" models retrained on all data from scratch. By eliminating the need for data storage, it provides a privacy-compliant path for deploying adaptive AI in sensitive security environments. Future work includes scaling this approach to Large Language Models (LLMs) for broader tasks like vulnerability discovery.
Summary updated