Long-Sequence Recommendation Models Need Decoupled Embeddings

Ningya Feng, Junwei Pan, Jialong Wu, Baixu Chen, Ximei Wang +4 more
10/3/2024
cs.IRcs.LG

Official code: thuml/DARE (25 stars, last commit 2025-03-05). 1 more implementation below.

Abstract

Lifelong user behavior sequences are crucial for capturing user interests and predicting user responses in modern recommendation systems. A two-stage paradigm is typically adopted to handle these long sequences: a subset of relevant behaviors is first searched from the original long sequences via an attention mechanism in the first stage and then aggregated with the target item to construct a discriminative representation for prediction in the second stage. In this work, we identify and characterize, for the first time, a neglected deficiency in existing long-sequence recommendation models: a single set of embeddings struggles with learning both attention and representation, leading to interference between these two processes. Initial attempts to address this issue with some common methods (e.g., linear projections -- a technique borrowed from language processing) proved ineffective, shedding light on the unique challenges of recommendation models. To overcome this, we propose the Decoupled Attention and Representation Embeddings (DARE) model, where two distinct embedding tables are initialized and learned separately to fully decouple attention and representation. Extensive experiments and analysis demonstrate that DARE provides more accurate searches of correlated behaviors and outperforms baselines with AUC gains up to 0.9% on public datasets and notable improvements on Tencent's advertising platform. Furthermore, decoupling embedding spaces allows us to reduce the attention embedding dimension and accelerate the search procedure by 50% without significant performance impact, enabling more efficient, high-performance online serving. Code in PyTorch for experiments, including model analysis, is available at https://github.com/thuml/DARE.

View on arXivView PDF

Code Implementations(2)

thuml/DAREOfficial100%

Code release for "Long-Sequence Recommendation Models Need Decoupled Embeddings" (ICLR 2025), https://arxiv.org/abs/2410.02604

251Shell, PythonMar 2, 20251 years ago
fny21/DARECommunity57%

The official code for Long-Sequence Recommendation Models Need Decoupled Embeddings

20Shell, PythonMar 1, 20251 years ago

Similar Papers

Cite this paper

@article{feng2024longsequence,
  title  = {Long-Sequence Recommendation Models Need Decoupled Embeddings},
  author = {Ningya Feng and Junwei Pan and Jialong Wu and Baixu Chen and Ximei Wang and Qian Li and Xian Hu and Jie Jiang and Mingsheng Long},
  year   = {2024},
  eprint = {2410.02604},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.02604v3},
  journal = {ICLR 2024 2024}
}

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/2410.02604.svg)](https://codeofpaper.com/paper/2410.02604)

Discussion