tempbench
收藏资源简介:
TempBench 是一个多跳时序知识图谱问答(Temporal KGQA)基准数据集,旨在使检索质量独立于答案准确性进行可测量评估。该数据集包含 8,710 个问题,基于源自 Wikidata 的时序知识图谱(tkgl-smallpedia,来自 TGB 2.0)。每个问题都附带一个黄金支持子图(S*)以及两个类型的负例:干扰项(S_dist,相同主语和关系但错误对象)和过时事实(S_stale,相同主语、关系、对象但错误时间)。数据集覆盖 4 种时序操作符(时间点、之前/之后、区间、序列)和 3 种跳数复杂度(1-hop、2-hop、3+-hop),构成 4×3 矩阵,其中 3+ 跳因数据稀疏而数量较少(710 个)。数据按复杂度分层划分为 70% 训练集、10% 验证集和 20% 测试集。评估指标包括 TRP(时序检索精确率,衡量检索到的三元组中属于 S* 且查询时间有效比例)和 CCR(完整链召回率,衡量是否检索到所有 S* 三元组且时间有效)。参考基线包括 BM25、BM25-RAG 和无需检索的系统。已知问题包括:区间问题在原始评估协议中会泄露答案(t_query 设为答案年份),需按修正协议处理;自然性评分不可靠;仅测试集经人工验证,训练集为自动生成未审核;问题模板仅 9 个,语言多样性低。数据集以 CC BY 4.0 许可发布,要求引用论文。
TempBench is a multi-hop temporal knowledge graph question answering (Temporal KGQA) benchmark dataset designed to enable measurable evaluation of retrieval quality independent of answer accuracy. The dataset contains 8,710 questions based on a temporal knowledge graph (tkgl-smallpedia from TGB 2.0) derived from Wikidata. Each question comes with a gold support subgraph (S*) and two types of negative examples: distractors (S_dist, same subject and relation but wrong object) and stale facts (S_stale, same subject, relation, object but wrong time). The dataset covers 4 temporal operators (point time, before/after, interval, sequence) and 3 hop complexities (1-hop, 2-hop, 3+-hop), forming a 4×3 matrix, with 3+-hop having fewer samples (710) due to data sparsity. The data is stratified by complexity and split into 70% training, 10% validation, and 20% test sets. Evaluation metrics include TRP (Temporal Retrieval Precision, measuring the proportion of retrieved triples that belong to S* and are valid for the query time) and CCR (Complete Chain Recall, measuring whether all S* triples are retrieved and time-valid). Baselines include BM25, BM25-RAG, and retrieval-free systems. Known issues include: interval questions leaking answers in the original evaluation protocol (t_query set to the answer year), requiring a corrected protocol; unreliable naturalness scores; only the test set is manually verified, while the training set is automatically generated and unverified; only 9 question templates, resulting in low linguistic diversity. The dataset is released under CC BY 4.0 license and requires citation of the paper.
TempBench 数据集概述
基本信息
- 名称: TempBench — Temporal KGQA benchmark with per-question gold subgraphs
- 许可证: CC BY 4.0
- 语言: 英语
- 规模: 8,710 个问答对(1K < n < 10K)
- 数据集地址: https://huggingface.co/datasets/Guen/tempbench
核心定位
TempBench 是一个基于时间知识图谱的多跳问答基准,其设计核心目标是使检索质量可独立于答案准确率进行度量。每个问题均附带黄金支持子图(gold supporting subgraph)及两种类型化的负样本,覆盖 4×3 的时间操作符 × 跳数复杂度矩阵。
数据构成
问题分布(按时间操作符与跳数)
| 操作符 | 1跳 | 2跳 | 3+跳 | 合计 |
|---|---|---|---|---|
| Point-in-time | 1,349 | 1,259 | 274 | 2,882 |
| Before/after | 1,135 | 1,065 | 131 | 2,331 |
| Interval | 403 | 435 | 26 | 864 |
| Sequence | 1,113 | 1,241 | 279 | 2,633 |
| 总计 | 4,000 | 4,000 | 710 | 8,710 |
数据划分
- 训练/开发/测试比例为 70/10/20,并按复杂度进行分层
- 仅测试集经过人工验证(500 问试点 + 120 项盲评);训练集(6,096 问)为自动生成标签,未经人工审核
每问题的三元组结构
每个问题包含:
S*:黄金支持子图S_dist:干扰项(相同主体和关系,错误客体)S_stale:过时事实(相同主体、关系和客体,错误时间)
其中 71.5% / 81.3% 的问题的负样本是功能性的(与 S* 真正不同)。区间×过时组合因结构原因缺失(8.1%),相关标志文件位于 benchmark/functional_negatives.jsonl。
文件结构
benchmark/benchmark_labelled.jsonl: 人类可读标签的基准数据benchmark/benchmark.jsonl: 原始 QID/PID 版本benchmark/functional_negatives.jsonl: 每问功能性负样本标志code/: 确定性构建流水线(索引器、6 阶段基准构建器、标签解析器)code/tempbench_eval.py: TRP 与 CCR 评分器(仅标准库)annotation/: 标注协议(英语主版/意大利语翻译)及验证样本来源baselines/: 参考基线评估输出v1.0.1-addendum.md: 已知问题与评估协议说明
评估指标
- TRP(时间检索精度):检索到的三元组中属于
S*且查询时间有效(t_start <= t_query <= t_end)的比例 - CCR(完整链覆盖率):是否检索到
S*的所有三元组且时间有效(1/0) - 两者均为与答案无关的度量
已知问题与使用注意事项
- 区间问题答案泄露:所有 864 个区间问题将
t_query设为答案年份,存在协议缺陷(非标注缺陷),需先阅读v1.0.1-addendum.md - 自然度评分不可靠:标注者间不一致,不应作为质量信号
- 问题表面形式有限:仅来自 9 个模板,语言多样性低,衡量的是时间检索而非释义鲁棒性
- 源知识图谱为时间点类型(
tkgl-smallpedia),valid_at退化为精确年份相等;间隔事实泛化性未测试
构建来源与引用
- 基于 TGB 2.0 中的
tkgl-smallpedia(源自 Wikidata) - 问题由 TimelineKGQA 生成器的扩展版本算法生成
- 出处:Guendalina Caldarini, TempBench: A Temporal Knowledge-Graph QA Benchmark with Per-Question Gold Subgraphs and Retrieval-Quality Metrics, CIKM 26, doi: 10.1145/3799682.3840181
- 数据集 DOI: 10.57967/hf/10071




