paper-with-me

홈 › Papers

Toeplitz Neural Network for Sequence Modeling

2023-05-08 · Zhen Qin, Xiaodong Han, Weixuan Sun, Bowen He, Dong Li, Dongxu Li, Yuchao Dai, Lingpeng Kong, Yiran Zhong

Sequence modeling has important applications in natural language processing and computer vision. Recently, the transformer-based models have shown strong performance on various sequence modeling tasks, which rely on attention to capture pairwise token relations, and position embedding to inject positional information. While showing good performance, the transformer models are inefficient to scale to long input sequences, mainly due to the quadratic space-time complexity of attention. To overcome this inefficiency, we propose to model sequences with a relative position encoded Toeplitz matrix and use a Toeplitz matrix-vector production trick to reduce the space-time complexity of the sequence modeling to log linear. A lightweight sub-network called relative position encoder is proposed to generate relative position coefficients with a fixed budget of parameters, enabling the proposed Toeplitz neural network to deal with varying sequence lengths. In addition, despite being trained on 512-token sequences, our model can extrapolate input sequence length up to 14K tokens in inference with consistent performance. Extensive experiments on autoregressive and bidirectional language modeling, image modeling, and the challenging Long-Range Arena benchmark show that our method achieves better performance than its competitors in most downstream tasks while being significantly faster. The code is available at https://github.com/OpenNLPLab/Tnn.

📄 PDF Abstract BibTeX arXiv:2305.04749

Code (2)

Doraemonzzz/tnn-pytorch 공식 구현 pytorch
opennlplab/tnn pytorch

Tasks

Language ModelingLanguage ModellingPosition

Similar Papers 제목 키워드 기반

ToTMNet: FFT-Accelerated Toeplitz Temporal Mixing Network for Lightweight Remote Photoplethysmography

2026-01-07 · Vladimir Frants, Sos Agaian, Karen Panetta arxiv

Remote photoplethysmography (rPPG) estimates a blood volume pulse (BVP) waveform from facial videos captured by commodity cameras. Although recent deep models improve robustness compared to classical signal-processing ap…

Accelerating Toeplitz Neural Network with Constant-time Inference Complexity

2023-11-15 · Zhen Qin, Yiran Zhong

Toeplitz Neural Networks (TNNs) have exhibited outstanding performance in various sequence modeling tasks. They outperform commonly used Transformer-based models while benefiting from log-linear space-time complexities. …

Language ModelingLanguage ModellingState Space Models

SKI to go Faster: Accelerating Toeplitz Neural Networks via Asymmetric Kernels

2023-05-15 · Alexander Moreno, Jonathan Mei, Luke Walters

Toeplitz Neural Networks (TNNs) (Qin et. al. 2023) are a recent sequence model with impressive results. They require O(n log n) computational complexity and O(n) relative positional encoder (RPE) multi-layer perceptron (…

Line Spectrum Representation for Vector Processes With Application to Frequency Estimation

2020-06-24 · Bin Zhu

A positive semidefinite Toeplitz matrix, which often arises as the finite covariance matrix of a stationary random process, can be decomposed as the sum of a nonnegative multiple of the identity corresponding to a white …

Time Series Analysis

Toeplitz MLP Mixers are Low Complexity, Information-Rich Sequence Models

2026-04-24 · Benjamin L. Badger, Ethan Roland arxiv

Transformer-based large language models are in some respects limited by the quadratic time and space computational complexity of attention. We introduce the Toeplitz MLP Mixer (TMM), a transformer-like architecture that …

Information Retrieval