Topology-aware benign-only learning improves intrusion detection on some graph datasets
TRACE can detect malicious activity without using attack labels during training, achieving competitive F1 scores on certain benchmarks
AI/ML arXiv 16 Nov 2026 Method Prototype evidence
Published as “TRACE: Topological Representations for Anomaly detection through Contrastive Embeddings”
Why it matters
TRACE shows that benign-only, topology-aware contrastive learning can provide competitive intrusion detection without attack labels in certain settings, but its benefits are dataset-dependent and require careful validation before deployment.
Summary
TRACE achieves the highest F1 score among all methods on the Unicorn Wget dataset (0.583 ± 0.053), and it outperforms the GraphCL baseline on StreamSpot (0.923 ± 0.019 vs 0.450 ± 0.154). However, on GraSec-IoT TRACE falls behind GraphCL (0.790 ± 0.065 vs 0.975 ± 0.003), showing that topology-aware contrastive scoring is not uniformly beneficial. The evidence comes from three real-world graph security datasets with modest sample sizes and comparisons against a supervised GNN and GraphCL, but the evaluation has several methodological caveats.
What they found 2
- TRACE achieves an F1 of 0.923 ± 0.019 on StreamSpot, substantially higher than GraphCL's 0.450 ± 0.154.
“TRACE 0.917 ± 0.023 0.862 ± 0.037 0.996 ± 0.006 0.923 ± 0.019”
- On Unicorn Wget, TRACE attains the highest overall F1 (0.583 ± 0.053) compared to the supervised GNN (0.367 ± 0.306).
“TRACE 0.515 ± 0.062 0.537 ± 0.071 0.710 ± 0.215 0.583 ± 0.053”
Caveats 5
- TRACE obtains a lower F1 (0.790 ± 0.065) than GraphCL (0.975 ± 0.003) on GraSec-IoT, indicating that the topology-aware approach can hurt performance on some graph types.
- Only three datasets and their existing graph constructions are evaluated, so the results may not generalize to other networks, organizations, attack families, or graph-generation procedures.
- The comparison does not use a fully matched architecture and hyperparameter configuration across GraphCL and TRACE, so it cannot attribute performance differences solely to topology.
- Labeled malicious validation graphs are used to select the F1-maximizing threshold; this choice is not fully label-free and may be difficult to reproduce when deployment-time attacks are unavailable.
- Balanced evaluation sets and F1-selected thresholds do not reproduce the low attack prevalence of many operational environments.
What’s new here 3
- Integrates topology-aware graph summaries (degree and closeness based) into contrastive learning for intrusion detection.
- Performs anomaly scoring directly in the contrastive embedding space learned from benign graphs.
- Operates without any attack labels during representation learning, requiring only benign training data.