--- pretty_name: GFMBenchmark Datasets license: other license_name: per-dataset-original-licenses task_categories: - graph-ml tags: - graph - graph-neural-networks - graph-foundation-models - benchmark - few-shot-learning - node-classification - link-prediction - graph-classification viewer: false --- # GFM-datasets This repository holds the graph datasets and the pre-generated few-shot splits used by **GFMBenchmark**, from the paper [*Evaluating Progress in Graph Foundation Models: A Comprehensive Benchmark and New Insights*](https://arxiv.org/abs/2603.10033). The files are exactly the ones our code reads: - each dataset's raw files, as downloaded from the source listed below; - the PyTorch Geometric (PyG) processed files; - model-specific caches that are slow to rebuild, such as GCOPE's induced subgraphs and GraphCLIP's subgraph summaries. **We did not create these datasets.** Each one stays under the terms of its original release; see [Datasets and licenses](#datasets-and-licenses). If you use a dataset, please cite its original paper. Three datasets, *Products*, *DGraph* and *Elliptic*, are **not hosted here** because their original terms restrict redistribution. Their few-shot splits are included. See [Datasets not hosted here](#datasets-not-hosted-here) for how to get them. - Code: https://github.com/smufang/GFMBenchmark - Pre-trained checkpoints: [smufang/GFM-checkpoints](https://huggingface.co/smufang/GFM-checkpoints) - Project page: https://xiexuanting.github.io/GFMBenchmark_Home/ ## Download From the root of the code repository: ```bash bash scripts/hf_download.sh datasets # everything hosted here (~75 GB) bash scripts/hf_download.sh datasets Cora ACM Reddit # selected datasets + all few-shot splits bash scripts/hf_download.sh splits # few-shot splits only (~0.3 GB) ``` The script writes `datasets/` and `datasets_split/` into the project root, where the code expects them. Re-running a command resumes an interrupted download. With Python: ```python from huggingface_hub import snapshot_download snapshot_download("smufang/GFM-datasets", repo_type="dataset", local_dir=".", allow_patterns=["datasets/Cora/*", "datasets_split/*"]) ``` ## Layout ``` datasets// raw/ files as released by the source processed/ PyG InMemoryDataset files (data.pt, pre_transform.pt, pre_filter.pt) preprocess/ caches built by our pipeline induced_graphs.pt GCOPE induced subgraphs token_cache_g2p2.pt G2P2 tokenized node text mps_heco.pt HeCo meta-path neighbours graphclip/ GraphCLIP subgraph summaries (summary.json), the batch requests that produced them (request_*.jsonl, retry_*.jsonl), and node features datasets_split// split/split__.pt train / validation / test split few-shot/-/-way_-shot_50-tasks.pt 50 sampled few-shot tasks ``` `` is `node`, `edge` or `graph`. Some datasets add one folder level, because the folder layout follows the PyG loader (for example `ogbn-mag/mag/raw/`). *DGraph* and *Elliptic* also have splits with fewer classes (`node2way`, `node3way`, `node4way`). The main results use `node`. To use a different variant, see `data_provider/README.md` in the code repository. ## Datasets and licenses "Setting" is the paper setting in which the dataset is part of the pre-training corpus (Table 1 of the paper). "—" means the dataset is only used as a downstream target. Datasets marked **not hosted** have only their few-shot splits in this repository. | Topic | Dataset | Source of our copy | Original release | License / terms of the original release | Setting | |---|---|---|---|---|---| | Citation | Cora | OneForAll text-attributed version | McCallum et al. 2000; Sen et al. 2008 | No data license stated (OneForAll code: MIT) | I, III | | Citation | Pubmed | OneForAll text-attributed version | Namata et al. 2012; Sen et al. 2008 | No data license stated (OneForAll code: MIT); abstracts may be under publisher copyright | — | | Citation | ogbn-arxiv | OGB + OGB title/abstract file | Hu et al. 2020 (from MAG) | ODC-BY (OGB); arXiv metadata CC0 | I, III | | Citation | ogbn-mag | PyG `OGB_MAG` | Hu et al. 2020 (from MAG) | ODC-BY | — | | Citation | ACM | PyG `HGBDataset` | Lv et al. 2021 (HGB); Wang et al. 2019 | No license stated | I, III | | Citation | DBLP | PyG `HGBDataset` | Lv et al. 2021 (HGB) | No license stated by HGB; dblp metadata CC0 | I, III | | Social / Web | Reddit | PyG `JODIEDataset` | Kumar et al. 2019 | No data license stated (JODIE code: MIT) | I, III | | Social / Web | Wikipedia | PyG `JODIEDataset` | Kumar et al. 2019 | No data license stated (JODIE code: MIT) | — | | Social / Web | Actor | LLM4HeG / HeTGB text-attributed version | Tang et al. 2009; Pei et al. 2020; Li et al. 2025 | No license file in LLM4HeG; text derived from Wikipedia (CC BY-SA 4.0) | — | | Social / Web | Texas | LLM4HeG / HeTGB text-attributed version | WebKB (CMU, 1997); Li et al. 2025 | No license stated | I, III | | Social / Web | Wisconsin | LLM4HeG / HeTGB text-attributed version | WebKB (CMU, 1997); Li et al. 2025 | No license stated | I, III | | Social / Web | Cornell | LLM4HeG / HeTGB text-attributed version | WebKB (CMU, 1997); Li et al. 2025 | No license stated | I, III | | Social / Web | Chameleon | PyG `WikipediaNetwork` | Rozemberczki et al. 2021 | MUSAE repository: GPL-3.0 | — | | Social / Web | IMDB | PyG `HGBDataset` | Lv et al. 2021 (HGB) | No license stated | I, III | | E-commerce | Photo | PyG `Amazon` | Shchur et al. 2018 | MIT (gnn-benchmark) | I, IV | | E-commerce | Computers | PyG `Amazon` | Shchur et al. 2018 | MIT (gnn-benchmark) | I, IV | | E-commerce | Amazon | GATNE multiplex version | Cen et al. 2019 | MIT (THUDM/GATNE) | I | | E-commerce | Amazon-HeTGB | LLM4HeG / HeTGB text-attributed version | Platonov et al. 2023; Li et al. 2025 | No license stated | I | | E-commerce | Products (**not hosted**) | LLaGA text-attributed ogbn-products | Hu et al. 2020; Chen et al. 2024 | Amazon license (via OGB): academic research only, no republishing | — | | Commonsense | Wiki | PyG `Wikidata5M` | Wang et al. 2021 (KEPLER) | Triples from Wikidata (CC0); entity text from Wikipedia (CC BY-SA 4.0) | — | | Commonsense | FB15K-237 | PyKEEN | Toutanova & Chen 2015 | Microsoft Research Data License Agreement: non-commercial / research use only | I | | Commonsense | NELL | PyG `NELL` | Carlson et al. 2010; Yang et al. 2016 | No license stated | I | | Commonsense | WN18RR | PyKEEN | Dettmers et al. 2018 (from WordNet 3.0) | WordNet 3.0 license | — | | Finance | T-Finance | GHRN release | Tang et al. 2022 | No license stated | — | | Finance | Elliptic (**not hosted**) | PyG `EllipticBitcoinDataset` | Weber et al. 2019 | CC BY-NC-ND 4.0 (Kaggle release) | I, IV | | Finance | DGraph (**not hosted**) | PyG `DGraphFin` | Huang et al. 2022 | DGraph terms of access: registration required, non-commercial research use | — | | Molecule | HIV | PyG `MoleculeNet` | Wu et al. 2018 (DTP AIDS Antiviral Screen) | No license stated | I, III | | Molecule | PCBA | PyG `MoleculeNet` | Wu et al. 2018 (PubChem BioAssay) | NCBI places no restrictions on use; submitters may hold rights | — | | Molecule | COX2 | PyG `TUDataset` | Sutherland et al. 2003; Morris et al. 2020 | No license stated | I, III, IV | | Molecule | BZR | PyG `TUDataset` | Sutherland et al. 2003; Morris et al. 2020 | No license stated | — | | Protein | PROTEINS | PyG `TUDataset` | Borgwardt et al. 2005; Morris et al. 2020 | No license stated (structures from PDB, CC0) | I, IV | | Protein | ENZYMES | PyG `TUDataset` | Borgwardt et al. 2005; Morris et al. 2020 | No license stated (BRENDA, now CC BY 4.0) | I, IV | | Protein | ogbn-proteins | OGB | Hu et al. 2020 (from STRING) | CC0 (OGB); STRING data CC BY 4.0 | — | | (not in paper) | Citeseer | PyG `Planetoid` | Sen et al. 2008; Yang et al. 2016 | No data license stated (Planetoid code: MIT) | not used | | (not in paper) | Facebook | PyG `FacebookPagePage` | Rozemberczki et al. 2021 | MUSAE repository: GPL-3.0 | not used | If you hold rights to one of these datasets and want it removed or changed here, please open a discussion on this repository. ## Datasets not hosted here | Dataset | Why it is not hosted | How to get it | |---|---|---| | Products | OGB lists ogbn-products under the Amazon license, which forbids republishing. | Download `processed_data.pt` from the [LLaGA release](https://utexas.app.box.com/s/i7y03rzm40xt9bjbaj0dfdgxeyjx77gb/file/1441818321356) and put it in `datasets/Products/raw/`. | | DGraph | The providers give access only to registered users who accept their terms of access. | Register at https://dgraph.xinye.com, download `DGraphFin.zip` and put it in `datasets/DGraph/raw/`. | | Elliptic | CC BY-NC-ND 4.0 does not allow sharing adapted material, and our processed files may count as such. | PyG downloads it automatically the first time it is loaded (for example with `bash scripts/data_download.sh`). | Our loaders process the raw files on first use, and the model-specific caches (G2P2 token cache, GCOPE induced subgraphs, GraphCLIP node features and subgraphs) are rebuilt automatically when missing. The one exception is GraphCLIP pre-training on *Elliptic*, which also needs subgraph summaries. Generate them with `GraphCLIP/generate_summary_api.py`, which calls the OpenAI API. ## Generated text - **GraphCLIP subgraph summaries** (`preprocess/graphclip/summary.json`). Following the GraphCLIP protocol, we generated these summaries of sampled ego-subgraphs with OpenAI's GPT-5-mini. The `request_*.jsonl` and `retry_*.jsonl` files are the batch requests that produced them. - **Cora and Pubmed label descriptions** come from the OneForAll release. Its authors generated them with GPT-3.5-Turbo. ## Loading notes - The `.pt` files are pickled PyTorch / PyG objects. They were written with PyTorch 2.5.1 and PyG 2.7.0, and loading them requires `torch.load(..., weights_only=False)`. Only load files from a source you trust. - We removed macOS metadata files (`.DS_Store`, `__MACOSX/`) that were left in DBLP's raw folder after unzipping. ## License The few-shot splits and preprocessing caches that we created are released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). All original data stays under the terms in the table above, and files derived from an original dataset (processed files and caches) also remain subject to that dataset's terms. ## Citation ```bibtex @article{yu2026evaluating, title={Evaluating progress in graph foundation models: A comprehensive benchmark and new insights}, author={Yu, Xingtong and Ye, Shenghua and Liang, Ruijuan and Zhou, Chang and Cheng, Hong and Zhang, Xinming and Fang, Yuan}, journal={arXiv preprint arXiv:2603.10033}, year={2026} } ``` Please also cite the original paper of every dataset you use.