Neural Network
| Concept | |
|---|---|
| Field | Machine learning |
| Building blocks | Layers, weights, biases and activation functions |
| Training method | Optimisation using a loss function |
| Common forms | Feed-forward, convolutional, recurrent, transformer |
| Related topic | Deep learning |
A neural network is a machine-learning model made from layers of connected computational units. Each unit transforms numerical inputs using learned weights, a bias and an activation function. During training, an optimisation algorithm adjusts the weights so that the model's outputs better match a target objective. Neural networks are used in image recognition, speech processing, forecasting, recommendation systems and language modelling.
Neurons, layers and parameters
A simple artificial neuron computes a weighted sum of its inputs, adds a bias and applies an activation function. A layer combines many such units, and multiple layers form a network. The weights and biases are parameters learned from data. The architecture determines how information flows through the model, while activation functions introduce nonlinear behaviour so that the network can represent more than a simple linear transformation.
A feed-forward network sends information from input layers through hidden layers to an output. Other architectures introduce specialised structure. Convolutional networks use local patterns and shared filters, which makes them useful for spatial data such as images. Recurrent models process sequences with state, while transformers use attention to relate positions in a sequence. Architecture choice should reflect the structure of the data and the task.
Training and backpropagation
Training begins with a dataset and a loss function that measures how far predictions are from desired targets. The network computes predictions in a forward pass. Backpropagation applies the chain rule of calculus to determine how each parameter contributes to the loss, and an optimiser uses those gradients to update parameters. Repeating this process over many examples can improve performance, provided the data and objective represent the intended task.
Training is sensitive to data quality, parameter initialisation, learning rates, batch size and regularisation. A model may memorise training examples instead of learning patterns that generalise to new data; this is overfitting. Validation data helps detect that problem, while techniques such as dropout, weight decay, data augmentation and early stopping can improve generalisation in suitable settings.
Data, evaluation and limitations
A neural network learns statistical relationships from its training data. It does not automatically understand the world in the human sense, and a high score on one test set does not prove that it will work under different conditions. Evaluation should measure the errors that matter for the intended use, include representative data and test for distribution shifts. Biased or incomplete data can produce biased or unreliable outputs.
The model's output also depends on the objective. A classifier trained to minimise average error may perform poorly on rare but important cases. In applications involving people, safety or access to services, teams should study false positives, false negatives, calibration, explainability and human oversight. A neural network is a component in a larger decision process, not a complete accountability mechanism.
Compute and deployment
Training large models requires substantial compute, memory and data movement. GPUs accelerate many tensor operations, while distributed training divides workloads across multiple devices. Inference has different constraints: models must respond at an acceptable latency and fit available memory. Quantisation, batching and model compression can reduce costs but may affect accuracy.
Transformers are one important neural-network architecture. The 2017 paper Attention Is All You Need showed how self-attention could replace recurrent sequence processing in a translation model, and the architecture later became central to large language models. Understanding neural networks provides the broader foundation for that development.
Further engineering considerations
Reproducibility, responsible deployment and monitoring
A trained model is the result of a complete experiment: data selection, preprocessing, architecture, parameter initialisation, optimisation settings and evaluation procedure. Recording these choices makes results easier to reproduce and compare. Random seeds can reduce some variation, although hardware kernels and distributed execution may still introduce nondeterminism. Versioning datasets and model artifacts is equally important because a reported metric is difficult to interpret when the exact training data or code is unknown.
Deployment changes the problem from offline experimentation to an ongoing service. Input data can drift, user behaviour can change and a model that performed well in a test environment can fail under new conditions. Monitoring should therefore track data quality, latency, error rates and task-specific performance where reliable feedback is available. Teams also need rollback procedures and clear ownership when a model is updated. Human review may be necessary for decisions with significant consequences. These operational controls help ensure that a neural network remains a measured component of a larger system rather than an unchecked source of automated decisions.
See also
- Graphics Processing Unit (GPU) – A processor designed to perform many data-parallel operations, first for graphics and now widely used in scientific and AI computing.
- Attention Is All You Need (2017) – The 2017 research paper that introduced the Transformer neural network architecture.
- Big-O Notation – A notation describing how the resource use of an algorithm grows as the input size grows.
- ChatGPT Launch (2022) – The public release of the ChatGPT conversational interface by OpenAI on 30 November 2022.
- Google – An American technology company known for web search, Android, cloud computing and AI research.
- NVIDIA – An American company that designs graphics processors and accelerated computing platforms.
- OpenAI – An American artificial intelligence research and deployment company.
- CAP Theorem – A result stating that a distributed data store cannot simultaneously guarantee consistency, availability and partition tolerance.
References
- ↑ Deep Learning textbook (deeplearningbook.org)
- ↑ Stanford CS231n (cs231n.github.io)
- ↑ Attention Is All You Need (2017) (arxiv.org)