TL;DR
Building a knowledge graph (KG) from dense technical documents usually forces an unpleasant choice: spend months hand-crafting a rigid ontology, or let an LLM extract everything freely and end up with a fragmented mess of duplicate nodes. TRACE-KG offers a middle path. It jointly builds a traceable, context-enriched knowledge graph and induces a clean, hierarchical schema directly from the text—no predefined ontology required.
What Problem Does This Paper Address?
If you want to query knowledge across hundreds of pages of engineering manuals or scientific papers, plain text retrieval (like standard RAG) often falls short on global, multi-document questions. Knowledge graphs help by making entities and relationships explicit.
However, existing text-to-KG pipelines sit at two extremes:
- Ontology-driven pipelines map text into a fixed, human-designed schema. They produce clean, consistent graphs, but designing and maintaining ontologies is expensive and brittle when terminology evolves.
- Schema-free pipelines extract entities and relations directly from text. They capture lots of local facts, but the global graph fragments: the same concept appears under multiple names, and near-duplicate predicates proliferate.
Technical documents add two more wrinkles: critical information is often locked in figures, tables, and equations, and relationships are frequently conditional (e.g., a valve opens only under specific operating modes or temperatures). Flattening those into unconditional triples creates contradictory graphs.
Methods
TRACE-KG (Text-dRiven schemA for Context-Enriched Knowledge Graphs) constructs a graph $G = (E, R, S)$—resolved entities $E$, grounded relation instances $R$, and an induced schema $S$—directly from a corpus.
The pipeline starts with multimodal ingestion: a vision-language processor textualizes figures, tables, diagrams, and equations while preserving page- and region-level provenance, then segments the stream into sentence-preserving chunks.
From there, TRACE-KG repeats a three-stage pattern across both entities and relations:
- High-recall recognition: An LLM extracts local entity mentions or relation instances from each chunk, attaching justification excerpts and provenance. For relations, conditional context (temporal, spatial, operational, causal, or uncertainty constraints) is stored as edge-level qualifiers rather than extra nodes, keeping the graph topology clean.
- Semantic neighborhood formation: Multi-field representations of candidates are embedded and clustered (using HDBSCAN) into candidate neighborhoods.
- Constrained resolution: Instead of letting the LLM freely rewrite the graph, it selects from a fixed set of structured actions (like
MERGEENTITIESorSETCANONICALREL) over explicit IDs. Deterministic validators then check and execute the edits, keeping every change auditable.
Using this pattern, TRACE-Schema induces a two-level hierarchy for entities (entity classes $\rightarrow$ broader class groups) and a three-level hierarchy for relations (canonical relation labels $\rightarrow$ relation classes $\rightarrow$ broader class groups).
Datasets
The authors evaluate TRACE-KG across three complementary settings:
- MINE-1: A benchmark for factual knowledge retention under graph-based retrieval, testing whether retrieved subgraphs can support derived factual statements.
- DBpedia-WebNLG (via Text2KGBench and OSKGC): 19 domains with human-curated ontologies and disjoint sentence splits. The authors use this for a novel ontology-held-out evaluation, where TRACE-KG induces a schema from scratch and is only compared against the reference ontology afterward.
- ISO 55000-family corpus: Three related technical standards (83 pages, 339 chunks) processed both independently and jointly to test cross-document consolidation and schema reuse.
Key Insights and Ideas
- Raw retrieval accuracy can be misleading: A graph can score high on retrieval accuracy simply by copying long verbatim text spans into entity names (high leakage) or by retrieving disconnected fragments. Discounting for connectivity and leakage reveals which graphs actually encode structured knowledge.
- Separate "proposing" from "mutating": By having the LLM propose structured actions over clustered neighborhoods—and letting deterministic Python validators execute them—TRACE-KG avoids unconstrained global edits while keeping every node, edge, and schema assignment traceable to source text.
- Preserve relation instances, canonicalize labels: Unlike entities (where duplicates are merged into one node), relation instances are tied to specific contexts and qualifiers. TRACE-KG keeps the grounded instances intact and normalizes their predicate labels and schema assignments instead.
Key Results
- Knowledge Retention (MINE-1): TRACE-KG achieves 90.2% raw retrieval accuracy (behind AutoSchemaKG's 95.1%). However, AutoSchemaKG suffers from 36.5% text leakage, whereas TRACE-KG has just 1.3% leakage, 88.5% graph connectivity, and a near-ideal compression ratio (TriCR = 0.956). As a result, TRACE-KG leads on Effective Graph Utilization (EGU = 78.5% vs. 37.3% for AutoSchemaKG) and Structural Coherence Index (SCI = 0.270).
- Ontology-Held-Out Schema Recovery (DBpedia-WebNLG): Without seeing the reference ontologies, TRACE-KG achieves 97.2%–99.1% compatible concept coverage and 84.8%–92.4% compatible relation coverage, with 82.7% held-out domain/range consistency.
- Cross-Document Consolidation (ISO 55000): Processing all three standards jointly compresses 638 mentions into 285 resolved entities (down from 403 when run separately) and 64 entity classes (down from 124), with 39/64 entity classes and 36/62 relation classes reused across at least two documents.
Limitations and Future Work
- Auditability $\neq$ guaranteed correctness: While chunk-local grounding, neighborhood restrictions, and deterministic validators make every graph decision inspectable against source evidence, they do not guarantee factual perfection.
- Single-pass relation resolution: Unlike entity resolution (which iterates up to five rounds), relation resolution currently runs in a single pass over relation clusters.
- Backbone sensitivity: Performance varies depending on the underlying LLM backbone used for extraction and resolution (detailed in Appendix C.4).
Summary updated