1
Return

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

delete2026-01-01
delete0
PRE
AI
M
Murtagh-White, Matt *
W
Wall, P. J.
O
O'Sullivan, Declan
DOI:10.1007/978-3-031-99554-5_18delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
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.
Keywords:
SPARQL
Large Language Models
Quantization
Knowledge Graphs
Resource Efficiency

Journal

S
SEMANTIC WEB: ESWC 2025 SATELLITE EVENTS
IF:
0
Papers:
47
Citations:
0

Organization

T
Trinity College Dublin
Scholars:
2.3W
Papers: 1.9W
Citations: 2.7W
Cited Papers

Cited Papers

Citing Papers

Citing Papers