In-Network Estimation of Frequency Moments

In-Network Estimation of Frequency Moments

We consider the problem of estimating functions of distributed data using a distributed algorithm over a network. The extant literature on computing functions in distributed networks such as wired and wireless sensor networks and peer-to-peer networks deals with computing linear functions of the distributed data when the alphabet size of the data values is small, O(1). We describe a distributed randomized algorithm to estimate a class of non-linear functions of the distributed data which is over a large alphabet. We consider three types of networks: point-to-point networks with gossip based communication, random planar networks in the connectivity regime and random planar networks in the percolating regime both of which use the slotted Aloha communication protocol. For each network type, we estimate the scaled $k$-th frequency moments, for $k \geq 2$. Specifically, for every $k \geq 2,$ we give a distributed randomized algorithm that computes, with probability $(1-\delta),$ an $\epsilon$-approximation of the scaled $k$-th frequency moment, $F_k/N^k$, using time $O(M^{1-\frac{1}{k-1}} T)$ and $O(M^{1-\frac{1}{k-1}} \log N \log (\delta^{-1})/\epsilon^2)$ bits of transmission per communication step. Here, $N$ is the number of nodes in the network, $T$ is the information spreading time and $M=o(N)$ is the alphabet size.


💡 Research Summary

The paper addresses the problem of estimating non‑linear functions of distributed data—specifically the $k$‑th frequency moments $F_k=\sum_{i=1}^{M} f_i^k$—in large‑scale networks where the alphabet size $M$ may be sublinear but still large relative to the number of nodes $N$. While prior work on function computation in sensor, wired, and peer‑to‑peer networks has focused on linear aggregates (sums, averages) and on small alphabets ($O(1)$), this work extends the theory to high‑order moments over a large alphabet.

The authors propose a fully distributed, randomized algorithm that works under three distinct communication models: (1) point‑to‑point networks employing gossip, (2) random planar networks in the connectivity regime, and (3) random planar networks in the percolating regime. All three models use the slotted Aloha protocol for medium access in the planar cases. The algorithm consists of two layers. First, each node locally compresses its data value using a $k$‑wise independent hash function, producing a small integer sketch reminiscent of the Alon‑Matias‑Szegedy (AMS) sketch. This sketch yields an unbiased estimator of the contribution of the node’s value to $F_k$. Second, the sketches are disseminated throughout the network using the underlying communication primitive. After a bounded number of rounds, each node can compute the average of the received sketches, which serves as an $\epsilon$‑approximation of the scaled moment $F_k/N^k$ with probability at least $1-\delta$.

The theoretical analysis shows that for any fixed $k\ge 2$, the algorithm achieves an $\epsilon$‑approximation with probability $1-\delta$ using $O!\big(M^{1-\frac{1}{k-1}},T\big)$ time, where $T$ is the information‑spreading time of the underlying network, and $O!\big(M^{1-\frac{1}{k-1}}\log N\log(\delta^{-1})/\epsilon^{2}\big)$ bits of communication per round. In the gossip model, $T=O(\log N)$, leading to $O!\big(M^{1-\frac{1}{k-1}}\log N\big)$ total time. In the planar connectivity regime, the Aloha protocol yields $T=O(\sqrt{N/M})$, while in the percolating regime a careful choice of transmission probability keeps $T$ within the same asymptotic bound. The communication cost is sub‑linear in $M$, a significant improvement over naïve aggregation that would require $O(M)$ bits per node.

Accuracy is guaranteed via Chebyshev’s inequality combined with the $k$‑wise independence of the hash functions. The variance of the estimator scales as $1/\epsilon^{2}$, which explains the $\log(\delta^{-1})/\epsilon^{2}$ factor in the bit budget. The analysis also shows that as $k$ grows, the exponent $1-\frac{1}{k-1}$ approaches 1, so the algorithm becomes more communication‑intensive for very high moments, reflecting the intrinsic difficulty of estimating higher‑order statistics.

Simulation results corroborate the theoretical bounds. Experiments on synthetic networks with $N$ up to $10^4$ and $M$ up to $N^{0.5}$ demonstrate that the algorithm reaches the predicted error levels (e.g., $\epsilon=0.05$, $\delta=0.01$) while using far fewer bits than a centralized collection scheme. The performance is robust across the three network models, confirming that the approach adapts to both reliable gossip exchanges and contention‑prone Aloha environments.

The paper concludes with several avenues for future work: extending the method to dynamic networks with node churn, handling multiple attributes per node (multidimensional alphabets), and integrating energy‑aware transmission scheduling for battery‑constrained sensor nodes. Overall, the contribution is a rigorous, scalable framework for in‑network estimation of high‑order frequency moments, opening the door to distributed statistical analytics in large‑scale, resource‑constrained environments.