Skip to main content
QUICK REVIEW

[논문 리뷰] Grid-World Representations in Transformers Reflect Predictive Geometry

Sasha Brenner, Thomas R. Knösche|arXiv (Cornell University)|2026. 03. 17.
Neural Networks and ApplicationsComputer Science인용 수 0
한 줄 요약

논문은 제약된 2D 그리드-워커 시퀀스에서 디코더-전용 트랜스포머를 학습시키고, 그들의 내부 표현이 분석적으로 도출된 예측 벡터와 정렬됨을 보이며, 토이 시스템에서 next-token 예측으로부터 월드-모델 스타일의 기하가 등장한다는 것을 밝힌다.

ABSTRACT

Next-token predictors often appear to develop internal representations of the latent world and its rules. The probabilistic nature of these models suggests a deep connection between the structure of the world and the geometry of probability distributions. In order to understand this link more precisely, we use a minimal stochastic process as a controlled setting: constrained random walks on a two-dimensional lattice that must reach a fixed endpoint after a predetermined number of steps. Optimal prediction of this process solely depends on a sufficient vector determined by the walker's position relative to the target and the remaining time horizon; in other words, the probability distributions are parametrized by the world's geometry. We train decoder-only transformers on prefixes sampled from the exact distribution of these walks and compare their hidden activations to the analytically derived sufficient vectors. Across models and layers, the learned representations align strongly with the ground-truth predictive vectors and are often low-dimensional. This provides a concrete example in which world-model-like representations can be directly traced back to the predictive geometry of the data itself. Although demonstrated in a simplified toy system, the analysis suggests that geometric representations supporting optimal prediction may provide a useful lens for studying how neural networks internalize grammatical and other structural constraints.

연구 동기 및 목표

  • 다 controlled setting에서 next-token prediction이 내부 world-model–like 표현을 유도하는 방식을 조사한다.
  • 제약된 grid-walker 프로세스에 대한 분석적으로 해석 가능한 예측 벡터를 도출한다.
  • 레이어 간 트랜스포머 활성화와 ground-truth 예측 벡터 간의 정렬 정도를 평가한다.
  • 학습 표현의 차원성과 기하적 구조를 분석한다.
  • 신경망에서 문법과 세계-모델 해석에 대한 시사점을 논의한다.

제안 방법

  • 시간 범위가 고정된 엔드포인트를 포함하는 2D grid-walker 프로세스를 정의하여 분석적으로 다루기 쉬운 next-step 확률을 생성한다.
  • 다음 토큰 교차 엔트로피 손실로 이 walks의 정확한 분포에서 샘플링된 prefixes에 대해 decoder-only 트랜스포머를 학습한다.
  • ground-truth 2D 충분 예측 벡터 v_t를 계산하고 가중치가 있는 선형 탐침(probe)을 통해 트랜스포머 활성화를 이 벡터에 매핑한다.
  • 레이어별 affine 적합의 R^2 및 선형 중심 커널 정렬(lCKA)을 사용하여 정렬 정도를 평가한다.
  • 레이어 활성화에 대한 PCA를 통해 표현의 고유 차원을 분석한다.
  • 여섯 개의 grid-walker 구성(여섯 워커)과 세 개의 시간 수평선으로 학습된 여섯 개의 identical 트랜스포머를 사용하여 예측 기하를 탐구한다.
Figure 1: Transformer layer representations closely resemble the ground-truth predictive vectors of Equation 4 (as computed in Appendix A.3 ). The left column corresponds to the ground-truth principal components (PCs), and the right column shows the PCs of the last layer norm representation, after P
Figure 1: Transformer layer representations closely resemble the ground-truth predictive vectors of Equation 4 (as computed in Appendix A.3 ). The left column corresponds to the ground-truth principal components (PCs), and the right column shows the PCs of the last layer norm representation, after P

실험 결과

연구 질문

  • RQ1트랜스포머 활성화가 grid-walker 과업에서 분석적으로 도출된 충분 예측 벡터와 정렬되는가?
  • RQ2예측 기하가 트랜스포머 표현 내의 저차원 매니폴드에 내재되어 있는가?
  • RQ3레이어 깊이와 시간 수평선이 학습된 표현과 예측 벡터 간의 정렬에 어떤 영향을 미치는가?
  • RQ4예측-상태 기하가 시퀀스 모델링에서 문법과 같은 제약에 대한 직관을 제공할 수 있는가?

주요 결과

  • Transformer는 레이어 간 활성화와 ground-truth 예측 벡터 사이의 선형 정렬을 지속적으로 보이며, LayerNorm 활성화가 특히 강한 유사성을 보인다.
  • 학습된 표현은 종종 저차원 부분 공간에서 존재하며, 일부 경우 최종 표현에는 2차원이 충분하다.
  • 정렬 메트릭(R^2 및 lCKA)은 워커, 호라이즌, 레이어 유형에 따라 달라지며, 더 긴 호라이즌은 주어진 엔드포인트에 대해 일반적으로 유사성을 감소시키는 경향이 있다.
  • ground-truth 예측 벡터는 “월드 위치”를 남은 시간으로 나눈 값에 해당하며, 예측 학습에서 구체적인 월드-모델 기하가 나타난다는 것을 시사한다.
  • 여러 설정에서 Final LayerNorm 표현은 2차원 공간으로 수렴하는 반면, 초기 레이어는 차원이 다양하다.
  • grid-walker 예측 상태는 확률 단위구성에서 곡선형 2D 매니폴드를 형성하며, 예측 기하와 월드-모델 표현 간의 연계를 지지한다.
Figure 2: Linear similarity metrics between layer activations and ground-truth predictive vectors. (A) and (D): Both $R^{2}$ and $\rm{lCKA}$ are high and tend to increase with layer depth, with LayerNorms generally exhibiting stronger similarity. Moreover, walkers with longer time horizons $T$ have
Figure 2: Linear similarity metrics between layer activations and ground-truth predictive vectors. (A) and (D): Both $R^{2}$ and $\rm{lCKA}$ are high and tend to increase with layer depth, with LayerNorms generally exhibiting stronger similarity. Moreover, walkers with longer time horizons $T$ have

이 논문 읽기

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

누빈트에서 이 논문 읽기

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