paper-with-me

홈 › Papers

Learning to Refine: An Agentic RL Approach for Iterative SPARQL Query Construction

2025-11-14 · Floris Vossebeld, Shenghui Wang arxiv

Generating complex, logically-sound SPARQL queries for multi-hop questions remains a critical bottleneck for Knowledge Graph Question Answering, as the brittle nature of one-shot generation by Large Language Models (LLMs) hinders reliable interaction with structured data. Current methods lack the adaptive policies needed to dynamically debug queries based on real-time execution feedback. This paper introduces a novel agentic framework where an LLM learns a resilient policy for the sequential process of iterative SPARQL construction. We show that a compact 3B-parameter model, trained exclusively via outcome-driven Reinforcement Learning (GRPO) without supervised fine-tuning, can learn effective policies for this task, discovering how to systematically recover from execution errors and refine its queries toward a correct answer. On a curated, executable single-answer subset of LC-QuAD 2.0, our agent achieves 49.7\% accuracy post-entity-linking, a significant 17.5 percentage point improvement over the strongest iterative zero-shot baseline. Further analysis reveals that while the agent's capability is driven by RL, its performance is enhanced by an explicit deliberative reasoning step that acts as a cognitive scaffold to improve policy precision. This work presents a generalizable blueprint for teaching agents to master formal, symbolic tools through interaction, bridging the gap between probabilistic LLMs and the structured world of Knowledge Graphs.

📄 PDF Abstract BibTeX arXiv:2511.11770

Code (0)

등록된 구현이 없습니다.

Tasks

Graph Question AnsweringReinforcement LearningKnowledge Graphs

Similar Papers 제목 키워드 기반

InteracSPARQL: An Interactive System for SPARQL Query Refinement Using Natural Language Explanations

2025-11-03 · Xiangru Jian, Zhengyuan Dong, M. Tamer Özsu arxiv

In recent years, querying semantic web data using SPARQL has remained challenging, especially for non-expert users, due to the language's complex syntax and the prerequisite of understanding intricate data structures. To…

Agentic SPARQL: Evaluating SPARQL-MCP-powered Intelligent Agents on the Federated KGQA Benchmark

2026-01-20 · Daniel Dobriy, Frederik Bauer, Amr Azzam, Debayan Banerjee 외 arxiv

Standard protocols such as the Model Context Protocol (MCP) that allow LLMs to connect to tools have recently boosted "agentic" AI applications, which, powered by LLMs' planning capabilities, promise to solve complex tas…

Graph Question Answering

Q${}^2$Forge: Minting Competency Questions and SPARQL Queries for Question-Answering Over Knowledge Graphs

2025-05-19 · Yousouf Taghzouti, Franck Michel, Tao Jiang, Louis-Félix Nothias 외

The SPARQL query language is the standard method to access knowledge graphs (KGs). However, formulating SPARQL queries is a significant challenge for non-expert users, and remains time-consuming for the experienced ones.…

Knowledge GraphsQuestion Answering

Revealing Secrets in SPARQL Session Level

2020-09-13 · Xinyue Zhang, Meng Wang, Muhammad Saleem, Axel-Cyrille Ngonga Ngomo 외

Based on Semantic Web technologies, knowledge graphs help users to discover information of interest by using live SPARQL services. Answer-seekers often examine intermediate results iteratively and modify SPARQL queries r…

Knowledge Graphs

From Graph Retrieval to Schema Realization: Counterfactual Validation for Text-to-SPARQL over Heterogeneous Knowledge Graphs

2025-08-03 · Chengxiao Dai, Yue Xiu, Dusit Niyato arxiv

Text-to-SPARQL maps natural-language questions to executable SPARQL queries over RDF knowledge graphs. While standard evaluations often fix the target graph in advance, practical knowledge graph question answering (KGQA)…

Graph Question AnsweringKnowledge Graphs