GRISP: Guided Recurrent IRI Selection over SPARQL Skeletons

· Source: cs.CL updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Expert, extended

Summary

GRISP (Guided Recurrent IRI Selection over SPARQL Skeletons) is a new SPARQL-based question-answering method for knowledge graphs, utilizing a fine-tuned small language model (SLM). The method first generates a natural-language SPARQL query skeleton using the SLM, then iteratively re-ranks and selects knowledge graph items to replace natural-language placeholders, guided by knowledge graph constraints. The SLM is jointly trained on skeleton generation and list-wise re-ranking data derived from standard question-query pairs. Evaluated on Wikidata and Freebase benchmarks, GRISP achieves superior results compared to other state-of-the-art methods in comparable settings, while being significantly faster than agentic zero-shot approaches. The system incorporates beam search for skeleton generation, a search-and-select mechanism for IRI replacement, backtracking for error recovery, and knowledge graph guidance to constrain candidate IRIs.

Key takeaway

For AI Engineers developing knowledge graph question-answering systems, GRISP offers a compelling approach to balance performance and efficiency. You should consider adopting its generate-then-retrieve architecture with a fine-tuned SLM, especially if your project has sufficient training data and requires faster inference than agentic LLM methods. This method allows for deployment on single consumer GPUs, making it accessible for many applications.

Key insights

GRISP uses a fine-tuned SLM for efficient, accurate knowledge graph question answering via iterative SPARQL skeleton generation and IRI selection.

Principles

Method

GRISP generates SPARQL skeletons via beam search, then iteratively replaces placeholders with IRIs using SLM-based re-ranking, guided by knowledge graph constraints, and includes backtracking for error recovery.

In practice

Topics

Code references

Best for: AI Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, NLP Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.CL updates on arXiv.org.