All models

FiLMConv-net

Message passing where the target node modulates each incoming message feature-wise with a FiLM layer.

Graphs and geometry · 128 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (18 KB)

Open in a new tab

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.

At a glance

Family
GNN-FiLM
Parameters
1.6M
Operations
128
Framework
PyTorch
Recurrent
No
Published
ICML 2020
Cited by
93 (as of 18 October 2026)
Authors
Marc Brockschmidt
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m1016
Graph hash
427a90630bc3e62b976993973cac9e9e18adf5679b83fcd89047917cd3712946
Skeleton hash
6acfcd4593f99d4c161cc6eae7f53cf58a9a153ebcb19feea00b7411041016f8
Architecture hash
86ac908ea87e99621add4b9cec55b1b9e0c811360cdaad7a334323ebd30b5051
Diagram SHA-256
ed5cc2e772bb3d6e0c11e5b92a575d89f9c4a77cbf5746a4e725529ae35260c2
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

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.

  • gnn-film
  • filmconv
  • feature-wise linear modulation
  • film
  • graph neural network
  • hypernetwork
  • relational gcn
  • ppi
  • qm9
  • varmisuse
  • tf-gnn-samples
  • brockschmidt

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@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}, 
}