Saved in:
Bibliographic Details
Main Authors: Pal, Koyena, Sun, Jiuding, Yuan, Andrew, Wallace, Byron C., Bau, David
Format: Preprint
Published: 2023
Subjects:
Online Access:https://arxiv.org/abs/2311.04897
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911795508150272
author Pal, Koyena
Sun, Jiuding
Yuan, Andrew
Wallace, Byron C.
Bau, David
author_facet Pal, Koyena
Sun, Jiuding
Yuan, Andrew
Wallace, Byron C.
Bau, David
contents We conjecture that hidden state vectors corresponding to individual input tokens encode information sufficient to accurately predict several tokens ahead. More concretely, in this paper we ask: Given a hidden (internal) representation of a single token at position $t$ in an input, can we reliably anticipate the tokens that will appear at positions $\geq t + 2$? To test this, we measure linear approximation and causal intervention methods in GPT-J-6B to evaluate the degree to which individual hidden states in the network contain signal rich enough to predict future hidden states and, ultimately, token outputs. We find that, at some layers, we can approximate a model's output with more than 48% accuracy with respect to its prediction of subsequent tokens through a single hidden state. Finally we present a "Future Lens" visualization that uses these methods to create a new view of transformer states.
format Preprint
id arxiv_https___arxiv_org_abs_2311_04897
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Future Lens: Anticipating Subsequent Tokens from a Single Hidden State
Pal, Koyena
Sun, Jiuding
Yuan, Andrew
Wallace, Byron C.
Bau, David
Computation and Language
Machine Learning
We conjecture that hidden state vectors corresponding to individual input tokens encode information sufficient to accurately predict several tokens ahead. More concretely, in this paper we ask: Given a hidden (internal) representation of a single token at position $t$ in an input, can we reliably anticipate the tokens that will appear at positions $\geq t + 2$? To test this, we measure linear approximation and causal intervention methods in GPT-J-6B to evaluate the degree to which individual hidden states in the network contain signal rich enough to predict future hidden states and, ultimately, token outputs. We find that, at some layers, we can approximate a model's output with more than 48% accuracy with respect to its prediction of subsequent tokens through a single hidden state. Finally we present a "Future Lens" visualization that uses these methods to create a new view of transformer states.
title Future Lens: Anticipating Subsequent Tokens from a Single Hidden State
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2311.04897