Skip to main content
QUICK REVIEW

[論文レビュー] Making Large Language Models Perform Better in Knowledge Graph Completion

Yichi Zhang, Zhuo Chen|arXiv (Cornell University)|Oct 10, 2023
Advanced Graph Neural Networks被引用数 14
ひとこと要約

本論文は KoPA(Knowledge Prefix Adapter)を提案し、知識グラフ構造情報をLLMに注入して知識グラフ補完を行い、構造を意識した推論と三重分類の性能を向上させる。KoPAをゼロショット、文脈内学習、指示調整ベースラインと3つのベンチマークで比較する。

ABSTRACT

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と統合する2段階の KoPA フレームワークを提案する。
  • 複数のベンチマークで構造を意識したLLMベースのKGC手法を評価し、構造情報の有効性を分析する。

提案手法

  • KoPAを導入:エンティティと関係の構造埋め込みを前学習する。
  • 知識プレフィックスアダプタを用いて構造埋め込みをテキスト空間に射影し、仮想知識トークンをプロンプトのプレフィックスとして作成する。
  • KoPAを指示調整と組み合わせて、LLMを介した構造を意識したKGCを可能にする。
  • KoPAをゼロショット、ICL、バニラIT、および構造を意識したITベースラインと比較する。
  • プロンプト長と近傍テキストアプローチとの効率性の複雑さ分析を提供する。
  • Alpaca-7BとLoRAを用いて3つのKGベンチマーク(UMLS、CoDeX-S、FB15K-237N)を実験し、ACC、P、R、F1を報告する。

実験結果

リサーチクエスチョン

  • RQ1KGの構造情報をLLMに効果的に組み込んでKGCの性能を向上させることができるか?
  • RQ2構造情報を付与した場合、ZSR、ICL、ITといった異なるLLMパラダイムはKGCにおいてどのように性能を発揮するか?
  • RQ3KoPAはテキストベースの近傍プロンプトに比べてプロンプト長、スケーラビリティ、転移性の利点を提供するか?
  • RQ4標準的なKGベンチマーク全体で三重分類精度に対する構造埋め込みの影響はどの程度か?

主な発見

モデルUMLS_精度UMLS_PUMLS_RUMLS_F1CoDeX_S_精度CoDeX_S_PCoDeX_S_RCoDeX_S_F1FB15K_237N_精度FB15K_237N_PFB15K_237N_RFB15K_237N_F1
TransE (embedding)84.4986.5381.6984.0472.0771.9172.4272.1756.0253.4797.6267.84
DistMult86.3887.0686.5386.7966.7969.6759.4664.1658.6658.9856.8457.90
ComplEx90.7789.9291.8390.8767.6467.8467.0667.4565.7066.4663.3864.88
RotatE92.0590.1794.4192.2375.6875.6675.7175.6968.4669.2466.4167.80
KG-BERT (PLM)77.3070.9692.4380.2877.3070.9692.4380.2856.0253.4797.6267.84
PKGC (PKG-based)--------79.60--79.50
KGLLaMA (LLM)85.7787.8483.0585.3879.4378.6780.7479.6974.8167.3796.2379.25
KG-Alpaca (LLM)86.0194.9176.1084.4680.2579.3881.7380.5469.9162.7198.2876.56
Vanilla IT (LLM)86.9195.1877.7685.5981.1877.0188.8982.5273.5065.8797.5378.63
Structural-aware IT89.9393.2786.0889.5481.2777.1488.4082.5876.4269.5693.9579.94
KoPA (proposed)92.5890.8594.7092.7082.7477.9191.4184.1177.6570.8194.0980.81
  • KoPAはベースラインのITおよび構造を意識したITを三重分類タスクでベンチマーク全体にわたり上回る。
  • KoPAはUMLS、CoDeX-S、FB15K-237Nで強い結果を示し、ベースラインと比較して精度およびF1スコアが競合的または優れている。
  • KoPA経由で投影された構造埋め込みは、三重のヘッド/関係/尾部ごとに3つの仮想トークンからなるコンパクトで固定長のプレフィックスを提供し、近傍テキストプロンプトよりも効率的である。
  • KoPAによる訓練は、テキストのみのプロンプトと比較して、LLMのバックボーンと設定全体で構造を意識した推論と転移性を向上させる。
  • KoPAは、LoRAを用いたファイニングにもおいて有利なプロンプト長特性と競争力のある性能を示す。

より良い研究を、今すぐ始めましょう

論文設計から論文執筆まで、研究時間を劇的に削減しましょう。

クレジットカード登録不要

このレビューはAIが作成し、人間の編集者が確認しました。