SoulNet
  • ▶️Introduction
  • 1️⃣Market Background
  • 2️⃣SoulNet Overview
  • 3️⃣SoulNet Architecture
  • 4️⃣SoulNet Core Features
  • 5️⃣Application Scenarios
  • 6️⃣Token Economy Model
  • 7️⃣SoulNet Team
  • 8️⃣Roadmap
  • ⏹️References
Powered by GitBook
On this page
  • 4.1 LBFT Consensus
  • 4.2 Train-to-Mine
  • 4.3 Inference Mining
  • 4.4 AI Model Marketplace

SoulNet Core Features

PreviousSoulNet ArchitectureNextApplication Scenarios

Last updated 2 months ago

4.1 LBFT Consensus

One of the core innovations of SoulNet is the introduction of a new consensus protocol for AI subchains: LBFT (Learning Byzantine Fault Tolerance). Compared to traditional Proof of Work (PoW), LBFT is more advanced and efficient—it can be described as Proof of Useful Work, where "useful work" is defined as contributions to the optimization of AI models on SoulNet.

The consensus mechanism involves three types of nodes within the SoulNet subchains: Trainers, Validators, and Confirmers, as detailed in the previous chapter. The LBFT algorithm enables nodes to reach consensus on parameterized blocks during the training phase.

Algorithm 1 : Block production for a DModel in TuringNet subchain

Initialize parameters w0 in B0 , the genesis block

for each iteration r = 1, 2, ... do

wr ← (Parameters retrieved from block Br)

Tr ← (Set of m nodes for training)

V r ← (Set of n nodes for verification)

Cr ← (Set of t nodes for confirmation)

for each training node i ∈ Tr in parallel do

w i r+1 ← Train(i, wr)

generate Bi r+1 with wi r+1 i and signs with private key SK

broadcast B i r+1

for each verification node j ∈ V r in parallel do

receives a set of Bi r+1

choose x j r+1 ← ALBFT(set of Bi r+1 )

for all verification node j ∈ V r do

vote for xr+1 ← BFT(x r 1 +1 , x r 2 +1 , ..., x r n +1 )

sign Br+1 xr+1 j with private keys SK

for all confirmation node k ∈ Cr do

Confirm Br+1 xr+1 k and sign with private key SK

Br+1 =Br+1 xr+1 with all signatures

Algorithm 2 : Train(k, w )

B ← (split Pk into batches of size B)

For each local epoch i from 1 to E do

for batch b ∈ B do

w ← w − η * Δl(w; b)

return w

( B is the local minibatch size, E is the number of local epochs, and η is the learning rate.)

Algorithm 3 : ALBFT(B)

for each block Bk from set B do

Lk = calculate loss with parameters w k in Bk

return argmin(LK)

Algorithm 4 : BFT(x r 1 +1 , x r 2 +1 , ..., x r n +1 )

each x j r+1 is the index of block Bx j r+1

where the calculated loss Lj is minimum from a given verification node j ∈ V r

use BFT algorithm over all verifications nodes in V r to reach consensus for

S=argmin(Lj)

j∈Vr

return x r+1 = xsr+1

Through this algorithm, subchain nodes can achieve consensus on AI models with parameters generated during the training process. This consensus is robust against malicious actors:

First, the BFT algorithm used in the validator and confirmer voting steps can tolerate attacks from up to one-third of malicious nodes.

Second, any malicious training nodes or corrupted training data may result in unverifiable or higher-loss results. If malicious training nodes account for less than one-third, the subsequent voting and confirmation steps will discard those compromised results, ensuring that the final model is trustworthy in a decentralized setting.

4.2 Train-to-Mine

A primary incentive mechanism in the SoulNet community is Train-to-Mine: mining Soul tokens by training models on subchains. The following diagram describes the interaction between the main chain and subchains from the perspective of mining.

In this framework, the main chain and subchains work together to execute and complete machine learning tasks. Each block on the main chain is rewarded via DPoS consensus, while each block in a subchain's training phase is rewarded via LBFT consensus.

The workflow of a typical machine learning task is as follows:

1. The AI developer who wants to train a model initiates a machine learning task on the main chain by submitting a certain number of Soul tokens as a deposit to incentivize miners.

2. The main chain locks the submitted Soul tokens, along with a portion of newly minted tokens, as collateral, and creates a dedicated subchain for the requested training task.

3. The subchain begins training and produces sub-blocks for each iteration. Each round of consensus pays out subchain training rewards to the leading nodes.

4. Once the model reaches a high-performance threshold, exceeds iteration limits, or depletes the deposit, the subchain can notify the main chain that the training task is complete.

5. The main chain distributes the token deposit proportionally to the subchain participants based on training contributions.

6. The main chain writes a transaction to confirm task completion and notifies the developer.

4.3 Inference Mining

1) Another major incentive in the SoulNet ecosystem is Inference Mining: mining Soul tokens by executing inference tasks on subchains. The workflow is as follows:

2) An AI user initiates an inference task by calling the main chain and submitting Soul tokens as a deposit to reward miners.

3) The main chain locks this deposit and creates an inference block on the relevant model’s subchain.

4) The subchain begins inference. Miners execute tasks in order of fee priority and package inference results into a block. Validators inspect and sign off on these results and broadcast the block.

5) The main chain distributes the token deposit to the nodes in the subchain.

6) The main chain writes a transaction confirming task completion and notifies the user, who can then retrieve the inference results from the subchain block.

4.4 AI Model Marketplace

Based on the above core functionalities, SoulNet will establish an open and trustworthy AI model marketplace. This marketplace is built on two foundational layers:

·First Layer: Distributed Machine Learning, which enables model training across decentralized nodes.

·Second Layer: ALBFT Consensus, which ensures the creation of trustworthy models in distributed environments while incentivizing the community.

Above these layers, the Soul token-based economy forms the foundation for a decentralized AI platform—empowering developers, users, and contributors to participate in a fair, transparent, and trust-based AI ecosystem.

4️⃣