Distribution Algorithm

Distribution Algorithm and Process

Distribution Process: Royalty Tokens are distributed by the Royalty Vault, which retrieves each user or node’s data contributions from either the FHE Task Contract or the Federated Learning Task Contract. The contributions of computing power and data are weighted in a 7:3 ratio, respectively.

Computing Power Contribution

Contribution Process and Algorithm: In the computation rounds, the token distribution follows an exponential decay model to ensure continuous participation from nodes, even in later rounds. The model encourages newer models to attract fresh participation, sustaining the ecosystem’s vibrancy.

The exponential distribution used for computing contributions is defined as:

Here, for computing power is significantly smaller than for data contributions, acknowledging the consistent utility of computing power throughout the lifecycle of the subnet.

Data Contribution

Contribution Process and Algorithm: In scenarios involving Fully Homomorphic Encryption, the computational contribution is straightforward since only a single node participates per round. This node receives the full share of computational rewards. Data contributors, on the other hand, have their contributions verified during the encryption process by contracts, which records the contributor’s address in the 0G storage node.

Data contributions are incorporated into the Royalty Token distribution as follows:

for discrete distributions, and

for continuous distributions. The Kullback-Leibler divergence measures how one dataset diverges from another, establishing a basis for the contribution-based rewards.

Royalty Vault Mechanism

The FHE Task Contract provides the Royalty Vault with necessary proofs (including data digest, user addresses, original data upload transaction details like hashes, and proofs of computation for the data). These proofs detail the addresses and contributions noted in each task contract’s record. The Royalty Vault then calculates the tokens each user is entitled to claim based on these contributions and whether they have been claimed before.

This model ensures that contributors of both data and computing power are fairly compensated for their participation, promoting a balanced growth and sustainability within the 2PM Network's ecosystem.

Last updated