arXiv:2610.41541cs.CROct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.41541

DeepWeave: Weaving Neural and Symbolic Evidence for ML-Based Network Intrusion Detection System

Raoul Saad, Enkeleda Bardhi, Andrea Agiollo, Fernando Kuipers

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Machine learning-based network intrusion detection systems can recognize complex traffic patterns, but often require substantial labelled attack data, degrade under deployment shift, and provide limited evidence for analysts. We present DEEPWEAVE, a probabilistic neuro-symbolic Network Intrusion Detection System (NIDS) that makes logic an integral part of detection. DEEPWEAVE automatically constructs and validates interpretable rules, represents neural predictions as probabilistic predicates, and reconciles both evidence sources through explicit coupling policies over packet-, flow-, and hybrid-views. The resulting proofs provide intrinsic explanations for rule-supported alerts. Across multiple datasets, DEEPWEAVE improves low-data detection, false-positive control, transferability, and robustness. With only 50 labelled packet observations per attack class, it improves macro-F1 from 0.632 to 0.924 and reduces the attack false-positive rate from 0.075 to 0.008 over the matched neural baseline. Its proofs are also more stable than post-hoc neural attributions, while batched inference keeps probabilistic reasoning practical. These results demonstrate label-efficient, adaptable, and inspectable neuro-symbolic intrusion detection.

Keywords Network intrusion detection · Neuro-symbolic AI · Probabilistic logic programming · Explainable Security · Automated rule generation

1 Introduction

Network Intrusion Detection Systems (NIDSs) are a fundamental component of defense architectures. By continuously inspecting packets, flows, or aggregated network events, a NIDS seeks to distinguish benign activity from traffic associated with malicious behaviour. Malicious events are rare, benign traffic is heterogeneous, while both traffic patterns and adversaries evolve. Moreover, sustained volumes of low-value alerts contribute to costly triage and alert fatigue [4, 54]. A practical NIDS must not only be accurate on a static benchmark, but rather control false alarms, remain useful under traffic shifts, and provide evidence that an analyst can inspect [56, 51, 57].

Existing NIDSs largely follow symbolic or machine learning (ML) paradigms [47, 39, 20, 14, 45, 6]. Signature-based engines such as Snort and Suricata match explicit conditions over payloads, protocol fields, and flow state [47, 41, 13]. Their rules are auditable and dependable for known behaviors, but authoring and maintaining them requires substantial expertise, and environment-specific assumptions can produce false positives or miss unseen attack variants [48, 30].

ML approaches instead infer decision boundaries from packet bytes, flow statistics, or temporal behavior and can capture patterns that are cumbersome to specify manually [1, 24, 57, 39, 5]. Yet, supervised models require labelled traffic that is costly and time-consuming to collect and annotate, particularly at the scale of operational networks [51, 61]. Moreover, learned models may rely on dataset-specific correlations and fail under distribution shift, changing benign traffic, or previously unseen attacks [51, 9]. Their limited transparency further complicates operational use since they provide little actionable evidence and post-hoc explanations fail to capture a meaningful rationale for the decision of the security analyst [57, 52]. Finally, because an adversary can manipulate observable traffic characteristics while preserving malicious functionality, the learned decision boundary itself becomes a target for evasion [22]. Thus, although

A PREPRINT

ML provides flexibility and powerful pattern-recognition capabilities, its limited generalization, explainability, and adversarial robustness prevent ML-based NIDS from constituting a complete solution.

To overcome such limitations, recent studies have begun to explore neuro-symbolic intrusion detection [8, 55]. Neuro-symbolic approaches broadly integrate prior symbolic knowledge into neural learning by encoding logical constraints into the learning objective, compiling symbolic structure into neural architectures or coupling neural perception with discrete or probabilistic symbolic reasoning [36, 18]. Existing work provides an initial exploration of neuro-symbolic NIDS, but remains limited in the scope of the symbolic knowledge and reasoning considered, offering neither a systematic procedure for constructing and validating expressive security rules nor a principled mechanism for resolving conflicts between neural and symbolic evidence.

This paper addresses these challenges through DEEPWEAVE, a probabilistic neuro-symbolic NIDS which treats the neural and symbolic components as distinct, potentially conflicting attack evidences. The neural component learns from packet-, flow-, or hybrid-level traffic and defines a neural predicate over benign and attack classes. In parallel, the symbolic component evaluates interpretable predicates over traffic features. DEEPWEAVE constructs candidate rules automatically, identifying class-relevant features on held-out traffic data, deriving candidate predicates, and calibrating their behavior on traffic data. Lastly, DEEPWEAVE combines neural and symbolic evidence through a coupling policy that may enforce strict agreement between neural and logic or favor either component.

Relying on the neural symbolic weave, DEEPWEAVE requires fewer data to optimize, as the knowledge encoded in the symbolic rules is excluded from the neural training process. Additionally, DEEPWEAVE generalizes well even under network or – possibly adversarial – traffic changes, as the symbolic guidance enables DEEPWEAVE to ignore spurious signals coming from noisy data during learning. Lastly, making its coupling policy explicit and relying on intelligible symbolic rules, DEEPWEAVE exposes the supporting proof path for its predictions. These proofs identify the satisfied predicates and rules supporting an alert, providing an explanation that is intrinsic to the model's inference rather than generated by a separate post-hoc explainer.

This paper makes the following contributions:

  • We introduce DEEPWEAVE, a Neuro-Symbolic NIDS combining neural attack evidence with symbolic reasoning over packet, flow, and hybrid traffic views.
  • We design and develop a data-driven rule-construction pipeline that discovers and validate candidate rules without requiring any manual signature base.
  • We formalize coupling policies that govern agreement and conflict between neural and symbolic evidence and generate proof-based explanations.
  • We extensively evaluate DEEPWEAVE through predictive performance, false alerts, cross-distribution generalization, explainability, and robustness to adversarial traffic.

The remainder of this paper is organized as follows. § 2 presents the paper motivation and the necessary background. § 3 describes DEEPWEAVE architecture, while § 4 details its implementation and § 5 elaborates on its evaluation. Lastly, § 6 discuss limitations and § 7 the related work, while § 8 concludes the paper.

References (54)