arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.03057cs.CLcs.AI
收藏

通过语言模型查询结构化数据

Querying Structured Data Through Natural Language Using Language Models

National University of Science and Technology POLITEHNICA Bucharest(布加勒斯特理工大学);Institute of Communication and Computer Systems (ICCS)(通信与计算机系统研究所)

Hontan Valentin-Micu, Bunea Andrei-Alexandru, Tantaroudas Nikolaos Dimitrios, Popovici Dan-Matei

AI总结:

本文提出一种开源方法,使用户能通过自然语言查询结构化非文本数据集,通过训练LLM生成可执行查询,展示了在资源受限环境下小型领域模型的高效性。

摘要:

本文提出了一种开源方法,允许用户通过自然语言查询结构化非文本数据集。与Retrieval Augmented Generation (RAG) 不同,我们的方法训练了一个LLM生成可执行查询。为支持这一能力,我们引入了一个原理性的合成训练数据生成管道,产生多样化的问答对,涵盖用户意图和底层数据集的语义。我们使用QLoRA和4位量化对紧凑模型DeepSeek R1 Distill 8B进行微调,使其适合在商用硬件上部署。我们在描述西班牙Durangaldea地区基本服务可及性的数据集上评估了我们的方法。微调后的模型在单语、多语和未见位置场景中均表现出高精度,展示了稳健的泛化能力和可靠的查询生成能力。我们的结果表明,小型领域特定模型可以无需依赖大型专有LLM,实现高精度,使该方法适用于资源受限环境,并可扩展到更广泛的多数据集系统。

英文摘要:

This paper presents an open source methodology for allowing users to query structured non textual datasets through natural language Unlike Retrieval Augmented Generation RAG which struggles with numerical and highly structured information our approach trains an LLM to generate executable queries To support this capability we introduce a principled pipeline for synthetic training data generation producing diverse question answer pairs that capture both user intent and the semantics of the underlying dataset We fine tune a compact model DeepSeek R1 Distill 8B using QLoRA with 4 bit quantization making the system suitable for deployment on commodity hardware We evaluate our approach on a dataset describing accessibility to essential services across Durangaldea Spain The fine tuned model achieves high accuracy across monolingual multilingual and unseen location scenarios demonstrating both robust generalization and reliable query generation Our results highlight that small domain specific models can achieve high precision for this task without relying on large proprietary LLMs making this methodology suitable for resource constrained environments and adaptable to broader multi dataset systems We evaluate our approach on a dataset describing accessibility to essential services across Durangaldea Spain The fine tuned model achieves high accuracy across monolingual multilingual and unseen location scenarios demonstrating both robust generalization and reliable query generation Our results highlight that small domain specific models can achieve high precision for this task without relying on large proprietary LLMs making this methodology suitable for resource constrained environments and adaptable to broader multi dataset systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