Linear transformers have emerged as a subquadratic-time alternative to softmax attention and have garnered significant interest due to their fixed-size recurrent state that lowers inference cost. However, their original formulation suffers from poor scaling and underperforms compute-matched transformers. Recent linear models such as RWKV and Mamba have attempted to address these shortcomings by proposing novel time-mixing and gating architectures, but pre-training large language models requires significant data and compute investments. Thus, the search for subquadratic architectures is limited by the availability of compute and quality pre-training datasets. As a cost-effective alternative to pre-training linear transformers, we propose Scalable UPtraining for Recurrent Attention (SUPRA). We present a method to uptrain existing large pre-trained transformers into Recurrent Neural Networks (RNNs) with a modest compute budget. This allows us to leverage the strong pre-training data and performance of existing transformer LLMs, while requiring 5% of the training cost. We find that our linearization technique leads to competitive performance on standard benchmarks, but we identify persistent in-context learning and long-context modeling shortfalls for even the largest linear models. Our code and models can be found at https://github.com/TRI-ML/linear_open_lm.
Teaching Pretrained Language Models to Think Deeper with Retrofitted Recurrence
University of Maryland(马里兰大学);New York University(纽约大学);Lawrence Livermore National Laboratory(劳伦斯利弗莫尔国家实验室);University of North Carolina(北卡罗来纳大学);ELLIS Institute Tübingen, Max Planck Institute for Intelligent Systems, Tübingen AI Center(图宾根ELLIS研究所、马克斯·普朗克智能系统研究所、图宾根人工智能中心);Columbia University(哥伦比亚大学)
VisualRWKV: Exploring Recurrent Neural Networks for Visual Language Models
College of Computer Science and Software Engineering, Shenzhen University(深圳大学计算机与软件学院);Guangdong Laboratory of Artificial Intelligence and Digital Economy (SZ)(广东省人工智能与数字经济实验室(深圳))
LLM-as-RNN: A Recurrent Language Model for Memory Updates and Sequence Prediction
Georgia Institute of Technology(佐治亚理工学院);Peking University(北京大学);Shandong University(山东大学);Huazhong University of Science and Technology(华中科技大学);UT Southwestern Medical Center(西南医学中心)
Improving Language Modeling using Densely Connected Recurrent Neural Networks
Ghent University(根特大学);imec(比利时微电子研究中心)
在本文中,我们将稠密连接层的新概念引入循环神经网络。我们评估我们提出的架构上的Penn Treebank语言建模任务。我们表明,与使用dropout训练的标准堆叠2层LSTM模型相比,我们可以用少六倍的参数获得类似的困惑分数(Zaremba et al. 2014)。与目前使用的跳过连接,我们表明,密集连接只有几个堆栈层与跳过连接已经产生显着的困惑减少。
Variational Smoothing in Recurrent Neural Network Language Models
DeepMind
我们提出了一个新的理论视角,在循环神经网络语言模型中的数据噪声(Xie et al.,2017年)。我们证明了数据噪声的每个变体都是具有特定变分分布的贝叶斯递归神经网络的实例(即,其权重取决于从诸如一元语法分布的语料库导出的统计的高斯的混合)。我们利用这一洞察力提出了一个更有原则的方法,适用于预测时间,并提出自然扩展的变分框架下的数据噪声。特别是,我们提出了变分平滑与捆绑的输入和输出嵌入矩阵和元素的变分平滑方法。我们在两个基准语言建模数据集上实证验证了我们的分析,并证明了现有数据噪声方法的性能改进。
Language Generation with Recurrent Generative Adversarial Networks without Pre-training
School of Computer Science, Tel-Aviv University(特拉维夫大学计算机科学学院);Zebra Medical Vision(斑马医疗视觉公司);IBM Research(IBM研究院);Facebook AI Research(Facebook人工智能研究院)
Sequential Recurrent Neural Networks for Language Modeling
Saarland University(萨尔大学)
基于前馈神经网络(FNN)的语言模型基于最后N个单词的历史来估计下一个单词的概率,而循环神经网络(RNN)仅基于最后一个单词和在网络中循环的一些上下文信息来执行相同的任务。本文提出了一种新的方法,这两类网络之间的桥梁的差距。特别是,我们提出了一种架构,它利用了明确的,顺序枚举的FNN结构中的单词历史,同时通过在网络中不断演变的经常性上下文信息,增强每个单词在投影层的表示。使用也在训练期间学习的附加词相关权重矩阵来执行上下文整合。在Penn Treebank(PTB)和Large Text Compression Benchmark(LTCB)语料库上进行的大量实验表明,与最先进的前馈和递归神经网络架构相比,该算法的困惑度显著降低。
University of Washington(华盛顿大学);Allen Institute for AI(艾伦人工智能研究所)
LSTM是建模上下文信息的强大工具,正如它们在语言建模任务中的成功所证明的那样。然而,在非常高维的空间中建模上下文可能导致较差的可推广性。我们引入了金字塔递归单元(PRU),它可以在高维空间中学习表示,具有更强的泛化能力和更少的参数。PRU用更复杂的交互(包括金字塔和分组线性变换)取代LSTM中的线性变换。这种架构在词级语言建模上给出了强有力的结果,同时显著减少了参数的数量。特别是,PRU将最近最先进的语言模型Merity et al.(2018)的困惑度提高了1.3个点,同时学习的参数减少了15-20%。对于类似数量的模型参数,PRU优于所有以前的RNN模型,这些模型利用不同的门控机制和转换。我们提供了一个详细的检查PRU及其行为的语言建模任务。我们的代码是开源的,可在https://sacmehta.github.io/PRU/上获得
The Importance of Being Recurrent for Modeling Hierarchical Structure
University of Amsterdam(阿姆斯特丹大学);Leiden University(莱顿大学)
最近的工作表明,当训练递归神经网络(RNN)以解决常见的自然语言处理任务(例如语言建模)时,它可以隐式地捕获和利用分层信息(Linzen et al.,2016)和神经机器翻译(Shi等人,2016年)。相比之下,尽管非递归神经网络在许多NLP任务中取得了成功,但用非递归神经网络对结构化数据进行建模的能力却很少受到关注(Gehring等人,2017; Vaswani等人,2017年)。在这项工作中,我们比较了这两种架构-经常性与非经常性-关于他们的能力,模型层次结构,并发现,递归确实是重要的,为此目的。
CRUR: Coupled-Recurrent Unit for Unification, Conceptualization and Context Capture for Language Representation -- A Generalization of Bi Directional LSTM
Language Modeling with Gated Convolutional Networks
Facebook AI Research(Facebook 人工智能研究院)
迄今为止,语言建模的主要方法是基于循环神经网络。他们在这项任务上的成功往往与他们捕捉无限背景的能力有关。在本文中,我们通过堆叠卷积开发了一种有限上下文方法,这种方法可以更有效,因为它们允许在顺序令牌上进行并行化。我们提出了一种新的简化门控机制,其性能优于Oord et al(2016),并研究了关键架构决策的影响。所提出的方法在WikiText-103基准测试中达到了最先进的水平,尽管它具有长期依赖性,并且在Google Billion Words基准测试中具有竞争力。我们的模型减少了延迟评分一个句子的数量级相比,经常性的基线。据我们所知,这是第一次非循环方法在这些大规模语言任务上与强循环模型竞争。
Effective Spoken Language Labeling with Deep Recurrent Neural Networks
LaTTiCe;CNRS(法国国家科学研究中心);ENS Paris(巴黎高等师范学校);Université Sorbonne Nouvelle - Paris 3(巴黎第三大学);PSL Research University(巴黎文理研究大学);USPC(巴黎西岱大学);Université Sorbonne Paris Cité(巴黎索邦巴黎西岱大学)