Text2KGBench-LettrIA
A Refined Benchmark for
Text2Graph Systems
Julien Plu, Oscar Moreno Escobar, Edouard Trouillez, Axelle Gapin, Pasquale Lisena, Thibault Ehrhart, Raphaël Troncy
LettrIA, Paris, France
EURECOM, Sophia Antipolis, France
2
set of documents
ontology
LLM
populated KG
RQ: how much a LLM can populate a KG solely based on a set of text documents ?
Motivation
The Rise of Text-to-Knowledge-Graph (Text2KG)
3
Motivation
Text2KGBench
4
State-of-art
Mihindukulasooriya, N., Tiwari, S., Enguix, C.F., Lata, K. (2023). Text2KGBench: A Benchmark for Ontology-Driven Knowledge Graph Generation from Text. In: The Semantic Web – ISWC 2023. Lecture Notes in Computer Science, vol 14266. Springer, Cham. https://doi.org/10.1007/978-3-031-47243-5_14
Our focus!
Critical Flaws in Text2KGBench
5
Ontological Flaws
⨯ Flat Structure�No formal class hierarchy (rdfs:subClassOf).
⨯ Semantic Ambiguity
Out-of-domain concepts and overly
generic properties (e.g., location).
⨯ Lack of Rigor
No formal distinction between object and datatype properties.
Annotation & Data Quality Flaws
⨯ Inconsistency�No standardized format for entities or literal values (dates, numbers).
⨯ Lack of Grounding
Annotations often relied on external knowledge.
Structural & Technical Flaws
⨯ Poor Usability�Missing metadata, undocumented ontologies, and complex URIs
Problem
Text2KGBench-LettrIA
6
A substantially revised and curated benchmark
Our Solution
Systematic�Ontology Refinement
Revised 19 domain ontologies to enforce hierarchical structure (subClassOf) and formal typing.
�Complete Re-Annotation
Re-annotated all 4,860 sentences, yielding over 14,000 high-fidelity, text-grounded triples.
�Enriched Data Format
Introduced enhanced metadata and explicit typing to ensure reproducibility and support multifaceted evaluation.
~1000 hours of human labor
Ontology Refinement
7
Methodology
Semantic Coherence | |
Pruned irrelevant concepts | (removed Club from Film ontology) |
Harmonized and specified property names | (staff →academicStaff) |
Structural Enhancements | |
Introduced a formal class hierarchy | (University ⊂ AcademicInstitution ⊂ Organization) |
More nuanced evaluation | (rewarding a correct superclass prediction) |
Formal Typing & Usability | |
Rigorously defined ObjectProperty and DatatypeProperty with explicit domains and ranges. | |
Added rdfs:comment annotations and simplified URIs. | |
Ontology Statistics
8
Computing Diff
Ontology Name | LettrIA | Text2KGBench | |||
Classes | Object Prop. | Datatype Prop. | Classes | Object Prop. | |
airport | 11 | 15 | 5 | 13 | 39 |
artist | 12 | 16 | 7 | 19 | 39 |
astronaut | 18 | 10 | 11 | 15 | 38 |
athlete | 10 | 18 | 9 | 14 | 37 |
building | 9 | 11 | 12 | 14 | 38 |
celestialbody | 5 | 1 | 17 | 8 | 27 |
city | 13 | 10 | 10 | 11 | 23 |
comicscharacter | 8 | 8 | 4 | 10 | 18 |
company | 9 | 13 | 6 | 10 | 28 |
film | 5 | 10 | 5 | 18 | 44 |
food | 12 | 13 | 2 | 12 | 24 |
meanoftransportation | 12 | 20 | 28 | 20 | 68 |
monument | 10 | 10 | 4 | 14 | 26 |
musicalwork | 15 | 22 | 3 | 15 | 35 |
politician | 17 | 25 | 9 | 19 | 40 |
scientist | 12 | 15 | 5 | 15 | 47 |
sportsteam | 9 | 12 | 3 | 14 | 24 |
university | 11 | 16 | 11 | 15 | 46 |
writtenwork | 10 | 17 | 13 | 10 | 44 |
TOTAL | 208 | 262 | 164 | 266 | 685 |
21.80% fewer classes
37.81% fewer properties
Rigorous Annotation Guidelines
9
Key improvements | |
Canonical Names | University_Bath → University of Bath |
Explicit Typing | New subType and objType fields. |
Specific Relations | staff (vague) → academic (specific) |
Correct Data Types | String "2900"→ integer 2900 |
{
"sub":"University_Bath",
"rel":"staff",
"obj":"2900"
}
{
"sub":"University of Bath",
"subType":"University",
"rel":"academicStaff",
"obj": 2900 ,
"objType":"integer"
}
Methodology
Knowledge Graph Statistics
10
Computing Diff
Ontology | Text2KGBench-LettrIA | Text2KGBench | ||
Sentences | Triples | Sentences | Triples | |
airport | 79 / 227 / 273 | 260 / 702 / 989 | 79 / 227 | 237 / 714 |
artist | 84 / 302 / 198 | 256 / 896 / 638 | 84 / 302 | 252 / 896 |
astronaut | 68 / 86 / 414 | 266 / 264 / 985 | 68 / 86 | 279 / 241 |
athlete | 107 / 186 / 314 | 304 / 568 / 811 | 107 / 186 | 299 / 575 |
building | 103 / 172 / 328 | 276 / 593 / 956 | 103 / 172 | 309 / 588 |
celestialbody | 72 / 122 / 378 | 203 / 329 / 885 | 72 / 122 | 223 / 373 |
city | 217 / 131 / 369 | 1289 / 479 / 1038 | 217 / 131 | 651 / 398 |
comics character | 36 / 66 / 434 | 92 / 165 / 934 | 36 / 66 | 107 / 215 |
company | 56 / 97 / 403 | 174 / 314 / 928 | 56 / 97 | 157 / 300 |
film | 127 / 137 / 363 | 368 / 369 / 622 | 127 / 137 | 378 / 398 |
food | 153 / 245 / 255 | 473 / 683 / 681 | 153 / 245 | 532 / 734 |
mean of transportation | 92 / 222 / 278 | 271 / 646 / 745 | 92 / 222 | 276 / 647 |
monument | 19 / 73 / 427 | 64 / 343 / 1365 | 19 / 73 | 55 / 293 |
musicalwork | 209 / 81 / 419 | 842 / 285 / 912 | 209 / 81 | 604 / 221 |
politician | 135 / 184 / 316 | 415 / 688 / 1089 | 135 / 184 | 424 / 550 |
scientist | 149 / 110 / 390 | 387 / 259 / 559 | 149 / 110 | 411 / 300 |
sportsteam | 110 / 125 / 375 | 375 / 369 / 1294 | 110 / 125 | 401 / 375 |
university | 71 / 85 / 415 | 337 / 228 / 749 | 71 / 85 | 283 / 248 |
writtenwork | 127 / 195 / 305 | 267 / 628 / 861 | 127 / 195 | 381 / 557 |
TOTAL | 2014 / 2846 / 6654 | 6919 / 8808 / 17101 | 2014 / 2846 | 6259 / 8623 |
Number of sentences and triples for each benchmark��Split into�test / train / train-ext for T2KGBench-LettrIA
New extended train dataset (synth. generated)
Experimental Setup
11
Evaluation
Anthropic�Claude 3, 3.5, 3.7�Haiku, Sonnet, Opus
Proprietary Models
Zero-Shot
Extended
Augmented training set with synthetic data�+500 sentences / ontology
Generalization
Leave-one-ontology-out setting (city ontology)
Open-Weights Models
Fine-Tuned
Google�Gemini 2.0, 2.5�Flash Lite, Flash, Pro
OpenAI�GPT-4.1, GPT-4o�Full, Mini, Nano
Gemma 3�4B, 12B, 27B
Mistral Small 3.2�24B
Phi-4�14B
Qwen 3�from 0.6B to 32B
Classic
Trained on the new, curated training set (SFT, LoRA)
FINE-TUNING CONFIGURATION
Key Result 1: Fine-Tuning is Paramount
12
Evaluation
Smaller, fine-tuned open-weights models massively outperform larger, proprietary models.
Category | Model | Entity F1 |
Fine-Tuned | Mistral-Small-3.2 (ext.) | 0.8837 |
Fine-Tuned | Gemma-3-27B-it | 0.8680 |
Zero-Shot | gpt-4.1-mini | 0.6866 |
Zero-Shot | gemini-2.5-pro | 0.6595 |
High-quality, schema-aligned training data is more critical than raw model size.
Key Result 2: Generalization, Reliability and Efficiency
13
Evaluation
A Fundamental Trade-Off
14
Lesson Learned
15
Meet �Perseus
16
17
Conclusion and Future Work
Thank you!