Evaluating Logical Generalization in Graph Neural Networks

Koustuv Sinha, Shagun Sodhani, Joelle Pineau, William L. Hamilton
3/14/2020
cs.LGstat.ML
gnn

Official code: facebookresearch/GraphLog (92 stars, Jupyter Notebook, last commit 2024-05-03).

Abstract

Recent research has highlighted the role of relational inductive biases in building learning agents that can generalize and reason in a compositional manner. However, while relational learning algorithms such as graph neural networks (GNNs) show promise, we do not understand how effectively these approaches can adapt to new tasks.

Show full abstract

In this work, we study the task of logical generalization using GNNs by designing a benchmark suite grounded in first-order logic. Our benchmark suite, GraphLog, requires that learning algorithms perform rule induction in different synthetic logics, represented as knowledge graphs. GraphLog consists of relation prediction tasks on 57 distinct logical domains. We use GraphLog to evaluate GNNs in three different setups: single-task supervised learning, multi-task pretraining, and continual learning. Unlike previous benchmarks, our approach allows us to precisely control the logical relationship between the different tasks. We find that the ability for models to generalize and adapt is strongly determined by the diversity of the logical rules they encounter during training, and our results highlight new challenges for the design of GNN models. We publicly release the dataset and code used to generate and interact with the dataset at https://www.cs.mcgill.ca/~ksinha4/graphlog.

View on arXivView PDF

Code Implementations(1)

API for accessing the GraphLog dataset

928Jupyter Notebook, PythonFeb 19, 20202 years agoNOASSERTION

Similar Papers

Cite this paper

@article{sinha2020evaluating,
  title  = {Evaluating Logical Generalization in Graph Neural Networks},
  author = {Koustuv Sinha and Shagun Sodhani and Joelle Pineau and William L. Hamilton},
  year   = {2020},
  eprint = {2003.06560},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2003.06560}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2003.06560.svg)](https://codeofpaper.com/paper/2003.06560)

Discussion