1 of 18

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 of 18

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

3 of 18

The Rise of Text-to-Knowledge-Graph (Text2KG)

  • Context: Large Language Models (LLMs) are revolutionizing automated Knowledge Graph (KG) construction from unstructured text.�
  • Importance: The KG-LLM synergy is crucial for applications like:
    • Explainable AI (XAI)
    • Neuro-symbolic fact-checking
    • Advanced search and reasoning�
  • The Challenge: Evaluating model performance reliably is essential for progress, but existing benchmarks have significant limitations.

3

Motivation

4 of 18

Text2KGBench

4

State-of-art

  • Presented at ISWC 2023
  • Benchmark composed of
    • TekGen corpus�13k+ sentences, 10 ontologies
    • WebNLG corpus�4860 sentences, 19 ontologies
  • Repo: github.com/cenguix/Text2KGBench

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!

5 of 18

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

6 of 18

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

7 of 18

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.

8 of 18

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

9 of 18

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

10 of 18

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)

11 of 18

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

12 of 18

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.

13 of 18

Key Result 2: Generalization, Reliability and Efficiency

13

Evaluation

  • Fine-tuning teaches true generalization, not just memorization.
    • Fine-tuned models maintain their performance advantage even on an unseen ontology.
    • gemma-3-12b-it (F1 0.8376) significantly outperforms the best proprietary model, claude-sonnet-4 (F1 0.7829).
  • Fine-tuned models achieve near-perfect (> 99%) structural validity and have extremely low hallucination rates.
  • Proprietary models show variable reliability; some are strong (gemini-2.5-pro), while others fail catastrophically.
  • Efficiency (in terms of latency) varies by orders of magnitude�[2s (gemini-flash) - 27s (claude-opus)] versus <0.02s (fine-tuned) models�which is directly correlated with cost

14 of 18

A Fundamental Trade-Off

14

  • Specialization Wins�For complex, structured tasks like Text2KG, task-specific fine-tuning is the most effective strategy.�
  • Fine-Tuning Teaches Generalization�The process instills a deep, transferable understanding of the task’s logic.�
  • Accessibility vs. Efficiency
    • Proprietary APIs�Invaluable for rapid prototyping. Higher latency and pay-per-call costs.
    • Fine-Tuned Models�A strategic investment. Delivers superior performance, speed, and economics for high-volume applications.

Lesson Learned

15 of 18

15

16 of 18

Meet �Perseus

16

17 of 18

17

Conclusion and Future Work

  • Introduced Text2KGBench-LettrIA, a revised benchmark for more precise evaluation of Text2KG systems.
  • Key Finding: Smaller, fine-tuned open models can outperform larger, proprietary counterparts. This underscores the pivotal role of high-quality data and model specialization.
  • Future Work
    • Post-Hoc Alignment�Using RL (PPO/DPO) to reduce hallucinations.
    • Explainability & Reasoning�Building a reasoning layer on top of extraction models.
    • Context Window Extension�Applying fine-tuned models to larger documents
    • Ontology�Populate a knowledge graph following more complex schema patterns (e.g. events based to go beyond binary relationships)

18 of 18

Thank you!