GraphInstruct

NeurIPS 2026 · Evaluations and Datasets Track

GraphInstruct

A progressive benchmark for diagnosing capability gaps in LLM graph generation

Zihe Wei1, Sheng Xiang1, Ying Zhang2, Changjun Jiang1

1School of Computer Science & Technology, Tongji University
2School of Computer Science & Information Technology and School of Statistics & Mathematics, Zhejiang Gongshang University

GraphInstruct stratifies instruction-following graph generation into six constraint-type levels, from format generation (L0) to multi-step graph editing (L5), and scores every output on five deterministic dimensions. No LLM judge is used anywhere in the evaluation. The release ships 800 instructions, 1,582 reference graphs, the evaluator, the scripts behind every table and figure of the paper, and the per-instance scores of every reported run.

800
instructions in six levels
1,582
reference graphs, two per feasible instruction
45
(model, strategy) configurations evaluated
5
deterministic metrics, no LLM judge
Benchmark

One ladder from format compliance to graph editing

A single aggregate score hides where a model breaks. GraphInstruct separates the skills that graph generation actually asks for, one constraint type per level, so that the score profile of a model shows which step of the ladder it fails.

GraphInstruct pipeline: a progressive instruction layer of six levels feeds LLM graph generation, a parser and constraint validators, five-dimensional metrics, a Pareto cost analysis and capability evaluation.
The GraphInstruct framework. Instructions are drawn from the progressive layer, generated by the model under one of four prompting strategies, parsed and checked against the constraint validators, and then scored on five deterministic dimensions. VGIG and CAAP reuse the benchmark signals as feedback. PDF
Three panels: instructions per level (100, 200, 200, 150, 100, 50), reference solutions per level (200, 400, 382, 300, 200, 100), and feasibility with nine infeasible L2 instructions.
Benchmark composition. The nine infeasible L2 instructions are infeasible by design: they test whether a model reports an unsatisfiable request instead of returning a graph anyway. PDF
Levels

Six levels, weighted toward the harder constraints

The quality score is a weighted mean over levels, and the weights rise with the level, so a model cannot carry a high total on format compliance alone.

LevelConstraint typeInstructionsWeight
L0Format generation1000.05
L1Single explicit constraint2000.10
L2Multi-constraint composition2000.15
L3Numerical attribute control1500.20
L4Domain semantics1000.25
L5Multi-step graph editing500.25

L3 draws on a pool of 3,115 synthetic graphs; L4 on 1,048 graphs, of which 620 come from five public datasets and 428 are synthetic.

Evaluation

Five deterministic dimensions

Every metric is computed by code in the released evaluator, so a score can be recomputed from a stored response file. D1 to D4 are combined into the reported quality score; D5 is reported on its own.

D1

Structural quality

Whether the emitted graph meets the structural constraints of its level, as checked by the constraint validators.

D2

Surface similarity

How closely the output agrees with the reference solution at the surface level.

D3

Embedding quality

Agreement with the reference in a learned graph embedding space, for the levels where it is defined.

D4

Instruction match

Whether the output follows the instruction as stated. VGIG uses this dimension as its feedback signal.

D5

Token efficiency

Tokens spent per valid graph. It sits outside the weighted quality score and enters the cost view instead, so a configuration is never rewarded for being cheap at the price of being wrong.

Results

Quality by strategy, by level, and against cost

Panel (a) places the four prompting strategies next to the three methods built on the benchmark signals. Panel (b) breaks the same comparison down by level, which is where the differences between configurations become visible; a single aggregate hides them.

Panel (a): quality of three models under zero-shot, few-CoT, Retry, SC, CAAP, VGIG, Combined and Oracle. Panel (b): quality per instruction level for zero-shot versus Combined.
(a) Quality under four prompting strategies and three methods built on the benchmark signals. (b) Quality per level, zero-shot against Combined, showing where the gap opens. PDF

Top five of the 45 configurations by quality

RankModelStrategyQuality
1Sonnet-4.6few-CoT0.904
2Sonnet-4.6few-shot0.886
3Qwen3.5-397Bfew-CoT0.880
4Sonnet-4.6zero-CoT0.879
5Qwen3.5-122Bfew-CoT0.877
Scatter plot of quality against mean tokens per valid graph across 45 configurations, with the Sonnet-4.6 Pareto front marked.
Quality against mean tokens per valid graph. The marked front traces the Sonnet-4.6 configurations from zero-shot through few-CoT; several non-front configurations spend far more tokens for lower quality. PDF
Getting started

Score a model in a few commands

Everything below runs offline from the released files and the stored responses on Zenodo. No model API is called during scoring.

# install the evaluator
pip install -e .

# unit tests (more than 900)
python -m unittest discover -s tests

# a five-minute tour
jupyter notebook examples/01_quickstart.ipynb

To score your own run, generate the responses and then evaluate the checkpoint:

python scripts/eval_checkpoint.py results/<model>-<strategy>.jsonl \
    --strategy <strategy> --quality-only \
    --output results/<model>-<strategy>.quality.json

Full options are in docs/REPRODUCE.md; examples/02_eval_your_model.ipynb walks through the same path against an OpenAI-compatible endpoint.

Versions

Three data versions, all kept

A post-review audit corrected 37 of the 50 L5 items. The version as reviewed stays available, every change is listed in the errata, and v1.1 adds 100 further L5 instructions, a 40-item stress subset and 150 paraphrased L1 to L3 instructions.

  • v1.0 as reviewedGit tag v1.0-as-reviewed and archive/v1.0-as-reviewed/, with a checksum manifest
  • v1.0 with correctionsdata/instructions/, with every change listed in data/instructions/ERRATA.md
  • v1.1The corrected v1.0 plus the 100 added L5 instructions; DOI 10.5281/zenodo.23330977
  • Model responses383 checkpoint files, 495,460 responses, archived on Zenodo as two raw-responses archives
Resources

Where everything lives

Citation

Cite the paper and the dataset

@inproceedings{wei2026graphinstruct,
  title     = {{GraphInstruct}: A Progressive Benchmark for Diagnosing
               Capability Gaps in {LLM} Graph Generation},
  author    = {Wei, Zihe and Xiang, Sheng and Zhang, Ying and Jiang, Changjun},
  booktitle = {Advances in Neural Information Processing Systems
               (Evaluations and Datasets Track)},
  year      = {2026}
}

If you use the L4 reference pool, please also cite the upstream datasets listed in docs/DATA_LICENSE.md.

License

Terms

  • CodeMIT
  • Instructions, reference solutions, synthetic pools, documentationCC BY 4.0
  • L4 graphs from public datasetsUpstream terms; see LICENSE-DATA and THIRD_PARTY_NOTICES
  • Model outputs and scoresCC BY 4.0 for the authors' rights; model providers may impose further terms