The tensor network, as a facterization of tensors, aims at performing the operations that are common for normal tensors, such as addition, contraction and stacking. However, due to its non-unique network structure, only the tensor network contraction is so far well defined. In this paper, we propose a mathematically rigorous definition for the tensor network stack approach, that compress a large amount of tensor networks into a single one without changing their structures and configurations. We illustrate the main ideas with the matrix product states based machine learning as an example. Our results are compared with the for loop and the efficient coding method on both CPU and GPU.
张量-张量乘积(t-乘积)[M. E. Kilmer和C. D. Martin,2011]是矩阵乘法的自然推广。基于t-积,矩阵上的许多运算都可以推广到张量情形,包括张量奇异值分解、张量谱范数、张量核范数[C。Lu等人,#20182;和其他许多人。张量的线性代数结构类似于矩阵的情况。我们开发了一个Matlab工具箱来实现基于t-积的张量的几个基本操作。该工具箱可在https://github.com/canyilu/tproduct上找到。
The Price of Freedom: Exploring Expressivity and Runtime Tradeoffs in Equivariant Tensor Products
Department of EECS, Massachusetts Institute of Technology, Cambridge MA 02139, USA(麻省理工学院电子工程与计算机科学系);Department of CSE, Massachusetts Institute of Technology, Cambridge MA 02139, USA(麻省理工学院计算机科学与工程系)
Finding Syntactic Representations in Neural Stacks
Yale University(耶鲁大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究所)
神经网络体系结构已经用可微堆栈进行了扩充,以便引入对学习层次敏感的神经网络的偏好。然而,事实证明,很难评估这种偏差的有效程度,因为可微堆栈的操作并不总是可解释的。在本文中,我们试图通过对选区结构的无监督学习的探索来检测分层结构的潜在表征的存在。使用Shen et al.(2018a,b)的技术,我们从基于语言建模和分类目标训练的堆栈RNN的推送行为中提取语法树。我们发现,我们的模型产生的解析,反映了自然语言句法选区,证明堆栈RNN确实推断语言相关的层次结构。