arXiv:2503.00608math.OCcs.LG2025-03

用简单Transformer实现高效精准实时个性化推荐

Near-Optimal Real-Time Personalization with Simple Transformers

  • 采用仅含单自注意力层的简单Transformer建模用户复杂行为
  • 算法在亚线性时间内达成近最优推荐性能,速度极快
  • 适合需要快速响应的推荐系统,如流媒体和旅游平台

实时个性化推荐近年来取得显著进展,平台利用机器学习模型基于用户行为数据预测偏好。传统方法依赖嵌入模型并简化为最近邻搜索,虽快速但难以捕捉复杂行为。Transformer模型因擅长建模序列行为,近年被广泛用于提升推荐精度,但其复杂结构使优化困难。本文聚焦一类称为简单Transformer的模型——仅含一个自注意力层,证明其可有效表示复杂用户偏好,并提出高效算法实现基于该模型的实时推荐优化。所提算法在亚线性时间内达到近最优性能。在Spotify和Trivago数据集上的实证研究显示:(1)简单Transformer在预测准确性上显著优于非Transformer模型,且接近复杂Transformer;(2)算法能快速高效完成推荐任务。

原文摘要 · Abstract (English)

Real-time personalization has advanced significantly in recent years, with platforms utilizing machine learning models to predict user preferences based on rich behavioral data on each individual user. Traditional approaches usually rely on embedding-based machine learning models to capture user preferences, and then reduce the final optimization task to nearest-neighbors, which can be performed extremely fast. However, these models struggle to capture complex user behaviors, which are essential for making accurate recommendations. Transformer-based models, on the other hand, are known for their practical ability to model sequential behaviors, and hence have been intensively used in personalization recently to overcome these limitations. However, optimizing recommendations under transformer-based models is challenging due to their complicated architectures. In this paper, we address this challenge by considering a specific class of transformers, showing its ability to represent complex user preferences, and developing efficient algorithms for real-time personalization. We focus on a particular set of transformers, called simple transformers, which contain a single self-attention layer. We show that simple transformers are capable of capturing complex user preferences. We then develop an algorithm that enables fast optimization of recommendation tasks based on simple transformers. Our algorithm achieves near-optimal performance in sub-linear time. Finally, we demonstrate the effectiveness of our approach through an empirical study on datasets from Spotify and Trivago. Our experiment results show that (1) simple transformers can model/predict user preferences substantially more accurately than non-transformer models and nearly as accurately as more complex transformers, and (2) our algorithm completes simple-transformer-based recommendation tasks quickly and effectively.

推荐系统Transformer实时推荐个性化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。