GRISP material
General
- Demo of GRISP on Wikidata (model trained on WDQL)
- Evaluation app for evaluating and comparing models on benchmarks
- Benchmark ground truths and model outputs (GRISP, its ablations, and the baselines)
- Code: the GRISP runs use the tag
grisp-runs-26-09-30. The runs from November (outputs with the date suffix 24-11-26 or 25-11-26) use the tag grisp-validation-runs-26-11-11, which is the same GRISP code plus a backport that sends each query's timeout to QLever, so QLever stops queries the client already gave up on. The client sees the same results
- Benchmarks with the suffix
-qlever have gold queries rewritten from Wikidata Query Service (Blazegraph) syntax to standard SPARQL so they run on QLever; the original query is kept in info.original_sparql and every change is listed in rewrite_report.json. SPINACH: predeclared prefixes, label service, and named subqueries. WDQL: predeclared prefixes. LC-QuAD 2.0: contains(YEAR(?x), ...) becomes contains(str(YEAR(?x)), ...), in both the test and the train set
Licenses
- Code: Apache-2.0 (GRASP repository)
- Model checkpoints: LoRA adapters on Qwen2.5-Instruct. The 0.5B, 1.5B, and 7B checkpoints are Apache-2.0, like their base models. The 3B checkpoints are under the Qwen Research License of their base model (non-commercial use only): Qwen is licensed under the Qwen RESEARCH LICENSE AGREEMENT, Copyright (c) Alibaba Cloud. All Rights Reserved. Built with Qwen
- Knowledge graphs: Wikidata is CC0, Freebase is CC BY 2.5
- Benchmarks keep their original licenses; our changes to them are listed above (
-qlever rewrites). QALD-7 and QALD-10: MIT. WWQ, LC-QuAD 2.0: CC BY 4.0. SimpleQuestions (Wikidata): CC BY 3.0. SPINACH: CC BY-SA 4.0 (the modified files stay CC BY-SA 4.0). QAWiki: CC0. WDQL: Apache-2.0. WebQSP and CWQ: no license stated by their authors; we redistribute them for research with attribution, as is common practice
- Training data, outputs, and evaluations derived from a benchmark follow that benchmark's license
Baseline outputs
- The outputs of each benchmark are in its
outputs folder; .jsonl files hold the predictions and .evaluation.json files the scores per question
- ChatKBQA:
chatkbqa.qwen-2.5-7b is our rerun with Qwen2.5 (7B) without its label fallback. The runs with the label fallback are chatkbqa.qwen-2.5-7b.label-fallback.type-map on CWQ, WQSP, QALD-7, and QALD-10, and chatkbqa.qwen-2.5-7b.label-fallback on WWQ and WWQdev; questions that take more than 120 seconds to resolve with the fallback keep the query of the run without it. chatkbqa.label-fallback on CWQ and WQSP are the predictions released by the ChatKBQA authors (LLaMA2), resolved again with the label fallback against our Freebase endpoint
- WikiSP:
wikisp.qwen-2.5-7b-instruct is our rerun with Qwen2.5 (7B), wikisp.llama-2-7b our rerun with LLaMA2 (7B)
- GraphWalker:
graphwalker-7b.vs-grisp.gold-from-sparql.json on CWQ and WQSP compares GraphWalker-7B and GRISP per question, with answers as labels and the labels of our gold query results as ground truth. graphwalker-7b.gpt-4o-mini-filter.sample-200.vs-grisp.gold-from-sparql.json is the same for 200 random questions that we ran again with GPT-4o-mini as relation filter; its gw_* fields are from this rerun and its gw_*_august fields from the full run
- GRASP:
grasp.gpt-4.1 and grasp.qwen-2.5-72b
Knowledge graph indices
- Wikidata, used by all Wikidata checkpoints below
- Freebase, used by all Freebase checkpoints below
- These differ from the GRASP indices; extract them into their own
GRASP_INDEX_DIR. Their info.json points to the public QLever endpoints, while our experiments used our own QLever instance with a Wikidata dump from February 2026 and a Virtuoso instance for Freebase
Training data
- Wikidata and Freebase: GRISP training data of all checkpoints below, one folder per benchmark.
train.jsonl / val.jsonl are the converted samples (output of grisp.data, val.jsonl only where the benchmark has its own validation set), train.materialized.jsonl / val.materialized.jsonl are the materialized samples the models were trained and validated on (output of grisp.materialize; without val.jsonl, 10% of the training samples were split off for validation)
Model checkpoints (Freebase)
Model checkpoints (Wikidata)
- Qwen2.5 (7B), trained on WWQ, used for WWQ and WWQdev
- Qwen2.5 (7B), trained on QALD-7
- Qwen2.5 (7B), trained on QALD-10
- Qwen2.5 (7B), trained on LC-QuAD 2.0 (gold queries rewritten for QLever, see below)
- Qwen2.5 (7B), trained on SimpleQuestions
- Qwen2.5 (7B), trained on WDQL, used for SPINACH, QAWiki, WDQL, and the demo
Model checkpoints for the analyses (Wikidata, trained on WWQ)
Model checkpoints for the analyses (Wikidata, trained on QALD-10)