Robust Distributed Estimation: Extending Gossip Algorithms to Ranking and Trimmed Means

Anna van Elst, Igor Colin, Stephan Clémençon

Introduction

In decentralized networks such as the Internet of Things (IoT), gossip algorithms serve as a fundamental protocol for achieving consensus. By communicating only with immediate neighbors, nodes can estimate global statistics like the network-wide average. However, standard gossip algorithms are notoriously sensitive to outliers; a single malfunctioning or malicious sensor reporting an extreme value can skew the entire network's estimate.

While centralized systems mitigate this using robust statistics—such as the median or trimmed mean—implementing these in a decentralized manner is challenging. Calculating a trimmed mean requires knowledge of a value's global rank, a property that traditionally necessitates a central coordinator or specific network topologies. This paper introduces GORANK and GOTRIM, two fully decentralized algorithms designed to estimate robust statistics on arbitrary connected graphs.

The Robust Gossip Framework

The proposed framework operates through a two-step decentralized process that allows local nodes to gain global context through data movement.

GORANK: Estimating Global Rank

To determine the rank of its local observation $X_k$, each node maintains an auxiliary value that it swaps with neighbors at each iteration. This auxiliary value effectively performs a random walk across the network. By comparing its static local value to the stream of passing auxiliary values, a node can statistically estimate its position within the global distribution. This "random walk" mechanism allows the network to behave like a well-mixed system, even when the physical topology is sparse.

GOTRIM: Computing the Trimmed Mean

Once nodes have established reliable rank estimates, they can identify whether they are outliers. In the GOTRIM algorithm, nodes assign weights to their data based on these ranks. If a node's rank falls within a predefined "trimming zone" (e.g., the top or bottom 10%), its weight is set to zero. The network then performs a dynamic weighted average to converge on the trimmed mean of the non-outlier data.

The three-step robust gossip process: (1) local rank and mean updates, (2) random edge selection for averaging, and (3) observation swapping to facilitate global sampling.

Theoretical Contributions and Convergence

A key contribution of this work is the proof of a competitive $O(1/t)$ convergence rate for both GORANK and GOTRIM. Unlike previous methods restricted to complete graphs or requiring leader nodes, these guarantees hold for any connected, non-bipartite graph.

The research highlights that the bottleneck for convergence speed is the network's connectivity (specifically the spectral gap) rather than its sparsity. Interestingly, the authors demonstrate that extreme values are mathematically easier to rank than values in the middle of the distribution. This property is particularly advantageous for robustness, as the primary goal is the accurate identification and exclusion of extreme outliers.

Experimental Results

The algorithms were validated using both synthetic datasets and the Basel Luftklima Dataset, which contains real-world temperature measurements from 105 sensors.

  • Outlier Rejection: In scenarios with 10% corrupted data, standard averaging gossip failed significantly. GOTRIM successfully identified the corrupted nodes and converged to the true trimmed mean.
  • Topology Performance: GORANK outperformed existing state-of-the-art baselines (such as the Chiuso method), particularly on challenging topologies like 2D grids where information propagation is typically slow.

Conclusion and Future Directions

GORANK and GOTRIM provide a robust foundation for decentralized estimation in noisy environments. While the current work assumes nodes follow the protocol honestly, future research will address Byzantine robustness, where nodes may actively attempt to subvert the consensus. Additionally, extending these 1D ranking methods to multivariate data using concepts like "data depth" remains a promising avenue for high-dimensional sensor fusion.

Summary updated

BibTeX
@inproceedings{elst2025robust,
  author = {Anna van Elst and Igor Colin and Stephan Clémençon},
  title = {{Robust Distributed Estimation: Extending Gossip Algorithms to Ranking and Trimmed Means}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=A4t17y2lXa},
}
Figure