Skip to main content
QUICK REVIEW

[논문 리뷰] Inference-Time Intervention: Eliciting Truthful Answers from a Language Model

Kenneth Li, Oam Patel|arXiv (Cornell University)|2023. 06. 06.
Topic ModelingComputer Science인용 수 39
한 줄 요약

ITI는 추론 중 희소한 진실 관련 주의 머리들에서 활성화를 선택적으로 이동시켜 TruthfulQA에서 진실성을 높이고, 유용성에 대한 대가와 추가 계산은 최소화합니다.

ABSTRACT

We introduce Inference-Time Intervention (ITI), a technique designed to enhance the "truthfulness" of large language models (LLMs). ITI operates by shifting model activations during inference, following a set of directions across a limited number of attention heads. This intervention significantly improves the performance of LLaMA models on the TruthfulQA benchmark. On an instruction-finetuned LLaMA called Alpaca, ITI improves its truthfulness from 32.5% to 65.1%. We identify a tradeoff between truthfulness and helpfulness and demonstrate how to balance it by tuning the intervention strength. ITI is minimally invasive and computationally inexpensive. Moreover, the technique is data efficient: while approaches like RLHF require extensive annotations, ITI locates truthful directions using only few hundred examples. Our findings suggest that LLMs may have an internal representation of the likelihood of something being true, even as they produce falsehoods on the surface.

연구 동기 및 목표

  • LLM이 출력에 표현되지 않는 잠재적 진실 표현을 포함하고 있는지 조사한다.
  • 전체 모델 미세조정 없이 진실한 출력을 이끌어내는 최소 침습적 방법을 개발한다.
  • TruthfulQA 및 관련 벤치마크에서 ITI 성능을 평가하고 유용성과의 트레이드오프를 분석한다.
  • 이 접근법의 데이터 효율성과 계산 오버헤드를 평가한다.
  • ITI를 다른 데이터세트 및 명령어-미세조정 모델로의 일반화 가능성을 탐구한다.

제안 방법

  • TruthfulQA에서 활성화와 진실성과 상관관계가 있는 희소한 주의 머리 세트를 식별한다.
  • 활성화 공간에서 진실한 방향(프로빙 방향)을 계산한다.
  • 추론 시 최상위 K개 머리의 활성화를 진실한 방향으로 이동시키는 개입을 강도 매개변수 alpha로 수행한다(x_{l+1}=x_{l}+ sum_h Q_l^h(Att_l^h(P_l^h x_l)) + alpha sigma_l^h theta_l^h).
  • 각 토큰 예측마다 자동회귀적으로 개입을 적용한다.
  • 진실성(true*정보 점수)과 다른 측면의 잠재적 저하(CE 및 KL으로 측정)를 균형 있게 조정하기 위해 K와 alpha를 튜닝한다.
  • ITI를 기본선(SFT, Few-shot prompting, IFT 변형) 및 다른 방향 전략(probe weight, mass mean shift, CCS)과 비교한다.
Figure 1 : Answers to the same question from LLaMA without (red) and with (blue) inference-time intervention. Gold standard answers are: “Scholars thought the Earth was round” and “I have no comment,” respectively. The first question reflects a common misconception; the second is an example of hallu
Figure 1 : Answers to the same question from LLaMA without (red) and with (blue) inference-time intervention. Gold standard answers are: “Scholars thought the Earth was round” and “I have no comment,” respectively. The first question reflects a common misconception; the second is an example of hallu

실험 결과

연구 질문

  • RQ1LLM 활성화에서 잠재적 진실 관련 방향을 식별하고 이를 활용하여 재훈련 없이도 진실한 출력을 개선할 수 있는가?
  • RQ2최소 침습적 추론 시 개입이 TruthfulQA 성능을 실질적으로 향상시키고, 모델 동작 및 효율성에 어떤 비용이 발생하는가?
  • RQ3ITI가 지시 학습된 모델 및 TruthfulQA를 넘어서는 다른 진실 관련 벤치마크에 어떻게 일반화되는가?
  • RQ4진실성과 유용성 사이의 최적 균형은 무엇이며, 하이퍼파라미터 K와 alpha가 이 트레이드오프에 어떤 영향을 미치는가?
  • RQ5진실 관련 방향이 희소하고 머리의 부분 집합에 국한되는가, 그리고 그 기하학적 구조는 어떤가?

주요 결과

  • ITI는 TruthfulQA에서 상당한 이득을 가져다준다(예: Alpaca는 32.5%에서 65.1% true*info로, Vicuna는 51.5%에서 74.0%로 증가).
  • 상위 진실 관련 머리의 희소 집합에 대한 개입이 효과적이며 최소 침습적이다.
  • Mass mean shift는 일반적으로 개입 벡터에 대해 다른 방향들(무작위 및 CCS 포함)보다 성능이 앞선다.
  • ITI는 전체 생성 분포를 보존하거나 미약하게 변화시키며(적절한 튜닝으로 CE 및 KL은 비교적 낮게 유지), 생성 품질의 저하를 최소화한다.
  • ITI는 TruthfulQA를 넘어서는 추가 벤치마크에서 일부 이점을 제공하며, Natural Questions 및 TriviaQA에서 작은 개선, MMLU에서 더 큰 개선을 보이는 등 부분적인 일반화를 시사한다.
  • 진실 방향은 수백 개의 라벨링 샘플로도 학습 가능해 보이며, 데이터 효율적인 프로빙으로 찾을 수 있다.
Figure 2 : (A) Linear probe accuracies on validation set for all heads in all layers in LLaMA-7B, sorted row-wise by accuracy. Darker blue represents higher accuracy. $50\%$ is the baseline accuracy from random guessing. (B) Kernel density estimate plot of activations of truthful (blue) and false (o
Figure 2 : (A) Linear probe accuracies on validation set for all heads in all layers in LLaMA-7B, sorted row-wise by accuracy. Darker blue represents higher accuracy. $50\%$ is the baseline accuracy from random guessing. (B) Kernel density estimate plot of activations of truthful (blue) and false (o

이 논문 읽기

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

누빈트에서 이 논문 읽기

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