Neural networks have in recent years shown promise for helping software engineers write programs and even formally verify them. While semantic information plays a crucial part in these processes, it remains unclear to what degree popular neural architectures like transformers are capable of modeling that information. This paper examines the behavior of neural networks learning algorithms relevant to programs and formal verification proofs through the lens of mechanistic interpretability, focusing in particular on structural recursion. Structural recursion is at the heart of tasks on which symbolic tools currently outperform neural models, like inferring semantic relations between datatypes and emulating program behavior. We evaluate the ability of transformer models to learn to emulate the behavior of structurally recursive functions from input-output examples. Our evaluation includes empirical and conceptual analyses of the limitations and capabilities of transformer models in approximating these functions, as well as reconstructions of the ``shortcut" algorithms the model learns. By reconstructing these algorithms, we are able to correctly predict 91 percent of failure cases for one of the approximated functions. Our work provides a new foundation for understanding the behavior of neural networks that fail to solve the very tasks they are trained for.
Microsoft(微软);Center of Excellence in Artificial Intelligence (Deep Learning Brazil)(人工智能卓越中心(巴西深度学习中心))
近年来,Transformer架构及其变体在许多机器学习任务中取得了显著的成功。这种成功本质上与处理长序列的能力和来自注意力机制的上下文相关权重的存在有关。我们认为,这些功能适合的核心作用的Meta-强化学习算法。事实上,元RL代理需要从一系列轨迹中推断任务。此外,它需要一个快速的适应策略,以适应新的任务-这可以通过使用自我注意机制来实现。在这项工作中,我们提出了TrMRL(Transformers for Meta- Reinforcement Learning),一个元强化学习代理,它使用Transformer架构模仿内存恢复机制。它通过Transformer层将最近的工作记忆联系起来,递归地构建情景记忆。我们表明,自我注意力计算出一个共识表示,使每层的贝叶斯风险最小化,并提供有意义的特征来计算最佳行动。我们进行了实验,在高维连续控制环境中的运动和灵巧的操作。结果表明,在这些环境中,与基线相比,TrMRL具有相当或更好的渐近性能、样本效率和分布外泛化。
A Recursively Recurrent Neural Network (R2N2) Architecture for Learning Iterative Algorithms
Forschungszentrum Jülich GmbH(于利希研究中心);RWTH Aachen University(亚琛工业大学);JARA-ENERGY(JARA能源研究联盟);National University of Singapore(新加坡国立大学);Technical University of Munich(慕尼黑工业大学);Johns Hopkins University(约翰斯·霍普金斯大学)
Pathformer: Recursive Path Query Encoding for Complex Logical Query Answering
School of Computer Science and Engineering, South China University of Technology(华南理工大学计算机科学与工程学院);Guangdong University of Petrochemical Technology(广东石油化工学院);Jiangmen Polytechnic(江门职业技术学院)
Transformers Can Solve Non-Linear and Non-Markovian Filtering Problems in Continuous Time For Conditionally Gaussian Signals
Department of Mathematics, University of Oxford(牛津大学数学系);Oxford Man Institute for Quantitative Finance, University of Oxford(牛津大学牛津曼量化金融研究所);Department of Mathematics, McMaster University(麦克马斯特大学数学系);Vector Institute(向量研究所)
Data-Driven Forecasting of three-Component Seismograms Using Transformer Architectures
Institut für Kernphysik, Universität Münster(穆斯特大学核物理研究所);Institut für Geophysik, Universität Münster(穆斯特大学地质物理研究所);James Cook University(詹姆斯·库克大学);Geological Survey of Denmark and Greenland(丹麦和格陵兰地质调查局)
Incorporating Transformer and LSTM to Kalman Filter with EM algorithm for state estimation
College of Artificial Intelligence, Nankai University(南开大学人工智能学院)
卡尔曼滤波器要求模型的真实参数,递归求解最优状态估计。期望最大化(EM)算法适用于估计卡尔曼滤波前无法估计的模型参数,即EM-KF算法。为了提高EM-KF算法的精度,提出了一种在seq 2seq(Encoder-Decoder in Sequence)框架下,将长短期记忆网络(LSTM)、Transformer和EM-KF算法相结合的状态估计方法。对线性移动机器人模型的仿真结果表明,该方法具有更高的精度。本文的源代码可在https://github.com/zshicode/Deep-Learning-Based-State-Estimation上获得。
Learning to Iteratively Solve Routing Problems with Dual-Aspect Collaborative Transformer
National University of Singapore(新加坡国立大学);University of Electronic Science and Technology of China(电子科技大学);Institute for Infocomm Research, A*STAR(新加坡科技研究局资讯通信研究院);The Hong Kong University of Science and Technology(香港科技大学);Singapore Institute of Manufacturing Technology, A*STAR(新加坡科技研究局新加坡制造技术研究院);Shandong University(山东大学)
Parallel BiLSTM-Transformer networks for forecasting chaotic dynamics
1 Department of Physics, Tianshui Normal University, Tianshui 741001, Gansu, China 2 Key Laboratory of Atomic;Molecular Physics \& Functional Material of Gansu Province, College of Physics;Electronic Engineering, Northwest Normal University, Lanzhou 730070, China 3 Lanzhou Center for Theoretical Physics, Lanzhou University, Lanzhou 730000, Gansu, China 4 Key Laboratory for Quantum Theory;Applications of the Ministry of Education, Lanzhou University, Lanzhou, Gansu 730000, China 5 Department of Physics, Xiamen University, Xiamen 361005, Fujian, China
Teaching Transformers to Solve Combinatorial Problems through Efficient Trial & Error
National Technical University of Athens(希腊雅典国家技术大学);National and Kapodistrian University of Athens(希腊雅典国家与卡波迪斯特里亚大学);Archimedes, Athena Research Center(阿提卡研究中心阿基米德)