Skip to main content
QUICK REVIEW

[논문 리뷰] How Context Shapes Truth: Geometric Transformations of Statement-level Truth Representations in LLMs

Shivam Adarsh, Maria Maistro|arXiv (Cornell University)|2026. 01. 10.
Topic ModelingComputer Science인용 수 0
한 줄 요약

본 논문은 맥락이 LLM 활성화에서 진실 표현을 어떻게 재구성하는지 네 모델과 네 데이터셋에 걸친 진실 벡터의 방향 변화와 크기 변화를 측정하여 특성, 세 단계 패턴 및 맥락 유형 효과를 드러낸다.

ABSTRACT

Large Language Models (LLMs) often encode whether a statement is true as a vector in their residual stream activations. These vectors, also known as truth vectors, have been studied in prior work, however how they change when context is introduced remains unexplored. We study this question by measuring (1) the directional change ($θ$) between the truth vectors with and without context and (2) the relative magnitude of the truth vectors upon adding context. Across four LLMs and four datasets, we find that (1) truth vectors are roughly orthogonal in early layers, converge in middle layers, and may stabilize or continue increasing in later layers; (2) adding context generally increases the truth vector magnitude, i.e., the separation between true and false representations in the activation space is amplified; (3) larger models distinguish relevant from irrelevant context mainly through directional change ($θ$), while smaller models show this distinction through magnitude differences. We also find that context conflicting with parametric knowledge produces larger geometric changes than parametrically aligned context. To the best of our knowledge, this is the first work that provides a geometric characterization of how context transforms the truth vector in the activation space of LLMs.

연구 동기 및 목표

  • 맥락이 LLM 잔류 스트림에서 문장 수준 진실 표현(truth vectors)의 기하학적 구조를 바꾸는지 조사합니다.
  • 맥락이 추가될 때 방향 변화(angle theta)와 크기 변화의 크기를 정량화합니다.
  • 맥락 유형(관련 vs 무작위) 및 모델 규모가 이 기하학적 변환에 어떤 영향을 미치는지 검토합니다.
  • 다양한 데이터세트와 네 가지 지시 학습된 LLM에서 이러한 패턴의 일관성을 평가합니다.

제안 방법

  • 각 층마다 최초 생성 토큰에서 참/거짓 잔류 스트림 활성의 차이를 진실 벡터로 정의합니다.
  • 층별로 맥락 자유 진실 벡터와 맥락 풍부 진실 벡터 간의 방향 변화(theta)를 계산합니다.
  • 층별로 맥락 풍부 벡터의 제곱 노름과 맥락 자유 벡터의 제곱 노름의 비로 상대적 크기를 계산합니다.
  • 4개 모델(3B–12B)을 4개의 데이터세트에서 분석하고, 네 가지 프롬프트와 제어된 맥락 변화를 사용합니다.
  • 관련 맥락과 무작위 또는 일관성 없는 맥락을 비교하여 민감도를 평가합니다.
  • 관찰된 차이의 통계적 유의성을 평가하기 위해 비모수 Wilcoxon 검정을 사용합니다.
Figure 1: Overview of our approach (1) For a statement $k$ , we generate 4 inputs by varying the [Selected Choice] and presence of context. The LLM is instructed to generate the completion based on the [Selected Choice]. (2) We extract the residual stream activations for generating the first token a
Figure 1: Overview of our approach (1) For a statement $k$ , we generate 4 inputs by varying the [Selected Choice] and presence of context. The LLM is instructed to generate the completion based on the [Selected Choice]. (2) We extract the residual stream activations for generating the first token a

실험 결과

연구 질문

  • RQ1맥락을 추가하는 것이 층별로 LLM 활성화의 문장 수준 진실 벡터의 방향을 어떻게 바꾸나요?
  • RQ2맥락이 참과 거짓 진술 간 진실 벡터 분리의 크기에 어떻게 영향을 미치나요?
  • RQ3더 큰 모델은 방향 변화에 더 의존하고, 더 작은 모델은 크기 변화에 더 의존하여 관련 맥락을 구별하나요?
  • RQ4파라메트릭 지식과 일치하는 맥락이 파라메트릭 지식과 충돌하는 맥락과 기하학적 영향이 다르나요?
  • RQ5다양한 데이터세트와 맥락 유형(관련 vs 무작위)에서 맥락 효과가 일관되나요?

주요 결과

  • 진실 벡터는 세 단계의 방향 변화 패턴을 보이며: 초기 층에서 거의 직교에 가까워지고, 중간 층에서 수렴하며, 이후 층에서 안정화되거나 증가합니다.
  • 맥락 추가는 일반적으로 진실 벡터의 크기를 증가시켜 활성화 공간에서 참-거짓 표현 간 구분을 강화합니다.
  • 더 큰 모델은 주로 방향 변화를 사용해 관련 맥락과 무관한 맥락을 구분하고, 더 작은 모델은 크기 차이에 더 의존합니다.
  • 파라메트릭 지식과 충돌하는 맥락은 파라메트릭 지식과 일치하는 맥락보다 더 큰 기하학적 변화를 유도합니다.
  • 관련 맥락은 대부분의 모델-데이터셋 쌍에서 무작위 맥락보다 더 큰 방향성 또는 크기 변화를 유발합니다.
(a)
(a)

이 논문 읽기

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

누빈트에서 이 논문 읽기

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