
FiLMConv
Graphs and geometry128 ops1.6M params
Message passing where the target node modulates each incoming message feature-wise with a FiLM layer.
Graphs and geometry · 128 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
GNN-FiLM is a graph neural network type that uses feature-wise linear modulation, FiLM. Most standard GNN variants propagate information along the edges of a graph by computing messages based only on the representation of the source of each edge. In GNN-FiLM the representation of the target node of an edge is used to compute a transformation applied to all incoming messages, so the passed information is modulated feature by feature. The idea comes from FiLM in visual question answering, where a hypernetwork fed with an encoding of a question produces an element-wise affine function applied to the features extracted from a picture.
Each node's representation determines an element-wise affine transformation of its incoming messages, letting the model dynamically up-weight and down-weight features based on the information present at the target node. In practice, implementing the hypernetwork g as a single linear layer works well. With a single linear layer the message passing function is bilinear in source and target node representation. A core capability of GNN-FiLM is to learn to ignore graph edges based on the representation of target nodes. A small implementation bug drew attention to the non-linearity, which when applied after summing messages can make tasks like counting neighbours with a certain feature harder. In experiments, applying the nonlinearity before aggregation improved performance.
Hyperparameters for all methods were found by extensive search, and the somewhat surprising result is that differences between state of the art models are much smaller than reported and simple baselines that are often not compared perform better than recently proposed GNN variants. GNN-FiLM outperforms these methods on a regression task on molecular graphs and performs competitively on other tasks. On PPI the paper says GNN-FiLM improves slightly over the four baselines from the literature while converging substantially faster than all of them. The readme's PPI table lists GNN_FiLM at 0.992 micro-F1 with an average time of 308.1 seconds. On VarMisuse the ranking flips, with R-GCN performing best. In PPI each node has 50 features selected by domain experts and may belong to several of the 121 classes. The PPI hyperparameter search gave GNN-FiLM four layers and a node representation size of 320.
Key idea. A GNN in which the target node of each edge computes an affine FiLM transformation applied to all its incoming messages, giving feature-wise modulation of the passed information.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{brockschmidt2020gnnfilmgraphneuralnetworks,
title={GNN-FiLM: Graph Neural Networks with Feature-wise Linear Modulation},
author={Marc Brockschmidt},
year={2020},
eprint={1906.12192},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1906.12192},
}