Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
23
26
task
stringclasses
6 values
prompt
stringlengths
8.51k
88.4k
answer
stringlengths
105
110k
grbench_main_art_000000
ART
You will be given a graph as a list of undirected edges. All nodes are at least degree 1. You will also get a description of an operation to perform on the graph. Your job is to execute the operation on the graph and return the set of nodes that the operation results in. If asked to find articulation points, only retur...
["112bf6101a","1202e5f72f","1969bf5160","36074aa5f7","3a21694a5f","40acb62d7c","4458b58214","493fbd7dda","520cda179f","5ddc633f5a","5ec69f91be","6b90b371d9","6fe6aebf3f","70773198da","80358f256f","80d9423c7a","89fa0557f9","ae49d1c0e2","c103982a83","c2307b7aa9","cc7e93cf42","d258fcab9b","d9ce96ac9d","dd62ff5294","e3db24...
grbench_main_art_000001
ART
You will be given a graph as a list of undirected edges. All nodes are at least degree 1. You will also get a description of an operation to perform on the graph. Your job is to execute the operation on the graph and return the set of nodes that the operation results in. If asked to find articulation points, only retur...
["07ef40418c","0c009307e5","112b1debe4","2347acc2d2","2a4980a468","4e59ec5630","5949e4d819","5ad719d0b9","5bb27e4710","697586380f","84553c2960","8670e0ccc3","88b92d6800","9b4ef9f9c1","aa59098e87","b007c99bef","b91c34c096","cf94109287","d3353aa8f7","ebe3b6e516","f7563e9b74"]
grbench_main_art_000002
ART
You will be given a graph as a list of undirected edges. All nodes are at least degree 1. You will also get a description of an operation to perform on the graph. Your job is to execute the operation on the graph and return the set of nodes that the operation results in. If asked to find articulation points, only retur...
["005dd1cf96","090e4b287f","0aa463c3b5","14ab17387f","17bdde0803","213c70e840","252615c73d","2ec3752380","3a16f2b3e7","43273f0a45","4a8cfdf4fa","571acb2982","617f2cf934","8135b7642b","863d007a71","943080d02c","a2a05d8cb7","b29f79e6f2","bc0e04ef7a","bf50020021","c7d059baf8","d0c35586a3"]
grbench_main_art_000003
ART
You will be given a graph as a list of undirected edges. All nodes are at least degree 1. You will also get a description of an operation to perform on the graph. Your job is to execute the operation on the graph and return the set of nodes that the operation results in. If asked to find articulation points, only retur...
["27d3b43871","300deb0147","35423c44a9","3bd886345d","5ed700502b","652beaf062","6735d8d416","6c9a8f35ec","6f93bdebe4","744bf36f1c","7fd40e03f0","88b8a9b549","a0c8a47f9d","abad0e4c2c","ae4649e2c9","b166da2508","cab1b3a3e7","ece0503343","ed4d2f3051","ef9077a4cb"]
grbench_main_art_000004
ART
You will be given a graph as a list of undirected edges. All nodes are at least degree 1. You will also get a description of an operation to perform on the graph. Your job is to execute the operation on the graph and return the set of nodes that the operation results in. If asked to find articulation points, only retur...
["0d3a921dc5","0f38b30fdf","1f650c1544","37a74e780d","37c29a7ac7","3ace20e7a4","4c87c77079","576dc85133","5c5c74a578","69af223e74","937d3813aa","9436d015f5","9a118ac4a9","9cd82978e4","a4de6d0eb3","a5c587c497","c815121141","dce510e856","e6829ead75","e7f387f09b","f552b0c5d3","f6d54320d8"]
grbench_main_art_000005
ART
You will be given a graph as a list of undirected edges. All nodes are at least degree 1. You will also get a description of an operation to perform on the graph. Your job is to execute the operation on the graph and return the set of nodes that the operation results in. If asked to find articulation points, only retur...
["16c86d2c7e","2afa1901b7","3670f4c099","3cb4373a37","40aedfb918","4e644f42c0","54970b5a5a","552752348e","5647c9498e","5cebcaaa34","76c206aa61","7996edcc94","7a80d0a359","82064582ca","9085413aa4","96547d1301","9bf7436df6","b2c65daf64","bac7eb1593","d12b27f5db","e549e7e16d","f921739e1b","fd37a94e35"]
grbench_main_art_000006
ART
You will be given a graph as a list of undirected edges. All nodes are at least degree 1. You will also get a description of an operation to perform on the graph. Your job is to execute the operation on the graph and return the set of nodes that the operation results in. If asked to find articulation points, only retur...
["01a7c548a9","06802431c6","4c74c4c014","582fc95f8a","7066e82bb2","8f0678cf5f","9b9b24c44f","9bbd0ec8cf","9cc0b486a5","bb456151d6","c286e7fd18","ca70f2cbef","dba47fdcb8","e382d37d46","e94359610a","eef051bf6a","f56b27024e","fcb7472c18","fd67cdb679"]
grbench_main_art_000007
ART
You will be given a graph as a list of undirected edges. All nodes are at least degree 1. You will also get a description of an operation to perform on the graph. Your job is to execute the operation on the graph and return the set of nodes that the operation results in. If asked to find articulation points, only retur...
["042ac0936e","0e38fb62e7","128e2a2766","1a23e67d73","1ac8d67d3b","1e94065a5c","3587cbe150","54b9ce8552","604b15de64","64271be9db","6f980f60ce","7f9ff61c72","84b3b0c357","8bcd135969","8eab373c18","9335e14713","a32516e5ba","a8da4687f2","ad25a34ce2","ca585f3213","e78a4ce00d","ed96b03f2a"]
grbench_main_art_000008
ART
"You will be given a graph as a list of undirected edges. All nodes are at least degree 1. You will (...TRUNCATED)
"[\"11e0784447\",\"14632ebf5e\",\"1c854f48ed\",\"3ddd46cca7\",\"4f3f6b134e\",\"54dbc9f21f\",\"59380e(...TRUNCATED)
grbench_main_art_000009
ART
"You will be given a graph as a list of undirected edges. All nodes are at least degree 1. You will (...TRUNCATED)
"[\"0d6254141b\",\"0f320f8dfa\",\"23425eff81\",\"2bb566e366\",\"2c981acc67\",\"3633c37d97\",\"4749c8(...TRUNCATED)
End of preview. Expand in Data Studio

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.

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. The evaluation code is released separately under the MIT License.

Citation

@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}
}
Downloads last month
19