Abstract
Motivated by applications in blockchains and sensor networks, we consider a model of $n$ nodes trying to reach consensus on their majority bit. Each node $i$ is assigned a bit at time zero, and is a finite automaton with $m$ bits of memory (i.e., $2^m$ states) and a Poisson clock. When the clock of $i$ rings, $i$ can choose to communicate, and is then matched to a uniformly chosen node $j$. The nodes $j$ and $i$ may update their states based on the state of the other node. Previous work has focused on minimizing the time to consensus and the probability of error, while our goal is minimizing the number of communications. We show that when $m > 3 \log\log\log(n)$, consensus can be reached at linear communication cost, but this is impossible if $m < \log\log\log(n)$. We also study a synchronous variant of the model, where our upper and lower bounds on $m$ for achieving linear communication cost are $2\log\log\log(n)$ and $\log\log\log(n)$, respectively. A key step is to distinguish when nodes can become aware of knowing the majority bit and stop communicating. We show that this is impossible if their memory is too low.
Introduction
In distributed systems such as sensor networks or decentralized blockchains, reaching consensus—agreeing on a single value among a group of nodes—is a fundamental operation. Specifically, nodes often need to agree on which of two values (0 or 1) was held by the majority at the start of the process. While historical research has prioritized minimizing the time required to reach consensus or the probability of error, this work shifts the focus toward communication complexity under strict memory constraints.
In real-world Internet of Things (IoT) scenarios, communication is frequently the most energy-expensive operation. If nodes possess very little memory (i.e., they are "dumb"), they may continue to communicate long after a decision has been reached simply because they lack the state capacity to realize the process is complete. This paper investigates the minimum memory required to allow nodes to "know" when they are likely correct, enabling them to stop communicating and achieve a linear total communication cost.
The Awareness Bottleneck and Memory Trade-offs
The core challenge identified in this research is the "Awareness Bottleneck." Reaching the correct majority bit is only half the battle; the other half is the nodes becoming aware that they have found it. If a node cannot store enough state to be confident in its belief, it must continue initiating communications to avoid being wrong, which drives up the total network cost.
As shown in the figure above, there is a formal inverse relationship between memory and communication. When memory $s$ is below a certain threshold, the communication cost is forced toward $\Omega(n s^{-1} \log n)$. However, once memory reaches a critical "triple-log" threshold—roughly $O(\log \log \log n)$ bits—the communication cost drops sharply to $O(n)$. For a network of a billion nodes, this threshold represents just a few bits of memory.
Protocol Architecture
To achieve linear communication, the authors propose a novel four-phase consensus protocol designed to work within these memory limits:
- Expert Selection: Using a variant of von Neumann unbiasing, a small subset of nodes is elected as "experts" without requiring a central coordinator or pre-shared randomness.
- Estimation: These experts poll a small number of other nodes to determine the likely majority bit.
- Pushing: Experts spread their findings to a fraction of the network, converting those nodes into "terminal" (aware) nodes.
- Pulling: The remaining "regular" nodes initiate communications until they encounter a terminal node, at which point they adopt the bit and enter a passive state, stopping further communication.
Comparative Results
The research establishes both upper and lower bounds for asynchronous and synchronous models. In the asynchronous model, linear communication $O(n)$ is achieved with $s = O((\log \log n)^3)$ states. In the synchronous model, the requirement is slightly lower at $s = O((\log \log n)^2)$ states. Conversely, the authors prove that if memory is below $\log \log \log n$ bits, achieving linear communication is mathematically impossible, forcing the cost back to the $\Omega(n \log n)$ regime typical of traditional gossip protocols.
Conclusion and Future Work
This study provides a theoretical framework for the fundamental trade-offs between intelligence (memory) and efficiency (communication) in distributed systems. While the current model assumes a complete graph where any node can talk to any other, future work may explore more complex topologies like grids or power-law graphs. Additionally, the current protocol assumes nodes are honest; investigating how these trade-offs change in the presence of malicious Byzantine faults remains an open and vital challenge for the field.
Summary updated