liveBook · Manning

Multilayer perceptron

Also called MLP, multi-layer perceptron

A multilayer perceptron is a feedforward neural network composed of fully connected layers with nonlinear transformations.

How 4 Manning books explain it

Rearchitecting LLMs

A multilayer perceptron is a feed-forward neural network composed of successive learned linear transformations and nonlinear activations.

How it is used
Targets Transformer MLPs for structural optimization and activation inspection.
How deep it goes
Explains classic and gated forward paths, tensor dimensions, paired pruning, reconstruction, and hook placement.
Examples
Uses DistilGPT2’s 768→3072→768 MLP and Llama-3.2-1B’s gated 2048→8192→2048 MLP.
What you can do after
Operate/configure gated MLP width pruning and inspect intermediate activations with PyTorch hooks.

Read how Rearchitecting LLMs explains multilayer perceptron →

Evolutionary Deep Learning: Genetic algorithms and neural networks

A multilayer perceptron is a feedforward neural network composed of an input layer, one or more hidden layers, and an output layer of interconnected units.

How it is used
Uses a transparent classification network as the basis for comparing gradient training with evolutionary weight optimization.
How deep it goes
Explains NumPy construction, training, prediction, parameter replacement, and genetic evaluation without presenting extensive mathematical derivations.
Examples
Demonstrates binary classification on generated classification, moons, circles, blobs, and Gaussian-quantiles datasets, including an all-ones weight configuration.
What you can do after
Build a NumPy MLP, inspect its predictions, compare accuracy, and optimize its weights with DEAP genetic algorithms.

Read how Evolutionary Deep Learning: Genetic algorithms and neural networks explains multilayer perceptron →

Fight Fraud with Machine Learning

A multilayer perceptron is a feedforward neural network composed of fully connected layers that transform input features into predictions.

How it is used
Uses individual transaction features to establish a fraud-detection baseline before applying models that exploit graph relationships.
How deep it goes
Explains layer dimensions, activation, dropout, initialization, training, evaluation, and learning curves, but stops short of neighborhood aggregation.
Examples
Uses the Elliptic Bitcoin dataset, 165-feature transactions, PyTorch listings, learning curves, graph visualizations, and licit-versus-illicit predictions.
What you can do after
Builds and evaluates a PyTorch MLP baseline for binary or extensible multiclass transaction classification.

Read how Fight Fraud with Machine Learning explains multilayer perceptron →

Graph Neural Networks in Action

A multilayer perceptron is a feed-forward neural network composed of one or more fully connected hidden layers between its input and output layers.

How it is used
Uses node features as tabular inputs to establish a non-GNN classification baseline before testing graph-structured models.
How deep it goes
Defines layers, activations, loss, optimizer settings, epochs, and evaluation, but does not derive the network mathematically.
Examples
Uses node-feature classification, flattened image inputs, dog-or-cat outputs, and node2vec traversal vectors as examples.
What you can do after
Build it from scratch in PyTorch and compare its predictions with logistic regression, XGBoost, and graph neural network baselines.

Read how Graph Neural Networks in Action explains multilayer perceptron →

Also covered in

What to know first

Related concepts

Questions about multilayer perceptron

What is multilayer perceptron?

A multilayer perceptron is a feedforward neural network composed of fully connected layers with nonlinear transformations.

Which Manning books explain multilayer perceptron?

Rearchitecting LLMs, Evolutionary Deep Learning: Genetic algorithms and neural networks, Fight Fraud with Machine Learning and Graph Neural Networks in Action.

What should I know before learning multilayer perceptron?

Manning books that teach multilayer perceptron usually introduce parameter, accuracy, deep learning and graph neural network first.

What is the difference between multilayer perceptron and attention?

A multilayer perceptron is a feedforward neural network composed of fully connected layers with nonlinear transformations. Attention is a neural-network mechanism that computes input-dependent relevance weights to combine information from representations for a context-dependent computation.

What is multilayer perceptron also called?

Multilayer perceptron is also called MLP or multi-layer perceptron.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.