Add dataset card for GraphDancer
#2
by nielsr HF Staff - opened
README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- graph-reasoning
|
| 9 |
+
- llm-agent
|
| 10 |
+
- curriculum-learning
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# GraphDancer Dataset
|
| 14 |
+
|
| 15 |
+
This repository contains the official training and evaluation data for **GraphDancer**, a framework for training Large Language Models (LLMs) to explore and reason over heterogeneous graphs via two-stage curriculum post-training.
|
| 16 |
+
|
| 17 |
+
- **Paper:** [GraphDancer: Training LLMs to Explore and Reason over Graphs via Two-Stage Curriculum Post-Training](https://huggingface.co/papers/2602.02518)
|
| 18 |
+
- **Project Page:** [https://yuyangbai.com/graphdancer/](https://yuyangbai.com/graphdancer/)
|
| 19 |
+
- **Repository:** [https://github.com/leopoldwhite/GraphDancer](https://github.com/leopoldwhite/GraphDancer)
|
| 20 |
+
|
| 21 |
+
## Dataset Summary
|
| 22 |
+
|
| 23 |
+
The dataset provides multi-turn trajectories for graph-based reasoning tasks. It includes:
|
| 24 |
+
- **Training Data:** Academic domain data used for both Curriculum-PPO and Curriculum-DPO stages.
|
| 25 |
+
- **Test Data:** Evaluation sets across four domains from GRBench: Biomedical (Healthcare), Goodreads (Literature), Amazon (E-commerce), and Legal.
|
| 26 |
+
|
| 27 |
+
## Sample Usage
|
| 28 |
+
|
| 29 |
+
You can download the training and test data using the `huggingface_hub` library with the following script:
|
| 30 |
+
|
| 31 |
+
```python
|
| 32 |
+
from huggingface_hub import hf_hub_download
|
| 33 |
+
import os, shutil
|
| 34 |
+
|
| 35 |
+
repo_id = "yuyangbai/GraphDancer-data"
|
| 36 |
+
|
| 37 |
+
os.makedirs("data/train", exist_ok=True)
|
| 38 |
+
for domain in ["biomedical", "goodreads", "amazon", "legal"]:
|
| 39 |
+
os.makedirs(f"data/test/{domain}", exist_ok=True)
|
| 40 |
+
|
| 41 |
+
# Download training data
|
| 42 |
+
train_file = hf_hub_download(repo_id=repo_id, filename="train/train.parquet", repo_type="dataset")
|
| 43 |
+
shutil.copy2(train_file, "data/train/train.parquet")
|
| 44 |
+
|
| 45 |
+
# Download test data for each domain
|
| 46 |
+
for domain in ["biomedical", "goodreads", "amazon", "legal"]:
|
| 47 |
+
test_file = hf_hub_download(repo_id=repo_id, filename=f"test/{domain}/test.parquet", repo_type="dataset")
|
| 48 |
+
shutil.copy2(test_file, f"data/test/{domain}/test.parquet")
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
## Structure
|
| 52 |
+
|
| 53 |
+
The expected directory structure for the data is as follows:
|
| 54 |
+
|
| 55 |
+
```text
|
| 56 |
+
data/
|
| 57 |
+
├── train/train.parquet # Academic training set
|
| 58 |
+
└── test/<domain>/test.parquet # Per-domain test sets
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
## Citation
|
| 62 |
+
|
| 63 |
+
```bibtex
|
| 64 |
+
@misc{bai2026graphdancertrainingllmsexplore,
|
| 65 |
+
title={GraphDancer: Training LLMs to Explore and Reason over Graphs via Two-Stage Curriculum Post-Training},
|
| 66 |
+
author={Yuyang Bai and Zhuofeng Li and Ping Nie and Yu Wang and Jianwen Xie and Yu Zhang},
|
| 67 |
+
year={2026},
|
| 68 |
+
eprint={2602.02518},
|
| 69 |
+
archivePrefix={arXiv},
|
| 70 |
+
primaryClass={cs.LG},
|
| 71 |
+
url={https://arxiv.org/abs/2602.02518},
|
| 72 |
+
}
|
| 73 |
+
```
|