Yuma Consensus
Introduction
Yuma Consensus (YC) is a critical algorithmic process within Bittensor, which runs on-chain within Subtensor. Its responsibility is to compute validator and miner emissions from validators' rankings of miners.
Each of a subnet's validators periodically submit a vector of weights ranking the value of the work of each miner they've evaluated. The YC algorithm resolves this matrix of rankings into two emissions vectors that allocate emissions over participants based on their performance: one each for miners and validators.
The algorithm is designed to more heavily weight the inputs of more trusted validators, in order to ignore the portion of the validation signal that is less reliable. By disregarding unreliable weight-settings, YC incentivizes validators to be worthy of trust by working hard to give consistent, fast, honest evaluations of miners that predict the eventual convergence of other validators' evaluations. YC incentivizes miners to work hard for the highest combined evaluation by the community of validators.
See:
Clipping
Clipping is designed to punish innacurate miner evaluation, especially in patterns that could constitute collusion to manipulate the accuracy of consensus to favor certain miners.
To achieve this, the judgment of the most trusted validators (as measured by stake) serves as a benchmark. Evaluations (bonds) that exceed this benchmark are clipped, meaning neither the miner nor the validator receives emissions for them.
This clipping protects against erroneous or collusive over-evaluation of miners by validators.
To compute the benchmark for miner , we gather all validator weights , sort them by the validator’s stake , and then find the maximum weight level supported by at least a fraction of total stake.
Any validator’s original weight above is clipped to:
Kappa is a configurable hyperparameter with default: .
Miner emissions
Miner emissions are based on an aggregate ranking which is the summed rankings of validators, weighted by validators' stake, where is the post-clip weight.
Each miner ’s share of the subnet's miner-emissions (41% of each subnet's overall emissions) is:
Penalizing out-of-consensus bonds
If a validator's evaluation of a miner is too high, it is penalized. If a submitted weight by validator for miner exceeds the 's consensus evaluation, , its bond value is penalized by factor .
Bond-weight is:
Penalty factor is a configurable hyperparameter.
Bonding mechanics
The instant bond of validator to miner is ’s stake times 's bond-weight for normalized by 's total bond-weight from all validators:
This then updates an exponential moving average (EMA) bond:
Validators who stay near consensus build stronger EMA bonds and thus extract more emissions, while any attempt to overstate a particular miner’s performance is penalized. The EMA smooths out abrupt swings in validator behavior and incentivizes consistent alignment with the consensus.
The variable here is unrelated to the concept of subnet specific currencies, referred to as alpha tokens. Here refers to a factor used in this EMA smoothing function—see consensus-based weights, a.k.a. liquid alpha.
Validator emissions
Each validator ’s share of validator emissions (41% of each subnet's total emissions) is the sum of all of its bonds to miners, weighted by the miner's total emissions: