Skip to content

About

Leviathan network substrate: nousnet fork carrying the bond, audit and slash layer

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

2,630 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leviathan

Leviathan

Trustless training for the People's model.

Frontier AI is produced inside five balance sheets. The mathematics of training over the open internet is already solved and shipping; what remains unsolved is trust. Nobody has made it safe to accept a gradient from a stranger and pay them for it.

Leviathan is a Solana-coordinated training network where anyone with a GPU joins by posting a bond, earns Proof of Gradient for contributions that survive verification, and loses the bond if they lie. The chain carries commitments, audits and money. The mesh carries compressed tensors. The model belongs to the network that trained it.

Hobbes drew Leviathan as a giant composed of thousands of individuals. This one is composed of thousands of GPUs.

This repository is leviathan-net, the network substrate: a fork of PsycheFoundation/nousnet (Apache-2.0) that carries the layer upstream designed but left unimplemented. The vision, whitepaper, simulation and phase plan live in the private wienerlabs/leviathan repository.

The open slot

Every live decentralized-training network picked one column. Nobody picked both.

Verification guarantees Live economics (bonds, slashing)
Bittensor training subnets scoring gates, admitted gaps emissions only, no bonds
Nous Psyche witness liveness, verifier is a todo!() no stake, dead slash code, whitelist
Gensyn Verde strong, FP32 single-GPU determinism pre-mainnet
OVIG tolerance-band replay audits a paper, not a network
Leviathan OVIG-style replay audits bonds sized (1-p)/p, live slashing

The combination of bonded contributions, random replay audits and slashing is not run by anyone for live LLM training today. That is the entire moat, and every piece is individually proven in public work from 2024 to 2026.

Security model

Three layers, each covering the others' gap:

  1. Robust aggregation bounds damage. Centered clipping with far-outlier excision caps any contribution's influence radius in the round it happens. Re-validated on real transformer gradients: a 5/16 sign-flip coalition drives naive mean to divergence while clip plus excision holds the honest baseline and admits 3% of malicious contributions.
  2. Replay audits price lying. Each contribution is audited with probability p. Local rounds are replayable pure functions of (checkpoint, seed, data), so a mismatch beyond the calibrated tolerance band is a binary fraud proof. On the ALIE run at p = 0.1, all five stealth cheaters were caught at a mean of 9.8 rounds against the 1/p = 10 expectation.
  3. Bonds make sybil a cost. Break-even bond = reward x (1-p)/p. A slashed identity re-enters only by posting a fresh bond, and slashed stake funds the verifiers hunting it. Security is self-funding under attack.

This is economic security with published parameters, never a cryptographic overclaim.

Architecture

classDiagram
    class Participant {
        +GPU_Resources
        +post_bond()
        +submit_gradient()
    }
    class Treasurer {
        +participant_bond_deposit()
        +request_withdraw()
        +finalize_withdraw()
        +vault_management()
    }
    class P2P_Mesh {
        <<Iroh / DisTrO>>
        +compressed_tensors
        +sparse_loco_recipe
        +diloco_loop
    }
    class Solana_Blockchain {
        <<Network Substrate>>
        +Coordinator_Program
        +Treasurer_Program
        +Authorizer_Program
        +settle_slashing()
    }
    class Coordinator {
        +verification_percent
        +audit_selection(p_probability)
        +derive_assignments(seed)
    }
    class Audit_System {
        +deterministic_replay()
        +tolerance_band_check()
        +conviction_logic()
    }
    class Robust_Aggregation {
        +centered_clipping()
        +outlier_excision()
        +bound_damage()
    }
    class Security_Layers {
        <<Economic and Robustness>>
        +Robust_Aggregation
        +Replay_Audits
        +Bonded_Slashing
    }
    class Phase0_Results {
        +Honest_Loss_2_175
        +Byzantine_Resilience
        +Mean_Catch_Time_9_8_rounds
    }

    Participant "1" -- "1" Treasurer : bonded_participation
    Participant "N" -- "1" P2P_Mesh : mesh_communication
    Treasurer --> Solana_Blockchain : settle
    Treasurer --> Security_Layers : layer_3_sybil_cost
    Coordinator --* Solana_Blockchain
    Coordinator --> Audit_System : triggers_p_0_1
    Audit_System --> Robust_Aggregation : provides_verification
    Audit_System --> Security_Layers : layer_2
    Robust_Aggregation --> Security_Layers : layer_1
    Security_Layers --> Solana_Blockchain : execute_slash
    Phase0_Results ..> Security_Layers : validates_parameters
Loading

What lives here

This fork carries the layer upstream left as dead code, wired to the reward engine and covered by the in-process memnet test harness (no validator required).

Component State
Bonded participation (solana-treasurer) participant_bond_deposit, request_withdraw, finalize_withdraw with a challenge window; settlement forfeits slashed collateral into the run vault
Audit lottery (shared/coordinator) audit_selection derives verifier-to-target assignments from the round seed, deterministic and replayable; audit pressure scales with verification_percent
Dispute and slash (solana-coordinator) slash_client convicts a client, ejection carries into exited_clients where the slashing rate applies; the slashed counter upstream never read now has a live producer

Upstream's verifier dispatch was Committee::Verifier => todo!(), its verification_percent was pinned to zero by an assert, ClientState::Ejected was never set by any path, and the slashed counter no program read. All four are now live.

Devnet deployment

Program ID
coordinator GdHJHiQp7uMv8TanfpaCaKQ8nHm5suvEt9JvjpZFWZ19
authorizer ECEmta24U9WCwh397N4diSc8JnAbyJTG3YiTUVL5umrb
treasurer Fq1Mv8osXqHxiiXjm4yhvQGE5wgx9QMueK8n2qwbqovV

Programs build with anchor build --no-idl. The instruction layers are exercised end to end by the memnet suites:

cargo test -p psyche-solana-tooling

The whole security economics also runs against live devnet through the toolbox RPC endpoint:

cargo run -p psyche-solana-tooling --bin devnet-conviction-demo --features demo

A verified run: a participant posts a bond of 500, the run authority convicts it mid-epoch through the treasurer, the coordinator writes slashed = 200 at epoch end, and the bond withdrawal returns 300 while the forfeited 200 stays in the run vault as reward liquidity. The complete cross-program loop, on live chain.

Lineage

Built on the shoulders of, and differentiated from, PsycheFoundation/nousnet (Apache-2.0): the Solana coordinator, iroh P2P mesh, and Rust DisTrO compression are inherited; the bond, audit and slash layers are ours. The compression recipe follows SparseLoCo over a DiLoCo outer loop; the inference path follows vLLM workers verified by TOPLOC. This repository remains Apache-2.0; see LICENSE and NOTICE.

Private under the wienerlabs organization while Phase 1 lands.

About

Leviathan network substrate: nousnet fork carrying the bond, audit and slash layer

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages