ckg-benchmark
收藏资源简介:
CKG Benchmark 是一个专注于知识图谱和检索增强生成(RAG)的基准数据集,旨在评估和比较不同知识检索架构的性能。数据集包含47个教育领域和5个企业领域的结构化有向无环图(DAG)、7,928个基准查询(T1-T5类型)以及各系统的JSONL结果和摘要CSV。数据集的主要发现表明,预结构化知识图谱在F1得分上比RAG高出4倍,同时令牌成本降低11倍。此外,数据集引入了新颖的评估指标,如检索密度分数(RDS)和跳深F1,用于衡量每个令牌的智能度和多跳推理质量。数据集适用于问答、文本检索和知识表示等任务,并提供了详细的领域分类和查询类型说明。数据集采用CC BY 4.0许可,部分学习图谱采用MIT许可。
CKG Benchmark is a benchmark dataset focused on knowledge graphs and Retrieval-Augmented Generation (RAG), designed to evaluate and compare the performance of different knowledge retrieval architectures. The dataset includes structured directed acyclic graphs (DAGs) from 47 educational domains and 5 enterprise domains, 7,928 benchmark queries (T1-T5 types), as well as JSONL results and summary CSVs from various systems. Key findings from the dataset show that pre-structured knowledge graphs outperform RAG by 4 times in F1 score while reducing token costs by 11 times. Additionally, the dataset introduces novel evaluation metrics such as Retrieval Density Score (RDS) and Hop-Depth F1 to measure intelligence per token and multi-hop reasoning quality. The dataset is suitable for tasks like question answering, text retrieval, and knowledge representation, and provides detailed domain classifications and query type descriptions. The dataset is licensed under CC BY 4.0, with some learning graphs under MIT license.
CKG Benchmark 数据集详情
数据集概述
CKG Benchmark 是一个用于评估知识检索架构的基准数据集,包含 47 个基准测试领域 和 5 个企业领域,总计超过 10,000 条数据(10K < n < 100K),覆盖教育、商业、医疗等多个领域。该数据集的核心发现是:预结构化知识图谱(CKG)在 F1 分数上比 RAG 高出 4 倍,同时 token 消耗降低 11 倍。
核心性能对比
| 系统 | Macro F1 | 每查询 Token 数 | RDS(检索密度分数) | 运行成本 |
|---|---|---|---|---|
| CKG | 0.4709 | 269 | 0.00175 | $7.81 |
| RAG | 0.1231 | 2,982 | 0.0000413 | $76.23 |
| GraphRAG | 0.1200 | 3,450 | 0.0000452 | $44.43 |
数据集内容结构
domains/{domain}/learning-graph.csv — 结构化有向无环图(包含概念ID、概念标签、依赖关系、分类ID) queries/queries_{domain}.jsonl — 7,928 条基准查询(T1–T5 类型) results/ — 各系统 JSONL 结果 + 汇总 CSV 文件
领域库(共 52 个)
基准测试教育领域(47 个)
| 领域 | 类别 |
|---|---|
| algebra-1 | 数学 |
| asl-book | 语言 |
| automating-instructional-design | 教育技术 |
| bioinformatics | 生命科学 |
| biology | 生命科学 |
| blockchain | 计算机科学 |
| calculus | 数学 |
| chemistry | 自然科学 |
| circuits | 工程学 |
| claude-skills | AI / 大语言模型 |
| computer-science | 计算机科学 |
| conversational-ai | AI / 大语言模型 |
| data-science-course | 数据科学 |
| dementia | 医疗保健 |
| digital-citizenship | 社会 / 公民教育 |
| digital-electronics | 工程学 |
| ecology | 自然科学 |
| economics-course | 社会科学 |
| ethics-course | 哲学 |
| fft-benchmarking | 信号处理 |
| functions | 数学 |
| genetics | 生命科学 |
| geometry-course | 数学 |
| glp1-obesity | 医疗保健 / 制药 |
| infographics | 设计 / 传播 |
| intro-to-graph | 计算机科学 |
| intro-to-physics-course | 自然科学 |
| it-management-graph | IT 管理 |
| learning-linux | 计算机科学 |
| linear-algebra | 数学 |
| machine-learning-textbook | AI / 机器学习 |
| microsims | 教育技术 |
| modeling-healthcare-data | 医疗分析 |
| moss | 生物学 / 植物学 |
| organizational-analytics | 商业分析 |
| personal-finance | 金融 |
| pre-calc | 数学 |
| prompt-class | AI / 大语言模型 |
| quantum-computing | 计算机科学 |
| reading-for-kindergarten | 教育 |
| signal-processing | 工程学 |
| statistics-course | 数据科学 |
| systems-thinking | 系统科学 |
| theory-of-knowledge | 哲学 |
| tracking-ai-course | AI / 大语言模型 |
| unicorns | 商业 / 金融 |
| us-geography | 地理 |
企业领域(5 个,社区贡献,未基准测试)
| 领域 | 类别 | 概念数 |
|---|---|---|
| payer-formulary | 医疗支付方分析 | 75 |
| drug-interactions | 临床药理学 | 70 |
| icd10-metabolic | 医疗编码 | 70 |
| cpt-em-coding | 医疗计费 | 80 |
| hipaa-compliance | 医疗合规 | 75 |
查询类型(共 5 类,7,928 条查询)
| 类型 | 描述 | 示例 |
|---|---|---|
| T1 | 实体查找 | "什么是复合函数?" |
| T2 | 直接依赖关系 | "隐式微分的前提条件是什么?" |
| T3 | 多跳路径 | "从函数到泰勒级数的前提链是什么?" |
| T4 | 类别聚合 | "列出所有 FOUND 概念" |
| T5 | 跨概念关系 | "定义域和值域如何与反函数相关?" |
双轨设计
- Track 1 — McCreary 智能教科书语料库:44 个开源教育领域,人工编写的学习图谱 CSV,涵盖 STEM、专业和基础领域。
- Track 2 — 流水线生成的商业领域:GLP-1/肥胖症药理学通过 ClinicalTrials.gov API 在一次会话中自动生成,无需专家策展。CKG F1 = 0.5298,超过人工策展平均水平。
关键发现:CKG 随跳数深度提升,RAG 趋于平缓
| 跳数深度 | CKG F1 | RAG F1 |
|---|---|---|
| 0 | 0.374 | 0.073 |
| 1 | 0.519 | 0.066 |
| 2 | 0.573 | 0.226 |
| 3 | 0.671 | 0.138 |
| 4 | 0.751 | 0.166 |
| 5 | 0.772 | 0.170 |
新增评估指标
- RDS(检索密度分数) = F1 / 消耗的 token 数 — 衡量每 token 的智能程度
- 跳数深度 F1 — 多跳推理质量与链长的关系
- CPCA(每次正确回答的成本) — 每次正确回答的成本
引用格式
bibtex @misc{yarmoluk2026ckg, title={Benchmarking Knowledge Retrieval Architectures Across Educational and Commercial Domains: RAG, GraphRAG, and Compact Knowledge Graphs}, author={Yarmoluk, Daniel and McCreary, Dan}, year={2026}, note={Pre-print in preparation. v0.6.2. Patent pending App #64/040,804.} }
相关链接
- 论文:https://graphifymd.com/paper.html
- 基准测试仓库:https://github.com/Yarmoluk/ckg-benchmark
- MCP 服务器:https://github.com/Yarmoluk/ckg-mcp —
pip install ckg-mcp - 在线演示:https://huggingface.co/spaces/danyarm/ckg-demo
- 商业部署:https://graphifymd.com
许可证
- 数据集:CC BY 4.0
- 源学习图谱:MIT(McCreary 智能教科书)
- 企业领域:CC BY 4.0




