ArticleslgStudy

computer science

Multilayer perceptron

Multilayer perceptron is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Multilayer perceptron rather than just read about it. In short: In deep learning, a multilayer perceptron (MLP) is a kind of modern feedforward neural network consisting of fully connected neurons with nonlinear activation functions, organized in layers, notable for being able to distinguish data that is not linearly separable. Modern neural networks are trained using backpropagation and are colloquially referred to as "vanilla" networks.

Multilayer perceptron — main illustration
Multilayer perceptron — illustration

Key takeaways

  • Multilayer perceptron belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Multilayer perceptron to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Multilayer perceptron from memory before moving on to harder problems.

Reference excerpt

In deep learning, a multilayer perceptron (MLP) is a kind of modern feedforward neural network consisting of fully connected neurons with nonlinear activation functions, organized in layers, notable for being able to distinguish data that is not linearly separable. Modern neural networks are trained using backpropagation and are colloquially referred to as "vanilla" networks. MLPs grew out of an effort to improve on single-layer perceptrons, which could only be applied to linearly separable data. A perceptron traditionally used a Heaviside step function as its nonlinear activation function. However, the backpropagation algorithm requires that modern MLPs use continuous activation functions such as sigmoid or ReLU. Multilayer perceptrons form the basis of deep learning, and are applicable across a vast set of diverse domains.

Terminology The name "multilayer perceptron" is a misnomer, as the network relies on neurons with continuous nonlinear activation functions (such as sigmoid, tanh, or rectified linear unit (ReLU)) rather than the Heaviside step function used in the original perceptron. Nevertheless, the name persists to describe feedforward neural networks with at least one hidden layer of fully connected neurons. In deep learning terminology, MLPs are frequently referred to as deep feedforward networks, feedforward neural networks (FNNs), or simply dense networks. They are also colloquially called "vanilla" neural networks to distinguish them from more specialized architectures. The term "fully connected" distinguishes this architecture, where every neuron in one layer connects to every neuron in the next, from architectures with sparse connectivity such as convolutional neural networks. While the general term "neural network" encompasses all varied architectures (including recurrent and convolutional types), "MLP" specifically denotes the class of feedforward networks with dense connections and no cycles.

Timeline In 1943, Warren McCulloch and Walter Pitts proposed the binary artificial neuron as a logical model of biological neural networks. In 1958, Frank Rosenblatt proposed the multilayered perceptron model, consisting of an input layer, a hidden layer with randomized weights that did not learn, and an output layer with learnable connections. In 1962, Rosenblatt published many variants and experiments on perceptrons in his book Principles of Neurodynamics, including up to 2 trainable layers by "back-propagating errors". However, it was not the backpropagation algorithm, and he did not have a general method for training multiple layers. In 1967, Shun'ichi Amari reported the first multilayered neural network trained by stochastic gradient descent, was able to classify non-linearily separable pattern classes. Amari's student Saito conducted the computer experiments, using a five-layered feedforward network with two learning layers. Backpropagation was independently developed multiple times in early 1970s. The earliest instance was Seppo Linnainmaa's unpublished Finnish master thesis (1970), published in English in 1976. Paul Werbos developed it independently in 1971, but had difficulty publishing it until 1982. David E. Rumelhart developed backpropagation in spring of 1982 independently. In 1986, Rumelhart et al. popularized backpropagation. In 2003, interest in backpropagation networks returned due to the successes of deep learning being applied to language modelling by Yoshua Bengio with co-authors. In 2021, a very simple NN architecture combining two deep MLPs with skip connections and layer normalizations was designed and called MLP-Mixer; its realizations featuring 19 to 431 millions of parameters were shown to be comparable to vision transformers of similar size on ImageNet and similar image classification tasks.

Architecture

A multilayer perceptron is a feedforward neural network, meaning information flows in one direction from input to output with no cycles or loops. Unlike recurrent neural networks, which maintain internal state through feedback connections, or convolutional neural networks, which use sparse local connectivity, MLPs are characterized by full connectivity: every neuron in one layer connects to every neuron in the next layer. This architecture is also called a fully connected network or dense network.

Artificial neuron

Each artificial neuron in an MLP receives multiple inputs, processes them through a weighted sum, and applies a nonlinear activation function to produce an output. The neuron model consists of three main parts:

Input connections: Each input xi is associated with a synaptic weight wi that represents the strength of that connection. These weights are the learnable parameters of the network. Linear combiner: The neuron computes a weighted sum of its inputs, typically including a bias term b: u=∑i=1nwixi+b=𝐰𝖳𝐱+b Activation function: The weighted sum is passed through a nonlinear function g(u) to produce the neuron's output: y=g(u)=g(∑i=1nwixi+b) The bias term can be viewed as an adjustable threshold for neuron activation.

Layer structure

The MLP consists of three or more layers: an input layer, one or more hidden layers, and an output layer. The input layer receives the initial data signal (such as pixels of an image or features of a dataset) and passes it to the first hidden layer. It does not perform any computation. The hidden layers are the computational core of the MLP. Each hidden layer consists of neurons that receive weighted inputs from the previous layer, apply a nonlinear activation function, and pass the result to the next layer. These layers are called "hidden" because their values are not directly observed in the training data, unlike inputs or outputs. Deep networks (those with many hidden layers) can learn hierarchical representations of data: lower layers detect simple features while higher layers represent more abstract concepts. The output layer produces the final prediction. Its structure depends on the specific task:

For regression (predicting a continuous value), it typically has a single neuron with a linear activation function. For binary classification (predicting yes/no), it uses a single neuron with a sigmoid activation. For multi-class classification, it usually has one neuron per class (e.g., 10 neurons for digit recognition), often using the softmax activation to produce a probability distribution.

… excerpt ends here. Continue reading the full article.

Illustrations

Multilayer perceptron: Structure of an artificial neuron showing inputs, weights, summation, and activation function.
Structure of an artificial neuron showing inputs, weights, summation, and activation function.
Multilayer perceptron: Sigmoid: outputs (0,1)
Sigmoid: outputs (0,1)
Multilayer perceptron: Tanh: outputs (−1,1)
Tanh: outputs (−1,1)
Multilayer perceptron: ReLU: max(0,x)
ReLU: max(0,x)
Multilayer perceptron: The iterative training loop: each step performs forward propagation to compute predictions and loss, backpropagation to compute gradients, and a parameter update. Training continues until convergence criteria are met.
The iterative training loop: each step performs forward propagation to compute predictions and loss, backpropagation to compute gradients, and a parameter update. Training continues until convergence criteria are met.

Worked examples

Example 1 — a first encounter with Multilayer perceptron

Start with the simplest possible case. Write down what Multilayer perceptron claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Multilayer perceptron before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Multilayer perceptron ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Multilayer perceptron

In research
Multilayer perceptron appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Multilayer perceptron in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Multilayer perceptron is common in secondary-school and first-year university syllabi. It links to neighbouring topics Classification algorithms, Neural network architectures, so understanding it makes those chapters shorter.
In everyday life
Look for Multilayer perceptron outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Multilayer perceptron” →

How to study Multilayer perceptron in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Multilayer perceptron means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Multilayer perceptron out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Multilayer perceptron in simple terms?

In deep learning, a multilayer perceptron (MLP) is a kind of modern feedforward neural network consisting of fully connected neurons with nonlinear activation functions, organized in layers, notable for being able to distinguish data that is not linearly separable. Modern neural networks are traine…

Why does Multilayer perceptron matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Multilayer perceptron?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Multilayer perceptron.

Tags

  • Classification algorithms
  • Neural network architectures

Keep exploring