paper-with-me

홈 › Papers

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. On the other hand, State Space Models (SSMs) achieve lower performance than TNNs in language modeling but offer the advantage of constant inference complexity. In this paper, we aim to combine the strengths of TNNs and SSMs by converting TNNs to SSMs during inference, thereby enabling TNNs to achieve the same constant inference complexities as SSMs. To accomplish this, we formulate the conversion process as an optimization problem and provide a closed-form solution. We demonstrate how to transform the target equation into a Vandermonde linear system problem, which can be efficiently solved using the Discrete Fourier Transform (DFT). Notably, our method requires no training and maintains numerical stability. It can be also applied to any LongConv-based model. To assess its effectiveness, we conduct extensive experiments on language modeling tasks across various settings. Additionally, we compare our method to other gradient-descent solutions, highlighting the superior numerical stability of our approach. The source code is available at https://github.com/OpenNLPLab/ETSC-Exact-Toeplitz-to-SSM-Conversion.

📄 PDF Abstract BibTeX arXiv:2311.08756

Code (1)

opennlplab/etsc-exact-toeplitz-to-ssm-conversion 공식 구현 pytorch

Tasks

Language ModelingLanguage ModellingState Space Models

Similar Papers 제목 키워드 기반

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 (…

Thoughts on Massively Scalable Gaussian Processes

2015-11-05 · Andrew Gordon Wilson, Christoph Dann, Hannes Nickisch

We introduce a framework and early results for massively scalable Gaussian processes (MSGP), significantly extending the KISS-GP approach of Wilson and Nickisch (2015). The MSGP framework enables the use of Gaussian proc…

Gaussian Processes

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

Toeplitz Neural Network for Sequence Modeling

2023-05-08 · Zhen Qin, Xiaodong Han, Weixuan Sun, Bowen He 외

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 atte…

Language ModelingLanguage ModellingPosition

On Lipschitz Regularization of Convolutional Layers using Toeplitz Matrix Theory

2020-06-15 · Alexandre Araujo, Benjamin Negrevergne, Yann Chevaleyre, Jamal Atif

This paper tackles the problem of Lipschitz regularization of Convolutional Neural Networks. Lipschitz regularity is now established as a key property of modern deep learning with implications in training stability, gene…