Language models show a surprising range of capabilities, but the source of their apparent competence is unclear. Do these networks just memorize a collection of surface statistics, or do they rely on internal representations of the process that generates the sequences they see? We investigate this question by applying a variant of the GPT model to the task of predicting legal moves in a simple board game, Othello. Although the network has no a priori knowledge of the game or its rules, we uncover evidence of an emergent nonlinear internal representation of the board state. Interventional experiments indicate this representation can be used to control the output of the network and create "latent saliency maps" that can help explain predictions in human terms.
翻译:语言模型展现出令人惊讶的能力范围,但其明显能力的来源尚不明确。这些网络仅是记忆了表面统计特征的集合,还是依赖于生成其所见序列过程的内部表征?我们通过将GPT模型的一种变体应用于预测简单棋盘游戏奥赛罗中合法走法的任务来探究这一问题。尽管网络对该游戏或其规则没有先验知识,但我们发现了棋盘状态涌现出的非线性内部表征的证据。干预实验表明,这种表征可用于控制网络输出,并创建有助于用人类可理解的方式解释预测的“潜在显著图”。