Language Modeling Using Tensor Trains
Zhan Su, Yuqin Zhou, Fengran Mo, Jakob Grue Simonsen
TL;DR
This paper introduces TTLM, a Tensor Train-based language model that represents sentences in a high-dimensional tensor space and computes probabilities through a low-dimensional contraction, unifying several RNN variants under a tensor-network framework. It formulates TT decomposition of the weight tensor, derives a recursive probability computation, and defines two practical variants, TTLM-Tiny and TTLM-Large. Empirical results on WikiText-2 and PTB show TTLM variants outperforming Vanilla-RNNs in low-scale settings and clarifying overfitting dynamics, while revealing a close relationship to Second-order RNNs, RACs, and MI-RNNs. The work demonstrates the viability of tensor-network language models for real-world data and lays groundwork for future study of normalization and long-range dependency modeling in TT-based architectures.
Abstract
We propose a novel tensor network language model based on the simplest tensor network (i.e., tensor trains), called `Tensor Train Language Model' (TTLM). TTLM represents sentences in an exponential space constructed by the tensor product of words, but computing the probabilities of sentences in a low-dimensional fashion. We demonstrate that the architectures of Second-order RNNs, Recurrent Arithmetic Circuits (RACs), and Multiplicative Integration RNNs are, essentially, special cases of TTLM. Experimental evaluations on real language modeling tasks show that the proposed variants of TTLM (i.e., TTLM-Large and TTLM-Tiny) outperform the vanilla Recurrent Neural Networks (RNNs) with low-scale of hidden units. (The code is available at https://github.com/shuishen112/tensortrainlm.)
