What is a neural network?
A neural network is a model of connected computing units that learn from data by adjusting numerical weights to make predictions or generate other outputs.
A neural network is a mathematical model made of connected computing units, called artificial neurons, that learn from data by adjusting numerical values called weights. The units receive numbers, combine them, and pass the result to other units; the arrangement of their connections is called the architecture. In a layered network, the first layers process the input data and later ones transform the results until they produce an answer, such as a category assigned to an image. During training, a procedure changes the weights to reduce a measure of error on the available examples. In supervised learning, those examples include the desired answer, such as the correct label for a photograph. Training does not guarantee that the network will work as well on new cases; that performance must be measured separately. Neural networks are only loosely inspired by biological neurons; their units are mathematical operations, not cells. They can classify images, process text, or make predictions.
See also: Machine Learning vs Deep LearningMachine learning is the family of models that learn from data; deep learning is the neural-network subset powering modern AI.
How a network learns
In many networks, each unit combines its inputs with its weights and applies an activation function, a transformation that can introduce nonlinear relationships. ReLU, for example, replaces negative values with zero and leaves positive values unchanged. In deep networks, multiple layers can build increasingly complex representations: in an image, some may detect edges and others combinations of shapes. The review by LeCun, Bengio, and Hinton describes these mechanisms and backpropagation, which calculates how the error changes as the weights change. An optimization algorithm then uses that information in a separate step to update the weights.
Deep learning uses networks with multiple layers; a neural network need not be deep. Structure varies with the task: in an ImageNet classification experiment, researchers trained a convolutional network on images and beat the previous best results on that test. The result is limited to that experiment.
An enterprise example
A company wants to identify defects in product photographs. It collects images with and without defects, checks their labels, and trains a network to distinguish the categories. It keeps some examples out of training to measure both missed defects and good products flagged by mistake. Before deployment it compares results across images from different production lines and imaging conditions; uncertain cases go to a human reviewer. If lighting or products change, it repeats the measurements: initial performance does not establish reliability under new conditions.
Why it matters for decision makers
The type of data shapes the choice of model but does not settle it. For data arranged in rows and columns, compare neural networks with models based on decision trees. In a study of 45 tabular datasets, tree-based models outperformed neural networks on medium-sized datasets (about 10,000 samples), even before counting the tree models' speed advantage. The finding does not decide any specific case; compare errors, time, and cost for both approaches on the same problem.
Buyers should ask vendors for test data, results under expected operating conditions, known limitations, and a plan for ongoing oversight. The voluntary NIST AI Risk Management Framework recommends documenting tests, measuring performance in conditions similar to deployment, and monitoring systems in operation. The ability to explain an answer should also be checked against the intended use; knowing the architecture alone does not justify individual decisions.
Frequently asked questions
Related terms
- Machine Learning vs Deep LearningMachine learning is the family of models that learn from data; deep learning is the neural-network subset powering modern AI.
- Decision treesA decision tree is a model that learns a sequence of rules from data to assign a category or predict a numerical value for a case it has not seen before.
- PerceptronThe perceptron is the simplest artificial neuron: it weighs its inputs, compares the total to a threshold, answers yes or no and corrects its weights on errors.
- Mechanistic interpretabilityMechanistic interpretability reverse-engineers the concepts and circuits a neural network computes with: today it serves research, not regulatory compliance.