MARS: Multi-hop Adaptive Retrieval and SPARQL Generation for KGQA

Nikit Srivastava, Daniel Vollmers, René Speck, Nikolaos Karalis, Hamada M. Zahera +1 more
7/16/2026
cs.CL

Official code: dice-group/mars-kgqa (3 stars, Python, last commit 2026-07-11).

Abstract

Large language models (LLMs) have demonstrated strong reasoning performance, but their tendency to hallucinate limits their reliability in knowledge-intensive tasks requiring up-to-date and grounded information. Combining knowledge graphs (KGs) with LLMs facilitates the use of explicit symbolic knowledge that can be continuously updated without costly fine-tuning, while benefiting from rapidly advancing LLM reasoning.

Show full abstract

We propose MARS, a scalable knowledge graph question answering (KGQA) approach that requires no model fine-tuning. Rather than relying on open-ended agentic exploration, MARS performs a structured retrieval procedure that links question entities to the KG and iteratively retrieves relevant next-hop information. At each step, MARS decides whether to continue graph traversal or to generate the final SPARQL query, allowing the model to adapt the retrieval depth to the question while keeping the overall pipeline more predictable than fully agentic approaches. We evaluate MARS on three established KGQA benchmarks across several LLMs and settings, including multilingual evaluation, and provide insights through ablation studies and error analysis. Our approach achieves competitive performance relative to state-of-the-art methods while remaining efficient and scalable. The evaluation results, code and resources are publicly available: https://github.com/dice-group/mars-kgqa.

View on arXivView PDF

Code Implementations(1)

30Python, Jupyter NotebookJul 9, 20254 months ago

Similar Papers

Cite this paper

@article{srivastava2026mars,
  title  = {MARS: Multi-hop Adaptive Retrieval and SPARQL Generation for KGQA},
  author = {Nikit Srivastava and Daniel Vollmers and René Speck and Nikolaos Karalis and Hamada M. Zahera and Axel-Cyrille Ngonga Ngomo},
  year   = {2026},
  eprint = {2607.14561},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.14561v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.14561.svg)](https://codeofpaper.com/paper/2607.14561)

Discussion