# Knowledge Graphs, Large Language Models, and Hallucinations: An NLP Perspective

지식 그래프, 대규모 언어 모델, 그리고 환각: 자연어 처리 관점

Ernests Lavrinovics, Russa Biswas, Johannes Bjerva, Katja Hose · arXiv · 2024년 11월 21일

- **연구 문제** LLM은 그럴듯하지만 사실과 다른 환각을 생성해 신뢰성과 적용 범위가 제한됩니다. 이 논문은 지식 그래프를 외부 사실 근거로 활용해 환각을 완화하는 방법과 그 평가·탐지 자원의 현황을 검토합니다.
- **연구 방법** 논문은 KG 기반 환각 완화 방법을 pre-training, 추론, 생성 후 단계로 범주화하고, 각 단계의 지식 주입 방식과 한계를 정리합니다. 평가 자원과 탐지 방법도 함께 검토합니다.
- **주요 결과** 논문은 대부분 벤치마크가 응답 수준에 머물고 학습 분할이 부족하며, 대부분 영어 중심이라는 점을 보고합니다. 또한 프롬프트 기반 방법은 문맥 창과 프롬프트 설계에 영향을 받고, KG 기반 방법은 트리플의 사실성 가정 아래에서만 유용하다고 정리합니다.

## LLM 환각 문제와 지식 그래프의 역할

대규모 언어 모델(LLM)은 텍스트 생성, 질의응답, 챗봇 등 자연어 처리 응용에서 널리 쓰이지만, 그럴듯하지만 사실과 다른 응답을 내는 환각(hallucination) 문제가 있습니다. 이 문제는 모델에 대한 신뢰를 떨어뜨리고 여러 도메인에서의 적용을 제한합니다. 원문은 환각이 세계 지식, 자기모순, 프롬프트 지시나 주어진 문맥에 대한 불일치 등 여러 유형으로 나뉘며, 유용한 아이디어가 필요한 경우와 사실성이 우선인 경우를 구분해야 한다고 설명합니다.

