Skip to content

Commit 62b1a70

Browse files
committed
Update validator bonding
1 parent 8f83136 commit 62b1a70

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

docs/consensus.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,24 @@ The consensus policy applies weight correction $\overline{W_{ij}} = \min( W_{ij}
5656
The bonds penalty $\beta$ controls the degree to which weights for bonds are cut above consensus, which decides the penalty against validator rewards.
5757
$$\widetilde{W_{ij}} = (1-\beta) \cdot W_{ij} + \beta \cdot \overline{W_{ij}}$$
5858

59+
#### Validator bonding
60+
A validator $i$ bonds with server $j$, where the instant bond value is the normalized bonds penalty clipped weighted stake.
61+
$$\Delta B_{ij} = S_i \cdot \widetilde{W_{ij}} \left/ \left( \sum_k S_k \cdot \widetilde{W_{kj}} \right) \right.$$
62+
Validators can speculate on server utility by discovering and bonding to promising new servers, but to reward such exploration we use an exponential moving average (EMA) bond over time.
63+
Instant bond $\Delta B_{ij}$ at current timestep becomes an EMA observation.
64+
We sum typical $\alpha=10\%$ of the instant bond with remaining $90\%$ of previous EMA bond, to bond over time and reward early discovery while preventing abrupt changes and its exploitation potential.
65+
$$B_{ij}^{(t)} = \alpha\cdot\Delta B_{ij} + (1-\alpha)\cdot B_{ij}^{(t-1)}$$
66+
67+
5968
#### Reward distribution
6069
Emission ratio $\xi$ decides the ratio of emission for validation rewards, and $1-\xi$ the ratio for server incentive, typically $\xi=0.5$.
6170
$$E_i = \xi \cdot D_i + (1-\xi) \cdot I_i$$
6271

6372
Server incentive $I_j = R_j / \sum_k R_k$ is normalized server rank $R_j = \sum_i S_i \cdot \overline{W_{ij}}$ (sum of consensus-clipped weighted stake).
6473

65-
Validation reward $D_i = \sum_j B_{ij} \cdot I_j$ is the product of the validator's bond with server $j$ and server $j$ incentive, where the bond is the normalized bonds penalty clipped weighted stake.
66-
$$B_{ij} = S_i \cdot \widetilde{W_{ij}} \left/ \left( \sum_k S_k \cdot \widetilde{W_{kj}} \right) \right.$$
74+
Validation reward $D_i = \sum_j B_{ij} \cdot I_j$ is the validator's EMA bond with server $j$ multiplied with server $j$ incentive.
75+
76+
6777

6878
#### Mathematical definitions
6979
| Variable | Equation | Description |
@@ -79,7 +89,8 @@ $$B_{ij} = S_i \cdot \widetilde{W_{ij}} \left/ \left( \sum_k S_k \cdot \widetild
7989
| Validator trust | $T_{vi} = \sum_j \overline{W_{ij}}$ | Relative validator weight remaining after consensus-clip. |
8090
| Bonds penalty | $\beta \in [0, 1]$ | Degree to cut bonds above consensus weight. |
8191
| Weight for bonds | $\widetilde{W_{ij}} = (1-\beta) \cdot W_{ij} + \beta \cdot \overline{W_{ij}}$ | Apply bonds penalty to weights. |
82-
| Validator bond | $B_{ij} = S_i \cdot \widetilde{W_{ij}} \left/ \left( \sum_k S_k \cdot \widetilde{W_{kj}} \right) \right.$ | Validator $i$ bond with server $j$. |
92+
| Validator bond | $\Delta B_{ij} = S_i \cdot \widetilde{W_{ij}} \left/ \left( \sum_k S_k \cdot \widetilde{W_{kj}} \right) \right.$ | Validator $i$ bond with server $j$. |
93+
| Validator EMA bond | $B_{ij}^{(t)} = \alpha\cdot\Delta B_{ij} + (1-\alpha)\cdot B_{ij}^{(t-1)}$ | Validator $i$ EMA bond with server $j$. |
8394
| Validator reward | $D_i = \sum_j B_{ij} \cdot I_j$ | Validator $i$ portion of incentive. |
8495
| Emission ratio | $\xi \in [0, 1]$ | Reward/incentive ratio for emission |
8596
| Emission | $E_i = \xi \cdot D_i + (1-\xi) \cdot I_i$ | Emission for node $i$. |
@@ -146,7 +157,7 @@ Hence $\kappa=0.5$ is typically the most sensible setting.
146157

147158
#### Bonds penalty (β)
148159
Yuma Consensus separately adjusts server incentive $I_j$ and validation reward $D_i$ to counter manipulation, where the extent of validation reward correction depends on the bonds penalty $\beta$.
149-
Server incentive is always corrects fully, but validation reward correction is adjustable to control the penalty of out-of-consensus validation.
160+
Server incentive always corrects fully, but validation reward correction is adjustable to control the penalty of out-of-consensus validation.
150161
Lower-stake validators may experience lower service priority, which can result in partial validation, or exploratory validators may skew weighting toward emergent high-utility.
151162
Full bonds penalty $\beta=1$ may not be desired, due to the presence of non-adversarial cases like these.
152163

0 commit comments

Comments
 (0)