# Integrating Graphs with Large Language Models: Methods and Prospects

그래프와 대규모 언어 모델의 통합: 방법과 전망

Shirui Pan, Yizhen Zheng, Yixin Liu · arXiv · 2023년 10월 9일

- **연구 문제** LLM과 그래프를 결합하는 연구를 LLM이 그래프 학습을 돕는 방향과 그래프가 LLM의 추론·협업을 돕는 방향으로 나누어 정리합니다.
- **연구 방법** 그래프 학습 측면에서는 LLM을 속성 강화, 직접 예측, 그래프 구축에 사용하고, LLM 측면에서는 체인·트리·그래프 구조로 추론을 확장하거나 다중 에이전트 협업 구조를 설계합니다.
- **주요 결과** 원문은 chain-of-thought가 GSM8K에서 효율을 세 배로 높이고, ToT가 Game of 24에서 74%의 정확도로 COT의 4%를 능가한다고 보고합니다. InstructGLM은 세 개의 인용 네트워크에서 그래프 신경망 벤치마크를 능가했다고 보고됩니다.

## LLM과 그래프를 함께 다루는 문제 설정

대형 언어 모델(LLM)은 질의응답과 코드 생성 등에서 뛰어난 성능을 보이지만, 그래프 구조 데이터는 노드와 노드 사이의 관계를 담고 있어 텍스트 입력만으로는 자연스럽게 다루기 어렵습니다. 이 논문은 LLM과 그래프를 결합하는 연구를 두 방향으로 나누어 정리합니다. 첫째는 LLM이 그래프 학습을 향상시키는 방향이고, 둘째는 그래프 구조가 LLM의 추론과 협업 능력을 향상시키는 방향입니다.

이 구분은 두 방향의 대표 방법과 한계를 같은 틀에서 비교하기 위한 것입니다. 원문은 그래프 과제 예측, 그래프 구축, 추론 구조, 다중 에이전트 협업을 이 틀 안에서 다룹니다.

## LLM이 그래프 학습을 향상시키는 방식

LLM이 그래프 학습을 돕는 방법은 세 가지 경로로 제시됩니다. 첫째는 LLM이 노드의 텍스트 기반 속성을 처리해 정제된 속성이나 임베딩을 만들고, 이를 그래프 신경망(GNN) 학습에 결합하는 방식입니다. 둘째는 LLM을 직접 그래프 과제의 예측 모델로 사용하는 방식입니다. 셋째는 LLM을 이용해 그래프 구조 자체를 구축하는 방식입니다.

