mlsanityData to 7 Oct 2026

Long Sequence Modeling with Attention Tensorization: From Sequence to Tensor Learning

arXiv 2410.20926 ↗First posted 28 Oct 2024cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

As the demand for processing extended textual data grows, the ability to handle long-range dependencies and maintain computational efficiency is more critical than ever. One of the key issues for long-sequence modeling using attention-based model is the mismatch between the limited-range modeling power of full attention and the long-range token dependency in the input sequence. In this work, we propose to scale up the attention receptive field by tensorizing long input sequences into compact tensor representations followed by attention on each transformed dimension. The resulting Tensorized Attention can be adopted as efficient transformer backbones to extend input context length with improved memory and time efficiency. We show that the proposed attention tensorization encodes token dependencies as a multi-hop attention process, and is equivalent to Kronecker decomposition of full attention. Extensive experiments show that tensorized attention can be used to adapt pretrained LLMs with improved efficiency. Notably, Llama-8B with tensorization is trained under 32,768 context length and can steadily extrapolate to 128k length during inference with 11× speedup, compared to full attention with FlashAttention-2.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 45 of its 61 references that are in the map. First posted on arXiv 28 Oct 2024.

Builds on

45 of 61 references.

References · 45

  1. 2017Attention Is All You Needcited by 59,932
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  5. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  6. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  7. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  8. 2020Longformer: The Long-Document Transformercited by 3,362
  9. 2017TriviaQA: A Large Scale Distantly Supervised Challenge Dataset for Reading Comprehensioncited by 2,895
  10. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  11. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  12. 2022A Time Series is Worth 64 Words: Long-term Forecasting with Transformerscited by 1,981
33 more
  1. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  2. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  3. 2020Reformer: The Efficient Transformercited by 1,658
  4. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  5. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  6. 2018An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Modelingcited by 1,447
  7. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  8. 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
  9. 2021Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolationcited by 1,085
  10. 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 851
  11. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  12. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
  13. 2018Deep learning for time series classification: a reviewcited by 575
  14. 2023Adapting Language Models to Compress Contextscited by 350
  15. 2014Exploiting Linear Structure Within Convolutional Networks for Efficient Evaluationcited by 304
  16. 2015Tensorizing Neural Networkscited by 246
  17. 2020Synthesizer: Rethinking Self-Attention in Transformer Modelscited by 204
  18. 2014Speeding-up Convolutional Neural Networks Using Fine-tuned CP-Decompositioncited by 199
  19. 2020Benchmarking Multivariate Time Series Classification Algorithmscited by 145
  20. 2023PoSE: Efficient Context Window Extension of LLMs via Positional Skip-wise Trainingcited by 109
  21. 2023Scaling Transformer to 1M tokens and beyond with RMTcited by 97
  22. 2019A Tensorized Transformer for Language Modelingcited by 85
  23. 2020Stable Low-rank Tensor Decomposition for Compression of Convolutional Neural Networkcited by 74
  24. 2023SparseViT: Revisiting Activation Sparsity for Efficient High-Resolution Vision Transformercited by 60
  25. 2017Tensor-Train Recurrent Neural Networks for Video Classificationcited by 59
  26. 2020Convolutional Tensor-Train LSTM for Spatio-temporal Learningcited by 54
  27. 2019Lightweight and Efficient End-to-End Speech Recognition Using Low-Rank Transformercited by 47
  28. 2023How to Capture Higher-order Correlations? Generalizing Matrix Softmax Attention to Kronecker Computationcited by 44
  29. 2018Compressing Recurrent Neural Networks with Tensor Ring for Action Recognitioncited by 34
  30. 2019T-Net: Parametrizing Fully Convolutional Nets with a Single High-Order Tensorcited by 22
  31. 2023Reusing Pretrained Models by Multi-linear Operators for Efficient Trainingcited by 15
  32. 2022Diffuser: Efficient Transformers with Multi-hop Attention Diffusion for Long Sequencescited by 12
  33. 2020Tensorized Random Projectionscited by 11

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.