HackerTube 中文?
Learning signals and model behavior →

How far is next-token prediction from answering a person?

Separate three questions: how an input becomes a representation, how training changes a network and how a capable text predictor becomes an assistant. An explanation at one level does not settle the others.

Questions in this reading · 8
  1. What is geometric about a word embedding?
  2. What does attention add to layered activations?
  3. How does a network change after a wrong answer?
  4. What does dropout do inside a GPT training loop?
  5. How can many subnetworks share one set of weights?
  6. From predicting a token to using a language model
  7. When does a text predictor become an assistant?
  8. What is the next unit, and how far back can prediction look?

What is geometric about a word embedding?

Coordinates describe a vector relative to a basis. Embeddings use learned vectors whose directions can capture relationships among words.

Compare original passages and timestamps · 2
the ability to translate back and forth between them
Vectors | Chapter 1, Essence of linear algebra · ▶ 8:45–8:49
directions in the space have a kind of semantic meaning
Transformers, the tech behind LLMs | Deep Learning Chapter 5 · ▶ 14:28–14:34

What does attention add to layered activations?

A feedforward network propagates activations through its layers. Causal attention lets each position combine information from earlier tokens.

Compare original passages and timestamps · 2
the heart of the network as an information processing mechanism
But what is a neural network? | Deep learning chapter 1 · ▶ 4:39–4:43
you can do weighted aggregations of your past Elements
Let's build GPT: from scratch, in code, spelled out. · ▶ 57:59–58:14

An attention map shows where to look. What comes back?

Take “fluffy blue creature.” To enrich the representation of “creature,” a head needs both to find relevant positions and to bring something back from them. Query–key dot products help with the first job. The weighted combination of value vectors does the second. Two identical attention maps could write different information into “creature” if the values differed. The adjectives illustrate the distinction; they do not assign a grammatical job to every head.

Passages and timestamps · 2
To measure how well each key matches each query, you compute a dot product between each possible key-query pair.
Attention in transformers, step-by-step | Deep Learning Chapter 6 · ▶ 8:27–8:34
For each column in this diagram, you multiply each of the value vectors by the corresponding weight in that column.
Attention in transformers, step-by-step | Deep Learning Chapter 6 · ▶ 14:42–14:49

How does a network change after a wrong answer?

Forward propagation computes a prediction. In micrograd, a loss and its gradients connect that prediction to the next parameter update.

Compare original passages and timestamps · 2
the entire network is just a function
But what is a neural network? | Deep learning chapter 1 · ▶ 15:39–15:43
efficiently evaluate the gradient of some kind of a loss function
The spelled-out intro to neural networks and backpropagation: building micrograd · ▶ 0:55–1:07

What change does a single handwritten 2 ask for?

Show the network one picture. It guesses the wrong digit, so we would like the score for “2” to rise. But the knobs are on the connections, not on the scores. Turning a weight barely helps if the unit feeding it is nearly silent on this picture. Backpropagation translates a desired change at the output into the local influence of each knob.

Passages and timestamps · 1
We can't directly change those activations, we only have influence on the weights and biases.
Backpropagation, intuitively | Deep Learning Chapter 3 · ▶ 4:02–4:07

The next picture may ask the same knob to turn the other way. The landscape in the gradient descent talk is the average cost across training examples. That separates three jobs: the labels supply the targets, backpropagation computes sensitivities, and the optimizer chooses the step to take.

Passages and timestamps · 1
So then what you do is consider the average cost over all of the tens of thousands of training examples at your disposal.
Gradient descent, how neural networks learn | Deep Learning Chapter 2 · ▶ 4:18–4:25

What does dropout do inside a GPT training loop?

The subnetworks interpretation explains why units are omitted during training. The implementation shows where the random masking happens in an actual model.

Compare original passages and timestamps · 2
all of these architectures are sharing the same weights, which is regularizing them a lot.
Brains, Sex, and Machine Learning · ▶ 17:13–17:20
training an ensemble of sub networks and then at test time everything is fully enabled
Let's build GPT: from scratch, in code, spelled out. · ▶ 99:07–99:16

How can many subnetworks share one set of weights?

Dropping units during training can be viewed as training different subnetworks with shared parameters. The test-time prediction is not necessarily their exact arithmetic mean.

Compare original passages and timestamps · 2
all of these architectures are sharing the same weights, which is regularizing them a lot.
Brains, Sex, and Machine Learning · ▶ 17:13–17:20
training an ensemble of sub networks and then at test time everything is fully enabled
Let's build GPT: from scratch, in code, spelled out. · ▶ 99:07–99:16

From predicting a token to using a language model

Building a predictor makes its training target concrete. Using a trained model shows how context and instructions put that predictor to work.

Compare original passages and timestamps · 2
give it the start of a sequence and it completes the sequence
Let's build GPT: from scratch, in code, spelled out. · ▶ 1:50–2:05
knows how to predict the next word
A Hackers' Guide to Language Models · ▶ 1:33–1:43

When does a text predictor become an assistant?

Next-token prediction teaches continuation. Compare how later training shapes responses to a user; the distinction does not prescribe a single post-training algorithm.

Compare original passages and timestamps · 2
it takes the model from being a document completer to a question answerer
Let's build GPT: from scratch, in code, spelled out. · ▶ 114:09–114:19
we swap out the data set now and we train on these Q&A documents
[1hr Talk] Intro to Large Language Models · ▶ 16:26–16:38

What is the next unit, and how far back can prediction look?

Karpathy's name generator looks back one character and predicts the next. It is scored by the probabilities assigned to the actual sequence. His tokenizer demonstration changes the unit under prediction by merging frequent adjacent bytes. Sutskever hypothesizes that sufficiently good next-token prediction may require modeling what produced the text. Test the boundary with names: learning frequent letter pairs improves the score without identifying a person. Testing a stronger claim requires contexts that local frequencies alone cannot resolve.

Passages and timestamps · 4
we're always working with just two characters at a time
The spelled-out intro to language modeling: building makemore · ▶ 5:51–5:56
the product of all of these probabilities
The spelled-out intro to language modeling: building makemore · ▶ 53:21–53:26
find the byte pairs that occur the most
Let's build the GPT Tokenizer · ▶ 26:38–26:42
The underlying reality that led to the creation of that token
Ilya Sutskever (OpenAI Chief Scientist) — Why next-token prediction could surpass human intelligence · ▶ 7:45–7:51

Try it on your own example

When an answer improves, does the evidence identify the representation, training objective or post-training as the cause?