Onpode
Cover art for Transfer learning via pretraining—how unlabeled internet text became the training signal

Transfer learning via pretraining—how unlabeled internet text became the training signal

November 23, 2026 · 9 min

Cole Brennan & Malcolm Reeves

Transfer learning via pretraining works by training on unlabeled internet text using self-supervised prediction tasks — hide a word, guess it, check — so models learn grammar, meaning, and world knowledge without human labels. In 2018, GPT-1, BERT, and ULMFiT proved pretrained models beat task-specific supervised systems on standard benchmarks.

Modern large language models (LLMs) are built using a two-stage training paradigm. In the first stage—pretraining—a model is exposed to vast quantities of unlabeled text and learns general linguistic structure through self-supervised objectives: autoregressive next-token prediction (as in GPT-style models) or masked language modeling (as in BERT).

0:009:02
Get the next episode on Artificial Intelligence →

Follow it free — new episodes land in your feed.

Or make your own — any topic, in minutes

More Onpode episodes on Artificial Intelligence →

About this episode

Before large language models, training a useful AI meant paying humans to label millions of examples — a process that was slow, expensive, and error-prone. The dataset long considered the gold standard for image recognition, ImageNet, had label errors in roughly 3–6% of its examples by later audits. The approach that took over didn't fix the labeling problem. It sidestepped it. This episode traces how unlabeled text became its own training signal — through self-supervised tasks like predicting a hidden word or the next character in a sequence. The model learns grammar, meaning, and structure not because anyone defined those things, but because guessing well requires them. A 2017 experiment found that a model trained purely on Amazon reviews developed a single internal unit tracking sentiment. Nobody labeled sentiment. The model invented the concept because it was useful. The episode also walks through 2018, when the idea stopped being a research trick and became consensus: ULMFiT, GPT-1, and BERT arrived within twelve months of each other, each beating task-specific models with one pretrained thing and a thin layer on top. It asks who deserves credit (the archive doesn't settle it), why books beat shuffled tweets as training data, and what the Transformer's self-attention made possible that recurrent models couldn't. And it ends with the honest version: the data bottleneck didn't vanish. It moved — from cheap labels to good words. The internet isn't infinite, and the next scarcity may already be forming.

Frequently asked

What is self-supervised pretraining in machine learning?

Self-supervised pretraining trains a model by hiding parts of its own input and predicting them — no human labels needed. For text, this means masking a word and guessing it from context, forcing the model to learn grammar, meaning, and factual knowledge purely from the structure of the data.

What is the difference between GPT and BERT pretraining?

GPT uses left-to-right next-token prediction: given 'The chef burned the…', predict 'sauce'. BERT, developed by Jacob Devlin's team at Google, masks a word in the middle and reads both sides simultaneously — bidirectional context. Both were released in 2018 and both outperformed task-specific supervised models on benchmarks.

What dataset was GPT-1 trained on?

GPT-1, led by Alec Radford at OpenAI and released in June 2018, was pretrained on BooksCorpus — approximately 7,000 unpublished books, heavily weighted toward romance and fantasy fiction. The model had around 117 million parameters. Long narrative prose forced it to track entities and context across extended passages.

Why do pretrained models still need labeled data for tasks like medical imaging?

Pretraining on unlabeled data teaches general representations — edges, textures, language patterns — but not domain-specific judgments. A radiologist's 2,000 labeled chest X-rays teach a pretrained vision model what to look for clinically. Without pretraining, 2,000 labeled examples would be far too few to train a useful model from scratch.

Did the Transformer architecture make large-scale pretraining possible?

The 2017 Transformer paper by Ashish Vaswani's team at Google Brain replaced sequential recurrence with self-attention, allowing training on massive text corpora in parallel across thousands of chips. Recurrent models had to process text word by word, which cannot be distributed at scale. Attention can, making large pretraining runs economically feasible.

Grounded in 12 sources
Active learning for data streams: a survey ↗ · arxiv.org
The Lean Data Scientist:Recent Advances towards Overcoming the Data Bottleneck ↗ · arxiv.org
Federated and Transfer Learning: A Survey on Adversaries and Defense Mechanisms ↗ · arxiv.org
Scaling Law Analysis in Federated Learning: How to Select the Optimal Model Size? ↗ · arxiv.org
Transfer Learning with Pre-trained Conditional Generative Models ↗ · arxiv.org
A Survey of the Recent Foundation Models Based on Their Architectural and Learning Strategies ↗ · doi.org
Self-Supervised Learning in Remote Sensing: A review ↗ · doi.org
Self-Supervised Learning for Videos: A Survey ↗ · doi.org
8 Representation Learning – 6.390 - Intro to Machine Learning ↗ · introml.mit.edu
LLM Scaling Laws: Analysis from AI Researchers ↗ · aimultiple.com
language_understanding_paper.pdf ↗ · cdn.openai.com
History of Scaling Laws in AI Research – Chat GPT Is Eating the World ↗ · chatgptiseatingtheworld.com
Read transcript

