TL;DR
PRESTO is a new sampling-based algorithm designed to count "temporal motifs"—small, time-constrained patterns—in massive networks with billions of edges. It provides rigorous probabilistic guarantees on its estimates while being significantly faster and more memory-efficient than previous state-of-the-art methods.
What Problem Does This Paper Address?
In network science, "motifs" are small recurring subgraphs (like triangles or feed-forward loops) that serve as the building blocks of complex systems. While counting these in static graphs is well-studied, modern datasets—like social media interactions, financial transactions, or neural activity—are temporal. In these networks, a motif isn't just about who is connected to whom, but when those connections happen.
Counting temporal motifs is much harder. To be considered a "temporal motif instance," the edges must occur in a specific order and within a tight time window (denoted as $\delta$). This problem is often NP-hard. Existing solutions fall into two camps:
- Exact algorithms: These are accurate but fail to scale to large datasets (e.g., networks with billions of edges).
- Approximate/Sampling algorithms: These scale better but often lack strong mathematical guarantees or still require massive amounts of memory, making them impractical for truly "big data."
Methods
The authors introduce PRESTO (apPRoximating tEmporal motifS counTs with unifOrm sampling). The core strategy is deceptively simple: instead of analyzing the whole graph, PRESTO samples small, random temporal windows and counts the motifs within them.
Key technical components include:
- Uniform Window Sampling: The algorithm selects $s$ random time windows of length $c\delta$ (where $c$ is a small constant, typically around 1.25).
- Two Variants:
- PRESTO-A: Samples the start time of windows uniformly across the entire timespan of the network.
- PRESTO-E: Samples start times specifically from the timestamps of existing edges. This is much more effective for "bursty" networks where activity is clustered in time.
- Unbiased Estimation: By weighting each discovered motif instance by the inverse of the probability that it would be captured in a random window, PRESTO produces an unbiased estimate of the total count.
- Rigorous Guarantees: The authors use Bennett’s inequality to derive tight bounds on the number of samples needed to achieve a desired accuracy ($\epsilon$) with high confidence ($1-\eta$). This provides a mathematical "safety net" that previous samplers lacked.
Datasets
The authors evaluated PRESTO on several large-scale real-world datasets:
- Stackoverflow (SO): 47.9 million edges (interactions on the Q&A site).
- Bitcoin (BI): 113 million edges (transaction network).
- Reddit (RE): 636 million edges (comment interactions).
- EquinixChicago (EC): A massive, newly introduced bipartite dataset containing 2.32 billion temporal edges representing internet packet traces.
Key Insights and Ideas
- Bennett > Hoeffding: Most probabilistic algorithms rely on Hoeffding’s inequality for bounds. The authors show that Bennett’s inequality provides much tighter (linear vs. quadratic) bounds for this specific problem, meaning you need fewer samples to reach the same level of certainty.
- Handling Skewed Data: In many real networks, edges don't appear uniformly; they come in bursts. PRESTO-E's edge-centric sampling ensures the algorithm doesn't waste time sampling "empty" time intervals, significantly improving accuracy on datasets like Reddit.
- Memory Efficiency is King: For billion-edge graphs, memory is often the primary bottleneck. PRESTO’s window-based approach allows it to process massive graphs that cause other state-of-the-art samplers to crash.
Key Results
- Superior Accuracy: In head-to-head comparisons with other samplers (LS and ES), PRESTO consistently achieved the lowest Mean Average Percentage Error (MAPE) for the same time budget.
- Massive Scalability: PRESTO successfully analyzed the 2.3 billion edge EquinixChicago dataset. The competing "ES" algorithm failed on this dataset even with 400GB of RAM.
- Speedups: PRESTO is up to 500x faster than exact counting methods. Furthermore, it is "embarrassingly parallel," achieving nearly linear speedup as more CPU cores are added.
Limitations and Future Work
- Motif Size: While PRESTO is scalable, it still relies on an underlying exact enumerator for the sampled windows. As the number of edges in the motif ($\ell$) increases, the local counting step becomes exponentially more expensive.
- Simultaneous Counting: The current version counts one motif topology at a time. A promising future direction is developing techniques to estimate counts for multiple different motifs simultaneously.
- Streaming Data: The authors suggest extending these rigorous sampling techniques to adversarial streaming scenarios where the network is constantly evolving.
Summary updated