Researcher Agents Self-Improve Knowledge Graph Question Answering

Tommaso Soru, Abdulsobur Oyewale· August 11, 2026 View original

Key takeaways

  • Translating natural language to SPARQL queries is complex.
  • Researcher agents can self-improve by modifying their own prompts, rules, and code.
  • This self-improvement loop quickly converges and boosts query accuracy.
  • Predicate selection remains a key bottleneck in text-to-SPARQL systems.

Who benefits

Data ManagementAI EngineeringSemantic WebEnterprise Search

Summary

This paper introduces a researcher agent for text-to-SPARQL systems that goes beyond static tool-using agents by proposing and testing changes to its own prompts, rules, and tool-orchestration code after each inference round. This self-improvement loop, demonstrated on DBpedia, quickly converges and significantly enhances the accuracy of translating natural language questions into SPARQL queries.

Translating natural language questions into precise SPARQL queries for large knowledge graphs is a complex task, involving resolving ambiguities, mapping terms to ontologies, and generating valid, semantically accurate graph patterns. Traditional tool-using agents often have static configurations, limiting their adaptability. Researchers have developed a novel "researcher agent" for text-to-SPARQL systems that introduces a self-improvement loop. After each round of inference on a validation set, this agent autonomously proposes and tests modifications to its own prompts, rules, and the code that orchestrates its tools. This iterative self-improvement process was instantiated on DBpedia, where the agent evolved through nine versions. The study revealed that this self-improvement converges quickly, achieving a 0.22 overall accuracy on the DBpedia validation set. The primary bottleneck identified was predicate selection in basic graph patterns, rather than syntax. This approach demonstrates a significant step towards more adaptive and accurate knowledge graph question answering systems.

Why it matters

For data scientists, knowledge engineers, and developers working with knowledge graphs, this research offers a path to more robust and accurate natural language interfaces, reducing the manual effort in query generation and improving data accessibility.

How to implement this in your domain

  1. 1Explore implementing self-improving agent architectures for tasks involving complex query generation from natural language.
  2. 2Design an iterative feedback loop where an agent can propose and test modifications to its own prompts, rules, or code.
  3. 3Apply this approach to knowledge graph question answering systems, focusing on improving text-to-SPARQL translation.
  4. 4Utilize validation sets to drive the agent's self-improvement process, monitoring convergence and accuracy.
  5. 5Analyze performance bottlenecks, such as predicate selection, to guide further development of agent capabilities.

Original post by Tommaso Soru, Abdulsobur Oyewale

"arXiv:2608.07700v1 Announce Type: new Abstract: Translating a natural-language question into a SPARQL query that can be executed against a large knowledge graph requires resolving lexical ambiguity, grounding surface terms in the target ontology, and producing graph patterns that…"

View on X

Originally posted by Tommaso Soru, Abdulsobur Oyewale on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses