Open Graph Benchmark

Also known as: OGB

On this page 7

The Open Graph Benchmark (OGB) is a curated collection of large-scale, realistic graph datasets with standardized data splits, evaluation metrics and public leaderboards, designed to measure how well graph machine learning models generalize. Introduced in 2020 by researchers centered at Stanford University, it is one of the reference resources for training data in graph-based artificial intelligence.

OGB was created to fix a specific problem: earlier graph benchmarks such as Cora, CiteSeer and PubMed were small, saturated and split at random, so reported gains often reflected tuning noise rather than real progress. OGB replaced them with graphs of up to more than a billion edges, application-driven splits and an automatic evaluator that makes results comparable across papers.

How the Open Graph Benchmark is organized

OGB groups its datasets by prediction task type, and the dataset name prefix encodes that type. Node datasets start with ogbn-, link datasets with ogbl- and graph datasets with ogbg-. Each dataset ships with a fixed train, validation and test split and a matching evaluator, so researchers do not choose their own partitions.

Task familyPrefixWhat the model predictsTypical metric
Node property predictionogbn-A label or value for each nodeAccuracy or ROC-AUC
Link property predictionogbl-Whether an edge exists or its typeHits@K or MRR
Graph property predictionogbg-A label or value for a whole graphROC-AUC, AP or F1
Task families in OGB

The ogb Python package downloads and caches each dataset and returns it in formats ready for PyTorch Geometric and DGL, or as plain NumPy arrays. The bundled Evaluator class takes predictions and ground truth and returns the official metric, which removes a common source of inconsistent reporting.

Representative datasets and their scale

OGB datasets span citation networks, product co-purchase graphs, biological interaction networks, knowledge graphs and molecules. Scale differs by several orders of magnitude, which lets the benchmark test both modeling quality and scalability of training methods such as sampling and graph partitioning.

DatasetDomainApproximate sizeMetric
ogbn-arxivPaper citation networkAbout 169,000 nodesAccuracy
ogbn-productsProduct co-purchase graphAbout 2.4 million nodesAccuracy
ogbn-papers100MLarge citation networkAbout 111 million nodesAccuracy
ogbl-collabAuthor collaboration networkAbout 235,000 nodesHits@50
ogbl-citation2Citation link predictionAbout 2.9 million nodesMRR
ogbg-molhivMolecular property predictionAbout 41,000 graphsROC-AUC
ogbg-molpcbaMolecular bioassaysAbout 438,000 graphsAverage precision
Selected OGB datasets

In 2021 the project added the OGB Large-Scale Challenge (OGB-LSC), with datasets such as MAG240M, WikiKG90M and PCQM4M. These target industrial scale, for example a heterogeneous academic graph with over 240 million nodes, and were used in a KDD Cup competition.

Why OGB data splits matter

The most important design decision in OGB is the use of realistic, non-random splits. Random splits leak information because test nodes resemble training nodes closely, which inflates scores. OGB instead splits data the way a deployed model would encounter it, so the benchmark measures out-of-distribution generalization.

Split typeExample datasetRuleWhat it simulates
Time splitogbn-arxivOlder papers train, newer papers testPredicting future items
Sales rank splitogbn-productsPopular products train, rare products testLong-tail recommendations
Species splitogbn-proteinsProteins grouped by speciesTransfer to new organisms
Scaffold splitogbg-molhivMolecules grouped by core structureNovel chemical scaffolds
Split strategies used in OGB

Because of these splits, validation and test performance often differ noticeably, and methods tuned aggressively on validation data can disappoint on the test set. This gap is a feature of the benchmark, since it exposes overfitting to the validation split.

Leaderboard rules and reporting practice

OGB leaderboards require a mean and standard deviation over at least 10 runs with different random seeds, together with the parameter count and a link to reproducible code. These rules address the high variance of graph neural network training, where single-run results can differ by several percentage points.

  • Use the official evaluator rather than a custom metric implementation.
  • Keep the provided split, and do not move validation data into training for final scores.
  • Report parameter count so that gains from simply larger models are visible.
  • State any external data or pretrained features, which some leaderboards treat separately.

As a source of training data, OGB also standardizes node and edge features. For example, ogbn-arxiv provides 128-dimensional word embeddings of paper titles and abstracts, and molecular datasets encode atoms and bonds with a shared featurizer. Fixed features mean that score differences reflect the model architecture and training method, not differences in preprocessing. Teams that replace these features with stronger text embeddings from language models must say so, because such changes can shift accuracy by several points on their own and would otherwise distort the comparison.

Strengths and limitations of the benchmark

OGB is valued for reproducibility, scale and domain diversity, and it became a default choice in graph learning papers within a few years. Its limitations matter when interpreting results, because a strong leaderboard position does not guarantee strong performance on a new graph with different structure or features.

AspectStrengthLimitation
ScaleTests scalable training methodsLargest sets need substantial hardware
SplitsRealistic generalization testsFixed splits can still be overfit over time
DomainsScience, commerce and knowledge graphsFew dynamic or streaming graphs
MetricsUniform and automatedHits@K can be sensitive to negative sampling
LeaderboardsTransparent comparisonEncourages narrow leaderboard tuning
Strengths and limitations

Some link prediction datasets have been criticized for evaluation protocols that favor simple heuristics, and later work proposed harder negative sampling. Practitioners therefore treat OGB as a strong baseline check, not as a substitute for evaluation on their own production graphs.

The idea in brief

Many kinds of data look like networks of connected points. Scientific papers cite each other. Products are bought together. Atoms form molecules.

AI models can learn from such networks. But researchers need a fair way to compare them. The Open Graph Benchmark gives everyone the same large datasets and the same tests. It also hides the right answers in a realistic way, such as testing on newer papers than the model saw.

It works like a standardized exam for graph AI. Everyone takes the same exam, so the scores mean something.

A practical scenario

A university team designs a new graph neural network for citation data and wants to show that it beats existing methods. Instead of building its own dataset, the team loads ogbn-arxiv through the ogb package. The model must predict the subject area of each paper among 40 categories, training on papers published up to 2017 and testing on papers from 2019 onward.

The team trains the model 10 times with different seeds and reports test accuracy of 73.1 percent with a standard deviation of 0.2, measured by the official evaluator. Because every competing method uses the same split and metric, reviewers can compare the result directly with the public leaderboard. The team also tests on ogbn-products to show that the method scales to a graph with millions of nodes.