Yuma Consensus, the core invention of Bittensor, is a widely applicable mechanism for neutralizing manipulation attempts from dishonest minority groups in a dynamically stable honest majority equilibrium.
It is a fuzzy consensus to determine a robust agreement in a decentralized trustless setting, using stake and its submitted weights. The consensus incentive forces the collective of validators to converege to a uniform validation methodology enforcing clear order on the chaotic nature of open permissionless systems.
You only need to understand 3 fundamental things about Yuma Consensus to navigate it. How the consensus weight is determined, how manipulation attempts are neutralized and how manipulation attempts are penalized.
The consensus weight is calculated by determining the highest weight supported by at least the stake majority, meaning the majority has submitted either equal or higher weight. The majority level is adjustable through the k parameter.
This is calculated using a weighted (k) stake-based median over the stakes-weights distribution.
Stake setting weights on miners is 'bonding' to them. Bonds are Stake-weight proportional ownership over the share of emissions accrued by the miner, paid out as dividends every epoch. This is where yield comes from.
The concept of the bond, as an intermediary between stake and yield, allows to modulate the incentives of validators. This is a vital component to Yuma Consensus, ensuring the robustness of the honest majority equilibrium.
After the consensus weight is determined, there are 2 core mechanisms for neutralizing and penalizing manipulation attempts.
note: weights set below the consensus weight are ignored in the nature of the median calculation
note: setting weights below the consensus weight means a lower bond in a higher value miner, in its nature leading to dividend penalty. However, higher bonds have to be corrected.
This translates to a consensus based reward for weights. The deeper in-consensus validator weights are, the higher the stake dividends. The weaker consensus, the higher the reward for strengthening consensus, while out‐of‐consensus weights come at increasing cost.
This creates a robust honest majority equilibrium difficult to break once stabilized.
Parameters:
Yuma Consensus parameters can be adjusted on the fly to optimize its forces as necessary.
For more information and robustness proofs look here.
You see, once understood Yuma Consensus is very straightforward. Especially relevant for you as a subnet builder or validator is understanding that all validators need to end up with approximately similar weights to everyone else. Every deviation from the consensus comes at a reward penalty. Yuma Consensus is build for a uniform measurement standard applied across the whole subnet. So if for example a validator uses a different dataset than others, both its weights impact and rewards will be strongly reduced. This forces subnets to converge to a clear structured methodology. order from chaos.
The Commune blockchain code implements the consensus as follows
The YumaCalc struct is the main entry point for running the Yuma Consensus calculation. It contains various fields such as:
The run method is the main function that performs the Yuma Consensus calculation. It follows these steps:
The implementation includes several key functions that perform specific calculations: