All models

GRACE

A graph encoder trained without labels by contrasting node representations across two corrupted graph views.

Graphs and geometry · 71 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 (13 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
433K
Operations
71
Framework
PyTorch
Recurrent
No
Published
2020
Cited by
1,463 (as of 29 November 2026)
Authors
Yanqiao Zhu, Yichen Xu, Feng Yu 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
m16953
Graph hash
6cc15729288951dcab63c1336195a68902f4131f72f18319956d933ad19a0ddf
Skeleton hash
5092f903e2056b98243c8df22b34c05dfb950f02085094b6163821a04a653b30
Architecture hash
cae43e89270b96ded21445f3c639b4b8673dd84bc89e351c538508616eac0779
Diagram SHA-256
a048afd596f7163ea9d97f5184e52cbf2b1772a1fad806b41c4c6dea10c8bb2f
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

GRACE is a framework for learning node representations on graphs without labels, built on a contrastive objective at the node level. Two views of the graph are generated by corruption, and node representations are learned by maximizing the agreement of the representations of nodes in the two views. The views come from a hybrid scheme that works at both the structure level and the attribute level, which the paper uses to give the contrastive objective diverse node contexts.

The paper justifies the approach theoretically from two perspectives, mutual information and the classical triplet loss. Its experiments cover both transductive and inductive learning tasks on a variety of real-world datasets. On transductive tasks, the paper reports that the unsupervised method surpasses its supervised counterparts. The released code trains and evaluates the model on Cora, CiteSeer, PubMed or DBLP.

Key idea. GRACE learns node representations by generating two corrupted views of a graph and maximizing the agreement of node representations across the two views.

  • GRACE
  • Deep Graph Contrastive Representation Learning
  • graph contrastive learning
  • unsupervised node representation learning
  • self-supervised graph learning
  • node embeddings
  • graph view corruption

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

Cite the paper

@misc{zhu2020deepgraphcontrastiverepresentation,
      title={Deep Graph Contrastive Representation Learning}, 
      author={Yanqiao Zhu and Yichen Xu and Feng Yu and Qiang Liu and Shu Wu and Liang Wang},
      year={2020},
      eprint={2006.04131},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/2006.04131}, 
}