Name: Towards AI Legal Name: Towards AI, Inc. Description: Towards AI is the world's leading artificial intelligence (AI) and technology publication. Read by thought-leaders and decision-makers around the world. Phone Number: +1-650-246-9381 Email: [email protected]
228 Park Avenue South New York, NY 10003 United States
Website: Publisher: https://towardsai.net/#publisher Diversity Policy: https://towardsai.net/about Ethics Policy: https://towardsai.net/about Masthead: https://towardsai.net/about
Name: Towards AI Legal Name: Towards AI, Inc. Description: Towards AI is the world's leading artificial intelligence (AI) and technology publication. Founders: Roberto Iriondo, , Job Title: Co-founder and Advisor Works for: Towards AI, Inc. Follow Roberto: X, LinkedIn, GitHub, Google Scholar, Towards AI Profile, Medium, ML@CMU, FreeCodeCamp, Crunchbase, Bloomberg, Roberto Iriondo, Generative AI Lab, Generative AI Lab Denis Piffaretti, Job Title: Co-founder Works for: Towards AI, Inc. Louie Peters, Job Title: Co-founder Works for: Towards AI, Inc. Louis-François Bouchard, Job Title: Co-founder Works for: Towards AI, Inc. Cover:
Towards AI Cover
Logo:
Towards AI Logo
Areas Served: Worldwide Alternate Name: Towards AI, Inc. Alternate Name: Towards AI Co. Alternate Name: towards ai Alternate Name: towardsai Alternate Name: towards.ai Alternate Name: tai Alternate Name: toward ai Alternate Name: toward.ai Alternate Name: Towards AI, Inc. Alternate Name: towardsai.net Alternate Name: pub.towardsai.net
5 stars – based on 497 reviews

Frequently Used, Contextual References

TODO: Remember to copy unique IDs whenever it needs used. i.e., URL: 304b2e42315e

Resources

Take our 85+ lesson From Beginner to Advanced LLM Developer Certification: From choosing a project to deploying a working product this is the most comprehensive and practical LLM course out there!

Publication

Pre-train, Prompt, and Predict — Part1
Latest   Machine Learning

Pre-train, Prompt, and Predict — Part1

Last Updated on July 25, 2023 by Editorial Team

Author(s): Harshit Sharma

Originally published on Towards AI.

The 4 Paradigms in NLP

(This is a multi-part series describing the prompting paradigm in NLP. The content is inspired by this paper (a survey paper explaining the prompting methods in NLP)

(Source: Image from Paper) Prompting paradigms

I came across this wonderful paper on Prompting while going through this amazing course on Advanced NLP (UMass). Being a survey paper, they have given a holistic explanation of this latest paradigm in NLP.

Over multiple articles, we will be discussing the key highlights from the paper and learn why Prompting is considered to be “The Second Sea Change in NLP”.

To appreciate what is prompting and to get started, Part 1 discusses 4 major paradigms that have occurred over the past years.

Let’s get started !!

Fully-Supervised Learning (Non-Neural Network)
— powered by —
Feature Engineering

  • Supervised learning required input-output examples to train the model.
  • In the Pre-Neural-Network era, these NLP models required
    Feature Engineering, where NLP researchers use domain knowledge to extract features from limited data and infuse inductive bias into the model
  • There was NO Relation between the Language Models and the downstream tasks that were solved. Each task had to have its own trained model

Fully-Supervised Learning (Neural Network)
— powered by —
Architecture Engineering

  • Neural Networks came and with that the automatic learning of features from training data. Manual feature engineering was no longer necessary
  • The focus shifted to Architecture Engineering, where NN architectures were engineered to provide the appropriate inductive bias to the model
  • Again, No relation between the training of language models and solving the downstream tasks. Each task was solved using its own model architecture.

— — — — —-The First Sea Change — — —— —

Pre-train and Fine-Tune
— powered by —
Objective Engineering

  • This was the first time a Language Model was pre-trained on massive data and later adapted to downstream tasks via fine-tuning using task-specific objectives.
  • The focus shifted to Objective Engineering, designing training objectives both during the pre-training and fine-tuning stages
  • The below diagram shows how Language Models play a central role in this paradigm. Unsupervised training of LMs is combined with Task specific supervised fine-tuning
(Source: Paper, modified by Author) Relationship between Language Model pre-training and various downstream tasks.

— — — — — -The Second Sea Change — — — — —

Pre-train,Prompt,Predict
— powered by —
Prompt Engineering

  • Instead of adapting LM to a specific task via objective engineering, the downstream tasks are reformulated using a Textual Prompt.
    Eg: To find the emotion of “I missed the bus today”, feed the model “I missed the bus today. I felt so _____”. The trained LM will try to fill the blank with appropriate emotion, eventually giving us the emotion of the input.
  • This doesn’t require any task-specific training
  • This calls for a focus on Prompt Engineering since prompt needs to be engineered correctly in order to elicit appropriate / desired response from the model.

That’s all for Part 1!! In Part 2, we will be diving into Prompting, its basics, its applications, various design considerations while designing prompts, etc.

Follow me and Subscribe so that you don’t miss out on the Prompting series and the upcoming articles on ML/NLP

Join thousands of data leaders on the AI newsletter. Join over 80,000 subscribers and keep up to date with the latest developments in AI. From research to projects and ideas. If you are building an AI startup, an AI-related product, or a service, we invite you to consider becoming a sponsor.

Published via Towards AI

Feedback ↓