arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.05458cs.CRcs.AI
收藏

MA-IDS:基于经验库的多智能体RAG框架用于物联网网络入侵检测

MA-IDS: Multi-Agent RAG Framework for IoT Network Intrusion Detection with an Experience Library

Md Shamimul Islam, Luis G. Jaimes, Ayesha S. Dina

AI总结:

本文提出MA-IDS框架,结合大语言模型与RAG技术,通过经验库实现自学习的入侵检测,实验表明其在物联网网络中具有高准确率和可解释性。

摘要:

网络入侵检测系统(NIDS)面临重要限制。基于签名的方法对已知攻击模式有效,但难以检测零日攻击且常遗漏修改后的已知攻击变种,而许多机器学习方法提供有限的可解释性。在物联网环境中,资源限制和异构协议使这些挑战更加严峻。为此,本文提出MA-IDS,一种结合大语言模型(LLMs)与检索增强生成(RAG)的多智能体入侵检测系统。该框架通过持久且自建的经验库支撑LLM推理。两个专用智能体通过基于FAISS的向量数据库协作:一个流量分类智能体在每次推理前检索过往错误规则,另一个错误分析智能体将误分类转换为可读的检测规则并存储供未来检索,从而通过外部知识积累实现持续学习,无需修改底层语言模型。在NF-BoT-IoT和NF-ToN-IoT基准数据集上评估,MA-IDS在宏F1分数上达到89.75%和85.22%,比零样本基线分别提高72和80个百分点。这些结果与SVM竞争,同时为每个分类决策提供规则级解释,证明检索增强推理为物联网网络的可解释、自改进入侵检测提供了原理性路径。

英文摘要:

Network Intrusion Detection Systems (NIDS) face important limitations. Signature-based methods are effective for known attack patterns, but they struggle to detect zero-day attacks and often miss modified variants of previously known attacks, while many machine learning approaches offer limited interpretability. These challenges become even more severe in IoT environments because of resource constraints and heterogeneous protocols. To address these issues, we propose MA-IDS, a Multi-Agent Intrusion Detection System that combines Large Language Models (LLMs) with Retrieval Augmented Generation (RAG) for reasoning-driven intrusion detection. The proposed framework grounds LLM reasoning through a persistent, self-building Experience Library. Two specialized agents collaborate through a FAISS-based vector database: a Traffic Classification Agent that retrieves past error rules before each inference, and an Error Analysis Agent that converts misclassifications into human-readable detection rules stored for future retrieval, enabling continual learning through external knowledge accumulation, without modifying the underlying language model. Evaluated on NF-BoT-IoT and NF-ToN-IoT benchmark datasets, MA-IDS achieves Macro F1-Scores of 89.75% and 85.22%, improving over zero-shot baselines of 17% and 4.96% by more than 72 and 80 percentage points. These results are competitive with SVM while providing rule-level explanations for every classification decision, demonstrating that retrieval-augmented reasoning offers a principled path toward explainable, self-improving intrusion detection for IoT networks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