LASER: 一种高效的面向目标的分段注意力框架用于端到端长序列建模
LASER: An Efficient Target-Aware Segmented Attention Framework for End-to-End Long Sequence Modeling
AI总结:
LASER通过系统和算法优化,高效处理长序列建模,提升推荐系统性能和商业价值。
摘要:
对超长用户行为序列进行建模对于捕捉现代推荐系统中演变和终身兴趣至关重要。然而,在实时工业环境中部署此类模型面临严格的'延迟墙',受到两个不同的瓶颈限制:检索大量用户历史的高I/O延迟和标准注意力机制的二次计算复杂性。为突破这些瓶颈,我们提出了LASER,这是一种在小红书(RedNote)开发和部署的全栈优化框架。我们的方法通过两个互补的创新来解决这些挑战:(1)系统效率:我们引入了SeqVault,一种统一的模式感知服务基础设施,用于长用户历史。通过实现混合DRAM-SSD索引策略,SeqVault将检索延迟降低了50%,并将CPU使用率降低了75%,确保毫秒级访问完整实时和生命周期用户历史。 (2)算法效率:我们提出了一种分段目标注意力(STA)机制,以解决计算开销问题。受用户兴趣内在稀疏性的启发,STA采用基于sigmoid的门控策略,作为沉默机制来过滤掉噪声项。随后,一个轻量级的全局堆叠目标注意力(GSTA)模块对这些压缩段进行细化,以捕捉跨段依赖关系,而不会产生高计算成本。这种设计实现了有效的序列压缩,在减少长序列建模的复杂性的同时保留了关键信号。广泛的离线评估显示,LASER在性能上始终优于最先进的基线。在覆盖超过1亿日活跃用户的大型在线A/B测试中,LASER在ADVV上实现了2.36%的提升,在收入上实现了2.08%的提升,证明了其可扩展性和显著的商业影响。
英文摘要:
Modeling ultra-long user behavior sequences is pivotal for capturing evolving and lifelong interests in modern recommendation systems. However, deploying such models in real-time industrial environments faces a strict "Latency Wall", constrained by two distinct bottlenecks: the high I/O latency of retrieving massive user histories and the quadratic computational complexity of standard attention mechanisms. To break these bottlenecks, we present LASER, a full-stack optimization framework developed and deployed at Xiaohongshu (RedNote). Our approach tackles the challenges through two complementary innovations: (1) System efficiency: We introduce SeqVault, a unified schema-aware serving infrastructure for long user histories. By implementing a hybrid DRAM-SSD indexing strategy, SeqVault reduces retrieval latency by 50% and CPU usage by 75%, ensuring millisecond-level access to full real-time and life-cycle user histories. (2) Algorithmic efficiency: We propose a Segmented Target Attention (STA) mechanism to address the computational overhead. Motivated by the inherent sparsity of user interests, STA employs a sigmoid-based gating strategy that acts as a silence mechanism to filter out noisy items. Subsequently, a lightweight Global Stacked Target Attention (GSTA) module refines these compressed segments to capture cross-segment dependencies without incurring high computational costs. This design performs effective sequence compression, reducing the complexity of long-sequence modeling while preserving critical signals. Extensive offline evaluations demonstrate that LASER consistently outperforms state-of-the-art baselines. In large-scale online A/B testing serving over 100 million daily active users, LASER achieved a 2.36% lift in ADVV and a 2.08% lift in revenue, demonstrating its scalability and significant commercial impact.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。