arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.26971cs.IR
收藏

T2S-Metrics: 用于评估从自然语言生成的SPARQL查询的统一库

T2S-Metrics: Unified Library for Evaluating SPARQL Queries Generated From Natural Language

Univ. Côte d’Azur, CNRS, ICN(蔚蓝海岸大学、法国国家科学研究中心、信息学与控制研究所);Univ. Côte d'Azur, Inria, CNRS, I3S(蔚蓝海岸大学、法国国家信息与自动化研究所、法国国家科学研究中心、信号与系统研究所);Univ. Côte d'Azur, CNRS, Inria, I3S(蔚蓝海岸大学、法国国家科学研究中心、法国国家信息与自动化研究所、信号与系统研究所)

Yousouf Taghzouti, Tao Jiang, Camille Juigné, Benjamin Navet, Fabien Gandon, Franck Michel, Louis-Felix Nothias

AI总结:

本文提出t2s-metrics,一个开源且可扩展的统一评估库,提供超过20种评估指标,涵盖词汇、语法、语义、结构、执行和排名维度,旨在系统化评估基于SPARQL的问答系统。

摘要:

对知识图谱上的问答系统评估历来存在碎片化、不一致和可重复性差的问题。尽管在语义解析和SPARQL查询生成方面取得了显著进展,但评估方法仍多样、随意且难以比较。现有基准通常只关注少量指标,如查询精确匹配或答案级F1,忽略了语法有效性、语义忠实性、执行正确性、结果排序质量及计算效率。本文提出t2s-metrics,一个开源、可扩展且统一的评估库,专门用于SPARQL查询比较和基于执行的评估。t2s-metrics提供超过20种评估指标,涵盖词汇、语法、语义、结构、基于执行和基于排序的维度。这些指标包括基于查询的指标如词级精确率、召回率和F1;BLEU、ROUGE、METEOR和CodeBLEU变体;变量归一化指标(SP-BLEU、SP-F1);基于图和URI的精确匹配指标;以及基于答案集的指标如F1-QALD和Jaccard相似度;排名指标包括MRR、NDCG、P@k和Hit@k;以及LLM-as-a-Judge指标。受ir-metrics库的启发,t2s-metrics提供了一层模块化抽象层,将指标规范与实现分离,从而实现对基于SPARQL的问答系统的一致、透明和可重复评估。我们认为t2s-metrics是迈向知识图谱问答系统系统化、标准化评估的必要步骤,并有助于深入诊断系统行为,超越答案正确性。

英文摘要:

The evaluation of Question Answering (QA) systems over Knowledge Graphs has historically suffered from fragmentation, inconsistency, and limited reproducibility. While significant progress has been made in semantic parsing and SPARQL query generation, evaluation methodologies remain diverse, ad hoc, and often incomparable across studies. Existing benchmarks typically focus on a small subset of metrics, such as query exact match or answer-level F1, neglecting syntactic validity, semantic faithfulness, execution correctness, results ranking quality, and computational efficiency. In this paper, we present t2s-metrics, an open-source, extensible, and unified evaluation library designed specifically for SPARQL query comparison and execution-based assessment. t2s-metrics provides a broad and extensible set of over 20 evaluation metrics, collected from the literature and practical evaluation needs, spanning lexical, syntactic, semantic, structural, execution-based and ranking-based dimensions. These include query-based metrics such as token-level Precision, Recall, and F1; BLEU, ROUGE, METEOR, and CodeBLEU variants; variable-normalized metrics (SP-BLEU, SP-F1); graph-and URI-based exact match metrics; as well as answer set-based metrics such as F1-QALD and Jaccard similarity; ranking metrics including MRR, NDCG, P@k, and Hit@k; and LLM-as-a-Judge metrics. Taking inspiration from the ir-metrics library for Information Retrieval, t2s-metrics provides a modular abstraction layer that decouples metric specification from implementation, enabling consistent, transparent, and reproducible evaluation of SPARQLbased QA systems. We argue that t2s-metrics constitutes a necessary step toward systematic, standardized evaluation in question answering over knowledge graphs and facilitates deeper diagnostic insights into system behavior beyond answer correctness.

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

↑