用Mamba架构解决推荐系统长序列建模效率问题
A Novel Mamba-based Sequential Recommendation Method
- 采用多头低维Mamba层捕捉用户行为的潜在模式
- 在公开数据集上参数量更少,训练更快且效果更优
- 适合需要高效处理超长行为序列的工业级推荐场景
序列推荐(SR)通过编码用户行为序列来预测下一步动作,已成为商业个性化推荐系统的核心策略。尽管基于Transformer的模型表现优异,但其自注意力机制的复杂度随序列长度呈平方增长,难以应对大规模推荐系统中百亿级词汇和超长行为序列的挑战。本文提出一种新型多头潜在Mamba架构,通过多个低维Mamba层与全连接层结合,并引入位置编码,在每个潜在子空间中同时捕捉历史与物品信息。该方法不仅支持大规模参数扩展,还可通过集成与微调LLMs实现多领域推荐。在多个公开数据集上的实验表明,该方法有效缓解了推荐系统的精度-效率矛盾,在显著减少参数量和训练时间的同时,优于现有先进基线模型。
原文摘要 · Abstract (English)
Sequential recommendation (SR), which encodes user activity to predict the next action, has emerged as a widely adopted strategy in developing commercial personalized recommendation systems. Although Transformer-based models have proven effective for sequential recommendation, the complexity of the self-attention module in Transformers scales quadratically with the sequence length. Controlling model complexity is essential for large-scale recommendation systems, as these systems may need to handle billion-scale vocabularies that evolve continuously, as well as user behavior sequences that can exceed tens of thousands in length. In this paper, we propose a novel multi-head latent Mamba architecture, which employs multiple low-dimensional Mamba layers and fully connected layers coupled with positional encoding to simultaneously capture historical and item information within each latent subspace. Our proposed method not only enables scaling up to large-scale parameters but also extends to multi-domain recommendation by integrating and fine-tuning LLMs. Through extensive experiments on public datasets, we demonstrate how Hydra effectively addresses the effectiveness-efficiency dilemma, outperforming state-of-the-art sequential recommendation baselines with significantly fewer parameters and reduced training time.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。