Cortensor
  • Home
  • Abstract
    • Value Proposition
    • Whitepaper
      • Page 1: Introduction and Vision
      • Page 2: Architecture and Technical Overview
      • Page 3: Incentive Structure and Tokenomics
      • Page4: Development Roadmap and Phases
      • Page5: Summary
    • Pitch Memo
  • Introduction
    • What is Cortensor?
    • Key Features & Benefits
    • Vision & Mission
    • Team
  • Getting Started
    • Quick Start Guide
    • System Requirements
    • Installation & Setup
      • Getting Test ETH
      • Setup Own RPC Endpoint
      • Router Node Setup
        • Router API Reference
        • Dedicated Ephemeral Node Setup
        • Reverse Proxy Setup
  • Core Concepts
    • Decentralized AI Inference
      • Community-Powered Network
      • Gamification and Quality Control
      • Incentive Structure
    • Universal AI Accessibility
    • Multi-layer Blockchain Architecture
  • Technical Architecture
    • Design Principles
    • Node Roles
    • Node Lifecycle
      • Ephemeral Node State
    • Node Reputation
    • Network & Flow
    • Type of Services
    • Coordination & Orchestration
      • Multi-Oracle Node Reliability & Leadership Rotation
    • AI Inference
      • Open Source Models
        • Centralized vs Decentralized Models
      • Quantization
      • Performance and Scalability
    • Consensus & Validation
      • Proof of Inference (PoI) & Proof of Useful Work (PoUW
      • aka Mining
      • Proof of Useful Work (PoUW)
      • Proof of Useful Work (PoUW) State Machine
        • Miner & Oracle Nodes in PoUW State Machine
      • Sampling in Large Distributed Systems
      • Parallel Processing
      • Embedding Vector Distance
    • Multi-Layered Blockchain Architecture
    • Modular Architecture and Smart Contract Interactions
      • Session Queue
      • Node Pool
      • Session Payment
    • Mining Overview
    • User Interaction & Node Communication
      • Session, Session Queue, Router, and Miner in Cortensor
    • Data Management
      • IPFS Integration
    • Security & Privacy
    • Dashboard
    • Development Previews
      • Multiple Miners Collaboration with Oracle Node
      • Web3 SDK Client & Session/Session Queue Interaction
    • Technical Threads
      • AI Agents and Cortensor's Decentralized AI Inference
    • Infographic Archive
  • Community & Ecosystem
    • Tokenomics
      • Network Incentive Allocation
      • Token Allocations & Safe Wallet Management
    • Developer Ecosystem
    • Staking Pool Overview
    • Contributing to Cortensor
    • Incentives & Reward System
    • Governance & Compliance
    • Safety Measures and Restricted Addresses
    • Buyback Program
    • Liquidity Additions
    • Partnerships
      • Partnership Offering for Demand-Side Partnerships
    • Community Testing
      • Closed Alpha Testing Phase #1
        • Closed Alpha Testing Phase #1 Contest: Closing & Winners Announcement
      • Closed Alpha Testing Phase #2
      • Closed Alpha Testing Phase #3
      • Closed Alpha Testing Phase #4
      • Discord Roles & Mainnet Privileges
      • DevNet Mapping
      • DevNet Modules & Parameters
    • Jobs
      • Technical Writer
      • Communication & Social Media Manager
      • Web3 Frontend Developer
      • Distributed Systems Engineer
  • Integration Guide
    • Web2
      • REST API
      • WebSocket
      • Client SDK
    • Web3
      • Web3 SDK
  • Use Cases
  • Roadmap
    • Technical Roadmap: Launch to Next 365 Days Breakdown
    • Long-term Vision: Beyond Inference
  • Glossary
  • Legal
    • Terms of Use
    • Privacy Policy
    • Disclaimer
    • Agreement for Sale of Tokens
Powered by GitBook
On this page
  • Proof of Useful Work (PoUW) State Machine
  • Proof of Inference (PoI) and PoUW
  • Miner and Oracle Node Interaction
  • Mining Rewards and Incentives
  1. Technical Architecture

Mining Overview

PreviousSession PaymentNextUser Interaction & Node Communication

Last updated 9 months ago

Mining in Cortensor plays a critical role in maintaining the decentralized AI inference ecosystem. At its core, mining enables the processing of AI inference tasks and ensures the continuous functionality of the network. Miners contribute computational power to execute tasks such as data processing, large language model (LLM) inference, and task validation. The mining process is guided by the Proof of Useful Work (PoUW) system and Proof of Inference (PoI) to validate tasks and ensure meaningful contributions.

Even during idle periods, when there are no immediate user requests, miners are incentivized by the network to perform background tasks such as pre-emptive data generation and AI model training. This ensures that computational resources are utilized efficiently, and miners continue to earn rewards even when demand is low. Additionally, miners earn more direct rewards when serving specific user requests, where users pay for AI inference services. This dual reward system—network incentives during idle time and user payments for on-demand services—ensures a continuous flow of tasks and fair compensation for miners, keeping the network active and efficient.

The PoUW state machine is a structured framework that governs the workflow within the network. It controls the flow of tasks through various states: Request, Create, Prepare, Start, Precommit, and Commit. The PoUW system ensures that each Miner Node is assigned tasks fairly and efficiently, while preventing dishonest behavior and ensuring timely task completion. The state machine operates with the interaction of Miner Nodes and Oracle Nodes, the latter of which monitors state transitions and requests the network to move forward if time constraints are exceeded.

Cortensor employs PoI and PoUW mechanisms to validate the accuracy and utility of AI inference tasks. PoI ensures that the AI model's output is verified by measuring the similarity of embedding vectors, while PoUW validates the usefulness of the work performed by the miners. Together, these mechanisms ensure that miners perform valuable computations and are rewarded for legitimate, high-quality work.

In the PoUW state machine, Miner Nodes perform tasks assigned by the network, while Oracle Nodes monitor progress and request state transitions when tasks are completed or when time constraints are not met. Oracle Nodes ensure that no single point of failure occurs by requesting the reassignment of tasks to another Miner Node if the original miner fails to complete the task in time. This process maintains fairness and efficiency within the network and ensures timely task execution.

Mining Rewards and Incentives

Miners in the Cortensor network are rewarded based on their contributions to the system, with rewards scaled by their performance and the importance of the tasks they complete. Even during idle periods, miners can earn rewards by processing background tasks, ensuring continuous participation and resource optimization. The Proof of Useful Work system promotes fairness in task allocation and rewards, encouraging long-term participation and innovation within the network.

Proof of Useful Work (PoUW) State Machine
Proof of Inference (PoI) and PoUW
Miner and Oracle Node Interaction