Abstract
Detecting anomalous activity in dynamic, time-evolving networks is a critical task in domains ranging from epidemiology to social media monitoring. This paper presents a novel, near-linear time approach for identifying "heavy" temporal subgraphs—groups of nodes with unusually intense interactions over a specific time window. By introducing a logarithmic temporal filtering technique and an optimized Prize Collecting Steiner Tree (PCST) solver, the proposed FASTGW algorithm achieves up to four orders of magnitude speedup over baseline methods while improving the quality of detected anomalies.
Introduction
Real-world data is increasingly represented as dynamic networks where connections between entities evolve over time. Identifying anomalies in these networks often involves finding the Heaviest Dynamic Subgraph (HDS): a connected set of nodes and a corresponding time interval that maximizes the total edge weight. This problem is computationally daunting due to the $O(T^2)$ possible time intervals and the NP-hard nature of finding the heaviest connected subgraph even for a fixed window. Prior methods were often quadratic in graph size, limiting their utility for massive modern datasets.
Algorithmic Framework
The authors address these challenges through a three-part strategy:
- Temporal Filtering (
SELECTINTERVALS): Instead of an exhaustive search of all possible windows, the algorithm selects a subset of $O(T \log T)$ intervals. This "small certificate" approach is theoretically guaranteed to preserve a solution within a factor of 2 of the global maximum. FASTGWAlgorithm: The static subgraph problem within each interval is solved using an optimized Goemans-Williamson (GW) approximation. By implementing edge splitting and efficient data structures like binomial heaps, the authors reduced the complexity from $O(n^2 \log n)$ to near-linear time.C-SAR(Component SAR): To identify multiple anomalies, this iterative method finds the heaviest region and then "discounts" its contribution to find subsequent significant subgraphs without overlap.
Experimental Evaluation
The proposed methods were tested on diverse datasets, including Los Angeles highway traffic, Twitter communication in Venezuela, and Wikipedia page views.
As shown in the runtime analysis above, FASTGW exhibits exceptional scalability. On the Traffic dataset, the "Basic" approach's runtime grows exponentially, while FASTGW remains near-linear, providing speedups of up to 10,000x on large-scale hospital contact networks.
Beyond speed, the algorithm maintains high solution quality. In comparisons with MEDEN, a previous state-of-the-art heuristic, FASTGW consistently achieved higher objective scores across multiple datasets, indicating it finds "heavier" and more significant subgraphs. In the Venezuela Twitter dataset, these detected subgraphs aligned closely with gold-standard records of actual civil unrest events.
Conclusion
This work bridges the gap between theoretical algorithmic design and practical big data mining. By adapting classic approximation techniques for modern dynamic networks, the authors provide a tool capable of monitoring massive datasets for real-time anomalies. Future research may extend these techniques to streaming data environments or incorporate additional structural constraints on the detected subgraphs.
Summary updated