What is prompt-based machine learning -- and how is it used?

What is prompt-based machine learning -- and how is it used?

Prompt-based learning is a strategy that machine learning engineers can use to train large language models (LLMs) so the same model can be used for different tasks without re-training.

Traditional strategies for training large language models such as GPT-3 and BERT require the model to be pre-trained with unlabeled data and then fine-tuned for specific tasks with labeled data. In contrast, prompt-based learning models can autonomously tune themselves for different tasks by transferring domain knowledge introduced through prompts.

A prompt is a snippet of natural language text that is added to unlabeled data during the pre-training phase. The art of writing useful prompts is called prompt engineering.

Prompt-based learning makes it more convenient for artificial intelligence (AI) engineers to use foundation models for different types of downstream uses.

This approach to large language model optimization is still considered to be emerging and has led to increased interest in other types of zero-shot learning. Zero-shot learning algorithms can transfer knowledge from one task to another without additional labeled training examples.

Advantages and Challenges

Prompt-based training methods are expected to benefit businesses that don't have access to large quantities of labelled data and use cases where there simply isn't a lot of data to begin with.

The challenge of using prompt-based learning is to create useful prompts that ensure the same model can be used successfully for more than one task.

Prompt engineering is often compared to the art of querying a search engine during the first days of the internet. It requires a fundamental understanding of structure and syntax -- as well as a lot of trial-and-error.

Editor's Note: If you drive your family and co-workers crazy changing the syntax of your chatbot queries until Alexa finally gives you an acceptable response, consider becoming a prompt engineer!

To view or add a comment, sign in

More articles by Margaret Rouse

  • What is RaaS?

    What is RaaS?

    Ransomware as a Service (RaaS) is a low code, software-as-a-service attack vector that allows criminals to purchase…

    1 Comment
  • What is DeFi?

    What is DeFi?

    DeFi (distributed finance) is a decentralized financial ecosystem built on a blockchain distributed ledger. DeFi…

  • What is Facial Recognition Technology?

    What is Facial Recognition Technology?

    Facial recognition is a biometric technology that uses data to verify the presence of a human being’s face in a digital…

  • What is a Prompt Engineer?

    What is a Prompt Engineer?

    A prompt engineer is someone who specializes in crafting generative AI inputs (prompts) that reliably return useful…

    1 Comment
  • What is a Smart Contract?

    What is a Smart Contract?

    A smart contract is a self-executing agreement in which the terms of the contract are written into lines of code. Smart…

    2 Comments
  • What is SASE?

    What is SASE?

    Secure access service edge (SASE) is a cloud network architecture in which security services are delivered over the…

    4 Comments
  • What is Narrow AI?

    What is Narrow AI?

    Narrow artificial intelligence (narrow AI) is artificial intelligence that is designed to perform a limited number of…

  • What is API Sprawl?

    What is API Sprawl?

    API sprawl is a situation that occurs when an organization's application programming interfaces (APIs) are managed by…

    1 Comment
  • What is Computer Vision?

    What is Computer Vision?

    Computer vision (CV) is the subcategory of artificial intelligence (AI) that focuses on building and using digital…

  • What is a Transformer Model?

    What is a Transformer Model?

    A transformer model is a type of deep learning architecture commonly used in machine learning and artificial…

Insights from the community

Others also viewed

Explore topics