arXiv:2507.21257cs.AIcs.CL2025-07被引 2

测试大模型是否能系统性组合理解问题并生成查询语句

CompoST: A Benchmark for Analyzing the Ability of LLMs To Compositionally Interpret Questions in a QALD Setting

  • 构建三个基于DBpedia的可控数据集,检验模型对复杂问题的组合理解能力
  • 大模型在复杂问题上F1得分最低降至0.09,即使给出全部信息也难超0.57
  • 适合研究大模型推理机制、逻辑理解局限性的研究人员参考

语言理解是组合过程,复杂结构的意义由其组成部分推导而来。大语言模型具备强大的语言理解能力,已成功用于将问题映射为SPARQL查询。然而,其理解过程是否具有系统性仍不明确。为此,本文提出一个基准测试,评估大模型在问答式知识库(QALD)设置下,对问题进行组合性解释的能力。基于DBpedia中的图模式,利用Lemon词典进行表述,生成三个难度递增的数据集。数据集设计高度可控,以检验模型在已掌握原子成分的前提下,对结构复杂问题的解释能力。我们对不同规模模型使用提示工程、少量样本优化及微调等方法进行实验。结果显示,宏观F1分数从0.45下降至0.26,最低达0.09,当偏离优化样本时性能显著恶化。即使输入中包含全部必要信息,最简单数据集的F1分数仍不超过0.57。因此,结论是大模型难以系统、组合地理解问题并转化为SPARQL查询。

原文摘要 · Abstract (English)

Language interpretation is a compositional process, in which the meaning of more complex linguistic structures is inferred from the meaning of their parts. Large language models possess remarkable language interpretation capabilities and have been successfully applied to interpret questions by mapping them to SPARQL queries. An open question is how systematic this interpretation process is. Toward this question, in this paper, we propose a benchmark for investigating to what extent the abilities of LLMs to interpret questions are actually compositional. For this, we generate three datasets of varying difficulty based on graph patterns in DBpedia, relying on Lemon lexica for verbalization. Our datasets are created in a very controlled fashion in order to test the ability of LLMs to interpret structurally complex questions, given that they have seen the atomic building blocks. This allows us to evaluate to what degree LLMs are able to interpret complex questions for which they "understand" the atomic parts. We conduct experiments with models of different sizes using both various prompt and few-shot optimization techniques as well as fine-tuning. Our results show that performance in terms of macro $F_1$ degrades from $0.45$ over $0.26$ down to $0.09$ with increasing deviation from the samples optimized on. Even when all necessary information was provided to the model in the input, the $F_1$ scores do not exceed $0.57$ for the dataset of lowest complexity. We thus conclude that LLMs struggle to systematically and compositionally interpret questions and map them into SPARQL queries.

大模型推理组合性理解SPARQL生成

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。