![Figure 1: Example of di fferent types of hallucinations occurring in the same output (Zhang et al., 2023)](https://refivu.com/papers/bfd02873-c02f-410b-8245-d4b6a31c8a37/figures/figure-751c8cc8bb21a05d186eab0e0fe2c8bb.png?thumb=512)

**Figure 1** : Example of di fferent types of hallucinations occurring in the same output (Zhang et al., 2023).

[원문](https://arxiv.org/abs/2411.14258v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ernests Lavrinovics, Russa Biswas, Johannes Bjerva, Katja Hose · Knowledge Graphs, Large Language Models, and Hallucinations: An NLP Perspective · 원문 그림 인용 · 원본 PDF 1쪽에서 그림 영역을 추출했습니다.

이 문제를 완화하는 한 방법으로 지식 그래프(KG)가 제시됩니다. KG는 엔터티, 관계, 속성으로 실세계 대상의 사실을 기계가 읽을 수 있는 형태로 담은 구조입니다. 모델을 처음부터 다시 학습하지 않고도 추론 시점이나 생성 후 단계에서 사실적 근거를 제공할 수 있다는 점에서, 지식이 빠르게 바뀌는 상황에 특히 중요하다고 논문은 봅니다.

## 지식 통합 단계별 분류와 설계 쟁점

이 논문은 KG를 활용한 환각 완화 방법을 pre-training, 추론, 생성 후(post-generation) 단계로 나누는 범주화를 제안합니다. pre-training 단계에서는 KG 트리플을 학습 파이프라인에 넣거나 어댑터 기반 모듈로 지식을 주입합니다. 이 방식은 지식이 모델 파라미터에 정적으로 인코딩된다는 특성이 있습니다.

추론 단계에서는 지식 조각을 프롬프트에 덧붙이는 방식이 가장 단순합니다. 원문은 이 방식이 프롬프트 문구, 근거의 품질, 고정된 문맥 창 길이, 모델이 프롬프트를 얼마나 쓰는지에 대한 통제 부족에 영향을 받는다고 설명합니다. 이를 보완하기 위해 프롬프트 내 지식을 우선하도록 학습 가능한 파라미터를 쓰는 context-aware decoding이 소개되며, 이 방법은 추론을 두 번 수행하므로 계산 비용이 두 배가 된다고 원문에서 지적됩니다.

생성 후 단계에서는 LLM이 답을 생성한 뒤 외부 KG와 대조해 주장을 추출하고 검증한 뒤 출력을 수정합니다. 원문은 이 흐름의 다섯 단계가 모두 LLM에 의존한다는 점을 함께 지적합니다.

## 환각 평가 자원과 데이터셋의 한계

환각 탐지와 평가를 위한 벤치마크는 많지만, 원문은 대부분이 응답 수준 세분화에 머물러 있다고 봅니다. 이 때문에 문장 수준의 FELM이나 스팬 수준의 MuShroom-2025처럼 더 미세한 단위가 필요하다고 주장합니다. MuShroom-2025는 텍스트에서 환각이 나타난 정확한 구간을 찾는 스팬 수준 탐지 과제를 목표로 합니다.

원문은 Table 1의 대부분 데이터셋이 학습 분할을 제공하지 않는 벤치마크이므로, 환각 탐지기나 파라미터형 지식 통합 모델을 학습하는 데 바로 쓰기 어렵다고 보고합니다. 또한 대부분 영어로만 구성되고, 지식 서브그래프를 문맥으로 제공하는 데이터셋은 드물다는 점도 지적합니다. 다중 프롬프트 평가에 대해서는 DefAn이 질문마다 여러 패러프레이즈를 붙여 강건성을 확인할 수 있는 드문 자원으로 언급됩니다. 다만 원문은 DefAn의 패러프레이즈 수를 한 곳에서는 15개, 다른 곳에서는 10개로 서로 다르게 적고 있어 이 불일치를 함께 확인해야 합니다.

![Table 1: Overview of available resources for hallucination detection and evaluation. Task abbreviations: Machine Translation (MT), Paraphrase Generation (PG),…](https://refivu.com/papers/bfd02873-c02f-410b-8245-d4b6a31c8a37/figures/figure-fa8cc08cdc4d843ff65bff1131ec5cb9.png?thumb=512)

**Table 1** : Overview of available resources for hallucination detection and evaluation. Task abbreviations: Machine Translation (MT), Paraphrase Generation (PG), Definition Modeling (DM), Summarization (summ.), Question-Answering (QA), Information Retrieval (IR). \*HaluEval test split is based on the train split from datasets such as HotpotQA, CNN/DailyMail and OpenDialogueKG. All datasets are in English except MuShroom SemEval 2025 (language n=10).

[원문](https://arxiv.org/abs/2411.14258v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ernests Lavrinovics, Russa Biswas, Johannes Bjerva, Katja Hose · Knowledge Graphs, Large Language Models, and Hallucinations: An NLP Perspective · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

## 환각 탐지 방법과 평가 지표

환각 탐지 방법 가운데 GraphEval은 LLM 출력의 원자적 주장을 하위 그래프로 추출하고 각 트리플이 주어진 텍스트 문맥과 함추되는지 비교하는 두 단계 방법입니다. KGR은 주장 추출, 사실 선택, 검증 모듈로 탐지를 수행합니다. 원문은 이런 방법들이 LLM 프롬프팅에 의존하는 사실 선택 단계 때문에 신뢰성 문제가 생길 수 있다고 지적합니다.

평가 지표 측면에서 BERTScore와 BARTScore는 두 텍스트의 의미적 유사도를 측정하는 신경망 기반 지표입니다. 텍스트 함의(textual entailment) 모델도 가설이 전제를 함의하는지 모순되는지 분류하는 데 쓰일 수 있습니다. 그러나 원문은 이들이 가설 전체를 통째로 처리하여, 한 단어의 차이로 생기는 세부적 환각을 잘 포착하지 못한다고 봅니다.

FactScore는 LLM 출력을 원자적 사실(atomic facts)로 나눈 뒤 각 사실을 외부 지식과 비교하는 방법입니다. 원문은 이 방식이 Wikipedia 대신 KG 트리플과의 겹침으로 확장될 수 있다고 제안하며, 이는 저자들의 제안이고 이 논문이 실험으로 검증한 결과는 아닙니다.

## KG 활용의 가정과 열린 과제

원문은 KG가 유용하려면 KG 트리플이 사용자 질의와 관련하여 사실적으로 올바르다는 가정이 필요하다고 명시합니다. 이 가정이 성립하면 LLM이 사용한 트리플을 KG에 되짚어 출력의 출처를 교차 검증할 수 있습니다. 그러나 KG가 불완전하거나 누락된 경우에 대해서는 아직 열린 질문으로 남아 있습니다.

또한 pre-training 단계의 지식은 정적으로 인코딩되어 빠른 지식 갱신 요구를 해결하지 못합니다. 프롬프트 기반 방법은 문맥 창 길이와 프롬프트 설계에 제약을 받습니다. 원문은 이 결과들이 서로 다른 방법을 조합했을 때 어떻게 보완되는지는 불분명하다고 밝히며, 여러 방법을 함께 쓰는 효과를 조사하라고 제안합니다.

다국어 측면에서 원문은 다국어 KG가 저자원 언어에서 유용할 수 있으며, 일부 선행 연구에서 저자원 언어의 환각이 더 많이 발생한다는 관찰이 있었다고 소개합니다. 이는 선행 연구의 관찰이며, 이 논문이 측정한 결과가 아닙니다.

## 연구 방향과 제안

이 논문은 환각 완화를 위해 KG를 활용하는 방향을 세 가지 질문으로 정리합니다. 첫째는 세분화된 스팬 수준 탐지입니다. 둘째는 텍스트 프롬프트에서 벗어난 지식 통합 방법이며, 셋째는 다중 프롬프트, 다국어, 다과제 공간에서의 평가입니다. 원문은 이 세 방향을 개별 과제가 아니라 함께 다뤄야 할 틀로 제시합니다.

저자들은 이러한 과제를 해결하기 위해 시맨틱 웹과 NLP 커뮤니티의 협력이 필요하다고 주장합니다. 이는 저자들의 제안이며, 이 논문은 해당 협력을 실험으로 보이지는 않습니다.

## 논문 정보

- **저자**: Ernests Lavrinovics, Russa Biswas, Johannes Bjerva, Katja Hose
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2024년 11월 21일
- **등록일**: 2026년 11월 6일
- **수정일**: 2024년 11월 21일
- **버전**: v1
- **arXiv**: 2411.14258
- **분류**: cs.CL · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

Large Language Models (LLMs) have revolutionized Natural Language Processing (NLP) based applications including automated text generation, question answering, chatbots, and others. However, they face a significant challenge: hallucinations, where models produce plausible-sounding but factually incorrect responses. This undermines trust and limits the applicability of LLMs in different domains. Knowledge Graphs (KGs), on the other hand, provide a structured collection of interconnected facts represented as entities (nodes) and their relationships (edges). In recent research, KGs have been leveraged to provide context that can fill gaps in an LLM understanding of certain topics offering a promising approach to mitigate hallucinations in LLMs, enhancing their reliability and accuracy while benefiting from their wide applicability. Nonetheless, it is still a very active area of research with various unresolved open problems. In this paper, we discuss these open challenges covering state-of-the-art datasets and benchmarks as well as methods for knowledge integration and evaluating hallucinations. In our discussion, we consider the current use of KGs in LLM systems and identify future directions within each of these challenges.

## 원문 인용

Ernests Lavrinovics, Russa Biswas, Johannes Bjerva, Katja Hose (2024). Knowledge Graphs, Large Language Models, and Hallucinations: An NLP Perspective. arXiv:2411.14258v1. https://arxiv.org/abs/2411.14258v1

**BibTeX**

```
@misc{lavrinovics2024knowledge,
  title = {{Knowledge Graphs, Large Language Models, and Hallucinations: An NLP Perspective}},
  author = {Ernests Lavrinovics and Russa Biswas and Johannes Bjerva and Katja Hose},
  year = {2024},
  eprint = {2411.14258},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.14258v1}
}
```

## 이 논문의 용어

- [검색 증강 생성](https://refivu.com/terms/745578495b18-retrieval-augmented-generation)
- [F1](https://refivu.com/terms/a443de87a37a-f1)
- [대규모 언어 모델](https://refivu.com/terms/d06687a9ae3e-large-language-model)
- [BertScore](https://refivu.com/terms/73f4d496fe9c-bertscore)
- [FactScore](https://refivu.com/terms/d44b29e58fd2-factscore)
- [Retrieval Augmented Generation](https://refivu.com/terms/4edd1c3bb267-retrieval-augmented-generation)
- [context-aware decoding](https://refivu.com/terms/c56566d0bfa2-context-aware-decoding)
- [hallucinations](https://refivu.com/terms/d409eeeeb3c7-hallucinations)
- [textual entailment](https://refivu.com/terms/392412730294-textual-entailment)
- [BARTScore](https://refivu.com/terms/3b7e4ef9bbdf-bartscore)
- [FELM](https://refivu.com/terms/e63577626039-felm)
- [Knowledge Graphs](https://refivu.com/terms/82c4bc55f3fe-knowledge-graphs)

## 다른 논문 해설

- [Safety Guardrails for LLM-Enabled Robots](https://refivu.com/papers/c1fe3394-f384-4a56-aef5-471e70d0ad0d-safety-guardrails-for-llm-enabled-robots.md)
- [mGPT: Few-Shot Learners Go Multilingual](https://refivu.com/papers/deca13d8-8626-4e2a-b8d3-2fa10ef64b1e-mgpt-few-shot-learners-go-multilingual.md)
- [Prompting Is Programming: A Query Language for Large Language Models](https://refivu.com/papers/688fcde1-89d3-44fe-b9ec-673455f09c78-prompting-is-programming-a-query-language-for-large.md)
- [Generalization Bias in Large Language Model Summarization of Scientific Research](https://refivu.com/papers/a94eb4ad-1127-44b7-8b1e-bd54053679fe-generalization-bias-in-large-language-model-summarization-of.md)
- [LLM-Powered Socially Assistive Robot-Delivered Cognitive Behavioral Therapy Exercises: an Exploratory Study with University Students](https://refivu.com/papers/e9e39657-9f92-498e-87ac-ffbacfd946e7-llm-powered-socially-assistive-robot-delivered-cognitive.md)
- [InstructPatentGPT: Training patent language models to follow instructions with human feedback](https://refivu.com/papers/d15b102d-f922-4bcf-8c75-ef1ea1603b36-instructpatentgpt-training-patent-language-models-to-follow.md)
- [A survey on datasets for fairness-aware machine learning](https://refivu.com/papers/4f1a54fa-7a1e-43ea-87ef-e54be6347d15-a-survey-on-datasets-for-fairness-aware-machine.md)
- [Diffusion Models, Image Super-Resolution And Everything: A Survey](https://refivu.com/papers/f9e03671-b25a-4943-98bb-fd47725df9d3-diffusion-models-image-super-resolution-and-everything-a.md)
- [Shallow Unorganized Neural Networks using Smart Neuron Model for Visual Perception](https://refivu.com/papers/bd26fabd-d3aa-42e6-8617-a5eefb0f6c73-shallow-unorganized-neural-networks-using-smart-neuron-model.md)
- [Fast Kinodynamic Planning on the Constraint Manifold with Deep Neural Networks](https://refivu.com/papers/87c184f6-2f40-4f6d-b68b-1327a9de7a12-fast-kinodynamic-planning-on-the-constraint-manifold-with.md)
- [Supervised and Unsupervised Neural Approaches to Text Readability](https://refivu.com/papers/7764f6d1-00a1-4a0b-8bae-57a1b90a2a21-supervised-and-unsupervised-neural-approaches-to-text.md)
- [Cornell Potential: A Neural Network Approach](https://refivu.com/papers/9be2351e-7449-4124-971f-f95278cccfef-cornell-potential-a-neural-network-approach.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/bfd02873-c02f-410b-8245-d4b6a31c8a37-knowledge-graphs-large-language-models-and-hallucinations-an)
