FLock
Developer GuideGithub
  • What is FLock
    • Introduction to FLock.io
    • The Centralisation Problem
    • Architectural Breakdown
      • System Design
      • Blockchain Layer
      • AI Layer
  • ❀️‍πŸ”₯FLock Products
    • AI Arena
      • Participants
      • Quickstart
        • Pre-requisites
          • WSL installation
        • Delegator Guide
        • Training Node Guide
        • Validator Guide
      • Task Lifecycle Deep-dive
      • Smart Contracts Deep-dive
    • FL Alliance
      • Participants
      • Components
      • Task Lifecycle Deep-dive
        • 1. Staking and Role Assignment
        • 2. FL Training
        • 3. FL Aggregation and Evaluation
        • 4. Rewards
      • Smart Contracts Deep-dive
      • FL Client
        • Pre-Requsites
        • Steps to Quickstart
      • FLocKit
    • AI Marketplace
      • Quickstart
        • Getting started Manual creation
        • Guideline Manual
        • Model API guide
        • Tutorials
          • Create a discord bot with Model API
          • Farcaster Frames with Model API
      • Participants
      • Deep-dive
        • Function breakdown
        • RAG
        • Contribution Mechanism
        • Roadmap
    • 2025 Roadmap
  • πŸ’°FLOCK TOKENOMICS
    • Overview
      • Incentivising open source model development
      • Security
    • Token Utility
      • Supply
      • Demand
    • Network Participation
      • AI Arena
        • Task Creator
        • Data Provider
        • Training Node
        • Validator
        • Delegator
        • Delegation Pool Rewards Explainer
      • FL Alliance
        • Task Creator
        • FL Nodes
      • AI Marketplace
        • Model Host
    • Token Allocations
    • Airdrop
    • Contract Details
  • πŸ’»FLock Use-Cases
    • AI-assisted Coding - FLock x Aptos LLM (outperforms ChatGPT-4o!)
    • AI Assistants - Farcaster GPT, Scroll GPT and many more to come!
    • AI Companions - Professor Grump w/ Akash
    • Web3 Agents - Text2SQL Agent
    • Privacy-preserving Healthcare
  • πŸ“ƒResources
    • Litepaper
    • Whitepaper
    • Publications
    • Glossary
    • FAQ
    • Social Media
    • Careers
    • Terms Of Use
    • Privacy Policy
    • FLock.io-Verified Developers
    • FLOCK Token Airdrop Terms and Conditions
Powered by GitBook
On this page
  • 0. Overview: reward drivers for validators
  • 1. Reward distribution within a single AI Arena task
  • 2. Reward distribution for validators
  • 3. Example

Was this helpful?

  1. FLOCK TOKENOMICS
  2. Network Participation
  3. AI Arena

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β‹…(Ξ³+(1βˆ’2Ξ³)β‹…βˆ‘j=1msjβˆ‘i=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)R0​⋅(Ξ³+(1βˆ’2Ξ³)β‹…βˆ‘i=1n​ti​+βˆ‘j=1m​sjβ€‹βˆ‘j=1m​sj​​)

Here, we assume there are 𝑛 submissions (𝑂1,...,𝑂𝑛)(𝑂1, . . . , 𝑂𝑛 ) (O1,...,On)from nnn training nodes with stakes (t1,...,𝑑n)(t_1, . . . , 𝑑_n)(t1​,...,tn​), and π‘š validators (𝑉1,...,π‘‰π‘š)(𝑉_1, . . . , 𝑉_π‘š )(V1​,...,Vm​) with stakes (𝑠1,...,π‘ π‘š)(𝑠_1, . . . , 𝑠_π‘š )(s1​,...,sm​). Each validator 𝑉𝑗(1β‰€π‘—β‰€π‘š)𝑉𝑗 (1 ≀ 𝑗 ≀ π‘š)Vj(1≀j≀m) evaluates the nnn models submitted by the training nodes. The total daily reward allocated to a task is denoted as R0R_0R0​​ 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_vsv​ and stakes delegated to validator is sds_dsd​ i.e. si=sv+Ο΅β‹…sds_i = s_v + \epsilon \cdot s_dsi​=sv​+Ο΅β‹…sd​, in which Ο΅\epsilonΟ΅ refers to the effective delegation amount. Specifically, effective delegation amount adjusts how much of the delegated stake sds_dsd​​ is actually counted (i.e., how β€œeffective” it is) when computing validator's total stake sisisi. When Ο΅=1\epsilon = 1Ο΅=1, then the delegated stake sds_dsd​ ​ is counted fullyβ€”delegations are treated just like the training node’s own stake. When Ο΅<1\epsilon < 1Ο΅<1, then the delegated stake is β€œdiscounted,” so the validator only gets a fraction of sds_dsd​ when accounting for its total stake, and vice versa.

fiβ‹…Fβ‹…(Οƒ+(1βˆ’Οƒ)β‹…svsv+sd)f_i\cdot F \cdot (\sigma + (1-\sigma) \cdot \frac{s_v}{s_v+ s_d})fi​⋅Fβ‹…(Οƒ+(1βˆ’Οƒ)β‹…sv​+sd​sv​​)

Specifically,

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

  • fif_ifi​ is the rewards for all validators

  • Οƒ is the guaranteed validator return against delegators

  • SvS_vSv​​ is the stake amount of this validator

  • SdS_dSd​ 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_iti​(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=1msjβˆ‘i=1nti+βˆ‘j=1msj=309,157.68Γ—120006500+12000β‰ˆ200,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.0R0β€‹Γ—βˆ‘i=1n​ti​+βˆ‘j=1m​sjβ€‹βˆ‘j=1m​sj​​=309,157.68Γ—6500+1200012000β€‹β‰ˆ200,534.0

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

fiβ‹…Fβ‹…(Οƒ+(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{,}997fi​⋅Fβ‹…(Οƒ+(1βˆ’Οƒ)Sv​+Sd​Sv​​)=200,534Γ—0.369Γ—(0.4+0.6Γ—3000+03000​)β‰ˆ73,997
PreviousTraining NodeNextDelegator

Last updated 3 months ago

Was this helpful?

πŸ’°