Finding path motifs in large temporal graphs using algebraic\n fingerprints

Suhas Thejaswi, Aristides Gionis, Juho Lauri · DOI

TL;DR

This paper introduces a novel algebraic framework for efficiently finding specific temporal paths (motifs) in large, vertex-colored temporal graphs. Despite these problems being NP-hard, their method scales to graphs with billions of edges and can find solutions in minutes, outperforming traditional approaches.

What Problem Does This Paper Address?

Real-world networks, like social interactions, transportation systems, or financial transactions, are often dynamic and complex. To understand these networks, researchers model them as temporal graphs, where interactions have timestamps. Furthermore, these networks can be enriched with vertex attributes (like user interests or location types), making them vertex-colored temporal graphs. A key challenge is to find specific sequences of interactions (paths) that not only follow temporal constraints (interactions happening in increasing order of time) but also match a desired pattern of vertex attributes (colors). For example, finding a tour route that visits specific types of attractions in a particular order, or detecting suspicious financial transaction chains involving certain entities. These "pattern detection" problems are crucial for applications but are computationally challenging, often being NP-hard. Existing methods struggle to scale to the massive datasets generated today.

Methods

The authors propose an "algebraic-algorithmic framework" based on constrained multilinear sieving. The core idea is to translate the graph problem into a polynomial problem. Specifically, they encode temporal walks (sequences of vertices and edges with timestamps) as monomials in a multivariate polynomial. A temporal path corresponds to a multilinear monomial in this polynomial.

Their approach involves:

  1. Polynomial Encoding: Dynamically generating polynomials that represent all possible temporal walks of a certain length.
  2. Algebraic Sieving: Using a technique called "multilinear sieving" to efficiently detect the existence of a multilinear monomial (which signifies a temporal path) within these polynomials. This is done by evaluating the polynomial at random points, leveraging the fact that non-zero polynomials are unlikely to evaluate to zero at random points.
  3. Constrained Sieving: Extending the sieving technique to handle additional constraints, such as matching a specific multiset of vertex colors (the "motif query").
  4. Vertex-Localization: An optimization that focuses the polynomial computation on specific vertices, significantly reducing the graph size and improving scalability.

This algebraic approach offers a theoretical guarantee of finding a solution if one exists, with a controllable (very low) probability of false negatives.

Datasets

The authors evaluated their approach using:

  • Synthetic Graphs: Random d-regular graphs and power-law graphs, generated using established models.
  • Real-World Graphs:
    • Transport networks (bus, metro, train) from Madrid and Helsinki.
  • Social and information networks from the Koblenz Network Collection (Chess, DNC emails, Elections, Epinions).
  • Social networks from SNAP (Bitcoin alpha, Bitcoin otc, College messages, Email EU core).

Key Insights and Ideas

  • Algebraic Approach for Temporal Graphs: Applying algebraic techniques, previously successful in non-temporal graph problems, to temporal graphs is a novel contribution. This allows for efficient solutions to NP-hard problems.
  • Scalability Despite NP-Hardness: The framework demonstrates remarkable scalability, handling graphs with up to a billion edges, which is a significant achievement for NP-hard problems. This is attributed to the efficiency of the algebraic sieving and vertex-localization techniques.
  • Practical Efficiency: The implementation is highly optimized, achieving practical edge-linear scalability and outperforming naive baselines by orders of magnitude, even on real-world datasets.
  • Vertex-Localization as a Key Optimization: The vertex-localization technique is crucial for achieving high performance on large graphs by effectively reducing the problem size.

Key Results

  • Scalability: The algorithm can find optimal solutions in less than 13 minutes for graphs with one billion edges and a small query multiset (k=5), and in under 35 minutes for graphs with 100 million edges and a larger query multiset (k=10).
  • Performance: On real-world transport networks, extraction times for k=5 were at most 13 seconds, and for k=10 were at most 8 minutes.
  • Speedup: The algebraic algorithm, especially with preprocessing and vertex-localization, achieves significant speedups (up to 14x) over naive baselines for the PATHMOTIF problem.
  • Complexity: The paper establishes NP-completeness for several path motif problems in temporal graphs and shows they are fixed-parameter tractable. The proposed algorithm achieves a time complexity of O(2kk(nt + m)) for k-TEMPPATH.

Limitations and Future Work

  • False Negatives: The algebraic approach is randomized and has a small, controllable probability of false negatives. This can be mitigated by using larger finite fields or multiple runs.
  • Memory Usage: While improved, the algorithm's memory usage is still dependent on the number of vertices and timestamps (O(nt)), which could limit scalability for very large 't' values.
  • Future Work: The authors suggest extending the framework to other temporal graph problems like information cascades, temporal arborescences, and temporal subgraphs. They also propose exploring algorithms with space complexity independent of 't' and investigating ways to trade time for space.

Summary updated

BibTeX
@article{thejaswi2020finding,
  author = {Suhas Thejaswi and Aristides Gionis and Juho Lauri},
  title = {{Finding path motifs in large temporal graphs using algebraic\textbackslash\{\}n fingerprints}},
  journal = {Big Data},
  year = {2020},
  doi = {10.1089/big.2020.0078},
}
Figure