Level 3 · Module 13 · 10 minutes
Layers: stacking units into a network
- Describe the roles of the input, hidden and output layers.
- Explain how values pass from one layer to the next using weights.
- Explain why a deeper network is not automatically better.
Neurons are not used one at a time. They are arranged in layers. A layer is a group of units that receive numbers from the layer before it and pass their results to the next layer. This arrangement lets a network build a large calculation out of many small ones.
The three kinds of layer
The input layer holds the numbers that describe the example. For a photo, those numbers might be the brightness of each pixel, which is one small square dot in the picture. For a message, they might be counts of particular words or word pieces. The input layer does not calculate much. It is the doorway into the network.
Hidden layers sit between the input and the output. They are called hidden because their values are not part of the final answer shown to the person using the system. Each hidden layer combines what the previous layer found. Early hidden layers may react to simple cues, and later hidden layers combine those cues into richer patterns.
The output layer produces the result. It may give one number for a prediction, or several numbers that show the relative strength of each possible label, meaning each answer the system could choose. Those numbers are scores, not proof, and a high score can still be wrong.
How values move
Every value sent from one layer is carried along connections, and each connection has its own weight. That means a network with many layers has a very large number of weights. Training adjusts all of them, using the error at the output to guide the changes.
Why depth matters
A network with more hidden layers is called deep. Stacking layers allows more complicated combinations: starting from simple cues, later layers can represent things like a shape, a word pattern or a whole sentence. More is not always better. Deeper networks need more data and more computing power, and small problems are often handled better and more cheaply by simple methods.
A teaching picture, not a commercial system
Drawings used in lessons show a few circles per layer. Real networks put a very large number of units in each layer, and commercial systems can have many hidden layers. The names used here still apply, but the drawing is a simplification for learning.
Common misconception
A hidden layer is hidden because its work is secret or because nobody can understand it. Hidden simply means that the layer's values are not shown in the final answer. Its purpose is to build intermediate numerical patterns between the input and the output. Hidden does not mean mysterious or unknowable in principle.
Guided practice
Draw a small network on paper with one input layer, two hidden layers and one output layer. Label what the input numbers might be for deciding whether a photo shows a flower, and what the output number might mean. Explain in one sentence what a hidden layer could combine. This is a paper exercise; no model is trained.
Knowledge check
Independent practice
Write a short example from your own work or daily life and decide whether it is AI, ordinary software or a mixture. Then explain why. Save it in your notes; no account is required.
Last reviewed: · Report a problem