All models

Multi-GNN

A GIN with port numbering, ego IDs and reverse message passing for classifying edges in directed multigraphs.

Graphs and geometry · 141 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 (29 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

Parameters
147.2K
Operations
141
Framework
PyTorch
Recurrent
No
Published
AAAI 2024
Cited by
30 (as of 26 October 2026)
Authors
Béni Egressy, Luc von Niederäusern, Jovan Blanusa and others
License
Apache-2.0
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
m18567
Graph hash
4f39160312c83f157f8ecbd07132bbfdf0e82398d9afabaf7b0bdfc5e713e039
Skeleton hash
0763fe45494dfb3b89cc200b0ee3d079379f6f48b042808c39d8b44ec5546910
Architecture hash
e3bd05a3fa758f72950ac3a5fcd7978842838da6317376fc9cc65c425a7a1d09
Diagram SHA-256
287c81ea8cc679a637585a9518857e0aed90981480b93cb5dadc80def0da8e1c
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

Multi-GNN is a set of simple adaptations that turn a standard message-passing graph neural network into one built for directed multigraphs. The paper's example is a financial transaction network, where edges (transactions) have a direction and two nodes (accounts) can share multiple edges, and the motivating task is to detect financial crimes that show up as subgraph patterns.

There are three adaptations. Reverse message passing uses a separate message-passing layer for the incoming and the outgoing edges. Port numbering gives each directed edge an incoming and an outgoing port number, which lets a node identify messages from the same neighbor in consecutive rounds. Ego IDs mark a center node with a distinct binary feature, so that it can recognize when a sequence of messages cycles back to it. The paper notes that each of these building blocks already existed and that the power of combining them had not been explored. It proves that GIN with all three can theoretically detect any directed subgraph pattern.

On the AML Small HI money laundering dataset, the paper reports that the adaptations raise the minority class F1 score of GIN from 28.7% to 57.2%. The released code covers four base model classes: GIN, GAT, PNA and RGCN. This model is the GIN version with edge updates, reverse message passing, ego IDs and port numbering all switched on, which the repository calls Multi-GIN with edge updates.

Key idea. The paper proves that a message-passing GNN with ego IDs, port numbering and reverse message passing can detect any directed subgraph pattern, and tests it on financial crime data.

  • multi-gnn
  • multi-gin
  • multi-pna
  • directed multigraph
  • anti-money laundering
  • financial crime detection
  • edge classification
  • port numbering
  • ego ids
  • reverse message passing

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

Cite the paper

@misc{egressy2024provablypowerfulgraphneural,
      title={Provably Powerful Graph Neural Networks for Directed Multigraphs}, 
      author={Béni Egressy and Luc von Niederhäusern and Jovan Blanusa and Erik Altman and Roger Wattenhofer and Kubilay Atasu},
      year={2024},
      eprint={2306.11586},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2306.11586}, 
}