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 family | Prefix | What the model predicts | Typical metric |
|---|---|---|---|
| Node property prediction | ogbn- | A label or value for each node | Accuracy or ROC-AUC |
| Link property prediction | ogbl- | Whether an edge exists or its type | Hits@K or MRR |
| Graph property prediction | ogbg- | A label or value for a whole graph | ROC-AUC, AP or F1 |
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.
| Dataset | Domain | Approximate size | Metric |
|---|---|---|---|
| ogbn-arxiv | Paper citation network | About 169,000 nodes | Accuracy |
| ogbn-products | Product co-purchase graph | About 2.4 million nodes | Accuracy |
| ogbn-papers100M | Large citation network | About 111 million nodes | Accuracy |
| ogbl-collab | Author collaboration network | About 235,000 nodes | Hits@50 |
| ogbl-citation2 | Citation link prediction | About 2.9 million nodes | MRR |
| ogbg-molhiv | Molecular property prediction | About 41,000 graphs | ROC-AUC |
| ogbg-molpcba | Molecular bioassays | About 438,000 graphs | Average precision |
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 type | Example dataset | Rule | What it simulates |
|---|---|---|---|
| Time split | ogbn-arxiv | Older papers train, newer papers test | Predicting future items |
| Sales rank split | ogbn-products | Popular products train, rare products test | Long-tail recommendations |
| Species split | ogbn-proteins | Proteins grouped by species | Transfer to new organisms |
| Scaffold split | ogbg-molhiv | Molecules grouped by core structure | Novel chemical scaffolds |
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.
| Aspect | Strength | Limitation |
|---|---|---|
| Scale | Tests scalable training methods | Largest sets need substantial hardware |
| Splits | Realistic generalization tests | Fixed splits can still be overfit over time |
| Domains | Science, commerce and knowledge graphs | Few dynamic or streaming graphs |
| Metrics | Uniform and automated | Hits@K can be sensitive to negative sampling |
| Leaderboards | Transparent comparison | Encourages narrow leaderboard tuning |
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.