Supervised Learning

Is ChatGPT supervised or unsupervised?

Is ChatGPT supervised or unsupervised? It mixes self-supervised pretraining, supervised fine-tuning and human feedback. Here is what each stage involves.

On this page
  1. The short answer
  2. Stage one: predicting text
  3. Stage two: fine-tuning on example replies
  4. Stage three: learning from feedback
  5. Is ChatGPT a neural network?
  6. A plain supervised example
  7. Details change between models

The short answer is that ChatGPT is not cleanly one or the other. ChatGPT is a product built on large language models (LLMs), and those models are trained in stages. Different stages use different approaches, so the answer depends on which stage you mean.

The short answer

Training usually has three parts:

  1. Pretraining on large amounts of text. This is usually described as self-supervised learning.
  2. Supervised fine-tuning on example prompts paired with good replies written by people.
  3. Reinforcement learning from human feedback, where people compare model replies and the model learns to produce replies that score higher.

The first stage uses the most data, and it is the stage people usually have in mind when they call the model unsupervised. The later stages look more like supervised and reinforcement learning.

Stage one: predicting text

An LLM starts by learning to predict the next token, which is a word or part of a word, from the text before it. The text itself supplies the answer, so no person has to label each example. That is why the stage is called self-supervised. The model is checked against a clear target, but the target comes from the data.

Some people call this unsupervised, since no human-made labels are involved. Both terms show up in casual writing. Many researchers prefer self-supervised, because the model is still trained against a specific target.

Stage two: fine-tuning on example replies

After pretraining, the model is commonly trained further on prompts paired with replies that people wrote or approved. Each example has an input, which is the prompt, and a label, which is the reply the model should aim for. That is supervised learning. It teaches the model to follow instructions and answer in a helpful style.

Stage three: learning from feedback

Public descriptions of ChatGPT say it was trained with reinforcement learning from human feedback, using methods similar to those described for OpenAI’s InstructGPT models. People compare pairs of answers and pick the better one. Those choices train a reward model that scores answers, and the chat model is then adjusted to earn higher scores.

This stage is reinforcement learning, which learns from a reward signal rather than fixed correct answers. The human judgments are a form of feedback, not fixed labels, so this stage does not fit neatly into either box.

Is ChatGPT a neural network?

The models are neural networks, specifically the transformer type. So a question like “Is ChatGPT a neural network?” has a clear answer: yes. Whether a model is a neural network and how it is trained are separate questions. A neural network can be trained with supervised, self-supervised or reinforcement methods.

A plain supervised example

A spam filter trained on emails marked “spam” or “not spam” is a clear case of supervised learning. Each example has one correct label, and training uses those labels directly. Most LLM pretraining works differently, because the text itself provides the target.

Details change between models

Companies often do not publish full training details for every model, and methods change from one version to the next. Treat this as a description of the general approach, not a complete recipe for any specific release.

The complete guide to supervised learning

Supervised Learning Types With Examples
Read the guide

Keep exploring

Guides from other topics

All topics →