Skip to main navigation Skip to search Skip to main content

How Low Can We Go? Quantization Effects on LLM SPARQL Generation

  • Matt Murtagh-White
  • , P. J. Wall
  • , Declan O’Sullivan

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

SPARQL is a powerful but complex language for querying knowledge graphs, motivating research into natural language-to-SPARQL generation using large language models (LLMs). While large, proprietary LLMs excel at this task, their resource requirements can limit practical deployment. This paper evaluates smaller, open-source LLMs (0.5B–9B parameters) with quantization methods (8-bit and 4-bit compression) to balance computational efficiency and query generation performance. Our findings demonstrate that 8-bit quantization can maintain or enhance performance in smaller models, whereas 4-bit quantization leads to notable degradation, especially for larger models. This highlights the potential of quantized, smaller LLMs for SPARQL generation in resource-constrained scenarios and provides insights for optimizing specialized NLP tasks.

Original languageEnglish
Title of host publicationThe Semantic Web
Subtitle of host publicationESWC 2025 Satellite Events, Proceedings
EditorsEdward Curry, John McCrae, Valentina Presutti, Mehwish Alam, Pieter Colpaert, Josiane Xavier Parreira, Diego Collarana, Marta Sabou, Andreas Harth, Pasquale Lisena
PublisherSpringer Science and Business Media Deutschland GmbH
Pages99-102
Number of pages4
ISBN (Print)9783031995538
DOIs
Publication statusPublished - 2026
EventSatellite events held at the 22nd European Semantic Web Conference, ESWC 2025 - Portoroz, Slovenia
Duration: 1 Jun 20255 Jun 2025

Publication series

NameLecture Notes in Computer Science
Volume15832 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

ConferenceSatellite events held at the 22nd European Semantic Web Conference, ESWC 2025
Country/TerritorySlovenia
CityPortoroz
Period1/06/255/06/25

UN SDGs

This output contributes to the following UN Sustainable Development Goals (SDGs)

  1. SDG 8 - Decent Work and Economic Growth
    SDG 8 Decent Work and Economic Growth
  2. SDG 12 - Responsible Consumption and Production
    SDG 12 Responsible Consumption and Production

Keywords

  • Knowledge Graphs
  • Large Language Models
  • Quantization
  • Resource Efficiency
  • SPARQL

Fingerprint

Dive into the research topics of 'How Low Can We Go? Quantization Effects on LLM SPARQL Generation'. Together they form a unique fingerprint.

Cite this