Abstract
Graph source localization is the critical inverse problem of identifying the origin of information, viruses, or rumors within a network. Despite its importance in cybersecurity, epidemiology, and social media analysis, the field has lacked a unified framework for benchmarking and development. We present GraphSL, the first comprehensive open-source library dedicated to graph source localization. GraphSL integrates six state-of-the-art algorithms—ranging from classical heuristics to modern Graph Neural Networks (GNNs)—and six diverse benchmark datasets. By providing a standardized, reproducible environment, GraphSL enables researchers to evaluate source-detection techniques effectively.
Introduction: The Inverse Problem of Network Diffusion
In graph learning, significant research has focused on graph diffusion: predicting how information spreads from a known source. However, the inverse problem—graph source localization—is often more critical for real-world intervention. Given a snapshot of a network where certain nodes are "infected" or "informed," the goal is to pinpoint the original "patient zero" or the rumor's starting point.
This task is vital for stopping computer viruses, identifying the origin of "infodemics," and detecting failures in smart grids. Historically, the field has been fragmented, lacking support for diverse diffusion simulations and modern deep learning approaches. GraphSL aims to fill this gap by providing a "one-stop shop" for graph source localization research.
Methods and Library Architecture
GraphSL categorizes source localization approaches into two main families, offering a mix of classical heuristics and modern deep learning models.
1. Prescribed Methods (Heuristics)
These rely on hand-crafted rules and mathematical principles:
- LPSI: Assumes sources are likely surrounded by a high proportion of infected neighbors.
- NetSleuth: Uses the Minimum Description Length (MDL) principle to find the most concise set of source nodes explaining the observed spread.
- OJC (Jordan Cover): Identifies nodes that cover all infected nodes within a minimum radius.
2. GNN-based Methods (Learning)
These leverage Graph Neural Networks to learn diffusion rules directly from data:
- GCNSI: Combines LPSI with Graph Convolutional Networks.
- IVGD: An "invertible" graph diffusion model using validity-aware layers to project predicted sources into feasible regions.
- SLVAE: Uses Variational Autoencoders (VAEs) to approximate source distributions, allowing generalization across arbitrary diffusion patterns.
The library is built for extensibility, using a standardized Metric object to calculate performance indicators such as accuracy, precision, recall, F-score, and AUC.
Benchmark Datasets
GraphSL integrates six diverse benchmark datasets, ranging from small social networks to large-scale infrastructure:
- Karate & Dolphins: Small-scale social networks (34–62 nodes).
- Jazz: A network of jazz musicians (198 nodes).
- Network Science: A co-authorship network (1,589 nodes).
- Cora-ML: A standard citation network (2,810 nodes).
- Power Grid: A high-voltage transmission grid (4,941 nodes), representing critical infrastructure.
Key Insights and Results
The primary contribution of GraphSL is the standardization of the field. Before this library, comparing GNN-based methods against classical heuristics was difficult due to differing data formats. GraphSL provides a "level playing field" for "apples-to-apples" comparisons.
Furthermore, GraphSL’s methods do not require prior knowledge of whether there is a single source or multiple sources, making them applicable to messy, real-world data. As a software announcement, the key result is the availability of a pip-installable package (pip install GraphSL) with full documentation, lowering the barrier to entry for researchers in epidemiology, cybersecurity, and social science.
Limitations and Future Work
While GraphSL represents a significant step forward, several areas for future development remain:
- Scalability: Future iterations may need more optimized GNN architectures to handle social networks involving millions of nodes.
- Dynamic Graphs: The current version focuses on snapshots; future work might address temporal graphs where network structure evolves.
- Community Contribution: The authors invite the community to add new algorithms and datasets via their GitHub repository to ensure long-term value.
Summary updated