仅解码器Transformer为大型语言模型的能力带来了阶跃式变化。然而,关于它们是否真正在进行规划或推理,观点存在分歧。在这一方向取得进展的途径是在精心控制数据的环境中研究模型行为,然后解释学习到的表示并逆向工程其内部执行的计算。我们研究了从头训练的仅解码器Transformer语言模型,用于在简单、连通且无向的图上预测最短路径。在此环境中,模型学习到的表示和动态是可解释的。我们提出三个主要结果:(1)两层仅解码器语言模型能够学习预测包含最多10个节点的简单连通图的最短路径;(2)模型学习到的图嵌入与线图的谱分解相关;(3)基于这些见解,我们发现了一种新颖的近似路径查找算法Spectral Line Navigator(SLN,谱线导航器),它通过在线图的谱嵌入空间中贪婪选择节点来找到最短路径。
英文摘要:
Decoder-only transformers lead to a step-change in capability of large language models. However, opinions are mixed as to whether they are really planning or reasoning. A path to making progress in this direction is to study the model's behavior in a setting with carefully controlled data. Then interpret the learned representations and reverse-engineer the computation performed internally. We study decoder-only transformer language models trained from scratch to predict shortest paths on simple, connected and undirected graphs. In this setting, the representations and the dynamics learned by the model are interpretable. We present three major results: (1) Two-layer decoder-only language models can learn to predict shortest paths on simple, connected graphs containing up to 10 nodes. (2) Models learn a graph embedding that is correlated with the spectral decomposition of the line graph. (3) Following the insights, we discover a novel approximate path-finding algorithm Spectral Line Navigator (SLN) that finds shortest path by greedily selecting nodes in the space of spectral embedding of the line graph.
Exploitation of Hidden Context in Dynamic Movement Forecasting: A Neural Network Journey from Recurrent to Graph Neural Networks and General Purpose Transformers
Fraunhofer Institute for Integrated Circuits IIS(弗劳恩霍夫集成电路研究所)
scGTN: Deep Siamese Graph Transformer Network for Single-cell RNA Sequencing Clustering
Sichuan University(四川大学);University of International Business and Economics(对外经济贸易大学);Great Bay University(大湾区大学);The Education University of Hong Kong(香港教育大学)
Packet Inspection Transformer: A Self-Supervised Journey to Unseen Malware Detection with Few Samples
Department of Intelligent Systems and Robotics, University of West Florida, Pensacola, FL, USA(智能系统与机器人系,西佛罗里达大学,佛罗里达州彭萨科大,USA);Florida Institute For Human and Machine Cognition (IHMC), Pensacola, FL, USA(佛罗里达人类与机器认知研究所(IHMC),佛罗里达州彭萨科大,USA);Center for Cybersecurity, University of West Florida, Pensacola, FL, USA(网络安全中心,西佛罗里达大学,佛罗里达州彭萨科大,USA)
Graph Inductive Biases in Transformers without Message Passing
McGill University(麦吉尔大学);University of Oxford(牛津大学);Massachusetts Institute of Technology(麻省理工学院);MetaAI(Meta人工智能实验室);Mila - Quebec AI Institute(米拉-魁北克人工智能研究所);Canada CIFAR AI Chair(加拿大CIFAR人工智能讲席);FiveAI(FiveAI公司);International Laboratory on Learning Systems(国际学习系统实验室)
本文提出 GRIT,通过相对位置编码、节点对注意力和度信息注入,在无消息传递的情况下赋予 Graph Transformer 图归纳偏置,并取得理论表达力与 SOTA 性能。