SPARQL Generation: an analysis on fine-tuning OpenLLaMA for Question Answering over a Life Science Knowledge Graph
Not on the map. Why?
Abstract (arXiv)
The recent success of Large Language Models (LLM) in a wide range of Natural Language Processing applications opens the path towards novel Question Answering Systems over Knowledge Graphs leveraging LLMs. However, one of the main obstacles preventing their implementation is the scarcity of training data for the task of translating questions into corresponding SPARQL queries, particularly in the case of domain-specific KGs. To overcome this challenge, in this study, we evaluate several strategies for fine-tuning the OpenLlama LLM for question answering over life science knowledge graphs. In particular, we propose an end-to-end data augmentation approach for extending a set of existing queries over a given knowledge graph towards a larger dataset of semantically enriched question-to-SPARQL query pairs, enabling fine-tuning even for datasets where these pairs are scarce. In this context, we also investigate the role of semantic "clues" in the queries, such as meaningful variable names and inline comments. Finally, we evaluate our approach over the real-world Bgee gene expression knowledge graph and we show that semantic clues can improve model performance by up to 33% compared to a baseline with random variable names and no comments included.
Key facts. Cited by 19 papers in the map (data through 7 Oct 2026). Builds on 15 of its 29 references that are in the map. First posted on arXiv 7 Feb 2024.
Builds on
15 of 29 references.
References · 15
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
- 2021The FLORES-101 Evaluation Benchmark for Low-Resource and Multilingual Machine Translationcited by 556
- 2020KQA Pro: A Dataset with Explicit Compositional Programs for Complex Question Answering over Knowledge Basecited by 76
- 2022Language Models Can Teach Themselves to Program Bettercited by 75
- 2023On the Potential of Artificial Intelligence Chatbots for Data Exploration of Federated Bioinformatics Knowledge Graphscited by 9
3 more
- 2021Bio-SODA: Enabling Natural Language Question Answering over Knowledge Graphs without Training Datacited by 6
- 2023Knowledge Graph Question Answering for Materials Science (KGQA4MAT): Developing Natural Language Interface for Metal-Organic Frameworks Knowledge Graph (MOF-KG) Using LLMcited by 5
- 2023Lessons learned to boost a bioinformatics knowledge base reusability, the Bgee experiencecited by 1
Built on by
Citing papers per year: 2024: 7; 2025: 8; 2026: 4.
19 papers.
Sort:
By area:
- 2024DALK: Dynamic Co-Augmentation of LLMs and KG to answer Alzheimer's Disease Questions with Scientific Literaturecited by 50
- 2024Assessing SPARQL capabilities of Large Language Modelscited by 14
- 2024Leveraging small language models for Text2SPARQL tasks to improve the resilience of AI assistancecited by 13
- 2024LinkQ: An LLM-Assisted Visual Interface for Knowledge Graph Question-Answeringcited by 6
- 2024Thinking with Knowledge Graphs: Enhancing LLM Reasoning Through Structured Datacited by 6
- 2025SPARQL Query Generation with LLMs: Measuring the Impact of Training Data Memorization and Knowledge Injectioncited by 5
- 2024Bioinformatics and Biomedical Informatics with ChatGPT: Year One Reviewcited by 4
- 2025OntologyRAG: Better and Faster Biomedical Code Mapping with Retrieval-Augmented Generation (RAG) Leveraging Ontology Knowledge Graphs and Large Language Modelscited by 2
- 2025Q-NL Verifier: Leveraging Synthetic Data for Robust Knowledge Graph Question Answeringcited by 2
- 2025KERL: Knowledge-Enhanced Personalized Recipe Recommendation using Large Language Modelscited by 2
- 2025Enhancing Manufacturing Knowledge Access with LLMs and Context-aware Promptingcited by 2
- 2025InteracSPARQL: An Interactive System for SPARQL Query Refinement Using Natural Language Explanationscited by 2
7 more
- 2024RAGONITE: Iterative Retrieval on Induced Databases and Verbalized RDF for Conversational QA over KGs with RAGcited by 1
- 2025The benefits of query-based KGQA systems for complex and temporal questions in LLM eracited by 1
- 2026GraphSeek: Next-Generation Graph Analytics with LLMscited by 1
- 2025The Role of Visualization in LLM-Assisted Knowledge Graph Systems: Effects on User Trust, Exploration, and Workflowscited by 0
- 2026MARS: Multi-hop Adaptive Retrieval and SPARQL Generation for KGQAcited by 0
- 2026KGVoyager: Knowledge Graph Agnostic Question Answering via Agentic Navigationcited by 0
- 2026Enabling Knowledge Graph Understanding at Scale with the EXplore Your Graphs ENgine (EXYGEN)cited by 0
- 2026Enabling Knowledge Graph Understanding at Scale with the EXplore Your Graphs ENgine (EXYGEN)10 Sep 2026
- 2026KGVoyager: Knowledge Graph Agnostic Question Answering via Agentic Navigation1 Sep 2026
- 2026MARS: Multi-hop Adaptive Retrieval and SPARQL Generation for KGQA16 Jul 2026
- 2026GraphSeek: Next-Generation Graph Analytics with LLMs11 Feb 2026
- 2025InteracSPARQL: An Interactive System for SPARQL Query Refinement Using Natural Language Explanations3 Nov 2025
- 2025Enhancing Manufacturing Knowledge Access with LLMs and Context-aware Prompting30 Jul 2025
- 2025SPARQL Query Generation with LLMs: Measuring the Impact of Training Data Memorization and Knowledge Injection18 Jul 2025
- 2025The benefits of query-based KGQA systems for complex and temporal questions in LLM era16 Jul 2025
- 2025The Role of Visualization in LLM-Assisted Knowledge Graph Systems: Effects on User Trust, Exploration, and Workflows20 May 2025
- 2025KERL: Knowledge-Enhanced Personalized Recipe Recommendation using Large Language Models20 May 2025
- 2025Q-NL Verifier: Leveraging Synthetic Data for Robust Knowledge Graph Question Answering3 Mar 2025
- 2025OntologyRAG: Better and Faster Biomedical Code Mapping with Retrieval-Augmented Generation (RAG) Leveraging Ontology Knowledge Graphs and Large Language Models26 Feb 2025
7 more
- 2024RAGONITE: Iterative Retrieval on Induced Databases and Verbalized RDF for Conversational QA over KGs with RAG23 Dec 2024
- 2024Thinking with Knowledge Graphs: Enhancing LLM Reasoning Through Structured Data14 Dec 2024
- 2024Assessing SPARQL capabilities of Large Language Models9 Sep 2024
- 2024LinkQ: An LLM-Assisted Visual Interface for Knowledge Graph Question-Answering7 Jun 2024
- 2024Leveraging small language models for Text2SPARQL tasks to improve the resilience of AI assistance27 May 2024
- 2024DALK: Dynamic Co-Augmentation of LLMs and KG to answer Alzheimer's Disease Questions with Scientific Literature8 May 2024
- 2024Bioinformatics and Biomedical Informatics with ChatGPT: Year One Review22 Mar 2024
- 2024DALK: Dynamic Co-Augmentation of LLMs and KG to answer Alzheimer's Disease Questions with Scientific Literaturecited by 50
- 2024Assessing SPARQL capabilities of Large Language Modelscited by 14
- 2024Leveraging small language models for Text2SPARQL tasks to improve the resilience of AI assistancecited by 13
- 2024LinkQ: An LLM-Assisted Visual Interface for Knowledge Graph Question-Answeringcited by 6
- 2025SPARQL Query Generation with LLMs: Measuring the Impact of Training Data Memorization and Knowledge Injectioncited by 5
- 2024Bioinformatics and Biomedical Informatics with ChatGPT: Year One Reviewcited by 4
- 2025KERL: Knowledge-Enhanced Personalized Recipe Recommendation using Large Language Modelscited by 2
- 2025Enhancing Manufacturing Knowledge Access with LLMs and Context-aware Promptingcited by 2
- 2025InteracSPARQL: An Interactive System for SPARQL Query Refinement Using Natural Language Explanationscited by 2
- 2024RAGONITE: Iterative Retrieval on Induced Databases and Verbalized RDF for Conversational QA over KGs with RAGcited by 1
- 2026GraphSeek: Next-Generation Graph Analytics with LLMscited by 1
- 2025The Role of Visualization in LLM-Assisted Knowledge Graph Systems: Effects on User Trust, Exploration, and Workflowscited by 0
12 most cited of 13 All 13 (JSON)
- 2026Enabling Knowledge Graph Understanding at Scale with the EXplore Your Graphs ENgine (EXYGEN)10 Sep 2026
- 2026GraphSeek: Next-Generation Graph Analytics with LLMs11 Feb 2026
- 2025InteracSPARQL: An Interactive System for SPARQL Query Refinement Using Natural Language Explanations3 Nov 2025
- 2025Enhancing Manufacturing Knowledge Access with LLMs and Context-aware Prompting30 Jul 2025
- 2025SPARQL Query Generation with LLMs: Measuring the Impact of Training Data Memorization and Knowledge Injection18 Jul 2025
- 2025The Role of Visualization in LLM-Assisted Knowledge Graph Systems: Effects on User Trust, Exploration, and Workflows20 May 2025
- 2025KERL: Knowledge-Enhanced Personalized Recipe Recommendation using Large Language Models20 May 2025
- 2024RAGONITE: Iterative Retrieval on Induced Databases and Verbalized RDF for Conversational QA over KGs with RAG23 Dec 2024
- 2024Assessing SPARQL capabilities of Large Language Models9 Sep 2024
- 2024LinkQ: An LLM-Assisted Visual Interface for Knowledge Graph Question-Answering7 Jun 2024
- 2024Leveraging small language models for Text2SPARQL tasks to improve the resilience of AI assistance27 May 2024
- 2024DALK: Dynamic Co-Augmentation of LLMs and KG to answer Alzheimer's Disease Questions with Scientific Literature8 May 2024
12 newest of 13 All 13 (JSON)