Flow Computation in Temporal Interaction Networks

Chrysanthi Kosyfaki, Nikos Mamoulis, Evaggelia Pitoura, Panayiotis TsaparasarXiv 2020

TL;DR

This paper introduces a framework for computing flow in temporal interaction networks, where edges represent time-stamped transfers of quantities like money or data. The authors propose a suite of graph-simplification and preprocessing techniques that speed up maximum flow calculations by 11x to 32x compared to standard linear programming baselines.

What Problem Does This Paper Address?

Traditional network flow problems (like the classic Ford-Fulkerson algorithm) operate on static graphs with fixed capacities. However, many real-world systems—financial transactions, Bitcoin transfers, or data packet exchanges—are defined by discrete interactions occurring at specific moments in time.

In these temporal interaction networks, time is the ultimate constraint: a node cannot send a quantity it hasn't received yet. This temporal causality makes standard algorithms inapplicable. While a "greedy" approach (sending everything immediately) is fast, it often fails to find the true maximum flow because it might "waste" resources on an early interaction that could have been more strategically routed later. The challenge is to compute this maximum flow efficiently across massive, time-varying datasets.

Methods

The authors define two primary models for flow:

  1. Greedy Flow: Nodes transfer the maximum possible quantity as soon as an interaction occurs. This is solvable in linear time with a single scan of interactions.
  2. Maximum Flow: Nodes can "reserve" received quantities for future outgoing interactions to maximize the total flow reaching the sink. This is formulated as a Linear Programming (LP) problem.

To overcome the high computational cost of LP on large networks, they introduce three key optimizations:

  • Solvability Check: They prove that for certain graph structures—like simple chains or graphs where intermediate nodes have only one outgoing edge—the greedy algorithm is actually optimal.
  • Temporal Preprocessing: A topological-order scan prunes interactions that occur before any incoming flow could possibly reach the source node of that interaction.
  • Graph Simplification (PreSim): This novel approach iteratively "collapses" greedy-soluble chains starting from the source into single edges. This drastically reduces the number of variables the LP solver needs to handle.

Finally, they apply these techniques to Flow Pattern Search, identifying specific subgraphs (like cycles or multi-hop paths) and computing their flows using precomputed path tables to accelerate the search.

Figure 2: Network, pattern, and instance

Datasets

The algorithms were evaluated on three diverse real-world datasets:

  • Bitcoin: A massive financial network with 12 million nodes and 45.5 million interactions.
  • CTU-13: A botnet traffic network capturing data exchanges between IP addresses (607K nodes, 2.8M interactions).
  • Prosper Loans: Data from a peer-to-peer lending service (88K nodes, 3.04M interactions).

Key Insights and Ideas

  • Causality as a Filter: The temporal nature of the network allows for aggressive pruning. If an interaction happens at time $t=5$, but the node doesn't receive its first incoming transfer until $t=10$, that first interaction can be completely ignored for flow purposes.
  • The Power of Simplification: Most real-world subgraphs contain long chains or simple paths. By proving that these can be solved greedily and collapsed, the authors turn massive optimization problems into much smaller, manageable ones.
  • Greedy is Often Enough: A significant finding was that a large percentage of subgraphs in real networks are "greedy-soluble," meaning the simplest algorithm yields the maximum flow.
  • Pattern-Aware Flow: Combining structural graph matching with flow computation allows for detecting complex behaviors, such as sophisticated money-laundering schemes that involve splitting and re-combining funds over time.

Key Results

The proposed PreSim approach (preprocessing + simplification) delivered dramatic performance gains over a baseline LP solver:

  • Speedup: Achieved average speedups of 11x on Bitcoin, 13x on CTU-13, and 32x on Prosper Loans.
  • Efficiency: For many subgraphs, the optimizations reduced the computational cost to near-linear time, comparable to the greedy scan.
  • Pattern Search: The preprocessing-based approach (PB) for finding patterns was often an order of magnitude faster than standard graph browsing (GB), especially for complex patterns like cycles.

Limitations and Future Work

While the optimizations are powerful, the LP solver remains a bottleneck for extremely complex, highly connected subgraphs that cannot be simplified and contain more than 10,000 interactions.

The authors suggest several directions for future research:

  1. Developing additional simplification techniques for non-chain structures.
  2. Adapting these models to other flow variants (e.g., minimum cost flow).
  3. Creating automated methods to identify "anomalous" subgraphs that exhibit significantly higher flow than expected, which could be a key tool for fraud detection.

Summary updated

BibTeX
@misc{kosyfaki2020flow,
  author = {Chrysanthi Kosyfaki and Nikos Mamoulis and Evaggelia Pitoura and Panayiotis Tsaparas},
  title = {{Flow Computation in Temporal Interaction Networks}},
  year = {2020},
  eprint = {2003.01974},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2003.01974},
}
Figure