# Neural network

A neural network is a computational model made of interconnected layers of simple units whose weighted connections are learned through training, forming the basic structure behind deep learning and modern AI systems.

A neural network is a computational model composed of interconnected layers of simple processing units, loosely inspired by biological neurons, whose connection strengths, or weights, are adjusted through training to approximate a desired function. Neural networks are the core computational structure behind modern [deep-learning](https://www.wikiprompt.org/wiki/deep-learning) and, by extension, most contemporary [artificial-intelligence](https://www.wikiprompt.org/wiki/artificial-intelligence) systems.

## History

The earliest trainable neural model was the [perceptron](https://www.wikiprompt.org/wiki/perceptron), introduced in 1958, which could learn to classify simple patterns using a single layer of adjustable weights. Its limitations, documented in a 1969 critique, contributed to a broader loss of research funding known as an [ai-winter](https://www.wikiprompt.org/wiki/ai-winter). Interest in multi-layer networks revived in the 1980s with the popularization of [backpropagation](https://www.wikiprompt.org/wiki/backpropagation), an algorithm for efficiently computing how each weight in a network should change to reduce error, which allowed networks with hidden layers to be trained in practice. Neural networks moved from a niche technique to the dominant approach in AI following the 2012 success of [alexnet](https://www.wikiprompt.org/wiki/alexnet), which demonstrated that networks with many layers, trained on large datasets using graphics processing units, could dramatically outperform prior methods on real-world tasks.

## Structure

A neural network is organized into layers of units, or neurons, each of which computes a weighted sum of its inputs and passes the result through a nonlinear activation function before sending it to the next layer. Networks with many such layers between input and output are described as "deep," giving deep learning its name. During training, a [loss-function](https://www.wikiprompt.org/wiki/loss-function) measures the gap between the network's output and the desired result, and [gradient-descent](https://www.wikiprompt.org/wiki/gradient-descent) iteratively adjusts weights to reduce that gap, with backpropagation supplying the necessary gradients efficiently across all layers at once.

## Architectural families

Different network architectures suit different kinds of data. [convolutional-neural-network](https://www.wikiprompt.org/wiki/convolutional-neural-network)s use shared, spatially local filters and are well suited to images. [recurrent-neural-network](https://www.wikiprompt.org/wiki/recurrent-neural-network)s, including the [lstm](https://www.wikiprompt.org/wiki/lstm) variant, process sequences step by step and were historically used for text and speech before being displaced by the [transformer](https://www.wikiprompt.org/wiki/transformer) architecture, which processes entire sequences in parallel using attention. Generative architectures such as the [generative-adversarial-network](https://www.wikiprompt.org/wiki/generative-adversarial-network) and [diffusion-model](https://www.wikiprompt.org/wiki/diffusion-model) apply neural networks to the task of producing new data rather than only classifying or predicting it.

## Limitations and interpretability

Neural networks are often criticized as "black boxes": their internal representations are difficult for humans to inspect or explain, even when their outputs are accurate. This has motivated a research subfield sometimes called [interpretability](https://www.wikiprompt.org/wiki/interpretability), which attempts to reverse-engineer what individual components of a trained network represent. Despite this opacity, neural networks remain the dominant tool across vision, language, audio, and increasingly robotics and scientific applications, largely because their performance continues to improve predictably with more data, more parameters, and more compute.

---
Source: https://www.wikiprompt.org/wiki/neural-network
License: CC BY-SA 4.0 (https://creativecommons.org/licenses/by-sa/4.0/)
Last updated: 2026-09-02T20:28:39.95366+00:00
