UGformer
A graph neural network that uses transformer self-attention to learn graph representations.
Graphs and geometry · 143 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.
At a glance
- Task
- Graphs and geometry
- Parameters
- 606.6K
- Operations
- 143
- Framework
- PyTorch
- Recurrent
- No
- Published
- WWW 2022 (Poster and Demo Track)
- Cited by
- 73 (as of 23 October 2026)
- Authors
- Dai Quoc Nguyen, Tu Dinh Nguyen, Dinh Phung
- 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 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.
Details
- Stable ID
- m3220
- Graph hash
- f575218e790eeea70ebdff41b6890340425e2d686afe70ec9287f74b53a7e077
- Skeleton hash
- 332e9d259db016f9112d4e6578551aa9e42d49b568f9b025a2db8b519796ad17
- Architecture hash
- 8962a9264559fba4c915d5bb948cf9fa34d4e9223d9cff84550069499713d9d1
- Diagram SHA-256
- 725b91cb1a5179f933a6703cd35f396f33d04c7b5d5a1f74eae0e1f7562e4255
- 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
UGformer is a graph neural network built on the transformer, made to learn graph representations. The authors saw the transformer succeed in natural language processing and set out to use it in a new domain, graph neural networks.
The paper presents two variants. The first, publicized in September 2019, runs the transformer on a set of sampled neighbors for each input node. The paper notes that this variant is also suitable for large graphs. The second, publicized in May 2021, runs the transformer on all input nodes. In that second variant each UGformer layer is a transformer self-attention network followed by a GNN layer, so that the graph structure still enters the computation.
The first variant is evaluated on graph classification with social network and bioinformatics datasets, in both an inductive setting and an unsupervised transductive setting. The second is demonstrated on inductive text classification, where each document becomes a graph with unique words as nodes and co-occurrences between words as edges. Those text experiments use four benchmarks: MR, R8, R52 and Ohsumed. The repository notes that the paper was accepted to the Poster and Demo Track at The ACM Web Conference 2022.
Key idea. UGformer applies transformer self-attention to graphs, either over sampled neighbors of each node or over all nodes followed by a GNN layer, to learn graph representations.
- ugformer
- universal graph transformer
- universal graph transformer self-attention networks
- graph transformer
- transformer-based gnn
- graph classification
- inductive text classification
- u2gnn
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{nguyen2022universalgraphtransformerselfattention,
title={Universal Graph Transformer Self-Attention Networks},
author={Dai Quoc Nguyen and Tu Dinh Nguyen and Dinh Phung},
year={2022},
eprint={1909.11855},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1909.11855},
}