File size: 3,990 Bytes
6ff639d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
---
license: cc-by-4.0
language:
  - en
pretty_name: GR-Bench
task_categories:
  - question-answering
size_categories:
  - 1K<n<10K
tags:
  - benchmark
  - graph-reasoning
  - synthetic
configs:
  - config_name: default
    data_files:
      - split: main
        path: data/main/*.parquet
      - split: regime_256k_512k
        path: data/256K-512K/*.parquet
      - split: regime_512k_1m
        path: data/512K-1M/*.parquet
---

# GR-Bench

GR-Bench is the graph-structured reasoning benchmark introduced in *From
Tokens to Topology: When Large Language Models Meet Graph-Structured
Reasoning* (EMNLP 2026 Findings). It contains 1,800 programmatically generated
and oracle-verified instances spanning six task families and three prompt-length
regimes.

Evaluation code is available at
[Ryou-code/GR-Bench](https://github.com/Ryou-code/GR-Bench).

## Dataset structure

| Split | Prompt-length regime | Instances |
|---|---:|---:|
| `main` | below 256K characters | 600 |
| `regime_256k_512k` | 256K--512K characters | 600 |
| `regime_512k_1m` | 512K--1M characters | 600 |

Each split contains 100 instances from each task family:

- `MOTIF`: local three-node motif enumeration
- `BFS`: exact-depth breadth-first search
- `PATH`: bounded path enumeration
- `ART`: articulation-point identification
- `SUBISO`: non-induced subgraph matching
- `RULE`: synchronous non-monotonic rule execution

The `main` split is the 600-instance evaluation set used for the paper's
controlled cross-model comparison. The other two splits instantiate the same
mechanism families at larger graph and prompt scales.

## Fields

Each row has four fields:

- `id`: canonical release identifier of the form
  `grbench_{regime}_{task}_{index}`
- `task`: task-family label
- `prompt`: complete text-only benchmark prompt
- `answer`: oracle answer serialized as a JSON string; recover it with
  `json.loads`

The Parquet files are lossless conversions of the frozen JSONL benchmark files.

### Supplementary metadata

`metadata/metadata.parquet` provides one row per instance with the canonical
`id`, split, task family, difficulty label, prompt length, task-specific graph
statistics, answer size, generation configuration, and source task file. Its
1,800 identifiers align one-to-one with the benchmark rows.

## Construction and verification

Instances are generated programmatically from task-specific graph
constructions. Gold answers are produced by exact symbolic oracles rather than
model outputs or manual annotation. Construction-time checks enforce the
task-specific structural constraints, answer consistency, prompt formatting,
and split membership described in the paper.

## Evaluation

Predictions are parsed as JSON arrays and canonicalized as unordered sets; for
nested outputs, each inner list is canonicalized as an unordered tuple.
Set-F1 is computed independently for each instance and macro-averaged. Missing
or malformed final answers receive zero. The released code implements this
protocol and supports these Parquet files directly.

## Intended use and limitations

GR-Bench is intended for evaluating graph-structured reasoning under a
text-only interface. It is synthetic, English-only, and focused on the six
mechanisms listed above; results should not be interpreted as a comprehensive
measure of general reasoning or performance on naturally occurring graphs.
The dataset contains no human-subject or personally identifying information.

## Licenses

The dataset is released under the
[Creative Commons Attribution 4.0 International license](https://creativecommons.org/licenses/by/4.0/).
The evaluation code is released separately under the MIT License.

## Citation

```bibtex
@inproceedings{zhang-zeng-2026-tokens,
  title     = {From Tokens to Topology: When Large Language Models Meet Graph-Structured Reasoning},
  author    = {Zhang, Qihang and Zeng, Liang},
  booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2026},
  year      = {2026}
}
```