AI Logic

Glossary

Neural Network

Updated:

On the left, a network of stacked layers: from the bottom, the nodes of the input layer (4), hidden layer 1 (5), hidden layer 2 (5), and output layer (3), each connected by lines to every node in the adjacent layer. A box below describes forward propagation (computing the output from the input layer to the output layer) and backpropagation (tracing back from the output error to correct the weights and biases). On the right, the inside of one node in hidden layer 2, proceeding upward from the bottom: the previous layer's outputs x₁…xₙ, weighting, summing, and adding a bias z = Σ wᵢxᵢ + b, the activation function a = f(z), and on to the next layer.

Explanation

A neural network is a computational model inspired by biological neural circuits, designed to learn patterns and features from data. The model consists of multiple layers, and each layer is made up of units called nodes (neurons). Input data is processed as it passes through the layers, and an output is finally produced. Theoretically, neural networks rest on the frameworks of pattern recognition and function approximation: each node processes its input signal with its weights and bias and an activation function. Information passes through the layers by forward propagation (feedforward), and learning is done with backpropagation. Neural networks can approximate nonlinear functions, and the depth of the hidden layers in particular makes it possible to learn complex functions.

Where It Is Used

Neural networks are used in many fields; their main uses include the following. In image recognition, convolutional neural networks (CNNs) extract image features to recognize and classify objects. In natural language processing, recurrent neural networks (RNNs) and the Transformer are used for text generation, machine translation, and sentiment analysis. In speech processing, they are used for speech recognition and speech synthesis, processing audio signals to transcribe text or generate speech. In reinforcement learning, neural networks are sometimes used as function approximators that evaluate states so that an agent can maximize the reward from its environment. Generating new data (images, audio, text, and so on) with generative models such as generative adversarial networks (GANs) and variational autoencoders (VAEs) is another important application.

FAQ

Q. How does a neural network work?
A.

Nodes are connected across multiple layers; each node weights its inputs, processes them, and passes its output to the next layer through an activation function.

Q. How does it learn?
A.

It uses backpropagation to update the weights so as to minimize the loss, gradually learning patterns that fit the data.

Q. In what fields is it used?
A.

It is a core technology across virtually every area of AI, including image recognition, speech recognition, natural language processing, reinforcement learning, and generative models.