Skip to main content
QUICK REVIEW

[논문 리뷰] Enhancing LLM Factual Accuracy with RAG to Counter Hallucinations: A Case Study on Domain-Specific Queries in Private Knowledge-Bases

Jiarui Li, Ye Yuan|arXiv (Cornell University)|2024. 03. 15.
Machine Learning in HealthcareComputer Science인용 수 19
한 줄 요약

이 논문은 CMU/LTI 비공개 지식 기반을 사용하여 도메인 특정 질의에 대한 사실 정확성을 향상시키기 위한 엔드-투-엔드 RAG 기반 QA 시스템을 제시하며, 임베딩 및 코어 모델 미세조정이 성능에 도움이 되는지 또는 해를 끼치는지에 대한 제거 실험(ablation)을 보여준다.

ABSTRACT

We proposed an end-to-end system design towards utilizing Retrieval Augmented Generation (RAG) to improve the factual accuracy of Large Language Models (LLMs) for domain-specific and time-sensitive queries related to private knowledge-bases. Our system integrates RAG pipeline with upstream datasets processing and downstream performance evaluation. Addressing the challenge of LLM hallucinations, we finetune models with a curated dataset which originates from CMU's extensive resources and annotated with the teacher model. Our experiments demonstrate the system's effectiveness in generating more accurate answers to domain-specific and time-sensitive inquiries. The results also revealed the limitations of fine-tuning LLMs with small-scale and skewed datasets. This research highlights the potential of RAG systems in augmenting LLMs with external datasets for improved performance in knowledge-intensive tasks. Our code and models are available on Github.

연구 동기 및 목표

  • 도메인 특정 및 시간 민감한 질의에 대해 외부 데이터 소스를 활용하여 LLM의 환각을 줄이고자 한다.
  • RAG 기반 QA를 지원하기 위해 CMU/LTI 중심의 전문 데이터 세트와 평가 프레임워크를 생성한다.
  • 사실적이고 맥락을 고려한 답변을 위한 검색과 생성을 결합한 RAG 파이프라인을 개발하고 평가한다.
  • 임베딩 및 코어 모델 미세조정이 시스템 성능에 미치는 영향과 작고 편향된 데이터 세트의 한계를 조사한다.

제안 방법

  • Core generator로 LLaMA-2를 사용하여 Context Retriever와 Generative Model을 갖춘 RAG QA 파이프라인을 구축한다.
  • 웹 크롤러, 전처리, 자동 주석 생성을 통해 CMU/LTI 중심 데이터 세트를 큐레이션하여 QA 쌍을 생성한다.
  • 두 단계 검색을 사용한다: 상위 5개 청크를 먼저, 그다음 교차 인코더 재랭커로 재랭킹한다.
  • QA 데이터 세트에서 임베딩 및 코어 모델을 미세조정한다; Recall, F1, 코사인 유사도, BLEU 지표로 평가한다.
  • 각 구성요소의 영향을 평가하기 위해 제거 연구(ablation)와 사례 연구로 시스템을 평가한다.
Figure 1: Overview of our system design. The process begins with a Web Crawler , which consists of a Recursive Crawler and a Filter to gather raw data. This raw data is sanitized and stored in an S3 storage bucket. The Dataset Generator relies on an Annotation Model to prompt annotations and filter
Figure 1: Overview of our system design. The process begins with a Web Crawler , which consists of a Recursive Crawler and a Filter to gather raw data. This raw data is sanitized and stored in an S3 storage bucket. The Dataset Generator relies on an Annotation Model to prompt annotations and filter

실험 결과

연구 질문

  • RQ1외부 CMU/LTI 맥락을 검색하는 것이 도메인 특정 질문에 대한 LLM 생성 답변의 사실 정확성을 향상시키는가?
  • RQ2임베딩 모델 미세조정과 코어 모델 미세조정이 RAG 설정에서 검색 품질과 답변 생성을 어떻게 영향을 미치는가?
  • RQ3제안된 엔드-투-엔드 RAG 시스템이 시간 민감 도메인 질의에서 어떤 성능 향상과 한계를 보이는가?
  • RQ4훈련/미세조정을 위한 데이터 세트의 신뢰도를 나타내는 품질 지표(IAA/Cohen’s Kappa)는 무엇인가?

주요 결과

  • RAG 기반 QA 파이프라인은 RAG 없이 베이스라인보다 Recall과 F1 점수를 향상시킨다.
  • 임베딩 모델 미세조정은 Recall과 F1에서 향상을 가져와 더 나은 의미적 이해를 나타낸다.
  • 코어 모델 미세조정은 Recall 이득을 제공하지만 데이터 세트의 크기나 편향으로 인해 F1이 감소할 수 있어 과적합 또는 생성 이슈를 시사한다.
  • 임베딩과 코어 모델 미세조정을 RAG와 결합하면 임베딩 단독에 비해 추가 이점이 미미하거나 F1이 감소하는 경향이 있어 작은 편향된 데이터 세트의 트레이드오프를 강조한다.
  • 이 데이터 세트는 상당한 주석자 일치를 달성했다(Cohen’s Kappa = 0.67).
Figure 2: Hierarchical knowledge base file system keeps the structural information of the relation between original files, enrich the semantic providing to the retriever.
Figure 2: Hierarchical knowledge base file system keeps the structural information of the relation between original files, enrich the semantic providing to the retriever.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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