Miner & Oracle Nodes in PoUW State Machine

In the Cortensor network, Miner Nodes and Oracle Nodes work together to run the Proof of Useful Work (PoUW) state machine. This system ensures efficient, fair, and reliable execution of AI inference tasks in a decentralized manner. The Miner Nodes perform the AI work across various states, while Oracle Nodes monitor the system's flow to ensure that all tasks are completed on time and that the network progresses smoothly.

Miner Node Workflow

Miner Nodes are responsible for executing tasks across a series of state transitions in the PoUW state machine. These states include:

  1. Request: The network randomly selects a Miner Node to start a session. The selected Miner Node is required to complete and submit AI inference work within a specified period (e.g., 5 seconds). Failure to do so triggers Oracle Nodes to request the network to reassign the task to another Miner.

  2. Create: The selected Miner generates an initial output, such as a set of fields or topics, based on predefined prompts. If the Miner fails to submit the necessary data within the set timeframe, Oracle Nodes request the network to select another Miner.

  3. Prepare: In this state, the output generated in the Create state is expanded upon. The selected Miner uses the initial output to generate further questions or relevant data for the next step. The complexity of the task is higher in this state, and Miners are again monitored by Oracle Nodes to ensure deadlines are met.

  4. Precommit: A set of Miners is selected to perform useful work (e.g., generating answers based on the previous states' output). Miners submit a hash of their work during this stage to prevent dishonest behavior and tampering.

  5. Commit: The Miners reveal their actual work, and it is verified against the hash submitted during the Precommit stage. Once verified, the session progresses to the final state.

  6. End: The session concludes, and the results are finalized. Oracle Nodes request the network to clean up the session and prepare for the next.

Miner Nodes must complete their tasks within the assigned timeframes. Failure to do so can negatively impact their reputation, which affects future network incentives and their ability to receive more tasks.

Role of Oracle Nodes

Oracle Nodes do not assign tasks but play a critical role in ensuring that the PoUW state machine operates smoothly and within the required time constraints. They monitor the state transitions and act as the sole mechanism that requests the network or smart contracts to:

  • Transition from one state to another.

  • Reassign tasks to new Miner Nodes when the current Miners fail to meet the deadlines.

For example, if a Miner Node does not complete the Create state work within the specified period, the Oracle Node will request the network to move the task to another Miner. Oracle Nodes ensure that tasks are completed in a timely fashion and maintain fairness across the network by holding all Miner Nodes to the same standards.

Currently, Cortensor operates the Oracle Nodes manually to monitor and regulate the state transitions. However, as the network matures, the plan is to transition to using Chainlink’s Automation tool, Keepers Registry. This decentralized network of off-chain nodes will handle registered jobs (upkeeps) in a trust-minimized manner, triggering state transitions based on pre-configured conditions, such as time-based or event-driven actions.

This automation will ensure a fully decentralized, reliable, and scalable mechanism for state transitions, minimizing the need for manual interventions and improving network efficiency. This transition is scheduled for implementation closer to the testnet phase.

Why PoUW and Oracle Nodes Matter

The PoUW state machine, monitored by Oracle Nodes, ensures that the Cortensor network can handle AI inference tasks efficiently and securely. By coordinating Miner Nodes and ensuring timely execution of tasks, Oracle Nodes contribute to the overall quality, fairness, and scalability of the network. This system can also be extended in the future to generate and provide services like synthetic data generation, showcasing the broader potential of the Proof of Useful Work mechanism.

Conclusion

The combined efforts of Miner and Oracle Nodes ensure the integrity and efficiency of Cortensor’s decentralized AI inference network. As the network evolves, Oracle Nodes will play a critical role in ensuring smooth operation and maintaining fairness among Miner Nodes. Their regulation of the PoUW state machine will evolve through automation, further solidifying Cortensor’s commitment to a decentralized, scalable, and high-quality AI service network.

Last updated