Introduction
In modern industrial recommendation systems, a user's historical behavior serves as a primary signal for predicting future interests. While standard models effectively process short-term sequences (e.g., the last 50 clicks), long-term behavior data (1000+ clicks) offers a much richer perspective on user preferences. However, scaling to these lengths introduces significant engineering hurdles, primarily the "Storage Wall" and the "Latency Wall."
The storage wall arises because raw behavior IDs for hundreds of millions of users are expensive to maintain; increasing sequence length from 150 to 1000 would sextuple storage requirements at Alibaba. The latency wall is equally daunting: complex models like DIEN can see latency spike to 200ms for 1000-item sequences, far exceeding the typical 30ms real-time budget.
Proposed Solution: Co-designing System and Algorithm
Alibaba researchers propose a co-designed approach that integrates a novel serving architecture with a specialized machine learning model: the User Interest Center (UIC) and the Multi-channel user Interest Memory Network (MIMN).
1. User Interest Center (UIC)
The UIC addresses the latency wall by decoupling interest modeling from the main traffic request flow. In traditional systems (Architecture A), user interests are computed upon receiving an ad request. In the UIC architecture (Architecture B), the user's interest representation is updated asynchronously whenever a "trigger event" (e.g., a click) occurs.
By the time a traffic request arrives, the model simply fetches the pre-computed interest vector from the User Interest Representation storage, making the process "latency-free" relative to the sequence length during the actual prediction phase.
2. Multi-channel user Interest Memory Network (MIMN)
To overcome the storage wall, MIMN replaces raw sequence storage with a fixed-size memory architecture inspired by Neural Turing Machines (NTM).
- Memory Utilization Regularization: To prevent "hot slots" where a few memory cells dominate, a regularization loss ensures even utilization across all memory slots, maximizing information density.
- Memory Induction Unit (MIU): This GRU-based layer captures temporal dynamics within each memory channel, preserving high-order evolutionary information of user interests.
Evaluation and Results
The system was tested on public datasets (Amazon Books, Taobao) and a massive internal Alibaba dataset comprising 0.29 billion users and 12.2 billion instances.
Performance Gains
MIMN consistently outperformed state-of-the-art models like DIN and DIEN. On Alibaba's industrial dataset, it achieved a 0.01 AUC gain—a significant margin in large-scale production environments. Online A/B testing showed a 7.5% increase in Click-Through Rate (CTR) and a 6% boost in Revenue Per Mille (RPM).
System Efficiency
The UIC/MIMN combination maintained a steady 19ms latency for sequences of length 1000, whereas DIEN's latency reached 200ms. This efficiency allows the system to handle extremely long sequences without compromising the user experience.
Key Insights and Future Work
The primary takeaway is that interest modeling does not need to be synchronous with ad requests. Decoupling via UIC allows for more complex models without impacting real-time performance. Furthermore, fixed-size memory networks solve the linear storage growth problem inherent in raw sequence logging.
Future work will address potential bottlenecks if trigger event volume significantly exceeds prediction requests and explore further optimizations in training/serving synchronization.
Summary updated