Skip to main content
QUICK REVIEW

[논문 리뷰] Citation-Enhanced Generation for LLM-based Chatbots

Weitao Li, Junkai Li|arXiv (Cornell University)|2024. 02. 25.
Topic ModelingComputer Science인용 수 3
한 줄 요약

이 논문은 LLM 기반 챗봇의 환각 현상을 줄이기 위해 지원 문서를 검색하고 자연어 추론(NLI)을 사용해 인용을 생성하는 훈련 없이 후행적으로 적용 가능한 프레임워크인 Citation-Enhanced Generation(CEG)을 제안한다. 문장에 인용이 부족한 경우 재생성함으로써, 모델 미세조정이나 데이터 주석 처리 없이도 세 가지 환각성 벤치마크에서 최신 기술 수준의 성능을 달성한다.

ABSTRACT

Large language models (LLMs) exhibit powerful general intelligence across diverse scenarios, including their integration into chatbots. However, a vital challenge of LLM-based chatbots is that they may produce hallucinated content in responses, which significantly limits their applicability. Various efforts have been made to alleviate hallucination, such as retrieval augmented generation and reinforcement learning with human feedback, but most of them require additional training and data annotation. In this paper, we propose a novel post-hoc Citation-Enhanced Generation (CEG) approach combined with retrieval argumentation. Unlike previous studies that focus on preventing hallucinations during generation, our method addresses this issue in a post-hoc way. It incorporates a retrieval module to search for supporting documents relevant to the generated content, and employs a natural language inference-based citation generation module. Once the statements in the generated content lack of reference, our model can regenerate responses until all statements are supported by citations. Note that our method is a training-free plug-and-play plugin that is capable of various LLMs. Experiments on various hallucination-related datasets show our framework outperforms state-of-the-art methods in both hallucination detection and response regeneration on three benchmarks. Our codes and dataset will be publicly available.

연구 동기 및 목표

  • 추가 훈련이나 데이터 주석 처리 없이 LLM 기반 챗봇의 환각 현상을 해결하는 것.
  • 다양한 사전 훈련된 LLM과 호환되는 유연하고 즉시 사용 가능한 솔루션을 개발하는 것.
  • 지원되지 않는 진술을 탐지하고 인용을 포함한 응답을 재생성함으로써 사실 일관성을 향상시키는 것.
  • 검색 및 NLI 모듈이 후행적 검증 파이프라인에서 얼마나 효과적인지 평가하는 것.

제안 방법

  • 후행적 검색 모듈은 밀도 기반 검색 모델(예: SimCSE-BERT)을 사용해 생성된 콘텐츠를 뒷받침하는 관련 문서를 검색한다.
  • NLI 기반의 인용 생성 모듈은 LLM의 출력에 포함된 진술이 검색된 문서에 의해 뒷받침되는지 확인한다.
  • 지원되지 않는 진술이 감지되면 모델이 인용 피드백을 사용해 LLM에게 응답을 재생성하도록 프롬프트한다.
  • 이 프레임워크는 모델 미세조정이나 아키텍처 변경 없이도 플러그인 방식으로 작동한다.
  • 효율성과 효과성의 균형을 위해 최상위-k개의 검색된 문서(k ≈ 5–6)를 사용한다.
  • GPT-4와 GPT-3.5-Turbo-Instruct와 같은 NLI 모델을 사용해 진술과 검색된 증거 사이의 함의 관계를 평가한다.
Figure 1: An illustration of our method, which adds citations for the generated content. If there are hallucinations in the generated content, we prompt LLM to regenerate a new response.
Figure 1: An illustration of our method, which adds citations for the generated content. If there are hallucinations in the generated content, we prompt LLM to regenerate a new response.

실험 결과

연구 질문

  • RQ1재훈련이 필요 없이 후행적으로 적용 가능한 인용 생성 프레임워크가 LLM 기반 챗봇의 환각 현상을 효과적으로 줄일 수 있는가?
  • RQ2증거 보강된 NLI는 LLM 생성 응답의 지원되지 않는 진술을 얼마나 잘 식별하는가?
  • RQ3성능과 효율성의 균형을 고려할 때 최적의 검색 문서 수(k)는 얼마인가?
  • RQ4다양한 LLM이 인용 검증에서 어떤 성능을 보이는가?
  • RQ5이 프레임워크는 다양한 LLM과 벤치마크에 일반적으로 적용될 수 있는가?

주요 결과

  • CEG 프레임워크는 세 가지 환각성 관련 벤치마크에서 최신 기술 수준의 성능을 달성했으며, 기존 방법보다 환각성 탐지 및 응답 재생성 측면에서 뛰어난 성능을 보였다.
  • 검색기로 SimCSE-BERT를 사용한 결과, WikiRetr 데이터셋에서 상위 10개 문서 기준으로 76.8%의 검색 정확도를 달성했다.
  • GPT-4와 GPT-3.5-Turbo-Instruct는 각각 인간 주석자와 96% 및 91%의 일치율을 보이며 인용 검증에서 높은 일致성을 보였다.
  • 최적의 k 값은 약 5–6으로 확인되었으며, 이는 높은 k 값일수록 주의 분산과 낮은 관련성으로 인해 성능이 떨어지기 때문이다.
  • 인용 생성 모듈은 WikiRetr-GPT3 데이터셋에서 78.2%의 정밀도, WikiRetr-GPT4 데이터셋에서 75.7%의 정밀도를 기록해 높은 수준의 진술-증거 일치를 보였다.
  • 모델 미세조정이나 추가 데이터 주석 처리 없이도 다양한 LLM에서 뛰어난 강건성을 보였다.
Figure 2: An overview of our CEG framework. [R1] and [R2] denote segments. [D1] and [D2] represent retrieved documents for each segment. [L1] and [L2] are labels (Factual/Nonfactual) generated by the NLI module.
Figure 2: An overview of our CEG framework. [R1] and [R2] denote segments. [D1] and [D2] represent retrieved documents for each segment. [L1] and [L2] are labels (Factual/Nonfactual) generated by the NLI module.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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