arXiv:2509.10511cs.LGcs.AI2025-09被引 2

用类脑记忆与自适应探索提升日志异常检测效果

LogGuardQ: A Cognitive-Enhanced Reinforcement Learning Framework for Cybersecurity Anomaly Detection in Security Logs

  • 引入双记忆机制和温度衰减好奇心策略增强探索能力
  • 在百万级日志中实现96%检测率,召回率达99.96%
  • 适合安全运维、入侵检测等需要自适应决策的场景

强化学习在序列决策中表现优异,但传统方法如DQN和PPO在动态环境中面临探索效率低、稳定性差与适应性不足的问题。本文提出LogGuardQ(自适应日志防护系统),融合人类认知启发的双记忆结构与基于温度衰减及好奇心驱动的自适应探索策略。在包含100万条模拟访问日志、含47.9%异常的测试集上,经20,000轮训练后,该模型达到96.0%的检测率(优于DQN的93.0%与PPO的47.1%),精度为0.4776,召回率为0.9996,F1得分为0.6450。平均奖励为20.34 ± 44.63(高于DQN的18.80 ± 43.98,远超PPO的-0.17 ± 23.79),每轮平均步数保持5.0步不变。通过光滑化学习曲线(Savgol滤波,窗口=501,多项式=2)、方差趋势、动作分布与累计检测量分析,证实其卓越稳定性与高效性。统计检验(Mann-Whitney U)显示显著优势:与DQN相比p=0.0002(效应量小),与PPO相比p<0.0001(中等效应量),且DQN与PPO差异亦具统计意义(p<0.0001,小效应量)。本研究将认知科学与强化学习结合,为不确定环境下的自适应学习提供可扩展范式,适用于网络安全、入侵检测与不确定性决策等领域。

原文摘要 · Abstract (English)

Reinforcement learning (RL) has transformed sequential decision-making, but traditional algorithms like Deep Q-Networks (DQNs) and Proximal Policy Optimization (PPO) often struggle with efficient exploration, stability, and adaptability in dynamic environments. This study presents LogGuardQ (Adaptive Log Guard with Cognitive enhancement), a novel framework that integrates a dual-memory system inspired by human cognition and adaptive exploration strategies driven by temperature decay and curiosity. Evaluated on a dataset of 1,000,000 simulated access logs with 47.9% anomalies over 20,000 episodes, LogGuardQ achieves a 96.0% detection rate (versus 93.0% for DQN and 47.1% for PPO), with precision of 0.4776, recall of 0.9996, and an F1-score of 0.6450. The mean reward is 20.34 \pm 44.63 across all episodes (versus 18.80 \pm 43.98 for DQN and -0.17 \pm 23.79 for PPO), with an average of 5.0 steps per episode (constant across models). Graphical analyses, including learning curves smoothed with a Savgol filter (window=501, polynomial=2), variance trends, action distributions, and cumulative detections, demonstrate LogGuardQ's superior stability and efficiency. Statistical tests (Mann-Whitney U) confirm significant performance advantages (e.g., p = 0.0002 vs. DQN with negligible effect size, p < 0.0001 vs. PPO with medium effect size, and p < 0.0001 for DQN vs. PPO with small effect size). By bridging cognitive science and RL, LogGuardQ offers a scalable approach to adaptive learning in uncertain environments, with potential applications in cybersecurity, intrusion detection, and decision-making under uncertainty.

强化学习异常检测网络安全认知模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。