Computation-Aware Data Aggregation

Bernhard Haeupler, D Ellis Hershkowitz, Anson Kahng, Ariel D. ProcacciaarXiv 2018

TL;DR

This paper introduces the Token Network Model, a new theoretical framework for distributed computing that accounts for both computation and communication costs. The authors provide a polynomial-time algorithm for optimal data aggregation in complete networks and prove that while the problem is NP-hard for arbitrary graphs, it can be effectively approximated using a novel flow-based scheduling approach.

What Problem Does This Paper Address?

In traditional distributed computing models like CONGEST or LOCAL, researchers typically focus on communication time—the rounds needed to move data across edges. Computation is often assumed to be instantaneous or negligible. However, in modern large-scale systems, processing data (e.g., performing complex aggregations or reductions) can take as much time as moving it.

The authors tackle the challenge of Computation-Aware Data Aggregation. They seek to find the fastest possible schedule to combine data from every node in a network into a single result, given that both sending a message ($t_m$) and processing two data "tokens" ($t_c$) have non-zero costs.

Methods

The authors define the Token Network Model, where time proceeds in synchronous rounds. A node can either be idle, busy communicating (taking $t_m$ rounds), or busy computing (taking $t_c$ rounds to merge two tokens into one).

1. Optimal Scheduling on Complete Graphs

For networks where every node can talk to every other node, the authors derive a recursive structure for the optimal schedule. They define a specific tree, $T(R)$, which represents the largest number of nodes that can be aggregated within $R$ rounds.

  • Recursive Definition: $T(R) = T(R - t_c) + T(R - t_c - t_m)$.
  • Greedy Aggregation: The optimal algorithm embeds this tree into the complete graph and performs "greedy aggregation," ensuring the root node pipelines its computations so it is never idle while waiting for data.

2. Hardness and Approximation on Arbitrary Graphs

For fixed, non-complete networks, the problem becomes significantly harder:

  • Hardness: By reducing from the $k$-dominating set problem, they prove it is NP-hard to approximate the optimal schedule within a factor of 1.5.
  • SolveTC Algorithm: They propose a randomized approximation algorithm. It uses a Flow Linear Program (LP) to find paths between nodes that minimize vertex congestion and dilation. The algorithm then proceeds in $O(\log n)$ phases, pairing nodes and routing tokens to be aggregated.

Datasets

This is a theoretical paper; no empirical datasets were used. The results are established through mathematical proofs and algorithmic analysis.

Key Insights and Ideas

  • Pipelining is Essential: A simple binary tree aggregation is often suboptimal. In the optimal complete-graph schedule, the "terminus" (the node where the final result is formed) should start computing as soon as it has two tokens and continue computing while other tokens are still in transit.
Figure 2: The aggregation schedule on a binary tree for tc = tm = 1 and n = 7 after 4 rounds where the root pipelines its computations. Again, tokens are represented by blue diamonds; a red arrow from node u to node v means that u sends to v; and a double-ended blue arrow between two tokens a and b means that a and b are combined at the node. Notice that the root will never have more than 3 tokens when this schedule is run.
  • The "Fibonacci-like" Recurrence: The optimal number of nodes follows a recurrence relation similar to the Fibonacci sequence, but generalized by the ratio of $t_c$ to $t_m$. This leads to a tree structure that is much deeper and more asymmetric than a standard balanced binary tree.
Figure 3: T(16) for tc = 2, tm = 1.
  • Shortcutting and Combining: To prove optimality when communication is more expensive than computation ($t_c < t_m$), the authors developed "shortcutting" insights—showing that any optimal schedule can be rearranged so that intermediate nodes don't just pass tokens along but actively participate in the aggregation pipeline.

Key Results

  • Complete Graphs: The authors provide a polynomial-time algorithm that finds the exact optimal schedule.
  • Arbitrary Graphs:
    • Proved that no polynomial-time algorithm can achieve better than a 1.5x approximation (unless P=NP).
  • Developed an approximation algorithm with a guarantee of $O(\log n \cdot \log \frac{OPT}{t_m})$. For many practical cases, this behaves like an $O(\log^2 n)$ approximation.
  • Isolation is Suboptimal: The paper formally demonstrates that considering computation and communication in isolation leads to slower schedules than a unified approach.

Limitations and Future Work

  • Centralized Coordination: The current algorithms assume a centralized coordinator with full knowledge of the network. Adapting these to a fully distributed setting where nodes only have local knowledge is a major open challenge.
  • Fixed Aggregation Cost: The model assumes $t_c$ is constant for any two tokens. In reality, the time to aggregate might depend on the size or complexity of the data being merged (e.g., a concave function of the number of tokens).
  • Approximation Gap: There remains a significant gap between the 1.5x hardness lower bound and the $O(\log^2 n)$ upper bound for arbitrary graphs. Closing this gap is a clear direction for future theoretical research.

Summary updated

BibTeX
@misc{haeupler2018computation,
  author = {Bernhard Haeupler and D Ellis Hershkowitz and Anson Kahng and Ariel D. Procaccia},
  title = {{Computation-Aware Data Aggregation}},
  year = {2018},
  eprint = {1806.05701},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.05701},
}
Figure