Validator

Validators are responsible for evaluating the work submitted by training nodes. Similarly, validators have to stake before the evaluation tasks, and can be rewarded upon task completion. This is essential to maintaining the quality and reliability of the FLock network.

0. Overview: reward drivers for validators

The reward percentage for validator depends on:

  1. how close the score is to the consensus among all the validators, measured by score variance (calculated off-chain)

  2. amount the validator (and its delegators) staked

  3. the number of submissions that the validator validated

Specifically, the reward distribution for validators follows a two-step calculation:

1. Reward distribution within a single AI Arena task

Similar to reward calculation for training nodes, the rewards for all validators in the same given AI Arena task is:

R0(γ+(12γ)j=1msji=1nti+j=1msj)R_0 \cdot \left( \gamma + (1 - 2\gamma) \cdot \frac{\sum_{j=1}^{m} s_j}{\sum_{i=1}^{n} t_i + \sum_{j=1}^{m} s_j} \right)

Here, we assume there are 𝑛 submissions (𝑂1,...,𝑂𝑛)(𝑂1, . . . , 𝑂𝑛 ) from nn training nodes with stakes (t1,...,𝑡n)(t_1, . . . , 𝑡_n), and 𝑚 validators (𝑉1,...,𝑉𝑚)(𝑉_1, . . . , 𝑉_𝑚 ) with stakes (𝑠1,...,𝑠𝑚)(𝑠_1, . . . , 𝑠_𝑚 ). Each validator 𝑉𝑗(1𝑗𝑚)𝑉𝑗 (1 ≤ 𝑗 ≤ 𝑚) evaluates the nn models submitted by the training nodes. The total daily reward allocated to a task is denoted as R0R_0​ and the parameter γ\gamma controls the split rewards, defining the balance between fixed and stake-dependent reward components.

2. Reward distribution for validators

The formula for a given validator’s daily return is calculated as such:

Consider a validator' stake in the task is svs_v and stakes delegated to validator is sds_d i.e. si=sv+ϵsds_i = s_v + \epsilon \cdot s_d, in which ϵ\epsilon refers to the effective delegation amount. Specifically, effective delegation amount adjusts how much of the delegated stake sds_d​ is actually counted (i.e., how “effective” it is) when computing validator's total stake sisi. When ϵ=1\epsilon = 1, then the delegated stake sds_d ​ is counted fully—delegations are treated just like the training node’s own stake. When ϵ<1\epsilon < 1, then the delegated stake is “discounted,” so the validator only gets a fraction of sds_d when accounting for its total stake, and vice versa.

fiF(σ+(1σ)svsv+sd)f_i\cdot F \cdot (\sigma + (1-\sigma) \cdot \frac{s_v}{s_v+ s_d})

Specifically,

  • F refers to the performance of the validation, which is calculated through off-chain consensus

  • fif_i is the rewards for all validators

  • σ is the guaranteed validator return against delegators

  • SvS_v​ is the stake amount of this validator

  • SdS_d is the stake amount delegated to this validator

3. Example

Let’s assume daily total rewards for all AI Arena tasks for a given day is 309,157.68. We have 1 task with 2 nodes and 3 validators.

Nodes A and B stake 3,000 and 3,500 FLOCK respectively, while validators A, B and C stake 3,000, 6,000 and 3,000 respectively. Node A also receives an additional 1,000 FLOCK from its delegators, which brings the tit_i(total stake including delegated stake) to be 4,000 for Node A. For simplicity, we assume γ\gamma to be 0, and ϵ\epsilon to be 1 in this example.

First, for this given task, total rewards for *all* validators are:

R0×j=1msji=1nti+j=1msj=309,157.68×120006500+12000200,534.0R_0 \times \frac{\sum_{j=1}^m s_j}{\sum_{i=1}^n t_i + \sum_{j=1}^m s_j} = 309{,}157.68 \times \frac{12000}{6500 + 12000} \approx 200{,}534.0

Then, if we assume validator A has a score of 0.472768, the the reward for * validator A only* is:

fiF(σ+(1σ)SvSv+Sd)=200,534×0.369×(0.4+0.6×30003000+0)    73,997f_i \cdot F \cdot \Bigl(\sigma + (1 - \sigma)\,\tfrac{S_v}{S_v + S_d}\Bigr) = 200{,}534 \times 0.369 \times \Bigl(0.4 + 0.6 \times \tfrac{3000}{3000 + 0}\Bigr) \;\approx\; 73{,}997

Last updated

Was this helpful?