Skip to main content
QUICK REVIEW

[Paper Review] Dynamic Memory based Attention Network for Sequential Recommendation

Qiaoyu Tan, Jianwei Zhang|arXiv (Cornell University)|Feb 18, 2021
Recommender Systems and TechniquesComputer Science54 references7 citations
TL;DR

This paper proposes Dynamic Memory-based Attention Network (DMAN), a sequential recommendation model that segments long user behavior sequences into sub-sequences and uses dynamic memory blocks to explicitly capture and preserve long-term user interests. By combining recurrent attention for short-term dynamics and a reconstruction-loss-optimized memory mechanism for long-term fidelity, DMAN achieves state-of-the-art performance with efficient inference on long sequences across four benchmark datasets.

ABSTRACT

Sequential recommendation has become increasingly essential in various online services. It aims to model the dynamic preferences of users from their historical interactions and predict their next items. The accumulated user behavior records on real systems could be very long. This rich data brings opportunities to track actual interests of users. Prior efforts mainly focus on making recommendations based on relatively recent behaviors. However, the overall sequential data may not be effectively utilized, as early interactions might affect users' current choices. Also, it has become intolerable to scan the entire behavior sequence when performing inference for each user, since real-world system requires short response time. To bridge the gap, we propose a novel long sequential recommendation model, called Dynamic Memory-based Attention Network (DMAN). It segments the overall long behavior sequence into a series of sub-sequences, then trains the model and maintains a set of memory blocks to preserve long-term interests of users. To improve memory fidelity, DMAN dynamically abstracts each user's long-term interest into its own memory blocks by minimizing an auxiliary reconstruction loss. Based on the dynamic memory, the user's short-term and long-term interests can be explicitly extracted and combined for efficient joint recommendation. Empirical results over four benchmark datasets demonstrate the superiority of our model in capturing long-term dependency over various state-of-the-art sequential models.

Motivation & Objective

  • Address the challenge of modeling extremely long user behavior sequences in real-world recommender systems, where standard sequential models fail to capture long-term dependencies.
  • Overcome the computational inefficiency of scanning entire long sequences during inference, which is infeasible for low-latency industrial applications.
  • Explicitly model both short-term and long-term user preferences to improve recommendation accuracy, especially when early interactions influence later choices.
  • Mitigate long-term memory forgetting in memory-augmented networks by introducing a reconstruction loss to enhance memory fidelity during training.
  • Develop a scalable and efficient architecture that maintains high performance while reducing inference time through sub-sequence processing and dynamic memory abstraction.

Proposed method

  • Segment the full user behavior sequence into consecutive sub-sequences to reduce computational load during inference.
  • Use a recurrent attention network to model short-term user interests by capturing dependencies between adjacent sub-sequences.
  • Introduce a dynamic memory network that abstracts long-term user interests into external memory blocks using a local reconstruction loss.
  • Train the memory blocks to reconstruct the input sub-sequences, ensuring high-fidelity retention of long-term preferences.
  • Combine short-term and long-term representations via attention mechanisms to generate final user embeddings for next-item prediction.
  • Optimize the entire model end-to-end using a multi-task learning objective that includes both next-item prediction and memory reconstruction.

Experimental results

Research questions

  • RQ1Can a memory-augmented attention network effectively model long-term user preferences in extremely long behavior sequences without scanning the entire sequence?
  • RQ2How does dynamic memory abstraction with a reconstruction loss improve memory fidelity and reduce forgetting compared to standard memory networks?
  • RQ3To what extent does the joint modeling of short-term and long-term interests enhance recommendation performance on long sequential data?
  • RQ4How does the proposed sub-sequence processing strategy balance model efficiency and performance compared to full-sequence models?
  • RQ5What is the optimal configuration of memory size and attention layers for achieving high performance with minimal computational cost?

Key findings

  • DMAN achieves state-of-the-art performance on four benchmark datasets—MovieLens, Taobao, JD.com, and XLong—outperforming existing sequential recommendation models in long-sequence settings.
  • The model converges quickly, typically within 2 epochs on Taobao, JD.com, and XLong, and within 50 epochs on MovieLens, indicating strong training efficiency.
  • Setting the number of memory blocks (m) to 20 achieves optimal performance on MovieLens, with marginal gains beyond that point, suggesting saturation in representational capacity.
  • Using two attention layers (L=2) provides a good trade-off between performance and memory cost, as deeper networks offer diminishing returns.
  • The dynamic memory mechanism with reconstruction loss significantly improves long-term memory fidelity, reducing forgetting and enhancing long-sequence modeling.
  • Empirical results confirm that modeling both short-term and long-term interests leads to better recommendations than methods focusing only on recent behavior or static memory.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.