Cyber Threat Classification Under Non-Stationary Environments: An Adapt In-Context Learning (Adapt-ICL) Approach

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.

Authors

Publication Details

Journal
arXiv
Published
2026-11-30
Primary Topic
Advanced Malware Detection Techniques
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

Cyber Threat Classification Under Non-Stationary Environments: An Adapt In-Context Learning (Adapt-ICL) Approach

Sagar Samtani, Benjamin Ampel, Chengjun Zhang, Yang Gao
arXiv
Advanced Malware Detection Techniques
preprint

Cyber Threat Classification Under Non-Stationary Environments: An Adapt In-Context Learning (Adapt-ICL) Approach

Sagar Samtani, Benjamin Ampel, Chengjun Zhang, Yang Gao
preprint en

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.

arXiv
Advanced Malware Detection Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon