liveBook · Manning

Activation function

As explained in Graph Neural Networks in Action

An activation function is a nonlinear or otherwise specified function applied to a layer's transformed values.

An activation function applies a nonlinear transformation to aggregated, transformed messages in a neural network layer. In graph message passing, it helps prevent stacked layers from collapsing into an overall linear model. section 3.4.2

A message-passing layer uses the activation function in this sequence:

  • Aggregate node or edge information with an order-independent operator such as sum, average, or maximum. section 3.4.2
  • Transform the aggregated messages with a neural network and activation function. section 3.4.2
  • Combine the resulting embeddings with node or edge data and previous embeddings; apply pooling only when graph-level output requires it. section 3.4.2

ReLU

ReLU returns the maximum of zero and its input. Applied after message aggregation and transformation, it supplies the nonlinearity needed for a graph convolutional layer to model more than a linear relationship. section 3.4.2

Figure 3.15 Elements of our message-passing layer. Each message-passing layer consists of an aggregation, a transformation, and an update step.
figure

Use the layer diagram to trace aggregation, transformation, and update operations around the activation function. section 3.4.2

How Graph Neural Networks in Action covers it

How deep it goes
Defines the transformation and positions it within aggregation, transformation, and update steps, including a message-passing formula.
Examples
Uses ReLU, defined as the maximum of zero and the input, after aggregated messages are transformed.
What you can do after
Evaluate why nonlinear activation is required for expressive multilayer graph neural networks.
How it connects
Links activation functions to message passing, aggregation operators, neural networks, graph convolutional networks, pooling, and node prediction.

Also explained in

Compare how 14 books explain activation function →

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.