Skip to main content
QUICK REVIEW

[논문 리뷰] Distinguishing the Knowable from the Unknowable with Language Models

Gustaf Ahdritz, Tian Qin|arXiv (Cornell University)|2024. 02. 05.
Explainable Artificial Intelligence (XAI)Computer Science인용 수 3
한 줄 요약

이 논문은 대규모 언어 모델(Large Language Model, LLM) 출력에서 지식 기반의 확률적 불확실성(epistemic uncertainty)과 본질적 난수성의 불확실성(aleatoric uncertainty)을 구분하기 위해 더 큰 모델을 진정한 지표로 사용하는 방법을 제안한다. 보조 모델을 활용한 지도 학습 선형 프로브와 비지도 학습 기반의 인-컨텍스트 학습 테스트(In-Context Learning Test, ICLT)를 도입하여 모델 활성화 값을 기반으로 불확실성 유형을 분류함으로써, 다양한 도메인에서 비미미한 정확도와 일반화 성능을 달성하였으며, LLM이 구분 가능한 불확실성 표현을 내재적으로 포함하고 있음을 입증한다.

ABSTRACT

We study the feasibility of identifying epistemic uncertainty (reflecting a lack of knowledge), as opposed to aleatoric uncertainty (reflecting entropy in the underlying distribution), in the outputs of large language models (LLMs) over free-form text. In the absence of ground-truth probabilities, we explore a setting where, in order to (approximately) disentangle a given LLM's uncertainty, a significantly larger model stands in as a proxy for the ground truth. We show that small linear probes trained on the embeddings of frozen, pretrained models accurately predict when larger models will be more confident at the token level and that probes trained on one text domain generalize to others. Going further, we propose a fully unsupervised method that achieves non-trivial accuracy on the same task. Taken together, we interpret these results as evidence that LLMs naturally contain internal representations of different types of uncertainty that could potentially be leveraged to devise more informative indicators of model confidence in diverse practical settings.

연구 동기 및 목표

  • 자유형 LLM 출력에서 지식 부족에 기인한 지식 기반 불확실성(epistemic uncertainty)과 분포의 본질적 엔트로피에 기인한 본질적 불확실성(aleatoric uncertainty)을 구분하는 데 도전하는 것.
  • 특히 비정형 텍스트에서 모델 불확실성이 무지에서 비롯되는지, 본질적 난수성에서 비롯되는지 식별하기 위한 실용적인 프레임워크를 개발하는 것.
  • 생성 과정에서 지식 기반 불확실성을 탐지함으로써 모델 신뢰도 추정 향상과 환각 현상 완화를 가능하게 하는 것.
  • LLM이 다양한 불확실성 유형에 대해 분리 가능한 표현을 내재적으로 포함하고 있는지 탐색함으로써, 프로브나 자기지도 학습 방법을 통해 탐지가 가능한지 확인하는 것.

제안 방법

  • 더 큰, 더 능력 있는 LLM을 진정한 기저 분포의 대리자로 사용하여 소형 타겟 모델의 불확실성 유형을 레이블링하는 방법.
  • 고정된 사전학습된 모델 활성화 값을 기반으로 선형 및 비선형 프로브를 훈련하여, 더 큰 모델의 신뢰도에 기반해 소형 모델의 불확실성이 지식 기반인지 본질적 난수성인지 예측하는 방법.
  • 레이블 없이도 불확실성 유형을 추론할 수 있도록, 반복된 프롬프트와 후보 토큰을 사용해 모델 행동을 평가하는 비지도 학습 기반의 인-컨텍스트 학습 테스트(In-Context Learning Test, ICLT)를 제안하는 것.
  • 다중 인-컨텍스트 순환 추론에서의 최소 엔트로피를 더 큰 모델의 불확실성의 대리자로 사용하여 소형 모델의 불확실성 유형을 분류하는 방법.
  • 다양한 텍스트 도메인에 걸쳐 방법을 적용하고, 프로브의 일반화 능력과 분포 이탈에 대한 강건성을 평가하는 것.
  • 더 큰 모델이 지식 기반 불확실성을 감소시킬 수 있다는 가정을 정당화하기 위해 척도 법칙(scaling laws)을 활용하여 레이블링 체계의 기초를 마련하는 것.
Figure 1: Simplified overview of our classification task and the supervised method. Left: The supervised uncertainty classification task. A dataset of labeled prompts is created by running a large LLM on existing text and thresholding its predictive entropy near zero. Right: We train probes on activ
Figure 1: Simplified overview of our classification task and the supervised method. Left: The supervised uncertainty classification task. A dataset of labeled prompts is created by running a large LLM on existing text and thresholding its predictive entropy near zero. Right: We train probes on activ

실험 결과

연구 질문

  • RQ1더 큰 모델을 진정한 지표로 사용할 때, 자유형 LLM 출력에서 지식 기반 불확실성과 본질적 불확실성을 분리할 수 있는가?
  • RQ2고정된 모델 활성화 값에 기반한 소형 선형 프로브가 다양한 텍스트 도메인에서 불확실성 유형을 정확하게 예측할 수 있는가?
  • RQ3레이블이 없는 조건에서 ICLT와 같은 비지도 방법이 지식 기반 불확실성을 비미미한 성능으로 식별할 수 있는가?
  • RQ4LLM이 지식 기반 불확실성과 본질적 불확실성의 구분 가능한 내부 표현을 내재적으로 포함하고 있으며, 이를 효과적으로 탐지할 수 있는가?
  • RQ5불확실성 분류가 환각 현상 탐지 및 모델 신뢰도 추정 향상에 얼마나 기여할 수 있는가?

주요 결과

  • 고정된 모델 임bedding에 기반한 소형 선형 프로브는 더 큰 모델을 대리자로 사용하여 소형 모델의 불확실성이 지식 기반인지 본질적 난수성인지 예측하는 데 높은 정확도를 달성한다.
  • 한 도메인에서 훈련된 프로브가 다른 도메인으로도 효과적으로 일반화되며, 강건하고 이식 가능한 불확실성 표현을 나타낸다.
  • 비지도 인-컨텍스트 학습 테스트(ICLT)는 레이블이 없이도 지식 기반 불확실성을 비미미한 정확도로 식별할 수 있다.
  • 결과는 LLM이 지식 기반 불확실성과 본질적 불확실성을 분리 가능한 내부 표현으로 내재적으로 포함하고 있으며, 이를 신뢰도 추정에 활용할 수 있음을 시사한다.
  • 주로 지식 기반 불확실성으로 분류되는 고위험 환각 유발 토큰을 식별함으로써 생성 과정에서의 간섭 가능성을 제공한다.
  • 이 프레임워크는 불확실성 인식 생성 및 미세조정을 통해 LLM 출력의 진실성 향상에 기초를 마련한다.
Figure 3: High-level classification results for our supervised and unsupervised methods. ROC curves for linear probes trained with the model pairing LLaMA 7B / LLaMA 65B, evaluated both in ( left ) and out ( middle ) of the distribution of the probes’ Wikipedia training data. All classifier probes a
Figure 3: High-level classification results for our supervised and unsupervised methods. ROC curves for linear probes trained with the model pairing LLaMA 7B / LLaMA 65B, evaluated both in ( left ) and out ( middle ) of the distribution of the probes’ Wikipedia training data. All classifier probes a

이 논문 읽기

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

누빈트에서 이 논문 읽기

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