arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2408.09380cs.AIcs.IR
收藏

ELASTIC: 用于序列兴趣压缩的高效线性注意力

ELASTIC: Efficient Linear Attention for Sequential Interest Compression

KuaiShou Inc.(快手公司)

Jiaxin Deng, Shiyao Wang, Song Lu, Yinfeng Li, Xinchen Luo, Yuanjun Liu, Peixing Xu, Guorui Zhou

AI总结:

针对Transformer自注意力二次复杂度限制长序列建模的问题,提出ELASTIC,通过线性调度器注意力压缩序列、兴趣记忆库扩展兴趣空间,实现90%内存减少、2.7倍推理加速且性能优于基线。

摘要:

最先进的序列推荐模型严重依赖Transformer的注意力机制。然而,自注意力的二次计算和内存复杂度限制了其对用户长程行为序列建模的可扩展性。为解决这一问题,我们提出ELASTIC,即用于序列兴趣压缩的高效线性注意力(Efficient Linear Attention for SequenTial Interest Compression),其仅需线性时间复杂度,并将模型容量与计算成本解耦。具体而言,ELASTIC引入了带有线性调度器注意力机制的固定长度兴趣专家,将长期行为序列压缩为更紧凑的表示,可减少高达90%的GPU内存使用量,同时推理速度提升2.7倍。所提出的线性调度器注意力机制显著降低了二次复杂度,使模型能够充分建模极长序列。此外,为保留对多种用户兴趣的建模能力,ELASTIC初始化了一个庞大的可学习兴趣记忆库,并以可忽略的计算开销从记忆库中稀疏检索压缩后的用户兴趣。该兴趣记忆检索技术在保持相同计算成本的同时,显著扩展了可用兴趣空间的基数,从而在推荐准确性和效率之间取得平衡。为验证ELASTIC的有效性,我们在多个公共数据集上进行了广泛实验,并与多个强大的序列推荐器进行比较。实验结果表明,ELASTIC持续以显著优势优于基线模型,且突出了其在建模长序列时的计算效率。我们将公开实现代码。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