Abstract
Session-based recommendation (SR) is critical for platforms where user identity is often unavailable. However, static models fail to adapt to the rapid evolution of items and user preferences in real-world e-commerce. We present MAN (Memory Augmented Neural model), a framework that augments neural recommenders with a fast, non-parametric memory module. This architecture allows for instant updates and prevents catastrophic forgetting, significantly improving recommendation accuracy in dynamic, incremental settings.
Introduction
Real-world recommendation systems operate in highly dynamic environments. New products are introduced daily, and consumer trends can shift overnight. Traditional session-based recommendation (SR) models, which predict the next item based on current anonymous browsing, are typically trained on static historical data. This leads to three primary challenges: catastrophic forgetting during model updates, high computational costs for frequent retraining, and poor sample efficiency for new items with limited interaction history.
The MAN Framework
The proposed MAN framework addresses these challenges by combining a standard neural recommender with a non-parametric "cache" memory.
The architecture consists of three core components:
- Neural Component: An encoder-decoder structure (e.g., GRU4Rec or NARM) that captures stable, long-term patterns from the training data.
- Memory Component: A non-parametric module that stores pairs of session representations and their corresponding next-item labels. It utilizes $K$-nearest neighbor (k-NN) retrieval to find similar past contexts.
- Gating Network: A lightweight network that dynamically weights the predictions from the neural and memory components based on the current session context.
To maintain scalability, MAN employs FAISS (Facebook AI Similarity Search) with Product Quantization for efficient similarity searches, ensuring real-time performance even with millions of stored sessions.
Incremental Learning and Evaluation
Unlike static evaluation, the authors utilize an incremental setup. During the testing phase, the memory is updated instantly with every new interaction. The base neural model undergoes minor updates with a very low learning rate to adapt slowly without losing general knowledge.
The framework was evaluated on two benchmark datasets: YOOCHOOSE (RecSys Challenge 2015) and DIGINETICA (CIKM Cup 2016).
Results and Discussion
MAN consistently outperforms state-of-the-art models in incremental scenarios. As shown in the performance metrics, the MAN-augmented versions of NARM maintain a performance lead over their fixed and standard counterparts as more events are processed.
Key Insights
- Adaptability to New Items: The gating network learns to rely more heavily on the memory module for new or infrequent items, effectively solving the "cold-start" problem for items in the long tail.
- Efficiency: The computational overhead is minimal. On the YOOCHOOSE dataset, the average response time increased by only 4ms, making it suitable for production environments.
- Model Agnosticism: MAN acts as a wrapper that can enhance various neural architectures, providing a flexible path for upgrading existing recommendation systems.
Conclusion
The MAN framework provides a robust solution for incremental session-based recommendation. By decoupling long-term pattern recognition from short-term adaptation via a memory module, it achieves superior performance and efficiency. Future work will focus on optimizing the re-clustering schedules for the memory module and exploring more advanced real-time adaptation for the gating network.
Summary updated