Change only the output layer
Discover what changes when only the output layer is allowed to learn.
A model has a part that extracts features and an output layer that turns features into predictions. Freezing a part means keeping its parameters fixed during training. It still processes each input.
A small example
Imagine the model has computed a feature for “looks like a colour”. You allow only the output layer to learn. What should stay the same after a step on the same input? With the same computation settings, the feature will be unchanged, although the scores assigned to words may move.
A limit of frozen features
Imagine “scarlet” and “blue” have exactly the same representation: the number 1. That was enough for the old task of spotting colour words. Now the task is to tell warm shades from cool ones.
What reaches the new output layer? It receives 1 either way. Changing the layer’s weights cannot make it distinguish two identical inputs. Before spending more time training that layer, check whether the features preserve the distinction the new task requires.
See it happen
Which weights will change?
Keep the same model. Change only which parameters the optimizer can update.
- All parameters
- Freeze the backbone
- Train the output
Embedding
488
61 rows × 8 numbers.
Hidden layer
792
32 × 24 weights + 24 biases.
Output layer
1525
24 × 61 weights + 61 biases; trainable.
All 2805 parameters can learn.
A numerical illustration. Training and model generation run in the local project.
Done reading?
Mark the lesson as read to move your track progress forward.
Lesson marked as done.
Now build your own version
Train only the output layer and prove that all other weights stayed unchanged.
What practice includes and how much it costs
MCP includes the full lesson and a local project with starter files. Work through the task with your agent, ask for a hint and run the checks on your computer.
One payment, no auto-renewal · Terms
Progress saved in this browser
Clear your history or open this on your phone, and the marks will be gone. Leave your email and they'll move to your account. No password needed.
Done. moved to your account. You can see your progress on any device. My progress