Linear-Time Self Attention with Codeword Histogram for Efficient Recommendation
Not on the map. Why?
Abstract (arXiv)
Self-attention has become increasingly popular in a variety of sequence modeling tasks from natural language processing to recommendation, due to its effectiveness. However, self-attention suffers from quadratic computational and memory complexities, prohibiting its applications on long sequences. Existing approaches that address this issue mainly rely on a sparse attention context, either using a local window, or a permuted bucket obtained by locality-sensitive hashing (LSH) or sorting, while crucial information may be lost. Inspired by the idea of vector quantization that uses cluster centroids to approximate items, we propose LISA (LInear-time Self Attention), which enjoys both the effectiveness of vanilla self-attention and the efficiency of sparse attention. LISA scales linearly with the sequence length, while enabling full contextual attention via computing differentiable histograms of codeword distributions. Meanwhile, unlike some efficient attention methods, our method poses no restriction on casual masking or sequence length. We evaluate our method on four real-world datasets for sequential recommendation. The results show that LISA outperforms the state-of-the-art efficient attention methods in both performance and speed; and it is up to 57x faster and 78x more memory efficient than vanilla self-attention.
Key facts. Cited by 7 papers in the map (data through 14 Oct 2026). First posted on arXiv 28 May 2021.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 4; 2023: 1; 2024: 0; 2025: 1; 2026: 1.
7 papers.
- 2022Learning Vector-Quantized Item Representation for Transferable Sequential Recommenderscited by 112
- 2022A Comprehensive Survey on Trustworthy Recommender Systemscited by 32
- 2022Distill-VQ: Learning Retrieval Oriented Vector Quantization By Distilling Knowledge from Dense Embeddingscited by 17
- 2022Cooperative Retriever and Ranker in Deep Recommenderscited by 6
- 2023AttMEMO : Accelerating Transformers with Memoization on Big Memory Systemscited by 3
- 2025CoVE: Compressed Vocabulary Expansion Makes Better LLM-based Recommender Systemscited by 3
- 2026Balanced Co-Clustering of Users and Items for Embedding Table Compression in Recommender Systemscited by 0
- 2026Balanced Co-Clustering of Users and Items for Embedding Table Compression in Recommender Systems20 Apr 2026
- 2025CoVE: Compressed Vocabulary Expansion Makes Better LLM-based Recommender Systems24 Jun 2025
- 2023AttMEMO : Accelerating Transformers with Memoization on Big Memory Systems23 Jan 2023
- 2022Learning Vector-Quantized Item Representation for Transferable Sequential Recommenders22 Oct 2022
- 2022A Comprehensive Survey on Trustworthy Recommender Systems21 Sep 2022
- 2022Cooperative Retriever and Ranker in Deep Recommenders28 Jun 2022
- 2022Distill-VQ: Learning Retrieval Oriented Vector Quantization By Distilling Knowledge from Dense Embeddings1 Apr 2022