Cole Brennan: Malcolm, there you are. Here's a number that's been rattling around my head: three to six percent. That's how wrong the gold-standard answer key was.

Malcolm Reeves: The ImageNet figure. Label errors in roughly that share of examples, found in later audits.

Cole Brennan: Right, and the approach that took over basically skipped hand labels. How does that even work?

Malcolm Reeves: Think of a kid who reads a giant library before any quiz. She absorbs how language works. Then a short cram teaches her the specific exam. Read first, cram second.

Cole Brennan: Huh. Okay, that clicks.

Malcolm Reeves: The reading is pretraining. The cram is finetuning. And the reading is self-supervised, because the text supplies its own labels: hide a word, guess it, check.

Cole Brennan: And the old way? Where did ImageNet come from?

Malcolm Reeves: 2009, Princeton and Stanford. Fei-Fei Li's team paid Mechanical Turk workers to label millions of images, and it took years. That was the supervised learning data bottleneck: expensive, slow, brittle, poor across domains. So if not labels, what teaches the model?

Cole Brennan: So the text is its own answer key. But how does guessing a hidden word teach a machine anything? It sounds like a parlor game.

Malcolm Reeves: Take a sentence: "The chef burned the sauce, so she started over." GPT-style next-token prediction sees only the left side. "The chef burned the..." and it has to guess "sauce." Then it moves one token over and does it again.

Cole Brennan: One token at a time, left to right.

Malcolm Reeves: Yes. And BERT does it differently. Jacob Devlin's team hides a word in the middle: "The chef burned the [MASK], so she started over." The model reads both sides at once. Bidirectional context.

Cole Brennan: Hold on. To guess "sauce" there, it needs to know burning is something that happens to food. That's the trick, right? Nobody teaches it that. The only way to win the guessing game is to pick up grammar, meaning, even bits of how the world works.

Malcolm Reeves: That's representation learning. No hand-crafted features. Nobody tells it what a noun is. It builds the internal machinery because the guessing demands it.

Cole Brennan: And here's the one that floors me. 2017, Alec Radford at OpenAI. He trains a model to predict just the next character, on Amazon reviews. Characters. Not even words.

Malcolm Reeves: And it learned spelling, presumably.

Cole Brennan: Sure, spelling. But then they poke around inside, and there's a single unit that tracks whether the review is positive or negative. One neuron. Nobody labeled sentiment. Nobody even mentioned it.

Malcolm Reeves: Wait, really? Just one?

Cole Brennan: One that carried most of it, yeah. I mean, think about it. To predict the next character in a review, knowing the writer is angry helps. So the model invented "angry" because it was useful. I'd love to know what that room felt like.

Malcolm Reeves: And the idea isn't new. 1951, Claude Shannon has people guess the next letter of English text to measure its entropy. Same game. It waited seventy years for compute.

Cole Brennan: Seventy years. Man.

Malcolm Reeves: And here's the consequence. Because the text supplies the labels, nobody pays Mechanical Turk workers. The corpus can be as big as the internet.

Cole Brennan: But wait, if the internet supplies the labels, why does anyone still label anything? Picture a radiologist with about 2,000 chest X-rays she labeled herself over six months of lunch breaks. Why does she need those?

Malcolm Reeves: Because the reading only taught the model to see in general. Is that the gap?

Cole Brennan: That's it. She takes a vision model pretrained on millions of unlabeled images and finetunes it on her 2,000. Finetuning, so, the model's learned representations get adapted to one task with a small labeled set. She doesn't teach it to see. She teaches it what to look for.

Malcolm Reeves: And ten years ago, 2,000 images?

Cole Brennan: Dead project. Training from scratch needs way more. But edges, textures, shapes, the pretrained model already has those. That's transfer learning: knowledge from one huge dataset carries over to lots of tasks.

Malcolm Reeves: Now here's my question. Her labels are scarce and expensive. So who writes them, and what do they know that the web doesn't?

Cole Brennan: Right, that's the part I like. Radiologists. They know that a faint shadow near the left lung edge matters, and the web mostly can't tell you that. Like, the web has a million X-ray pictures and no verdicts. So the annotation problem didn't get solved. It got relocated, to a smaller scale, with more expensive people.

