Neural networks explained in one sentence: a neural network is a function made of many small calculations, arranged in layers, whose numbers are adjusted automatically until its outputs match the examples it was shown. It is the basic building block behind image recognition, speech recognition, translation and the AI assistants you chat with. The name suggests a brain, but the comparison is loose. A neural network is mathematics running on a computer, and you can understand its core ideas with nothing more than multiplication, addition and a little patience.
This guide explains how a network is built, how it computes an answer, how it learns from mistakes, why it sometimes fails and how the idea connects to modern language models. No programming is needed, and we use small numbers so you can follow each step by hand.
Neural networks explained: a function that learns
Imagine you want to predict the price of a flat from its size and its distance from the centre. You could write a formula by hand, but the real relationship is messy. A neural network instead starts with a flexible formula with many adjustable numbers, called parameters. At first the numbers are random, so the predictions are poor. The network then looks at many examples of flats with known prices, measures how wrong it is and nudges the numbers to be less wrong. After many rounds, the formula fits the examples and often works on flats it has never seen.
This idea of learning from examples is the core of machine learning. The overview of neural networks describes the many variants, but all of them share three ingredients: a structure that turns inputs into outputs, a way to measure error and a method for adjusting parameters to reduce it.
Neurons, weights and bias
The smallest unit is a neuron, sometimes called a unit or a node. A neuron receives several numbers, multiplies each by a weight, adds them up, adds a bias and passes the result through an activation function. A weight says how much an input matters. A bias shifts the result up or down. The activation function adds a bend, which is what lets networks represent more than straight lines.
Here is a tiny example. A neuron has two inputs, 2 and 3. The weights are 0.5 and -1, and the bias is 1. The weighted sum is 2 × 0.5 + 3 × (-1) + 1 = -1. A common activation called ReLU returns zero for negative numbers and the number itself otherwise, so the output is 0. If the weights were different, the output would change. Training is the search for weights that make the outputs useful.
Layers: input, hidden and output
A network arranges neurons in layers. The input layer holds the raw numbers, such as the pixels of an image or the size of a flat. One or more hidden layers transform those numbers step by step. The output layer produces the answer, for example a price, or a probability for each of ten categories. In a fully connected layer, every neuron receives all the outputs of the previous layer.
Depth matters because each layer can build on the one before. In an image network, early layers respond to edges, middle layers to shapes and later layers to objects. Nobody programs this hierarchy. It appears during training because it helps reduce error. The word “deep” in deep learning only means that there are many layers.
| Term | Plain meaning | Example |
|---|---|---|
| Input | The numbers you give the network | Pixel values, word codes, sensor readings |
| Weight | How strongly one connection counts | 0.5 or -1.2 |
| Bias | A shift added to a neuron | +1 |
| Activation | A bend that lets the network learn curves | ReLU, sigmoid |
| Layer | A group of neurons at the same stage | Hidden layer 2 |
| Output | The prediction | A price or a category |
How a network computes an answer
Computing an answer is called a forward pass. The input numbers enter the first layer, each neuron calculates its weighted sum and activation, and the results go to the next layer. After the last layer, you have the output. The whole process is a long chain of multiplications and additions, which computers do very quickly, especially on graphics processors designed for many parallel calculations.
Using a trained network to answer a question is called inference. Our guide to AI inference explains what happens when you press send in a chat assistant. The weights stay fixed during inference; the network does not learn from your question unless the developer retrains it with new data.
How a network learns: loss, gradients and backpropagation
Learning needs a score for how wrong the network is. That score is the loss. For price prediction, the loss might be the average squared difference between predicted and real prices. A lower loss means better predictions. The training goal is to find weights that make the loss small on many examples.
To reduce the loss, the network needs to know which way to move each weight. The slope of the loss with respect to a weight is called a gradient. If increasing a weight raises the loss, the weight should go down, and the other way round. Backpropagation is an efficient method for calculating these slopes for every weight by working backwards from the output to the input and reusing partial results. Then gradient descent takes a small step in the direction that lowers the loss. The size of the step is the learning rate: too big and training overshoots, too small and it takes forever.
A small numeric example helps. Suppose the network predicts a price of 220 while the real price is 200. With a squared-error loss, the loss for this flat is (220 – 200) squared, which is 400. If raising a certain weight would raise the prediction further, the gradient for that weight is positive, so the update lowers it a little. After many such nudges across thousands of flats, the average loss drops, and the predictions get closer to reality. The whole procedure follows the same cycle:
- Show a batch of examples to the network.
- Calculate the outputs with a forward pass.
- Measure the loss against the correct answers.
- Use backpropagation to find the gradients.
- Adjust the weights a little in the direction that reduces loss.
- Repeat for many batches and many passes over the data, called epochs.
Overfitting and how to detect it
A network can learn the training examples too well and fail on new ones, much like a student who memorises past exam answers. This is overfitting. The standard defence is to split data into three sets: training data for learning, validation data for choosing settings and watching progress, and test data used once at the end for an honest score. If training loss keeps falling while validation loss rises, the network is memorising.
Remedies include more varied data, a smaller network, stopping training early, adding noise or dropout, and regularisation, which penalises very large weights. The same reasoning applies to large language models, where the quality and variety of data matter as much as the size of the network. Our guide to AI bias shows why the examples a network sees shape what it does.
Types of neural networks
The basic recipe has many forms. Convolutional networks use small filters that slide over images and are good at spotting local patterns. Recurrent networks process sequences one step at a time and were widely used for text and speech before newer designs arrived. Autoencoders compress data and rebuild it. Generative networks create new examples, such as images, and our guide to diffusion models explains one popular approach.
Most current language assistants use the transformer design, which relies on a mechanism called attention to relate every word in a passage to the others. It is still a neural network, built from layers of the same weighted sums, with extra structure. Our guide to transformer models covers it, and the guide to model parameters explains what the billions of numbers are.
Common misunderstandings
- “It works like a brain.” The inspiration is loose. Artificial neurons are simple formulas, and training uses calculus, not biology.
- “It understands what it learned.” A network finds patterns that help reduce loss. Whether that amounts to understanding is a matter of debate, and it can fail in surprising ways.
- “More layers always means better.” Bigger networks need more data and computing power and can overfit. The best size depends on the task.
- “It stores its training data.” It stores weights, not a copy of examples, although it can sometimes reproduce parts of its training data.
- “It is always right when it sounds sure.” Output scores are not guarantees. Language models can state false things fluently, as our guide to AI hallucinations explains.
How to learn more, step by step
You can build intuition without code. Draw a network with two inputs, two hidden neurons and one output on paper, choose weights and compute the output by hand. Change one weight and see the effect. Then try a free interactive playground that shows a small network learning to separate dots on a screen, and watch how the decision boundary changes as training goes on.
When you are ready for code, learn basic Python and a numerical library, build one neuron, then a layer, then a tiny network that learns a simple function. Our guide to learning to code with AI explains how to use an assistant as a tutor without skipping the practice. For vocabulary, keep the AI glossary open while you read.
How Ask Mio helps you learn about neural networks
Ask Mio is one assistant with five modes, and Chat and Write on the free plan are enough to explain concepts at your level. Ask it to explain backpropagation with a three-number example, to quiz you on terms or to check your own explanation and point out mistakes. Mio picks the model for each request. Research mode on paid plans searches the web and cites sources, so you can follow a claim back to a paper or a course.
Code mode on the Coding plan can write a short example, such as a single neuron in Python, and explain it line by line. Paid plans also add file uploads for lecture notes or a paper in PDF form, and memory so Mio remembers your level. Always compare explanations with a textbook or an official course, because an assistant can simplify too much. Chats and files stay yours, can be exported or deleted and are not used to train models.
Frequently Asked Questions
What is a neural network in simple terms?
It is a function made of layers of small calculations whose numbers, called weights, are adjusted automatically from examples. Inputs flow through the layers to produce an output, such as a price or a category. Training reduces the difference between the output and the correct answer.
How do neural networks learn?
They measure how wrong their output is with a loss, calculate how each weight affects that loss using backpropagation and then change the weights slightly with gradient descent. This repeats over many batches of examples until the loss stops improving on separate validation data.
Is a neural network the same as AI?
No. Artificial intelligence is a broad field, and neural networks are one technique within machine learning. Today most leading systems for language, images and speech use neural networks, so the terms are often mixed, but older AI methods such as rules and search also exist.
Do I need maths to understand neural networks?
You can grasp the main ideas with arithmetic and the concept of a slope. Deeper work uses linear algebra and calculus. Start with small hand calculations, build intuition and then add the maths as you need it for the tasks you care about.
Which Ask Mio plan helps with learning AI concepts?
The free plan includes Chat and Write, which are enough for explanations and quizzes. Chat adds Research with cited sources, file uploads and memory, and Coding adds Code mode for examples. Check the live pricing page for current allowances before choosing.
The Bottom Line
Neural networks explained simply are layers of weighted sums that learn by reducing a loss measured on examples. Once you know neurons, layers, forward passes, backpropagation and overfitting, the rest of modern AI becomes easier to follow. You can practise with an explanation partner on the free plan and compare options on the Ask Mio pricing page.
