[논문 리뷰] A Stitch in Time Saves Nine: Detecting and Mitigating Hallucinations of LLMs by Validating Low-Confidence Generation
본 논문은 retrieval 기반 지식으로 불확실한 개념을 검증하고 출력을 보정하여 LLM 생성 중에 발생하는 환각을 탐지하고 완화하기 위한 활발하고 두 단계의 접근법을 제시하며, GPT-3.5에서 환각을 47.5%에서 14.5%로 감소시킨다.
Recently developed large language models have achieved remarkable success in generating fluent and coherent text. However, these models often tend to 'hallucinate' which critically hampers their reliability. In this work, we address this crucial problem and propose an approach that actively detects and mitigates hallucinations during the generation process. Specifically, we first identify the candidates of potential hallucination leveraging the model's logit output values, check their correctness through a validation procedure, mitigate the detected hallucinations, and then continue with the generation process. Through extensive experiments with GPT-3.5 (text-davinci-003) on the 'article generation task', we first demonstrate the individual efficacy of our detection and mitigation techniques. Specifically, the detection technique achieves a recall of ~88% and the mitigation technique successfully mitigates 57.6% of the correctly detected hallucinations. Importantly, our mitigation technique does not introduce new hallucinations even in the case of incorrectly detected hallucinations, i.e., false positives. Then, we show that the proposed active detection and mitigation approach successfully reduces the hallucinations of the GPT-3.5 model from 47.5% to 14.5% on average. We further demonstrate the effectiveness and wide applicability of our approach through additional studies including performance on different types of questions (multi-hop and false premise questions) and with another LLM from a different model family (Vicuna). In summary, our work contributes to improving the reliability and trustworthiness of large language models, a crucial step en route to enabling their widespread adoption in real-world applications.
연구 동기 및 목표
- 대형 언어 모델의 생성 중 환각을 해결하여 신뢰성과 신뢰도를 향상시키고자 한다.
- 생성 단위에서 문장별로 작동하는 활성적이고 반복적인 탐지 및 완화 프레임워크를 개발하여 오차 전파를 억제한다.
- 모델 로그잇을 활용해 불확실한 개념을 식별하고, 검색된 지식으로 이를 검증하며, 근거를 이용해 환각을 보완한다.
제안 방법
- 각 생성 문장에서 명령형 프롬프트를 이용해 핵심 개념을 식별하거나 엔티티/키워드 추출로 식별한다.
- 각 개념마다 토큰 확률 중 최저값을 이용해 토큰 로그잇에서 개념 수준의 불확실성을 계산한다.
- 불확실한 개념에 대해 예/아니오 검증 질문을 만들고 웹 검색(또는 대안으로 자기 탐구)을 통해 관련 지식을 검색한다.
- 검색된 지식을 이용해 검증 질문에 답하고 생성된 문장과 정확성을 대조한다; 어떤 개념이 실패하면 근거를 사용해 환각 내용을 제거/대체하여 완화한다.
- 검색된 지식으로 문장을 보완하고 필요 시 근거를 앞에 덧붙여 다음 문장 생성을 안내하는 방식으로 보완한다.
- 주제별로 GPT-3.5(text-davinci-003)에서 활성 탐지 및 완화를 평가하고 Vicuna 및 다중 히프/오류전제 질문에서 일반화를 테스트한다.
실험 결과
연구 질문
- RQ1로그잇 기반 불확실성 신호가 개념 수준의 환각을 탐지할 수 있는가?
- RQ2생성 중 활성 탐지 및 완화가 환각을 줄이고 이후 문장으로의 전파를 방지하는가?
- RQ3이 접근 방식이 서로 다른 LLM 패밀리(예: GPT-3.5, Vicuna)와 작업 유형(단일 홉, 다중 홉, 거짓 전제 질문)에서 어떻게 성능을 보이는가?
- RQ4완화가 위양성 및 전체 출력 품질에 미치는 영향은 무엇인가?
주요 결과
- 탐지 재현율은 잠재적 환각을 식별하는 데 약 88%에 도달한다.
- 완화는 정확하게 탐지된 환각의 57.6%를 해결하는 데 성공하는 한편, 비환각 사례에서 환각을 3.06%만 도입한다.
- 활성 접근 방식은 GPT-3.5 출력의 환각을 평균적으로 47.5%에서 14.5%로 감소시킨다.
- 방법은 모델 패밀리(GPT-3.5 및 Vicuna) 및 작업 유형(단일 홉, 다중 홉, 거짓 전제)에서도 효과적이다.
- 탐지가 위양성을 낳더라도 완화가 새로운 환각을 도입하지 않는다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.