Skip to main content
SUBMIT A PRSUBMIT AN ISSUElast edit: Nov 04, 2024

Walkthrough of Subnet 1

In this section we present a high-level walkthrough of the Subnet 1: Prompting. This subnet contains multiple incentive mechanisms which produce an internet-scale conversational intelligence. Below are a few examples of the intelligence produced by this subnet:

  • Answering questions.
  • Summarizing a given text.
  • Debugging code.
  • Translating languages.
  • Solve mathematics problems, and more.

This subnet is driven by large language models (LLMs). These LLMs search the internet and utilize specialized simulator modules to produce factually accurate and mathematically correct responses.

Subnet 1 Explorer

You can see the prompting subnet in action on the Taostats explorer (select Subnet 01: Text Prompting from the top menu).

Before you proceed

If you are new to Bittensor subnets and building blocks, read the following sections before you proceed further:

The below diagram shows a typical subnet with many subnet miners and subnet validators together executing the subnet incentive mechanism code. On the Taostats explorer (select Subnet 01: Text Prompting from the top menu) the Metagraph view for this Subnet 1: Prompting shows the performance details for each subnet miner and validator.

For easier understanding, in this document we will focus on how a single subnet validator interacts with multiple subnet miners in this subnet.

1-Prompting Walkthrough1-Prompting Walkthrough

Subnet 1 summary

See the below diagram showing a high-level view of how this Prompting subnet works.

Prompting Subnet 1 Big PicturePrompting Subnet 1 Big Picture

The numbered items in the below description correspond to the numbered sections in the above diagram:

  1. The subnet validator sends a challenge simultaneously to multiple subnet miners. This step constitutes the prompt from the subnet validator to subnet miners. A challenge is a prompt sent to subnet miners in such a way that:

    • This prompt is in a style and tone that is similar to humans. This is so that subnet miners become adept at handling "fuzzy" instructions with ambiguity. This is required in order to excel at understanding user needs.
    • This prompt drives the conversation between the subnet validator and the subnet miners in order to reach a pre-defined goal.

    See the below Challenge generation section for how a challenge is generated.

  2. The subnet miners respond to the subnet validator after performing the challenge task. Most tasks require subnet miners to make use of APIs or tools to perform well.

  3. The subnet validator then scores each subnet miner by comparing the subnet miner's response with a locally generated reference answer. The subnet validator uses this reference as the ground truth for this step. The reference is generated using data from APIs and tools to ensure factual correctness and to provide citations.

  4. Finally, the subnet validator sets the weights for the subnet miners by sending the weights to the blockchain. In the Bittensor blockchain the Yuma Consensus allocates the rewards to the participating subnet miners and subnet validators.

Use of large language models

In this subnet both the subnet validator and the subnet miners use large language models (LLMs) to create the challenges (subnet validator) and respond to the prompts (subnet miners).

Challenge generation

Prompting Subnet 1 Big PicturePrompting Subnet 1 Big Picture

The challenge generation works like this (see the above diagram):

  • The subnet validator generates a prompt consisting of a clearly stated question or a task description, for a given task type.
  • The subnet validator also generates one or more reference answers to the above prompt. The subnet validator also provides the context to generate this reference answer.
  • A requirement for this prompting subnet is that the entire conversation should be human-like. To accomplish this, the subnet validator takes on a human persona and wraps the above prompt in the persona's style and tone. The introduction of such random persona's style and tone creates a lossy, corrupted, version of the original clear instruction. This corrupted prompt is called a challenge.
  • The subnet validator prompts the subnet miners with this challenge. Note that the reference is not sent to the subnet miners.

Score the subnet miner responses

The responses from the subnet miners are compared to the reference answers by the subnet validator. The closer a subnet miner's response is to the reference answer, the higher is the subnet miner's score.

Measuring subnet miner's response

This Prompting Subnet 1 presently uses a combination of string literal similarity and semantic similarity as the basis for measuring the closeness of a subnet miner's response to the reference answer.

Key innovations in this subnet

This subnet has developed a few innovative techniques to get to a real human-like conversational AI that actually produces intelligence instead of copying from the internet. Refer to the diagram in the above Challenge generation section:

Achieving human-like conversation

To deliver to a user of this subnet an experience of a human-like conversation:

  • Subnet validators perform a roleplay where they take on the persona of random human users before they prompt the subnet miners. There are several tangible benefits to this role playing flow, such as:
    • Subnet validators can engage the subnet miners in a real, random, human-like conversation throughout the subnet operation.
    • Subnet miners become adept at handling ambiguous instructions.
    • This generates, as a byproduct, interesting synthetic datasets that can be used to finetune other LLMs.
  • Subnet miners are required to produce completions that are as close as possible to the reference. To accomplish this a subnet miner must:
    • Extract clear instruction from the lossy challenge.
    • Find the appropriate context, for example, using Wikipedia.
    • Generate a completion that matches the tone and style of the reference.
  • This means that throughout the subnet validation process the subnet miners become better and better at handling ambiguous, "fuzzy" instructions.
  • A subnet validator could increase the corruption of the instruction to increase the difficulty of the tasks.
  • To change the subnet miner completions, a subnet validator may modify the style and tone of the reference answers or change the scoring function, or both.
Class HumanAgent

Prevent subnet miners from looking up the answers

To prevent the subnet miners from simply looking up the answers on the internet, this subnet incorporates a novel approach—it introduces fuzziness into the prompt and requires that the subnet miners use semantic intelligence to understand the instructions contained in the prompt.

Evolve subnet as a mixture of experts (MoE)

The subnet validator composes a challenge based on whether the task is answering questions, summarizing a given text, debugging code, solve mathematics problems, and so on. The motivation behind using multiple tasks is several fold:

  • Using multiple tasks in the prompts continuously benchmarks the capabilities of the subnet miners across a broad range of tasks that are challenging but are still common use-cases.
  • Using multiple tasks, prompts can be routed to specialized subnet miners, thereby providing an effective mixture of experts system.
  • This approach also serves as a precursor to Bittensor's inter-subnet bridging mechanism that will enable Subnet 1 to interact with other subnets and access the useful work provided by these subnets.
  • Finally, the subnet miners in this subnet must become adept at using tools and APIs in order to fulfill validation tasks. We are building an API layer for inter-subnet communication, which is a natural extension of 'agentic' models.
Continuously improving performance

One objective of this subnet is to achieve full coverage of the distributions across different personas (representing different users), and different tasks (representing different use-cases). See the arXiv paper Super-Natural Instructions (PDF).