![Figure 1: The overall framework of the mutual enhancement between LLMs and Graphs. (a)-(c): three pathways for LLMs to enhance graph learning. (d)-(e): techniq…](https://refivu.com/papers/372d576d-c9d0-419b-b397-5ae76d859fed/figures/figure-5869130c6bae683c183a2214e55495b0.png?thumb=512)

**FIGURE 1** . The overall framework of the mutual enhancement between LLMs and Graphs. (a)-(c): three pathways for LLMs to enhance graph learning. (d)-(e): techniques for graph structures enhancing LLM reasoning. Brackets after technique names indicate graph types. D, U, M and E represent directed, undirected, homogeneous and heterogeneous graphs, respectively.

[원문](https://arxiv.org/abs/2310.05499v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shirui Pan, Yizhen Zheng, Yixin Liu · Integrating Graphs with Large Language Models: Methods and Prospects · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

이 중 variational EM 틀에서는 GNN과 LLM을 먼저 따로 학습한 뒤 두 모델이 의사 레이블과 임베딩을 주고받으며 번갈아 학습합니다. 이 방법은 원문에서 두 모델의 성능을 반복적으로 높이는 방법으로 설명됩니다.

LLM이 그래프 과제를 직접 예측하는 경우에는 원문이 상반된 관찰을 함께 보고합니다. LLM은 그래프 구조에 대한 기초적 이해를 보이지만 성능은 그래프 신경망 벤치마크보다 낮습니다. 또한 성능은 프롬프팅 전략과 그래프 기술 언어의 선택에 크게 영향을 받습니다. InstructGLM은 다중 과제 지시 튜닝으로 LLM을 정제하고 노드를 새 토큰으로 취급해 어휘를 확장하며, 세 개의 인용 네트워크에서 그래프 신경망 벤치마크를 능가했다고 보고됩니다.

## 그래프 구조가 LLM 추론을 높이는 방식

체인 구조의 chain-of-thought 프롬프팅은 단계적 추론을 유도하며, 원문은 기본적인 chain-of-thought 프레임워크가 GSM8K에서 LLM의 효율을 세 배로 높인다고 보고합니다. 이 결과는 가장 단순한 그래프 구조인 체인도 추론을 돕는다는 근거로 제시됩니다.

Tree of Thoughts(ToT)는 추론 단계를 트리로 전개합니다. 각 추론 단계는 노드가 되며, LLM은 트리를 탐색하면서 조건에 맞지 않는 노드를 제거하고 상위 노드로 되돌아가 해를 도출합니다. 원문은 Game of 24 테스트에서 ToT를 사용한 LLM이 74%의 정확도를 보이며, COT의 4%를 능가한다고 보고합니다.

Graph of Thoughts(GoT)는 ToT를 확장해 이질적 노드, 노드 집계와 결합(A&C), 경로 사이의 상호작용을 포함하는 그래프 구조를 사용합니다. 원문은 이 방법이 더 복잡한 과제에서 단순한 그래프 모델보다 앞선다고 설명하지만, 이 설명은 원문의 보고와 저자의 해석을 함께 담고 있으므로 방법별 조건과 함께 읽어야 합니다.

## 그래프 구조와 다중 에이전트 협업

복잡한 과제, 예를 들어 소프트웨어 개발은 여러 LLM이 협업하는 다중 에이전트 시스템을 필요로 합니다. 원문은 이때 그래프 구조가 협업하는 LLM 사이의 관계와 정보 흐름을 모델링하는 데 유용하다고 설명합니다.

원문은 MetaGPT가 폭포수 모델에 따라 에이전트를 단순한 체인으로 연결한다고 설명합니다. 저자들은 실제 소프트웨어 개발의 에이전트 관계가 더 복잡하므로 트리나 더 복잡한 그래프 구조를 도입하는 것이 도움이 될 수 있다고 제안합니다. 이 부분은 저자의 제안이며 실험으로 확인된 결과는 아닙니다.

## 남은 과제와 적용 범위

원문이 제시한 열린 질문은 그래프 종류의 확장, LLM의 그래프 이해 능력 향상, 더 정교한 그래프 구조의 추론 활용, 다중 에이전트 구조의 고도화, 학습과 추론 전 단계에서의 그래프 활용입니다. 원문은 텍스트 속성 그래프 이외의 그래프, 예를 들어 소셜 네트워크나 분자 그래프를 다루는 방법이 아직 충분하지 않다고 지적합니다.

그래프 기술 언어에 따른 성능 차이와 LLM의 그래프 이해 한계도 남은 과제입니다. 여기서 보고된 결과는 특정 과제와 데이터셋, 특정 프롬프팅 설정에서 얻은 관찰이므로, 다른 그래프 종류와 다른 과제로 일반화하려면 별도의 검증이 필요합니다.

## 논문 정보

- **저자**: Shirui Pan, Yizhen Zheng, Yixin Liu
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2023년 10월 9일
- **등록일**: 2026년 11월 6일
- **수정일**: 2023년 10월 9일
- **버전**: v1
- **arXiv**: 2310.05499
- **DOI**: 10.1109/mis.2023.3332242
- **분류**: cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2310.05499v1) · [원문 PDF ↗](https://arxiv.org/pdf/2310.05499v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Large language models (LLMs) such as GPT-4 have emerged as frontrunners, showcasing unparalleled prowess in diverse applications, including answering queries, code generation, and more. Parallelly, graph-structured data, an intrinsic data type, is pervasive in real-world scenarios. Merging the capabilities of LLMs with graph-structured data has been a topic of keen interest. This paper bifurcates such integrations into two predominant categories. The first leverages LLMs for graph learning, where LLMs can not only augment existing graph algorithms but also stand as prediction models for various graph tasks. Conversely, the second category underscores the pivotal role of graphs in advancing LLMs. Mirroring human cognition, we solve complex tasks by adopting graphs in either reasoning or collaboration. Integrating with such structures can significantly boost the performance of LLMs in various complicated tasks. We also discuss and propose open questions for integrating LLMs with graph-structured data for the future direction of the field.

## 원문 인용

Shirui Pan, Yizhen Zheng, Yixin Liu (2023). Integrating Graphs with Large Language Models: Methods and Prospects. arXiv:2310.05499v1. https://doi.org/10.1109/mis.2023.3332242

**BibTeX**

```
@article{pan2023integrating,
  title = {{Integrating Graphs with Large Language Models: Methods and Prospects}},
  author = {Shirui Pan and Yizhen Zheng and Yixin Liu},
  year = {2023},
  eprint = {2310.05499},
  archivePrefix = {arXiv},
  doi = {10.1109/mis.2023.3332242},
  url = {https://arxiv.org/abs/2310.05499v1}
}
```

## 이 논문의 용어

- [GSM8K](https://refivu.com/terms/e48f0e01064d-gsm8k)
- [대규모 언어 모델](https://refivu.com/terms/d06687a9ae3e-large-language-model)
- [Graph Neural Networks](https://refivu.com/terms/0650d076a410-graph-neural-networks)
- [chain-of-thought prompting](https://refivu.com/terms/ad375c45ea01-chain-of-thought-prompting)
- [Large Language Models (LLMs)](https://refivu.com/terms/79ef1d2616f9-large-language-models-llms)
- [Tree of Thoughts](https://refivu.com/terms/1d096111665b-tree-of-thoughts)
- [Game of 24](https://refivu.com/terms/bfbcd4e01d9c-game-of-24)
- [MetaGPT](https://refivu.com/terms/eabc5d1c9fb6-metagpt)

## 다른 논문 해설

- [Scalable, Validated Code Translation of Entire Projects using Large Language Models](https://refivu.com/papers/4f10c425-dee8-4ad8-893a-a2e6e28e3dd2-scalable-validated-code-translation-of-entire-projects-using.md)
- [Evaluating Diverse Large Language Models for Automatic and General Bug Reproduction](https://refivu.com/papers/60ae8b11-9278-42c3-9ffd-bede52e2976c-evaluating-diverse-large-language-models-for-automatic-and.md)
- [Mining experimental data from Materials Science literature with Large Language Models: an evaluation study](https://refivu.com/papers/9b547eac-9960-4f0c-9d64-f86b0a2887ab-mining-experimental-data-from-materials-science-literature.md)
- [Data Contamination Quiz: A Tool to Detect and Estimate Contamination in Large Language Models](https://refivu.com/papers/f0fd52aa-f203-433c-9681-9f9e8d369554-data-contamination-quiz-a-tool-to-detect-and.md)
- [An Evaluation on Large Language Model Outputs: Discourse and Memorization](https://refivu.com/papers/699b6d49-4923-4f95-a6c8-3031fd0053fe-an-evaluation-on-large-language-model-outputs-discourse.md)
- [Towards AI-Assisted Synthesis of Verified Dafny Methods](https://refivu.com/papers/b53bae8b-b94e-41ac-b574-dd240789964f-towards-ai-assisted-synthesis-of-verified-dafny-methods.md)
- [Proprioceptive Invariant State Estimation for Humanoid Robots on Non-Inertial Ground](https://refivu.com/papers/7fa94390-e83c-4ac7-b6e8-5429aabf8d1c-proprioceptive-invariant-state-estimation-for-humanoid.md)
- [Chiplet-Gym: Optimizing Chiplet-based AI Accelerator Design with Reinforcement Learning](https://refivu.com/papers/6ba025d4-c6d8-42f5-b150-0db73b11393e-chiplet-gym-optimizing-chiplet-based-ai-accelerator-design.md)
- [Deep-Q Learning with Hybrid Quantum Neural Network on Solving Maze Problems](https://refivu.com/papers/d8a4c7a8-2e59-4e0b-80c3-705a522d041c-deep-q-learning-with-hybrid-quantum-neural-network.md)
- [Hybrid actor-critic algorithm for quantum reinforcement learning at CERN beam lines](https://refivu.com/papers/afb6ed3b-fb25-4ae3-a8ec-44c72a72a54d-hybrid-actor-critic-algorithm-for-quantum-reinforcement.md)
- [Online Self-Supervised Deep Learning for Intrusion Detection Systems](https://refivu.com/papers/5b2dc5eb-5b04-4003-9688-63d5f91512ca-online-self-supervised-deep-learning-for-intrusion-detection.md)
- [Invertible Diffusion Models for Compressed Sensing](https://refivu.com/papers/6aec800a-0663-470f-a512-df85b2b5c826-invertible-diffusion-models-for-compressed-sensing.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/372d576d-c9d0-419b-b397-5ae76d859fed-integrating-graphs-with-large-language-models-methods-and)
