Abstract
Anomaly detection in dynamic graphs is a critical yet challenging task due to the evolving nature of network structures and attributes. Traditional unsupervised methods often struggle with over-generalization or fail to distinguish between spatial and temporal normality. We present STRIPE (Spatial-Temporal memoRIes enhanced graPh autoEncoder), a novel framework that utilizes dual memory banks to explicitly capture and store prototypes of normal behavior. By integrating these prototypes through a mutual attention mechanism, STRIPE effectively filters anomalies during graph reconstruction. Our evaluation across six real-world datasets demonstrates that STRIPE significantly outperforms state-of-the-art baselines, achieving a 5.8% average improvement in AUC while training over 4x faster.
The Challenge of Dynamic Anomaly Detection
Detecting "bad actors" in evolving networks—such as financial transaction logs or social media streams—requires modeling both what a node looks like (spatial) and how it changes (temporal). Existing approaches face three primary hurdles:
- Over-generalization: High-capacity models may learn to reconstruct anomalous data as efficiently as normal data, obscuring the signal for detection.
- Temporal Neglect: Many models conflate spatial snapshots with temporal trends, missing anomalies that appear normal in a single slice but suspicious over time.
- Computational Scalability: Contrastive learning methods often require expensive negative sampling, limiting their applicability to massive graphs.
The STRIPE Framework
STRIPE addresses these issues by incorporating dedicated memory modules into a graph autoencoder architecture.
The architecture follows a four-stage pipeline:
- Spatial-Temporal Encoding: A Graph Convolutional Network (GCN) extracts spatial features from snapshots, while Gated Temporal Convolutions capture evolution across a sliding window.
- Dual Memory Modules: The core innovation involves two separate memory banks—one for spatial prototypes and one for temporal trends—storing representations of "normality."
- Mutual Attention: The model retrieves relevant normal prototypes from these banks to augment the encoded features.
- Reconstruction & Scoring: A decoder reconstructs the graph. Anomaly scores are derived from the Reconstruction Error and the Compactness Error (the distance between a node's features and its nearest memory prototype).
Key Insights: The "Vibration" Factor
A key motivation for the dual-memory approach is the observation that anomalous nodes often exhibit different "vibration frequencies" in their connectivity patterns compared to benign users.
As shown in the analysis of the DGraph dataset, fraudsters may have distinct degree distributions in a single snapshot, but their temporal behavior (average degree over time) shows much higher volatility. STRIPE's temporal memory bank is specifically designed to capture these "vibration" prototypes, making it easier to flag nodes that deviate from stable, normal trends.
Experimental Results
We evaluated STRIPE on six datasets, including the massive DGraph financial dataset (3.7M nodes).
- Accuracy: STRIPE achieved an average 5.8% improvement in AUC over nine competitive baselines like TADDY and CLDG.
- Efficiency: By avoiding the overhead of negative sampling used in contrastive methods, STRIPE was 4.62× faster to train than the leading alternative on large-scale data.
- Robustness: The model's performance remained stable across varying anomaly ratios, indicating strong generalization.
Conclusion and Future Directions
STRIPE demonstrates that explicit memory of normal prototypes is a powerful tool for unsupervised anomaly detection. While highly effective, future work could address the assumption of "clean" training data (where no anomalies are present initially) and explore adaptive time windows to capture multi-scale temporal dynamics. Extending this approach to heterogeneous graphs also remains a promising avenue for research.
Summary updated