PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
May 24, 20241 citationsOpen Access

Transformers represent belief state geometry in their residual stream

View Full Paper
ASAdam S. ShaiSMSarah MarzenLTLucas Breder Teixeira

Key Points

Key points are not available for this paper at this time.

Abstract

What computational structure are we building into large language models when we train them on next-token prediction? Here, we present evidence that this structure is given by the meta-dynamics of belief updating over hidden states of the data-generating process. Leveraging the theory of optimal prediction, we anticipate and then find that belief states are linearly represented in the residual stream of transformers, even in cases where the predicted belief state geometry has highly nontrivial fractal structure. We investigate cases where the belief state geometry is represented in the final residual stream or distributed across the residual streams of multiple layers, providing a framework to explain these observations. Furthermore we demonstrate that the inferred belief states contain information about the entire future, beyond the local next-token prediction that the transformers are explicitly trained on. Our work provides a framework connecting the structure of training data to the computational structure and representations that transformers use to carry out their behavior.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Shai et al. (2024) studied this question.

synapsesocial.com/papers/68e6897cb6db6435876115aehttps://doi.org/10.48550/arxiv.2405.15943
Ask AI
Helpful
Bookmark
Share
View Full Paper