Skip to content

Text to SPARQL via LLMs fine-tuned with rewards and reasoning

Oct 2026 · 6 references
Topic Modeling

Abstract

Large language models have made notable progress in translating natural-language questions into SPARQL queries for knowledge graphs. Recent studies from the first Text2SPARQL challenge have explored zero-shot and few-shot scenarios, as well as in-context learning techniques. With state-of-the-art (SoTA) results, the challenge exposes significant gaps, including limited use of open-source models and a scarcity of open-source fine-tuning, especially for reasoning. In this sense, we propose a new method for the Text2SPARQL task that combines pre-fine-tuning with explicit reasoning and a subsequent reward-based fine-tuning stage. First, we perform a fine-tuning to generate both a reasoning chain and the corresponding SPARQL query. Next, we apply reinforcement learning guided by reward functions. Our experiments show that the proposed model outperforms all baselines and six SoTA methods.

View source

Similar papers

#machine learning Review Open access Oct 2014

Software development in startup companies: A systematic mapping study

The results indicate that software engineering work practices are chosen opportunistically, adapted and configured to provide value under the constrains imposed by the startup context.

Nicolò Paternoster, Carmine Giardino, M. Unterkalmsteiner et al. · 394 citations · ⚡54
#machine learning Review Open access Jun 2014

Why Early-Stage Software Startups Fail: A Behavioral Framework

This state-of-practice investigation was performed using a literature review followed by a multiple-case study approach and presents how inconsistency between managerial strategies and execution can lead to failure by means of a behavioral framework.

Carmine Giardino, Xiaofeng Wang, P. Abrahamsson · 175 citations · ⚡19
#machine learning Review Open access Oct 2016

“Failures” to be celebrated: an analysis of major pivots of software startups

This study conducts a case survey study based on the secondary data of the major pivots happened in 49 software startups, and demonstrates that customer need pivot is the most common among all pivot types.

Sohaib Shahid Bajwa, Xiaofeng Wang, Anh Nguyen-Duc et al. · 127 citations · ⚡15
#machine learning Review Open access May 2016

Key Challenges in Software Startups Across Life Cycle Stages

It is found that what perceived as biggest challenges by software startups do vary across different life cycle stages, even though its significance decreases when the learning focuses of the startups move from problem to solution and their products mature.

Xiaofeng Wang, Henry Edison, Sohaib Shahid Bajwa et al. · 62 citations · ⚡6

Related blog posts

MIT News · Artificial Intelligence Oct 23, 2026

Q&A: How AI came to model the “messy” human mind

Assistant Professor Benjamin Lindquist studies how engineers deliberately injected randomness into early AI, giving rise to deep-learning models that sometimes hallucinate.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.