Extract, Define, Canonicalize: An LLM-based Framework for Knowledge Graph Construction

Bowen Zhang, Harold Soh

arXiv:2404.03868 · 2026-07-27 공개 · arXiv · PDF

llm retrieval-augmented few-shot-learning zero-shot-learning information-extraction knowledge-graph-construction schema-definition canonicalization

Abstract

In this work, we are interested in automated methods for knowledge graph creation (KGC) from input text. Progress on large language models (LLMs) has prompted a series of recent works applying them to KGC, e.g., via zero/few-shot prompting. Despite successes on small domain-specific datasets, these models face difficulties scaling up to text common in many real-world applications. A principal issue is that, in prior methods, the KG schema has to be included in the LLM prompt to generate valid triplets; larger and more complex schemas easily exceed the LLMs’ context window length. Furthermore, there are scenarios where a fixed pre-defined schema is not available and we would like the method to construct a high-quality KG with a succinct self-generated schema. To address these problems, we propose a three-phase framework named Extract-Define-Canonicalize (EDC): open information extraction followed by schema definition and post-hoc canonicalization. EDC is flexible in that it can be applied to settings where a pre-defined target schema is available and when it is not; in the latter case, it constructs a schema automatically and applies self-canonicalization. To further improve performance, we introduce a trained component that retrieves schema elements relevant to the input text; this improves the LLMs’ extraction performance in a retrieval-augmented generation-like manner. We demonstrate on three KGC benchmarks that EDC is able to extract high-quality triplets without any parameter tuning and with significantly larger schemas compared to prior works. Code for EDC is available at https://github.com/clear-nus/edc.

한국어 요약

한 줄 요약

EDC는 LLM 기반의 세 단계 프레임워크로, 사전 정의된 스키마가 없어도 고정밀 지식 그래프를 생성한다.

핵심 기여도

핵심 아이디어

EDC는 기존 LLM 기반 KGC 방법이 대규모 스키마를 처리하지 못하고, 사전 정의 스키마가 없는 상황에서 제한적이었던 문제를 해결하기 위해 설계되었다. 핵심 아이디어는 KGC 과제를 세 단계로 분할하는 것이다:
1. **Extract**: 입력 텍스트에서 개방형 정보를 추출하여 트리플을 생성.
2. **Define**: 추출된 트리플을 기반으로 엔티티/관계 유형을 정의.
3. **Canonicalize**: 정의된 스키마를 사용해 트리플을 표준화하여 의미적으로 동등한 표현을 통일.

이러한 분할은 LLM의 강점을 활용하면서도, 추출된 정보의 중복과 모호성을 줄이는 데 기여한다. 특히, Schema Retriever는 입력 텍스트와 관련된 스키마 요소를 검색하여 추출 과정을 보강하는 방식으로, Retrieval-Augmented Generation과 유사한 메커니즘을 도입한 점이 혁신적이다.

기술적 접근법

주요 결과

의의 및 한계

EDC는 대규모 스키마를 처리할 수 있는 유연한 KGC 프레임워크로, 사전 정의 스키마가 없는 상황에서도 효과적으로 작동한다. 특히, Schema Retriever를 통해 입력 텍스트와 관련된 스키마 요소를 효율적으로 검색함으로써 추출 정확도를 높이는 점이 학술적·실용적 가치가 있다. 또한, EDC는 Wikidata와 같은 대규모 스키마를 활용한 지식 그래프 생성에 활용 가능하다는 점에서 기존 방법과 차별화된다.

그러나 EDC는 소규모 도메인 특화 데이터셋에서는 기존 방법 대비 성능이 떨어질 수 있으며, 일부 실험에서는 사전 정의 스키마가 없는 상황에서의 평가가 제한적일 수 있다. 또한, Schema Retriever의 학습 과정이나 성능에 대한 구체적인 수치는 명시되지 않았다.

실용적 활용

EDC는 일반 텍스트에서 대규모 스키마를 사용해 고정밀 지식 그래프를 생성할 수 있어, 정보 추출, 질문 답변, 추천 시스템 등 다양한 분야에 적용 가능하다. 특히, 사전 정의 스키마가 없는 상황에서도 자동으로 스키마를 생성하고 표준화할 수 있어, 데이터 준비가 어려운 실제 애플리케이션 환경에서 유용하다.