MA-IDS attains up to 89.8% Macro F1 on IoT intrusion detection with explainable rules
The proposed multi-agent RAG system achieves high Macro F1 scores and provides rule-level explanations for IoT network intrusion detection
AI/ML arXiv 7 Apr 2026 Method Prototype evidence
Published as “MA-IDS: Multi-Agent RAG Framework for IoT Network Intrusion Detection with an Experience Library”
Why it matters
The approach shows that LLM-driven, retrieval-augmented NIDS can achieve high detection accuracy with built-in explainability without frequent model retraining.
Summary
MA-IDS reaches macro F1 scores of 89.75% on NF-BoT-IoT and 85.22% on NF-ToN-IoT, far surpassing zero-shot GPT-4o baselines (17% and 4.96%). The gain comes from a Retrieval-Augmented Generation experience library queried by two GPT-4o agents, providing rule-level explanations and eliminating the need for model retraining. Evidence is based on two public IoT intrusion datasets with 20,000 test samples each, compared against traditional ML baselines.
What they found 3
- MA-IDS achieves macro F1 scores of 89.75% and 85.22% on the two benchmark datasets, a large improvement over zero-shot baselines.
“MA-IDS achieves macro F1-scores of 89.75% and 85.22%, respectively, which constitutes a performance leap of up to 80 percentage points over zero-shot baselines.”
- Zero-shot GPT-4o without the Experience Library attains only 17% and 4.96% macro F1 on the two datasets.
“Without retrieved context, GPT-4o achieves only 17% and 4.96% macro F1 respectively.”
- Retrieval alone (Library Only) raises macro F1 to 89.75% on NF-BoT-IoT, showing the library is the primary performance driver.
“The Library Only configuration improves performance to 89.75% Macro F1 on 20,000 test samples, demonstrating that retrieval is the primary driver.”
Caveats 2
- On NF-ToN-IoT, a conventional SVM reaches 93.42% macro F1, higher than MA-IDS's 85.22%, indicating the method is not universally superior.
- During the library construction phase, the full MA-IDS system attains only 85.43% macro F1, lower than the Library-Only configuration, suggesting continuous rule induction can temporarily degrade performance.
What’s new here 4
- Integrates LLMs with Retrieval-Augmented Generation for network flow classification.
- Introduces a multi-agent architecture where an Error Analysis Agent creates semantic rules from misclassifications.
- Builds a persistent Experience Library that enables continual self-improvement without retraining the underlying model.
- Provides rule-level forensic justifications for each detection decision.