Malcolm Reeves: Fewer labels, but each one carries more.

Cole Brennan: Yeah. And it's not just X-rays. Same recipe in remote sensing, medical AI, multimodal, video. So it's a general principle, not a language trick.

Malcolm Reeves: And here's the odd thing. The same year this crystallized, three separate efforts landed within months of each other. Who gets the credit is messier than the tidy version, and we'll get to that.

Cole Brennan: Hang on, though. I mean, some people would say the bottleneck wasn't universal. NLP had big labeled sets already. So was the real bottleneck labels, or was it generalization?

Malcolm Reeves: Fair. Then the honest version is that the bottleneck moved, rather than vanished.

Cole Brennan: So if the bottleneck just moved, then 2018 is when everybody noticed it moving. Three efforts in one year. Walk me through them, because I only half know the order.

Malcolm Reeves: January 2018, Jeremy Howard and Sebastian Ruder publish ULMFiT. Pretrained language representations, finetuned on limited labeled data. June, OpenAI's GPT-1, Alec Radford lead. October, BERT. Twelve months, start to finish.

Cole Brennan: And ULMFiT is the ancestor of the other two, right?

Malcolm Reeves: Now, that's the tidy version. I'd want the original source before saying so. Dai and Le were pretraining sequence models in 2015, and ELMo arrived in early 2018. So 2018 didn't invent pretraining. It's where the idea stopped being a trick and became the consensus.

Cole Brennan: Parallel convergence, maybe?

Malcolm Reeves: Maybe. Shared intuition, shared moment. The archive doesn't settle it, and I won't pretend it does.

Cole Brennan: Fair. So what made it consensus? Because I'd say that's the real stake. Both GPT-1 and BERT beat the task-specific supervised models on benchmarks. Models built by teams for one job lost to one pretrained thing with a thin layer on top.

Malcolm Reeves: Here's the detail I love. GPT-1 learned from BooksCorpus. Around 7,000 unpublished books, heavy on romance and fantasy. About 117 million parameters.

Cole Brennan: Hold on. Dragons and love stories?

Malcolm Reeves: Dragons and love stories. The model that opened the modern era learned its first language from novels no one had published.

Cole Brennan: Whoa. And it works because long stretches of continuous prose force it to track who's who across pages. I mean, that's why books beat shuffled tweets for this. Now, what I really want to know, what did Jacob Devlin's team think they were building? A better tool, or a new kind of thing?

Malcolm Reeves: A better tool, I suspect. The paper reads like one. The Transformer from Ashish Vaswani's group at Google Brain made it cheap enough to try, and BERT was the tool.

Cole Brennan: And the name! ELMo came first, so BERT is a Sesame Street joke. Researchers naming serious models after puppets. That tells you nobody thought they were founding an era.

Malcolm Reeves: And yet it was one. Whether next-token prediction or masked prediction won is still open, and I'd leave it open.

Cole Brennan: Can I pull on that open question, though? Why did everybody just start building bigger? Because Vaswani's paper, 2017, Google Brain, it throws out recurrence. Self-attention. And that's what let you train on a huge pile of text in parallel instead of word by word.

Malcolm Reeves: And that's my framing, really. The Transformer made scaling affordable. Recurrent models had to walk through a sentence in order, and that does not spread across thousands of chips. Attention does.

Cole Brennan: Right, but chicken and egg. Did the Transformer make scale possible, or did someone want scale so badly they went looking for something that could take it?

Malcolm Reeves: The paper's date argues for the first. Nobody had a reason to want that much parallelism until the architecture offered it.

Cole Brennan: Hmm. I mean, some people would say the scaling laws flipped it. Performance improves predictably with model size, dataset size, and compute. Predictably, like a line on a graph. Once you see that line, you build whatever rides it, and OpenAI's GPT series, and Google, did exactly that.

Malcolm Reeves: Yes. And yet the surveys still list sparse attention and Mixture-of-Experts as live advances. If scale were everything, would anyone keep tinkering with the architecture?

Cole Brennan: No, fair. So I'd say scale is the main driver, and the architecture is what let the driver turn the wheel. Whether scale alone is enough, the sources just don't settle it.

Malcolm Reeves: I'd hold both as true. Neither one wins, and I'm comfortable leaving it there.

Cole Brennan: What clicked for me is the bottleneck. It started as labels, then it moved to compute and data. And if good text runs short, it might move again. The internet isn't infinite.

Malcolm Reeves: Quite. We traded one scarce thing for another, and the next one may be good words. That much I'd say plainly. Thank you for the radiologist, by the way. She made it easy to hold.