Schema eines neuronalen Netzes: Von links nach rechts folgen Eingabeebene, mehrere verdeckte Ebenen und Ausgabeebene aufeinander; Pfeile zeigen, wie die Werte von jeder Ebene zur nächsten weitergereicht werden.

Layer

A layer is one of several stacked processing stages: each stage takes the result of the previous one, transforms it, and passes it on. In AI, the term refers to the layers of an artificial neural network; in computer science generally, it also denotes the separate levels of responsibility within a system.

A layer is a processing stage within a larger system. Picture it like an assembly line with several stations. Each station receives something, does exactly one thing to it, and passes the result on. No station needs to know what the others are doing. That’s precisely the point: a complicated problem gets broken down into manageable sub-steps. In artificial intelligence, layers are the strata of a computational model made up of many simple computing building blocks. In computer science generally, the term refers to the separate responsibilities within a program or a network.

Why deep networks are deep in the first place

The term “deep learning” owes its name to exactly these layers. “Deep” simply means: many layers stacked one after another. A model with three layers can only capture simple relationships. A model with a hundred layers can recognize patterns made up of patterns made up of patterns.

This is easy to observe in image recognition. The first layers respond to brightness edges and color transitions. Middle layers assemble these into shapes like circles or corners. Later layers use these to recognize eyes, wheels, or characters. Nobody prescribed this division of labor — it emerges by itself during training.

The principle also applies outside of AI. When you load a webpage, several network layers work together. One handles the cable or Wi-Fi, one handles addressing, one handles rendering in the browser. Because the layers are separate, you can swap out the Wi-Fi without rewriting the browser. This separation is one of the most important architectural principles in computer science altogether.

What actually gets computed within a layer

In a neural network, a layer consists of many small computing units, the neurons. Each neuron receives numbers from the previous layer. It multiplies them by learned weights and adds everything together. This is followed by a small nonlinear computation rule that prevents the network from collapsing into a single simplistic formula. Without this step, a hundred layers would be no better than one.

The weights are the model’s parameters. They are adjusted during training until the outputs match the training examples. A large language model often has anywhere from several dozen to over a hundred such layers. The text travels once from bottom to top through all the layers, and then the next word is determined.

A common misconception: more layers are not automatically better. Very deep networks were long barely trainable because the learning signal got lost on the way down. Only tricks such as shortcut connections between layers solved this. And every additional layer costs computation time, for every single request.

Where the word turns up in reports and products

In technical descriptions of AI models, the number of layers is almost always specified. It’s listed alongside the parameter count and describes the size of the architecture. Anyone reading model cards on platforms like Hugging Face will find entries such as “32 layers”.

The term also plays a role in explainability research. Experts examine individual layers to understand what information a model stores at which point. In so-called fine-tuning, sometimes only the topmost layers are retrained further, because that’s cheaper than retraining the whole model.

Outside of AI, you’ll encounter the word in entirely different contexts. Image editing programs work with layers that you stack on top of each other and hide individually. In enterprise software, there’s talk of a database layer and an application layer. The common core always remains the same: separate responsibilities that build on one another.

Subscribe free. Unsubscribe the second it sucks.

High-signal news across AI, business, UX, and tech. Every morning.