Transformer IDS with logic rules attains 99.9% accuracy and 99.7% fidelity in 5G intrusion detection
Their ExAI5G framework provides high detection performance while delivering transparent, rule-based explanations
AI/ML arXiv 20 Apr 2026 Method Prototype evidence
Published as “ExAI5G: A Logic-Based Explainable AI Framework for Intrusion Detection in 5G Networks”
Why it matters
The framework enables deployment of a real-time, explainable IDS for 5G networks, allowing operators to understand and act on alerts without sacrificing detection accuracy.
Summary
ExAI5G achieves 99.9% accuracy (99.87% reported) on a 5G IoT intrusion dataset while providing 16 logical rules that explain decisions with 99.72% fidelity. It combines a Transformer IDS, Integrated Gradients, and a surrogate decision tree, and quantitatively evaluates LLM-generated explanations for faithfulness and actionability. Evidence includes high classification metrics, rule fidelity, and LLM explanation scores, but the evaluation is limited to a single dataset and the surrogate is not perfectly faithful.
What they found 2
- The Transformer model attains very high detection performance.
“The Transformer model achieves exceptional performance with an overall accuracy of 99.87% and a macro-averaged F1 score of 0.854.”
- The surrogate decision tree yields a small set of high-fidelity logical rules.
“The surrogate decision tree generates 16 interpretable rules with 99.72% ± 0.01% fidelity and 100% coverage across all runs.”
Caveats 5
- Surrogate Model Fidelity: While the surrogate decision tree achieves high fidelity (99.72%), it is not a perfect one-to-one mapping of the Transformer model. A small fraction of the deep model’s decisions are not captured by the logic rules, indicating a remaining area of opacity.
- Random Forest 0.989
- Transformer (Ours) 0.854
- Dataset Scope: The evaluation is conducted on a single, collected comprehensive, 5G/IoT dataset. The performance and the extracted rules may not generalize perfectly to different network environments.
- Adversarial Robustness: The very transparency of the system could be a vector for attack. An adversary with knowledge of the extracted rules could potentially craft malicious traffic specifically designed to evade detection. The adversarial robustness of this explanation-driven framework has not yet been evaluated.
What’s new here 4
- Extracts a compact set of logical rules (16) from a high-performing Transformer IDS with >99% fidelity.
- Introduces a three-part quantitative evaluation of LLM-generated explanations (semantic similarity, attribution faithfulness, actionability).
- Provides a human expert study comparing LLM-as-judge metrics to analyst ratings.
- Demonstrates real-time inference (median 2.48 ms per flow) suitable for 5G environments.