[논문 리뷰] Making Large Language Models Perform Better in Knowledge Graph Completion
본 논문은 KoPA(Knowledge Prefix Adapter)를 제안하여 KG 구조 정보를 LLM 프롬프트에 주입하고, 구조 인식적 추론 및 트리플 분류 성능을 향상시키는 방법을 제시한다. 세 벤치마크에서 제로샷, 인-컨텍스트 학습(ICL), 지시 학습 baselines와 비교한다.
Large language model (LLM) based knowledge graph completion (KGC) aims to predict the missing triples in the KGs with LLMs. However, research about LLM-based KGC fails to sufficiently harness LLMs' inference proficiencies, overlooking critical structural information integral to KGs. In this paper, we explore methods to incorporate structural information into the LLMs, with the overarching goal of facilitating structure-aware reasoning. We first discuss on the existing LLM paradigms like in-context learning and instruction tuning, proposing basic structural information injection approaches. Then we propose a Knowledge Prefix Adapter (KoPA) to fulfill this stated goal. The KoPA uses a structural pre-training phase to comprehend the intricate entities and relations within KGs, representing them as structural embeddings. Then KoPA communicates such cross-modal structural information understanding to the LLMs through a knowledge prefix adapter which projects the structural embeddings into the textual space and obtains virtual knowledge tokens positioned as a prefix of the input prompt. We conduct comprehensive experiments and provide incisive analysis concerning how the introduction of cross-modal structural information would be better for LLM's factual knowledge reasoning ability. Our code and data are available at https://github.com/zjukg/KoPA .
연구 동기 및 목표
- KG 구조 정보를 활용하여 LLM으로 KGC를 개선하는 동기를 제시한다.
- KG 구조 임베딩을 LLM과 접합하는 프리픽스 어댑터를 통해 두 단계 KoPA 프레임워크를 제안한다.
- 구조 인식형 LLM 기반 KGC 방법을 다수의 벤치마크에서 평가하고 구조 정보 사용의 효과를 분석한다.
제안 방법
- KoPA 도입: 엔티티와 관계에 대한 구조 임베딩의 선행 학습.
- 지식 프리픽스 어댑터를 통해 구조 임베딩을 텍스트 공간으로 투영하고 프롬프트 접두사로 가상의 지식 토큰을 생성한다.
- 구조 인식 KGC를 가능하게 하기 위해 KoPA를 지시 학습과 결합한다.
- KoPA를 제로샷, ICL, vanilla IT, 구조 인식 IT baselines와 비교한다.
- 프롬프트 길이와 Neighborhood-Text 접근에 대한 효율성의 복잡도 분석을 제공한다.
- Alpaca-7B와 LoRA를 사용한 세 가지 KG 벤치마크(UMLS, CoDeX-S, FB15K-237N)로 실험하고 ACC, P, R, F1을 보고한다.
실험 결과
연구 질문
- RQ1KG 구조 정보를 LLM에 효과적으로 통합하여 KGC 성능을 향상시킬 수 있는가?
- RQ2구조 정보를 보강했을 때 ZSR, ICL, IT 등 다양한 LLM 패러다임은 KGC에 대해 어떤 성능을 보이는가?
- RQ3KoPA가 텍스트 기반 이웃 프롬프트 대비 프롬프트 길이, 확장성, 이전 전이성 측면에서 이점을 제공하는가?
- RQ4표준 KG 벤치마크에서 구조 임베딩이 트리플 분류 정확도에 미치는 영향은 무엇인가?
주요 결과
- KoPA는 트리플 분류 작업에서 Vanilla IT 및 구조 인식 IT보다 벤치마크를 통해 더 우수한 성능을 보인다.
- KoPA는 UMLS, CoDeX-S, FB15K-237N에서 강력한 결과를 달성하며 베이스라인과 비교해 정확도와 F1 점수 면에서 경쟁적이거나 우수하다.
- KoPA를 통해 투영된 구조 임베딩은 각 트리플 헤드/관계/테일당 세 개의 가상 토큰으로 고정 길이의 프롬프트 접두사를 제공하며 이웃 텍스트 프롬프트보다 더 효율적이다.
- KoPA로의 학습은 텍스트 기반 프롬프트를 사용하는 경우보다 LLM 백본과 설정에 관계없이 구조 인식 추론 및 전이성을 향상시킨다.
- KoPA는 LoRA로 미세조정하는 경우에도 프롬프트 길이 특성과 성능이 우수하게 나타난다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.