← Vision & Writings

AI & GenAI · July 2026

The hidden learning method behind GPT

How GPT actually learned: self-supervised learning, then reinforcement learning

Everyone talks about ChatGPT, but few discuss how it actually learned.

Imagine teaching a child in two different ways.

Approach 1: Give them thousands of questions with the correct answers. For example, “What is 2 + 2?” → “4”. This is supervised learning, where the child learns from examples labeled by humans.

Now, consider a different approach.

Approach 2: Hand the child millions of books and simply say, “Read this sentence. Now predict what comes next.” Each time they make a prediction, they compare it with the actual text and learn from the difference. They are not just memorizing words; they are discovering the patterns behind language.

Over time, they begin to understand:

After reading a vast amount of text this way, something remarkable happens. The child can answer questions they’ve never seen before, summarize information, explain concepts, write stories, and even reason through new problems. This process is remarkably similar to how GPT first learned.

Before ChatGPT could answer a single question, it spent months training on vast collections of text by repeatedly predicting what comes next in a sequence. This learning approach is called self-supervised learning.

Why “self-supervised”? Because the training data creates its own labels. For example, in the sentence, “The Earth revolves around the ____,” the missing word (“Sun”) automatically becomes the correct answer without human labeling. The text itself provides the supervision.

This deceptively simple idea transformed modern AI. Instead of needing billions of manually labeled examples, models could learn from vast amounts of naturally occurring text.

Of course, GPT’s journey doesn’t end there. After large-scale self-supervised pretraining, the model is further refined through instruction tuning and alignment techniques, including reinforcement learning in some stages, to enhance its helpfulness, safety, and alignment with human expectations.

One common misconception is that ChatGPT learned solely through reinforcement learning. A more accurate perspective is:

In many ways, self-supervised learning is one of the biggest breakthroughs behind modern AI, yet it remains one of the least discussed.

Before reading this, did you know that GPT’s core capabilities come primarily from self-supervised pretraining rather than reinforcement learning?

First shared on LinkedIn.