我们提出了一个路由算法,需要一个序列的向量,并计算一个新的序列具有指定的长度和向量大小。每个输出向量通过更好地预测输入向量来最大化“bang per bit”,即使用的净收益和忽略数据的净成本之间的差异。我们将输出向量描述为几何对象,作为分配信用的潜在变量,作为关联记忆模型中的查询状态,以及作为心智社会模型中的代理。我们实现的算法优化,减少参数计数,计算和内存使用的数量级,使我们能够路由更长的序列比以前可能的。我们评估我们在自然语言和视觉分类任务上的实现,以获得具有竞争力或最先进的准确性和可解释的端到端信用分配。
英文摘要:
We propose a routing algorithm that takes a sequence of vectors and computes a new sequence with specified length and vector size. Each output vector maximizes "bang per bit," the difference between a net benefit to use and net cost to ignore data, by better predicting the input vectors. We describe output vectors as geometric objects, as latent variables that assign credit, as query states in a model of associative memory, and as agents in a model of a Society of Mind. We implement the algorithm with optimizations that reduce parameter count, computation, and memory use by orders of magnitude, enabling us to route sequences of greater length than previously possible. We evaluate our implementation on natural language and visual classification tasks, obtaining competitive or state-of-the-art accuracy and end-to-end credit assignments that are interpretable.
Seoul National University(首尔大学);Samsung Research(三星研究院)
胶囊网络(CapsNets)最近作为一种新的神经结构受到关注。本文介绍了顺序路由框架,我们认为这是第一种方法,以适应CapsNet的结构,序列到序列的识别。输入序列被封装,然后按窗口大小切片。通过迭代路由机制,每个切片在相应的时间被分类为标签。之后,损失通过连接主义时间分类(CTC)计算。在路由过程中,所需的参数数量可以通过在切片上共享可学习的权重来控制,而不管序列的长度如何。我们还提出了一个顺序的动态路由算法,以取代传统的动态路由。所提出的技术可以最小化由路由迭代引起的解码速度下降,因为它可以以非迭代方式操作而不降低精度。与基于双向长短期记忆的CTC网络相比,该方法在《华尔街日报》语料库上的单词错误率为16.9%,降低了1.1%。在TIMIT语料库上,与基于卷积神经网络的CTC网络相比,它的电话错误率降低了0.7%,为17.5%(Zhang et al.,2016)。
Learning Graph-Indexed Trajectory Patterns for Stochastic On-Time Arrival Routing
Sichuan University-Pittsburgh Institute(四川大学匹兹堡研究院);Sichuan University(四川大学);College of Computer Science(计算机科学学院);University College Dublin(都柏林大学);School of Electrical and Electronic Engineering(电子与电气工程学院);School of Electronics and Information Engineering(电子与信息工程学院)
FAME: Adaptive Functional Attention with Expert Routing for Function-on-Function Regression
Department of Industrial Engineering(工业工程系);Tsinghua University(清华大学);Department of Industrial and Systems Engineering(工业与系统工程系);University of Iowa(爱荷华大学)
Efficient Content-Based Sparse Attention with Routing Transformers
Google Research(谷歌研究院)
自注意最近已被广泛的序列建模问题。尽管它的有效性,自我注意遭受二次计算和存储器的要求相对于序列长度。降低这种复杂性的成功方法集中在关注本地滑动窗口或独立于内容的一小部分位置。我们的工作提出了学习动态稀疏注意模式,避免分配计算和内存参加内容无关的查询的兴趣。这项工作建立在两条线的研究:它结合了先前的工作基于内容的稀疏注意力的建模灵活性,从本地的,时间稀疏注意力的方法的效率收益。我们的模型,路由Transformer,赋予自我注意力的稀疏路由模块的基础上在线k-均值,同时降低整体的复杂性注意$O\left(n^{1.5}d\right)$从$O\left(n^2d\right)$的序列长度$n$和隐藏的维度$d$。我们表明,我们的模型在Wikitext-103上的语言建模(15.8 vs 18.3困惑度)以及ImageNet-64上的图像生成(3.43 vs 3.44 bits/dim)方面优于可比较的稀疏注意模型,同时使用较少的自我注意层。此外,我们在新发布的PG-19数据集上设置了一个新的最新技术水平,使用在长度为8192的序列上训练的22层Routing Transformer模型获得了33.2的测试困惑度。
Scaling Continual Learning to 300+ Tasks with Bi-Level Routing Mixture-of-Experts
School of Computing and Data Science, The University of Hong Kong(计算与数据科学学院,香港大学);Center for Embodied Artificial Intelligence and Computer Vision, Shenzhen Loop Area Institute(具身人工智能与计算机视觉中心,深圳环宇区研究所)