English

GRISP: Guided Recurrent IRI Selection over SPARQL Skeletons

Computation and Language 2026-04-24 v1

Abstract

We present GRISP (Guided Recurrent IRI Selection over SPARQL Skeletons), a novel SPARQL-based question-answering method over knowledge graphs based on fine-tuning a small language model (SLM). Given a natural-language question, the method first uses the SLM to generate a natural-language SPARQL query skeleton, and then to re-rank and select knowledge graph items to iteratively replace the natural-language placeholders using knowledge graph constraints. The SLM is jointly trained on skeleton generation and list-wise re-ranking data generated from standard question-query pairs. We evaluate the method on common Wikidata and Freebase benchmarks, and achieve better results than other state-of-the-art methods in a comparable setting.

Keywords

Cite

@article{arxiv.2604.21133,
  title  = {GRISP: Guided Recurrent IRI Selection over SPARQL Skeletons},
  author = {Sebastian Walter and Hannah Bast},
  journal= {arXiv preprint arXiv:2604.21133},
  year   = {2026}
}
R2 v1 2026-07-01T12:31:36.001Z