Skip to main content
QUICK REVIEW

[논문 리뷰] Probing LLM Hallucination from Within: Perturbation-Driven Approach via Internal Knowledge

Seongmin Lee, Hsiang Hsu|arXiv (Cornell University)|2024. 11. 14.
Cryptography and Residue ArithmeticComputer Science인용 수 3
한 줄 요약

이 논문은 내부 지식을 기반으로 LLM 생성 텍스트를 일치, 비일치, 또는 위조된 유형으로 분류하는 새로운 제로샷 환각 추론 작업을 소개한다. 제안된 MKT 방법은 LLM이 충분한 내부 지식을 보유하고 있는지 점검함으로써 환각을 탐지하며, SelfCheckGPT와 같은 기존 방법과 조합할 경우 특히 위조 환각에 대해 탐지 정확도가 크게 향상된다.

ABSTRACT

LLM hallucination, where unfaithful text is generated, presents a critical challenge for LLMs' practical applications. Current detection methods often resort to external knowledge, LLM fine-tuning, or supervised training with large hallucination-labeled datasets. Moreover, these approaches do not distinguish between different types of hallucinations, which is crucial for enhancing detection performance. To address such limitations, we introduce hallucination probing, a new task that classifies LLM-generated text into three categories: aligned, misaligned, and fabricated. Driven by our novel discovery that perturbing key entities in prompts affects LLM's generation of these three types of text differently, we propose SHINE, a novel hallucination probing method that does not require external knowledge, supervised training, or LLM fine-tuning. SHINE is effective in hallucination probing across three modern LLMs, and achieves state-of-the-art performance in hallucination detection, outperforming seven competing methods across four datasets and four LLMs, underscoring the importance of probing for accurate detection.

연구 동기 및 목표

  • 기존 탐지 방법에서 환각 유형 간 구분이 부족한 문제를 해결하기 위해.
  • 외부 지식이나 파라미터 미세조정 없이도 원천 없이 제로샷으로 환각 원인을 식별할 수 있는 방법을 개발하기 위해.
  • 내부 지식 가용성에 기반해 환각을 일치, 비일치, 위조 유형으로 분류함으로써 환각 탐지 성능을 향상시키기 위해.
  • 지식 격차와 생성의 무작위성 간을 구분함으로써 더 정확한 탐지 및 잠재적 해결 전략을 가능하게 하기 위해.
  • 향후 연구를 지원하는 새로운 벤치마크 데이터셋을 구축하기 위해.

제안 방법

  • LLM 출력을 세 가지 유형으로 분류하는 새로운 작업인 환각 추론을 제안한다: 일치(정확하고 알려진), 비일치(무작위이거나 문맥 의존적), 위조(지식 부족).
  • LLM이 주어진 프롬프트에 대해 충분한 내부 지식를 보유하고 있는지 분석함으로써 활성화 패턴이나 주의 메커니즘을 분석함으로써 지식 탐지(MKT)를 도입한다.
  • 이중 단계 탐지 파이프라인을 사용한다: 첫 번째로, MKT는 지식 부족을 탐지하여 위조 콘텐츠를 걸러낸다; 두 번째로, 일치 테스트(예: SelfCheckGPT)는 남은 출력을 일치 또는 비일치로 분류한다.
  • 외부 감독이나 레이블이 없는 데이터 없이 프롬프팅을 통한 LLM 자체 평가를 활용해 일관성과 정확도를 평가한다.
  • MKT 점수에 임계값 기반 분류를 적용하여 알려진 상태와 알려지지 않은 상태를 구분한다.
  • SelfCheckGPT 및 Hallucination Score와 같은 기존 제로샷 탐지기와 조합하여 전체 탐지 성능을 향상시킨다.
Figure 1 : Given a pair of prompt and LLM-generated text, we propose a two-stage workflow for hallucination reasoning, consisting of the Model Knowledge Test (MKT) ( Sec. 3.1 ) and the Alignment Test ( Sec. 3.2 ). The MKT identifies whether the LLM has sufficient knowledge to generate the text by pe
Figure 1 : Given a pair of prompt and LLM-generated text, we propose a two-stage workflow for hallucination reasoning, consisting of the Model Knowledge Test (MKT) ( Sec. 3.1 ) and the Alignment Test ( Sec. 3.2 ). The MKT identifies whether the LLM has sufficient knowledge to generate the text by pe

실험 결과

연구 질문

  • RQ1외부 지식이나 미세조정 없이도 제로샷 방법이 위조(지식 격차)와 비일치(무작위성) 환각을 효과적으로 구분할 수 있는가?
  • RQ2내부 지식 탐지 기반으로 기존의 원천 없는 방법에 비해 위조 환각 탐지 성능이 어떻게 향상되는가?
  • RQ3원인에 따라 환각을 분류함으로써 후속 탐지 시스템의 성능 향상 정도는 어느 정도인가?
  • RQ4MKT를 SelfCheckGPT와 같은 일치 기반 탐지기의 사전 필터로 사용할 수 있는가?
  • RQ5생물의학적 및 생애기록 텍스트와 같은 다양한 도메인에 걸쳐 환각 추론 프레임워크의 일반화 능력은 어느 정도인가?

주요 결과

  • MKT는 NEC 데이터셋에서 위조 텍스트 탐지 정확도 76.82%를 기록했고, 생애기록 데이터셋에선 99.04%를 기록하며 기존 기준보다 뚜렷이 뛰어나다.
  • SelfCheckGPT와 조합했을 때, MKT + SelfCheckGPT 파이프라인은 NEC 데이터셋에서 전체 정확도 84.43%, 생애기록 데이터셋에선 94.64%를 달성했다.
  • SelfCheckGPT만으로는 위조 환각의 6.23%만 탐지할 수 있었지만, MKT를 사전 필터로 사용할 경우 이 비율이 77.85%로 상승했다.
  • Hallucination Score에 MKT를 통합하면 NEC 데이터셋에서 전체 정확도가 55.25%에서 74.05%로, 생애기록 데이터셋에선 53.93%에서 84.29%로 향상되었다.
  • 이 방법은 세 가지 환각 유형을 효과적으로 구분하며, NEC 데이터셋에서 비위조 데이터 포인트의 92.39%를 정확히 분류했다.
  • 결과적으로 환각 원인, 특히 지식 격차를 구분함으로써 탐지 성능 향상이 상당히 이루어지며, 이는 환각 추론의 중요성을 검증한다.
Figure 2 : CDF on the NEC and Biography datasets show that Model Knowledge Score distributions of fabricated text are significantly distinct from non-fabricated ones.
Figure 2 : CDF on the NEC and Biography datasets show that Model Knowledge Score distributions of fabricated text are significantly distinct from non-fabricated ones.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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