Skip to main content
QUICK REVIEW

[논문 리뷰] UrbanKGent: A Unified Large Language Model Agent Framework for Urban Knowledge Graph Construction

Yansong Ning, Hao Liu|arXiv (Cornell University)|2024. 02. 10.
Geographic Information Systems StudiesSocial Sciences인용 수 3
한 줄 요약

UrbanKGent는 이질성 인식 지침 튜닝과 도구 보강형 반복 정련 프로세스를 활용하여 GPT-4의 경로를 향상시키는 통합 LLM 에이전트 프레임워크를 제안한다. Llama-2-13B로 미세조정된 UrbanKGent-13B는 21개의 베이스라인과 GPT-4보다 10퍼센트 이상 높은 성능을 기록하면서도 비용은 20배 낮게 사용하여, 단지 1/5의 데이터로 수천 배 더 많은 관계를 포함한 도시 지식 그래프를 구축할 수 있다.

ABSTRACT

Urban knowledge graph has recently worked as an emerging building block to distill critical knowledge from multi-sourced urban data for diverse urban application scenarios. Despite its promising benefits, urban knowledge graph construction (UrbanKGC) still heavily relies on manual effort, hindering its potential advancement. This paper presents UrbanKGent, a unified large language model agent framework, for urban knowledge graph construction. Specifically, we first construct the knowledgeable instruction set for UrbanKGC tasks (such as relational triplet extraction and knowledge graph completion) via heterogeneity-aware and geospatial-infused instruction generation. Moreover, we propose a tool-augmented iterative trajectory refinement module to enhance and refine the trajectories distilled from GPT-4. Through hybrid instruction fine-tuning with augmented trajectories on Llama 2 and Llama 3 family, we obtain UrbanKGC agent family, consisting of UrbanKGent-7/8/13B version. We perform a comprehensive evaluation on two real-world datasets using both human and GPT-4 self-evaluation. The experimental results demonstrate that UrbanKGent family can not only significantly outperform 31 baselines in UrbanKGC tasks, but also surpass the state-of-the-art LLM, GPT-4, by more than 10% with approximately 20 times lower cost. Compared with the existing benchmark, the UrbanKGent family could help construct an UrbanKG with hundreds of times richer relationships using only one-fifth of the data. Our data and code are available at https://github.com/usail-hkust/UrbanKGent.

연구 동기 및 목표

  • 도시 지식 그래프 구축(UrbanKGC)의 높은 수동 노동과 제한된 확장성 문제를 해결하기 위해 대규모 언어 모델을 활용한 자동화 과정을 도입한다.
  • 도메인 특화 지침 튜닝을 통해 LLM의 이질적 도시 관계(공간적, 시간적, 기능적) 이해 능력을 향상시켜 LLM의 한계를 극복한다.
  • 외부 지리공간 도구와 반복 경로 정련을 통합하여 LLM의 지리공간 관계 추론 능력을 향상시킨다.
  • 세부적인 성능을 확보하면서도 일반 목적의 LLM(GPT-4)과 기존 베이스라인을 모두 능가하는 비용 효율적이고 오픈소스인 LLM 에이전트를 개발한다.
  • 통합 에이전트 프레임워크를 통해 최소한의 인간 간섭으로도 확장 가능하고 고포괄성의 도시 지식 그래프를 구축할 수 있도록 한다.

제안 방법

  • 이질성 인식 및 지리공간 정보를 통합한 지침 생성을 통해 도시 지식 그래프 구축 작업(예: 관계 삼중항 추출, 지식 그래프 보완)을 위한 지식 기반 지침 세트를 구성한다.
  • 외부 지리공간 도구(예: 거리, 방향, 공간적 추론 등)를 호출하여 GPT-4의 경로를 향상시키고 정련하는 도구 보강형 반복 경로 정련 모듈을 설계한다.
  • 합성 지침과 보강된 경로를 활용하여 Llama-2-13B에 하이브리드 지침 미세조정을 수행하여 UrbanKGent-13B 에이전트를 훈련시킨다.
  • 복잡한 공간 관계(예: '분리된' 또는 '근접한' 관계 등)를 정확하게 추출하기 위해 지리공간 계산 능력을 LLM 에이전트 파이프라인에 통합한다.
  • 다양한 도시 지식 그래프 구축 작업에서 에이전트 성능을 검증하고 校정하기 위해 인간 평가와 GPT-4 자기 평가를 모두 활용한다.
  • 훈련된 에이전트를 온라인 서비스에 배포하여 실제 도시 지식 그래프 구축 환경에서의 확장성과 효율성을 입증한다.
Figure 2. Illustrative example of urban relational triplet extraction and knowledge graph completion. (a) The heterogeneous relationship understanding limitation of LLMs can be addressed by injecting prior urban knowledge into instruction. (b) The geospatial computing limitation of LLMs can be allev
Figure 2. Illustrative example of urban relational triplet extraction and knowledge graph completion. (a) The heterogeneous relationship understanding limitation of LLMs can be addressed by injecting prior urban knowledge into instruction. (b) The geospatial computing limitation of LLMs can be allev

실험 결과

연구 질문

  • RQ1통합 LLM 에이전트 프레임워크는 도시 지식 그래프 구축의 수동 노동을 크게 줄일 수 있을까? 이 과정에서 정확도는 유지되거나 향상될 수 있는가?
  • RQ2도메인 특화 재학습 없이도 LLM이 이질적 도시 관계(공간적, 시간적, 기능적)를 효과적으로 이해하도록 어떻게 적응시킬 수 있는가?
  • RQ3도구 보강형 반복 정련 방식은 LLM이 생성한 경로의 신뢰성과 정확도를 어느 정도 향상시킬 수 있는가?
  • RQ4미세조정된 오픈소스 LLM 에이전트인 UrbanKGent-13B는 일반 목적의 LLM(GPT-4)과 기존 베이스라인 모두를 초월할 수 있는가?
  • RQ5소량의 데이터 입력으로도 대규모 도시 지식 그래프를 구축하기 위해 LLM 에이전트를 배포할 경우의 확장성과 비용 효율성은 어떠한가?

주요 결과

  • UrbanKGent-13B는 관계 삼중항 추출 및 지식 그래프 보완 작업에서 21개의 최신 베이스라인을 모두 능가한다.
  • UrbanKGent-13B는 성능에서 GPT-4를 10퍼센트 이상 초월하면서도 추론 비용은 약 20배 낮게 사용한다.
  • 이 프레임워크를 통해 기준 벤치마크 대비 1,000배 이상 많은 관계를 포함한 도시 지식 그래프를 구축할 수 있었고, 입력 데이터는 기존의 1/5로만 사용되었다.
  • 보강된 경로를 활용한 하이브리드 지침 미세조정 전략은 복잡한 도시 관계, 특히 지리공간적 및 기능적 관계 추출 능력을 크게 향상시켰다.
  • 인간 평가와 GPT-4 자기 평가 결과가 일관되게 나타나 평가 프로토콜의 신뢰성을 입증하였다.
  • 오픈소스로 제공되는 UrbanKGent-13B 에이전트는 공개적으로 이용 가능하며, 온라인 서비스에 배포되어 실제 환경에서의 확장성과 효율성을 입증하였다.
Figure 3. Quantitative performance analysis of prompting GPT-4 for RTE and KGC tasks. The result is obtained by comparing 50 GPT-4’s outputs with the human’s annotation.
Figure 3. Quantitative performance analysis of prompting GPT-4 for RTE and KGC tasks. The result is obtained by comparing 50 GPT-4’s outputs with the human’s annotation.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.