TOPICS
Search

Gossip Algorithm


A gossip algorithm is a decentralized scheme in which a graph vertex exchanges information or performs a computation with no more than one adjacent vertex at a time (Boyd et al. 2006). This differs from gossiping, which asks for the minimum number of communications needed to disseminate every participant's information to all participants.

One common use is solving the average consensus problem. For the standard randomized averaging version, let G=(V,E) be a connected graph that is also an undirected graph, and let each graph vertex i hold a scalar value x_i(k). At iteration k, a graph edge {i,j} is selected at random, and its endpoints replace their values by their pairwise average. In vector form, this is

x(k+1)=W_(ij)x(k)
(1)
W_(ij)=I-1/2(e_i-e_j)(e_i-e_j)^T,
(2)

where e_i and e_j are vectors in the standard basis and I is the identity matrix. The matrix W_(ij) is a symmetric projection matrix and a doubly stochastic matrix, so the update preserves the sum of all entries. If the graph is connected and successive selections are independent, with every graph edge having a fixed positive probability of selection, the iterates converge with probability one to the arithmetic mean of the initial values.

For randomized pairwise averaging, the expectation value E[W_(ij)] is also a doubly stochastic matrix. The averaging time is controlled by its second-largest eigenvalue, with a smaller value giving faster convergence. This connects the averaging behavior to an associated random walk, and choosing the edge-selection probabilities to minimize the eigenvalue is a semidefinite programming problem (Boyd et al. 2006).

Gossip communication is also used in decentralized federated learning. Schumann et al. (2026) compared cycle graph, wheel graph, and complete graph client topologies for transformer-based language-model training.


See also

Average Consensus Problem, Doubly Stochastic Matrix, Gossiping, Markov Chain, Projection Matrix, Random Walk

Explore with Wolfram|Alpha

References

Boyd, S.; Ghosh, A.; Prabhakar, B.; and Shah, D. "Randomized Gossip Algorithms." IEEE Trans. Inform. Theory 52, 2508-2530, 2006. https://doi.org/10.1109/TIT.2006.874516.Schumann, G.; Montag, C.; Steffens, L.; Karl, M.; and Marx Gómez, J. "Decentralized Federated Learning Using Transformer-Based Language Models." In Recent Advances in Information Systems (Ed. J. Marx Gómez, R. K. Sungkur, S. Pudaruth, J.-H. Witte, and G. Schumann). Cham, Switzerland: Springer, 2026. https://doi.org/10.1007/978-3-032-14099-9_26.

Cite this as:

Weisstein, Eric W. "Gossip Algorithm." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/GossipAlgorithm.html

Subject classifications