Abstract
The problem of computing functions of values at the nodes in a network in a totally distributed manner, where nodes do not have unique identities and make decisions based only on local information, has applications in sensor, peer-to-peer, and ad-hoc networks. The task of computing separable functions, which can be written as linear combinations of functions of individual variables, is studied in this context. Known iterative algorithms for averaging can be used to compute the normalized values of such functions, but these algorithms do not extend in general to the computation of the actual values of separable functions. The main contribution of this paper is the design of a distributed randomized algorithm for computing separable functions. The running time of the algorithm is shown to depend on the running time of a minimum computation algorithm used as a subroutine. Using a randomized gossip mechanism for minimum computation as the subroutine yields a complete totally distributed algorithm for computing separable functions. For a class of graphs with small spectral gap, such as grid graphs, the time used by the algorithm to compute averages is of a smaller order than the time required by a known iterative averaging scheme.
Introduction
In decentralized systems like wireless sensor arrays, peer-to-peer networks, and mobile ad-hoc networks, nodes often operate without unique identifiers (such as IP addresses). This anonymity poses a significant challenge for global data aggregation. For example, calculating the total temperature across a thousand sensors becomes difficult because simple data flooding leads to "double-counting"—a node cannot distinguish if a received data point is new or has already been processed elsewhere.
This paper, published in 2007, introduces a randomized gossip algorithm designed to compute "separable functions" (functions that can be expressed as sums or counts) in these anonymous, totally distributed environments. By leveraging the properties of exponential random variables, the authors provide a method that not only avoids the pitfalls of double-counting but also offers a significant speedup over traditional consensus-based methods on specific network topologies.
The Problem: Beyond Iterative Averaging
While existing "iterative averaging" algorithms can eventually find the mean value across a network, they face two primary hurdles:
- Absolute Values: They struggle to find absolute sums or the total count of nodes without a known global constant.
- Convergence Speed: Traditional consensus methods are notoriously slow on "bottlenecked" graphs, such as rings or grids, where information diffusion is constrained by the graph's spectral gap.
In these scenarios, information takes a long time to propagate, leading to high latency in reaching a global estimate.
Methodology: The Exponential Trick
The core innovation of this research is a reduction: transforming the problem of summation into a problem of finding a minimum. The algorithm follows a four-step process:
- Local Generation: Each node $i$ possesses a local value $y_i$. It generates $r$ independent random numbers from an exponential distribution with a rate equal to $y_i$.
- The Minimum Property: The algorithm relies on a fundamental property of exponential distributions: the minimum of a set of independent exponential variables is itself an exponential variable, with a rate equal to the sum of the individual rates.
- Gossip Subroutine (COMP): Nodes utilize a "push-pull" gossip mechanism to determine the minimum of these random variables across the entire network. Because finding a minimum is "duplicate-insensitive" (the minimum of a set remains the same regardless of how many times a value is repeated), the lack of unique IDs no longer causes errors.
- Estimation: Once the gossip protocol concludes, each node holds an estimate of the global minimums. By calculating the inverse of the average of these $r$ minimums, nodes can estimate the total sum of all $y_i$ values in the network.
Performance and Key Results
The authors evaluated the algorithm's performance through mathematical analysis across three standard graph topologies: complete graphs, expander graphs, and $d$-dimensional grid graphs.
Square Root Speedup on Grids
The most striking result occurs on $d$-dimensional grids. Traditional iterative averaging on a grid of $n$ nodes typically requires $\Omega(n^{2/d} \log n)$ time. In contrast, the proposed randomized algorithm converges in $O(n^{1/d} \log^2 n)$ time. On a 2D grid, this represents a "square root" speedup, moving from $O(n)$ to roughly $O(\sqrt{n})$.
Efficiency on High-Conductance Graphs
For highly connected structures like expander and complete graphs, the algorithm is exceptionally fast, scaling at $O(\log^2 n)$. The research demonstrates that the algorithm's speed is fundamentally tied to the conductance of the graph rather than its spectral gap, which explains its superior performance on bottlenecked topologies.
Insights and Limitations
Precision vs. Overhead
The algorithm provides a $(1 \pm \epsilon)$ multiplicative approximation of the true sum. To increase precision (reducing $\epsilon$), a node must generate a larger number of random variables $r$. While the initial analysis assumes nodes can transmit all $r$ values simultaneously, the authors note that in unit-capacity links, the communication time scales linearly with $r$.
Robustness
Because the minimum is a robust statistic, the algorithm is inherently resistant to the timing and order of message delivery. This "order-insensitivity" makes it ideal for the unpredictable environments of ad-hoc networks.
Conclusion
By reframing summation as a minimum-finding problem, this paper provides a robust framework for distributed computation in anonymous networks. The resulting algorithm offers a significant theoretical and practical improvement for grid-like sensor deployments. Beyond simple counting, this "summation-as-a-subroutine" approach paves the way for solving more complex distributed tasks, such as convex optimization and network security protocols, without the need for global identifiers.
Summary updated