danyarm commited on
Commit
bf10a38
·
verified ·
1 Parent(s): 900114c

Add KRB benchmark reference — numbers, usage, cite, links to graphifymd.com/benchmark

Browse files
Files changed (1) hide show
  1. README.md +50 -175
README.md CHANGED
@@ -1,191 +1,66 @@
1
- ---
2
- license: cc-by-4.0
3
- task_categories:
4
- - question-answering
5
- - text-retrieval
6
- tags:
7
- - knowledge-graph
8
- - rag
9
- - retrieval
10
- - benchmark
11
- - llm
12
- - knowledge-representation
13
- language:
14
- - en
15
- pretty_name: CKG Benchmark
16
- size_categories:
17
- - 10K<n<100K
18
- configs:
19
- - config_name: domains
20
- data_files:
21
- - split: train
22
- path: domains/**/*.csv
23
- - config_name: queries
24
- data_files:
25
- - split: train
26
- path: queries/*.jsonl
27
- drop_labels: true
28
- - config_name: results_macro_f1
29
- data_files:
30
- - split: train
31
- path: results/table1_macro_f1.csv
32
- - config_name: results_by_query_type
33
- data_files:
34
- - split: train
35
- path: results/table2_by_query_type.csv
36
- - config_name: results_tokenomics
37
- data_files:
38
- - split: train
39
- path: results/table3_tokenomics.csv
40
- - config_name: results_hop_degradation
41
- data_files:
42
- - split: train
43
- path: results/table4_hop_degradation.csv
44
  ---
45
 
46
- # CKG Benchmark
47
 
48
- [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.21222965.svg)](https://doi.org/10.5281/zenodo.21222965)
 
 
 
 
 
 
49
 
50
- **Pre-structured knowledge graphs outperform RAG by F1 at 11× lower token cost across 65 benchmarked domains.**
51
 
52
- | System | Macro F1 | Tokens/query | RDS | Run Cost |
53
- |--------|----------|-------------|-----|----------|
54
- | **CKG** | **0.4709** | **269** | **0.00175** | **$7.81** |
55
- | RAG | 0.1231 | 2,982 | 0.0000413 | $76.23 |
56
- | GraphRAG | 0.1200 | 3,450 | 0.0000452 | $44.43 |
57
 
58
- **42× more intelligence per token than RAG. Auditable by design — every answer traces to a declared edge.**
59
 
60
- ## Dataset Contents
 
61
 
62
- ```
63
- domains/{domain}/learning-graph.csv — structured DAG (ConceptID, ConceptLabel, Dependencies, TaxonomyID)
64
- queries/queries_{domain}.jsonl — 11,031 benchmark queries (T1–T5 types)
65
- results/ — per-system JSONL results + summary CSVs
66
- ```
67
 
68
- ## Domain Library (52 total)
69
-
70
- ### Benchmarked Educational Domains (47)
71
-
72
- | Domain | Category |
73
- |--------|----------|
74
- | algebra-1 | Mathematics |
75
- | asl-book | Language |
76
- | automating-instructional-design | Education Technology |
77
- | bioinformatics | Life Sciences |
78
- | biology | Life Sciences |
79
- | blockchain | Computer Science |
80
- | calculus | Mathematics |
81
- | chemistry | Natural Science |
82
- | circuits | Engineering |
83
- | claude-skills | AI / LLM |
84
- | computer-science | Computer Science |
85
- | conversational-ai | AI / LLM |
86
- | data-science-course | Data Science |
87
- | dementia | Healthcare |
88
- | digital-citizenship | Social / Civic |
89
- | digital-electronics | Engineering |
90
- | ecology | Natural Science |
91
- | economics-course | Social Science |
92
- | ethics-course | Philosophy |
93
- | fft-benchmarking | Signal Processing |
94
- | functions | Mathematics |
95
- | genetics | Life Sciences |
96
- | geometry-course | Mathematics |
97
- | glp1-obesity | Healthcare / Pharma |
98
- | infographics | Design / Communication |
99
- | intro-to-graph | Computer Science |
100
- | intro-to-physics-course | Natural Science |
101
- | it-management-graph | IT Management |
102
- | learning-linux | Computer Science |
103
- | linear-algebra | Mathematics |
104
- | machine-learning-textbook | AI / Machine Learning |
105
- | microsims | Education Technology |
106
- | modeling-healthcare-data | Healthcare Analytics |
107
- | moss | Biology / Botany |
108
- | organizational-analytics | Business Analytics |
109
- | personal-finance | Finance |
110
- | pre-calc | Mathematics |
111
- | prompt-class | AI / LLM |
112
- | quantum-computing | Computer Science |
113
- | reading-for-kindergarten | Education |
114
- | signal-processing | Engineering |
115
- | statistics-course | Data Science |
116
- | systems-thinking | Systems Science |
117
- | theory-of-knowledge | Philosophy |
118
- | tracking-ai-course | AI / LLM |
119
- | unicorns | Business / Finance |
120
- | us-geography | Geography |
121
-
122
- ### Enterprise Domains (5, unbenchmarked — community contribution)
123
-
124
- | Domain | Category | Concepts |
125
- |--------|----------|---------|
126
- | payer-formulary | Healthcare Payer Analytics | 75 |
127
- | drug-interactions | Clinical Pharmacology | 70 |
128
- | icd10-metabolic | Medical Coding | 70 |
129
- | cpt-em-coding | Medical Billing | 80 |
130
- | hipaa-compliance | Healthcare Compliance | 75 |
131
-
132
- ## Query Types
133
-
134
- | Type | Description | Example |
135
- |------|-------------|---------|
136
- | T1 | Entity lookup | "What is Composite Function?" |
137
- | T2 | Direct dependency | "What are the prerequisites for Implicit Differentiation?" |
138
- | T3 | Multi-hop path | "What is the prerequisite chain from Function to Taylor Series?" |
139
- | T4 | Category aggregate | "List all FOUND concepts" |
140
- | T5 | Cross-concept relationship | "How does Domain and Range relate to Inverse Function?" |
141
-
142
- ## Two-Track Design
143
-
144
- **Track 1 — McCreary Intelligent Textbook Corpus**
145
- 44 open-source educational domains. Hand-authored learning-graph CSVs. STEM, Professional, Foundational.
146
-
147
- **Track 2 — Pipeline-Generated Commercial Domain**
148
- GLP-1/Obesity pharmacology assembled from ClinicalTrials.gov API in one session. No expert curation. CKG F1 = 0.5298 — exceeds hand-curated average.
149
-
150
- ## Key Finding: CKG improves with hop depth, RAG plateaus
151
-
152
- | hop depth | CKG F1 | RAG F1 |
153
- |-----------|--------|--------|
154
- | 0 | 0.374 | 0.073 |
155
- | 1 | 0.519 | 0.066 |
156
- | 2 | 0.573 | 0.226 |
157
- | 3 | 0.671 | 0.138 |
158
- | 4 | 0.751 | 0.166 |
159
- | **5** | **0.772** | 0.170 |
160
-
161
- ## Novel Metrics
162
-
163
- - **RDS** (Retrieval Density Score) = F1 / tokens_consumed — intelligence per token
164
- - **Hop-Depth F1** — multi-hop reasoning quality vs. chain length
165
- - **CPCA** — cost per correct answer
166
-
167
- ## Citation
168
 
169
- ```bibtex
170
- @misc{yarmoluk2026ckg,
171
- title={Benchmarking Knowledge Retrieval Architectures Across Educational
172
- and Commercial Domains: RAG, GraphRAG, and Compact Knowledge Graphs},
173
- author={Yarmoluk, Daniel and McCreary, Dan},
174
- year={2026},
175
- note={Pre-print in preparation. v0.6.2. Patent pending.}
176
- }
177
  ```
178
 
 
 
179
  ## Links
180
 
181
- - Paper: [github.com/Yarmoluk/ckg-benchmark/blob/main/paper/main.pdf](https://github.com/Yarmoluk/ckg-benchmark/blob/main/paper/main.pdf)
182
- - Benchmark repo: [github.com/Yarmoluk/ckg-benchmark](https://github.com/Yarmoluk/ckg-benchmark)
183
- - MCP server: [github.com/Yarmoluk/ckg-mcp](https://github.com/Yarmoluk/ckg-mcp) — `pip install ckg-mcp`
184
- - Live demo: [huggingface.co/spaces/danyarm/ckg-demo](https://huggingface.co/spaces/danyarm/ckg-demo)
185
- - Commercial deployment: [graphifymd.com](https://graphifymd.com)
 
186
 
187
- ## License
 
 
 
 
 
 
 
 
 
 
 
 
 
188
 
189
- - Dataset: CC BY 4.0
190
- - Source learning graphs: MIT (McCreary Intelligent Textbooks)
191
- - Enterprise domains: CC BY 4.0
 
1
+ # KRB — Knowledge Retrieval Benchmark v0.6.2
2
+
3
+ > **CKG outperforms RAG by 4× F1 at 11× lower token cost.**
4
+ > Full reference: [graphifymd.com/benchmark](https://graphifymd.com/benchmark)
5
+
6
+ An open benchmark comparing **Compressed Knowledge Graphs (CKG)**, RAG, and GraphRAG across 45 domains and 7,928 queries. Measures accuracy, token cost, and dollar cost — all three.
7
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  ---
9
 
10
+ ## Results
11
 
12
+ | Metric | CKG | RAG | GraphRAG |
13
+ |---|---|---|---|
14
+ | Macro-F1 | **0.471** | 0.123 | 0.120 |
15
+ | Tokens / query | **269** | 2,982 | 3,450 |
16
+ | Cost / 1K queries | **$7.81** | $76.23 | $44.43 |
17
+ | 5-hop F1 | **0.772** | 0.170 | — |
18
+ | Hallucination | **0 by construction** | uncontrolled | uncontrolled |
19
 
20
+ CKG F1 improves with reasoning depth (0.374 @ hop 0 0.772 @ hop 5). RAG plateaus and declines.
21
 
22
+ ---
 
 
 
 
23
 
24
+ ## Use the dataset
25
 
26
+ ```python
27
+ from datasets import load_dataset
28
 
29
+ ds = load_dataset("danyarm/ckg-benchmark")
 
 
 
 
30
 
31
+ for row in ds["train"]:
32
+ query = row["query"]
33
+ hop_depth = row["hop_depth"] # 0–5
34
+ ground_truth = row["answer"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
+ # Run your system, compute F1 + token count + cost
37
+ # Submit results → huggingface.co/spaces/danyarm/krb-leaderboard
 
 
 
 
 
 
38
  ```
39
 
40
+ ---
41
+
42
  ## Links
43
 
44
+ - **Full benchmark reference** → [graphifymd.com/benchmark](https://graphifymd.com/benchmark)
45
+ - **Live leaderboard** [huggingface.co/spaces/danyarm/krb-leaderboard](https://huggingface.co/spaces/danyarm/krb-leaderboard)
46
+ - **Paper** [github.com/Yarmoluk/ckg-benchmark/blob/main/paper/main.pdf](https://github.com/Yarmoluk/ckg-benchmark/blob/main/paper/main.pdf)
47
+ - **DOI** [10.5281/zenodo.21222965](https://doi.org/10.5281/zenodo.21222965)
48
+
49
+ ---
50
 
51
+ ## Cite
52
+
53
+ ```bibtex
54
+ @dataset{yarmoluk2026krb,
55
+ title = {KRB: Knowledge Retrieval Benchmark v0.6.2},
56
+ author = {Yarmoluk, Daniel},
57
+ year = {2026},
58
+ doi = {10.5281/zenodo.21222965},
59
+ url = {https://huggingface.co/datasets/danyarm/ckg-benchmark},
60
+ license = {CC BY 4.0}
61
+ }
62
+ ```
63
+
64
+ ---
65
 
66
+ **License:** CC BY 4.0 · **Domains:** 45 benchmarked · **Queries:** 7,928 · **Patent pending**