用小型大模型实现隐私保护的分布式日志异常检测
DP-FlogTinyLLM: Differentially private federated log anomaly detection using Tiny LLMs

- 联邦学习结合差分隐私,不共享原始日志数据
- 在Thunderbird和BGL数据集上达到中心化模型性能
- 适合资源受限场景,尤其擅长降低误报率
现代分布式系统产生海量日志数据,对检测异常和网络威胁至关重要。然而,在实际应用中,这些日志常分散在多个机构,因隐私与安全限制无法集中处理。现有日志异常检测方法,包括基于大型语言模型(LLM)的新方案,大多依赖集中训练,不适用于此类环境。本文提出DP-FLogTinyLLM,一种基于参数高效小型大模型的隐私保护联邦日志异常检测框架。该方法通过融合联邦优化与差分隐私,在不共享原始日志的前提下实现协作学习。为适应资源受限环境,采用低秩适配(LoRA)技术,在各客户端高效微调小型大模型。在Thunderbird和BGL数据集上的实验表明,该框架性能可媲美集中式基于LLM的方法,尽管隐私机制带来额外计算开销。相比现有联邦基线,DP-FLogTinyLLM始终获得更高精确率和F1分数,尤其在Thunderbird数据集上表现突出,有效提升异常检测能力并减少误报。
原文摘要 · Abstract (English)
Modern distributed systems generate massive volumes of log data that are critical for detecting anomalies and cyber threats. However, in real world settings, these logs are often distributed across multiple organizations and cannot be centralized due to privacy and security constraints. Existing log anomaly detection methods, including recent large language model (LLM) based approaches, largely rely on centralized training and are not suitable for such environments. In this paper, we propose DP-FLogTinyLLM, a privacy preserving federated framework for log anomaly detection using parameter efficient LLMs. Our approach enables collaborative learning without sharing raw log data by integrating federated optimization with differential privacy. To ensure scalability in resource constrained environments, we employ low rank adaptation (LoRA) for efficient fine tuning of Tiny LLMs at each client. Empirical results on the Thunderbird and BGL datasets show that the proposed framework matches the performance of centralized LLM based methods, while incurring additional computational overhead due to privacy mechanisms. Compared to existing federated baselines, DP-FLogTinyLLM consistently achieves higher precision and F1-score, with particularly strong gains on the Thunderbird dataset, highlighting its effectiveness in detecting anomalies while minimizing false positives.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。