A neural network is a type of software loosely inspired by the brain. It is built from many small units, often called neurons, arranged in layers and connected to each other. Each connection has a number attached to it, called a weight, that controls how strongly one unit influences the next. Learning means finding good values for those weights.
How it works
Data enters the first layer, such as the pixels of an image or the words of a sentence turned into numbers. Each unit combines the signals it receives, applies a simple function and passes the result on. After several layers, the final layer produces an output: a label, a prediction or the next word.
At the start, the weights are random and the answers are poor. During training, the network makes a guess, compares it with the correct answer from the training data, and measures the error. Gradient descent then adjusts every weight slightly in the direction that would have reduced that error. Repeat this across millions of examples and the network gradually gets good at the task.
An everyday comparison is a recipe with thousands of dials. Nobody sets the dials by hand. The network tries, tastes the result and turns each dial a tiny bit, over and over, until the dish comes out right.
Why depth matters
A network with many layers is called deep, and training one is called deep learning. Extra layers let it build up understanding in steps. In an image model, early layers might detect edges, middle layers shapes, and later layers whole objects. The total count of adjustable weights is the model's parameter count, which is the figure people quote when they say a model has billions of parameters.
Common kinds
What to keep in mind
A neural network does not follow written rules. It finds statistical patterns, which makes it flexible and also hard to inspect. Its mistakes can be confident and strange, and it can only be as good as the data it learned from. Understanding this explains many behaviors of modern AI, from impressive fluency to occasional hallucination.