Skip to content
IT glossary
Data and MLUpdated December 3, 2026

Neural network

Нейронная сеть

A machine learning model that transforms inputs in stages. Training adjusts its numerical settings so it can do things like recognize objects in photos, forecast demand, or generate text.

Also known as: нейросеть

What a neural network is

A neural network is a way to build a function from smaller, connected computations. Think of a system that reads handwritten digits: it takes pixel values as input and returns ten scores, one for each possible digit. Rather than writing rules for what a 7 looks like, you choose how the computations are connected and let training find parameter values that work across many examples. The arrangement of those computations is called the architecture.

What happens inside a layer

In a fully connected layer, each unit takes a weighted sum of its inputs and adds a learned offset called a bias. An activation function can then change that result before passing it on. ReLU, for instance, replaces negative values with zero and leaves positive values unchanged. This nonlinear step matters: if you only stack weighted sums and offsets, the whole stack can be replaced by a single weighted-sum layer with offsets. Layers between the input and output are called hidden layers because their values are intermediate results, not the model's final answer.

One training step, from prediction to update

Suppose the true label for a handwritten image is 7, but the network gives 1 the highest score. The computation that produced those scores is the forward pass. A loss function turns the scores and the correct label into a number that measures how poorly the model did. Backpropagation uses the chain rule to compute how sensitive the loss is to each weight and bias. An optimizer then uses those gradients to update the parameters. After training, predicting the digit in a new image is called inference; it doesn't require labels or parameter updates.

When a neural network makes sense

Neural networks are common in vision, speech recognition, and language generation. But a larger model is not necessarily a better fit. For a small table of customer attributes, a tree-based model may be easier to train and serve, and it may perform just as well. Compare both models on the same held-out data, using a metric that reflects the task. Low training loss alone tells you little about whether the model will work on new inputs.

What interviewers look for

Be ready to walk through a training step and say which part produces a prediction, which computes gradients, and which updates weights. You may also be given training and validation curves and asked whether to keep training. If training loss keeps falling while validation loss rises, more training may fit the examples better without improving the model on new data.