Research
ARES: Anomaly Recognition Model For Edge Streams
Overview Research area: Machine learning for streaming graph anomaly detection, with a focus on cyber-security. Technical level: Advanced — the paper assumes familiarity with graph neural networks, st
- arXiv
- 2511.22078
- Published
- 2025-11-27
- Authors
- Simone Mungari, Albert Bifet, Giuseppe Manco, Bernhard Pfahringer
AI summary
Overview
Research area: Machine learning for streaming graph anomaly detection, with a focus on cyber-security.
Technical level: Advanced — the paper assumes familiarity with graph neural networks, streaming algorithms, isolation-based anomaly detection, and asymptotic complexity analysis.
Scope: The paper presents ARES, an unsupervised framework that combines Graph Neural Networks with Half-Space Trees to score edges in temporal graph streams, plus a supervised Gini-index-based thresholding method, and evaluates both across seven real-world cyber-attack datasets.
What This Paper Is About
Network traffic and similar streaming data can be modeled as a temporal graph of edges, where an "edge anomaly" is an unusual connection between two endpoints at a point in time. The problem is to decide, for each arriving edge, how likely it is to be anomalous, despite concept drift, very large data volumes, and the requirement to respond in real time.
Existing methods tend to specialize: some catch "spike" anomalies on individual connections, others catch "burst" anomalies involving coordinated behavior across many nodes, and most unsupervised methods output raw anomaly scores that still need a domain-specific cut-off to become decisions. ARES aims to detect both anomaly types while operating without prior labeling, and it also proposes a way to pick that cut-off automatically.
Key Contributions
- The ARES framework itself — a model for edge-stream anomaly detection that combines Graph Neural Networks (for feature extraction) with Half-Space Trees (for anomaly scoring), with two variants: ARES-Static (HST leaf counters frozen after initialization) and ARES-Dynamic (HST counters continuously updated).
- Theoretical and empirical efficiency evidence — a complexity analysis showing that under bounded parameters the per-edge cost is constant, determined by the number of nodes in the current graph, so the model scales to continuously growing graphs.
- A validation-based adaptive thresholding mechanism — a supervised, domain-agnostic procedure that uses the Gini index over anomaly scores and labels on a small validation set to select the threshold τ*.
- An extensive evaluation — comparison against state-of-the-art methods on seven real-world cyber-attack scenarios, with reported space and time complexity, using nine seeds and Wilcoxon testing at 95% confidence.
Main Findings
- ARES outperforms competitors on most datasets: In Table 1, ARES-Static achieves "best" or "second-best" marks (bold/underline) across DARPA, UNSW-NB15, and ISCX2012 in both ROC-AUC and AP. For example, ARES-Static reports 0.985 ± 0.008 ROC-AUC and 0.991 ± 0.005 AP on DARPA, versus MIDAS-F at 0.957 ± 0.004 and 0.977 ± 0.002 (the content provided truncates the remainder of this table).
- Reported relative gains: ARES improves over competitors by up to +12.8% on Scenario 1 and +23.5% on Scenario 10, in terms of ROC-AUC and AP respectively.
- One documented exception: On CIC-IDS2017, MIDAS-F shows better scores than ARES in both AUC and AP.
- Stability under concept drift: Over-time ROC-AUC tracking shows ARES maintaining stable performance and outperforming MIDAS and SLADE-H. Results for AnoEdge are omitted there because its performance is significantly lower.
- Robustness beyond the rare-anomaly assumption: HST assumes anomalies are rare, and ARES is expected to work well when they are, yet the framework "produces high-quality results even when this property does not occur in the data."
- Constant per-edge complexity: With the parameters h (max tree height), ψ (window size), β (number of trees), κ (GraphSAGE layers), s (batch size), r (neighbors sampled) and K bounded, the overall cost is determined solely by the number of nodes in the current graph — constant per edge in practice.
Methodology in Plain English
ARES has two parts.
First, an embedding generator. A Graph Autoencoder (a graph neural network that compresses a graph into vectors and tries to reconstruct it) is trained on an initial snapshot of the edge stream. The encoder — built with GraphSAGE — is then frozen and used for the rest of the stream. Each arriving edge (s, d, t) gets its source and destination node embedded, and the edge itself is represented either as the average of the two node embeddings (Equation 1) or as their difference (Equation 2, which captures direction). The choice between these two is made on the validation set.
Second, an anomaly scorer. Two Half-Space Tree ensembles — one over node embeddings (HST^v), one over edge embeddings (HST^e) — partition the latent space by repeatedly choosing a random feature and split value. Tree leaves count how many points land in their region; points in sparse regions score higher. Because HST was designed for streams, it uses a sliding window and needs no dedicated training phase. The final score for an edge is a weighted average of the source score, destination score, and edge score (Equation 4).
Streaming pipeline (Algorithm 1). For each new edge, the graph is updated, embeddings are generated (unless the edge pair is already in a cache), the score is computed, and the HSTs may be updated (in the Dynamic variant). A cache of size C, managed by FIFO, LRU, or full replacement, avoids recomputing scores for repeated (s, d) pairs — useful for burst traffic such as DoS attacks.
Threshold selection. A small labeled validation set produces score/label pairs. ARES sweeps candidate thresholds and picks the one minimizing the size-weighted Gini impurity of the resulting two partitions (Equation 5), where Gini(S) = 1 − (p₊² + p₋²).
Experimental protocol. Seven real-world datasets (DARPA, UNSW-NB15, ISCX2012, CIC-IDS2017, and CTU-13 scenarios 1, 10, and 13). CTU-13 scenarios with fewer than 1 million edges or closely resembling other attack types were excluded. Each dataset is split 60% training / 20% validation / 20% test. Competitors are MIDAS (plus MIDAS-R and MIDAS-F), AnoGraph (AnoEdge-G and AnoEdge-L), and SLADE-H, run from the authors' source code with hyperparameters tuned per the original papers. Metrics are ROC-AUC and AP, plus F1-Score and Balanced Accuracy when using the thresholding mechanism. Experiments used nine seeds, Wilcoxon testing at 95% confidence, PyTorch Geometric and River, on an NVIDIA DGX with 4 V100 GPUs.
Why This Matters
Impact on research. ARES argues that a graph neural network does not need to be the whole detector: a lightweight GNN for representation plus a streaming-friendly tree ensemble for scoring can beat heavier temporal-graph models while having a provable per-edge constant cost. It also directly addresses a frequent practical complaint about unsupervised anomaly detection — the arbitrariness of the decision threshold — by grounding the choice in a measurable criterion (Gini impurity) over a minimal labeled set.
Real-world applications:
- DDoS and DoS mitigation — the paper's motivating example is a hosting website (s₁) suddenly targeted by massive connection attempts from many peers.
- Botnet detection — evaluated on the CTU-13 botnet traffic scenarios.
- Network intrusion detection — DARPA, ISCX2012, CIC-IDS2017 and UNSW-NB15 cover DoS, DDoS, Brute Force, XSS, SQL Injection, Infiltration, Port Scan, and Botnet, as well as Remote-to-Local, User-to-Root and Surveillance attacks.
- Financial fraud detection — cited among the threat categories that can be represented as anomalous temporal connections.
Industry relevance. Because the model operates without labels and keeps cost constant per edge, it fits deployments where labeled attack data is scarce and traffic volume is large — telecom and ISP monitoring, security operations centres, cloud infrastructure, and any streaming pipeline where a model must keep up with the data rate rather than run in batch. The public code release supports reproduction and further comparison.
Future Directions
- Closing the CIC-IDS2017 gap. MIDAS-F beat ARES on that dataset in both AUC and AP; understanding why (edge-frequency-driven anomalies versus geometrically-representable ones) is an open question.
- Handling anomaly-dense streams. The paper notes HST's effectiveness diminishes when a large number of anomalies occurs because the leaf counts become distorted; ARES-Static is a partial remedy, but a principled alternative is not offered.
- Eliminating even the minimal supervision. The thresholding mechanism still requires a small labeled validation set; a fully unsupervised way to reach the same cut-off would broaden applicability.
- Extending the evaluation and the GNN component. The design deliberately uses a simple GNN to keep overhead low, leaving open whether richer encoders improve detection at acceptable cost, and what a wider range of domains and anomaly taxonomies would reveal. The paper's Section 6 conclusion and the results for RQ2, RQ3 and RQ4 are not included in the provided excerpt.
Target Audience
Researchers and practitioners in streaming machine learning, graph representation learning, and network security: those building intrusion-detection or fraud-detection systems on high-volume event streams; those studying unsupervised and semi-supervised graph anomaly detection who want a strong baseline with published complexity bounds; and engineers who need a detector whose per-edge cost does not grow as the graph grows. Readers should be comfortable with graph neural networks, isolation-based anomaly detection, and algorithmic complexity notation.
Authors’ abstract
Many real-world scenarios involving streaming information can be represented as temporal graphs, where data flows through dynamic changes in edges over time. Anomaly detection in this context has the objective of identifying unusual temporal connections within the graph structure. Detecting edge anomalies in real time is crucial for mitigating potential risks. Unlike traditional anomaly detection, this task is particularly challenging due to concept drifts, large data volumes, and the need for real-time response. To face these challenges, we introduce ARES, an unsupervised anomaly detection framework for edge streams. ARES combines Graph Neural Networks (GNNs) for feature extraction with Half-Space Trees (HST) for anomaly scoring. GNNs capture both spike and burst anomalous behaviors within streams by embedding node and edge properties in a latent space, while HST partitions this space to isolate anomalies efficiently. ARES operates in an unsupervised way without the need for prior data labeling. To further validate its detection capabilities, we additionally incorporate a simple yet effective supervised thresholding mechanism. This approach leverages statistical dispersion among anomaly scores to determine the optimal threshold using a minimal set of labeled data, ensuring adaptability across different domains. We validate ARES through extensive evaluations across several real-world cyber-attack scenarios, comparing its performance against existing methods while analyzing its space and time complexity.