ELASTIC: Efficient Linear Attention for Sequential Interest Compression

Jiaxin Deng, Shiyao Wang, Song Lu, Yinfeng Li, Xinchen Luo +3 more
8/18/2024
cs.AIcs.IR
transformer-attention

No confident code implementation found for this paper.

Abstract

State-of-the-art sequential recommendation models heavily rely on transformer's attention mechanism. However, the quadratic computational and memory complexities of self attention have limited its scalability for modeling users' long range behaviour sequences.

Show full abstract

To address this problem, we propose ELASTIC, an Efficient Linear Attention for SequenTial Interest Compression, requiring only linear time complexity and decoupling model capacity from computational cost. Specifically, ELASTIC introduces a fixed length interest experts with linear dispatcher attention mechanism which compresses the long-term behaviour sequences to a significantly more compact representation which reduces up to 90% GPU memory usage with x2.7 inference speed up. The proposed linear dispatcher attention mechanism significantly reduces the quadratic complexity and makes the model feasible for adequately modeling extremely long sequences. Moreover, in order to retain the capacity for modeling various user interests, ELASTIC initializes a vast learnable interest memory bank and sparsely retrieves compressed user's interests from the memory with a negligible computational overhead. The proposed interest memory retrieval technique significantly expands the cardinality of available interest space while keeping the same computational cost, thereby striking a trade-off between recommendation accuracy and efficiency. To validate the effectiveness of our proposed ELASTIC, we conduct extensive experiments on various public datasets and compare it with several strong sequential recommenders. Experimental results demonstrate that ELASTIC consistently outperforms baselines by a significant margin and also highlight the computational efficiency of ELASTIC when modeling long sequences. We will make our implementation code publicly available.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{deng2024elastic,
  title  = {ELASTIC: Efficient Linear Attention for Sequential Interest Compression},
  author = {Jiaxin Deng and Shiyao Wang and Song Lu and Yinfeng Li and Xinchen Luo and Yuanjun Liu and Peixing Xu and Guorui Zhou},
  year   = {2024},
  eprint = {2408.09380},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2408.09380v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2408.09380.svg)](https://codeofpaper.com/paper/2408.09380)

Discussion