未来透镜:从单个隐藏状态预测后续令牌
Future Lens: Anticipating Subsequent Tokens from a Single Hidden State
AI总结:
本文提出“未来透镜”方法,通过线性近似和因果干预在GPT-J-6B中验证单个隐藏状态可预测后续令牌,准确率超48%,并实现可视化。
摘要:
我们推测,对应于单个输入令牌的隐藏状态向量编码了足以准确预测多个后续令牌的信息。更具体地,在本文中我们提出一个问题:给定输入中位置$t$处单个令牌的隐藏(内部)表示,我们能否可靠地预测将出现在位置$\tgeq t + 2$的令牌?为了验证这一点,我们测量了GPT-J-6B中的线性近似和因果干预方法,以评估网络中单个隐藏状态包含的信号是否足够丰富,从而预测未来的隐藏状态以及最终的令牌输出。我们发现,在某些层中,我们可以通过单个隐藏状态以超过48%的准确率近似模型的输出,相对于其对后续令牌的预测。最后,我们提出了一种“未来透镜”可视化,利用这些方法创建了变压器状态的新视图。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。