liveBook · Manning

Nonlinear mapping

As explained in Graph Neural Networks in Action

A parameterized operation that maps inputs to outputs without preserving linearity, allowing a neural network to model nonlinear relationships.

A nonlinear mapping transforms aggregated node or edge information through a neural network and activation function. Unlike a purely linear transformation, it lets stacked message-passing layers model more than a linear or logistic regression model. section 3.4.2

A message-passing layer applies the mapping in a short pipeline:

  • Aggregate information from neighboring nodes with an order-independent operation such as summation, averaging, or maximum. section 3.4.2
  • Pass the aggregated messages through learnable neural-network weights and an activation function to produce embeddings. section 3.4.2
  • Combine the transformed embeddings with node or edge data and previous embeddings, then use the resulting representations for prediction or graph embeddings. section 2.4.4

ReLU in a graph neural network

ReLU is a nonlinear mapping that returns the maximum of zero and its input. Applying it after message aggregation prevents a multilayer model from collapsing into an overall linear transformation. section 3.4.2

Figure 2.14 Structure of a multilayer perceptron
figure

Use the multilayer perceptron diagram to visualize the neural-network transformation applied after graph information is gathered. section 2.4.4

How Graph Neural Networks in Action covers it

How deep it goes
Explains aggregation, learnable transformation, activation, and update steps, including ReLU and a general embedding formula.
Examples
Uses ReLU, multilayer perceptrons, neighbor aggregation, and employee recommendation or company-joining prediction.
What you can do after
Apply it through activation functions in message-passing layers to construct nonlinear graph embeddings and predictions.
How it connects
Connects activation functions with message passing, neural networks, graph embeddings, permutation equivariance, and pooling.

Also explained in

Compare how 7 books explain nonlinear mapping →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Graph Neural Networks in Action. The section links point to the parts of the book it draws on.