Cyber Threat Classification Under Non-Stationary Environments: An Adapt In-Context Learning (Adapt-ICL) Approach
Abstract
Pretrained large language models (LLMs) have demonstrated significant potential for cybersecurity analytics; however, evolving threat behaviors and shifting data distributions can undermine their reliability following deployment. Most existing adaptation methods require continual parameter updates, whereas retrieval-based in-context learning typically assumes that historical demonstrations remain representative over time. To overcome these challenges, Adapt-ICL is introduced as an inference-time adaptation framework that integrates Temporal Global Memory Evolution with Memory-Conditioned Hybrid Retrieval, while maintaining a frozen pretrained LLM backbone. Adapt-ICL is evaluated on the EMBER2024 malware benchmark using six general-purpose and cybersecurity-specific LLMs. Experimental results indicate that Adapt-ICL surpasses existing ICL-based approaches on Accuracy across all six LLMs and on Macro-F1 for five of the six, reduces the performance gap with continual fine-tuning, and sustains stable performance across sequential temporal intervals. These results underscore the effectiveness of memory-guided inference-time adaptation for robust cyber threat classification in non-stationary operational environments.
Create a lesson
Metadata
- Categories
- cs.CR, cs.AI, cs.LG
- Comments
- 15 pages. Accepted at the INFORMS Workshop on Data Science 2026
Related papers
Copied and Perturbed: A String-Based Likelihood-Ratio Membership Inference Attack on LLM In-Context Table Synthesis
Shared title terminologycs.CRJoshua Ward, Haoyuan Cheng, Yue Zhang et al.
Heracles: An AI-Enabled Hybrid Cyber Range for OT Security
Shared title terminologycs.CRFrancesco Altiero, Domenico Cotroneo
Towards Computational Robustness of Latent Diffusion Watermarking Against Removal Attacks with Adaptive Detector Access
Shared title terminologycs.CRDe Zhang Lee, Ee-Chien Chang
ScamWeb: A Multimodal Benchmark for Grounded Understanding of Cyber-enabled Fraud Webpages
Shared title terminologycs.CRZhihua Wang, Nan Li, Ziyang Chen et al.
Comparative Evaluation of CNN, CNN-LSTM, and CNN-AGRU Architectures for Encrypted Network Traffic Classification
Shared title terminologycs.CRVenu Siddapura Govindaraju, Rujjal Sada, Imadaldin Berika
Toward Secure AI at the Edge: Threats, Defenses, and Open Research Challenges
Shared title terminologycs.CRSean Oesch, Jack Hutchins, Samuel Hildebrand et al.