Abstract
User behavior sequence modeling, which captures user interest from rich historical interactions, is pivotal for industrial recommendation systems. Despite breakthroughs in ranking-stage models capable of leveraging ultra-long behavior sequences with length scaling up to thousands, existing retrieval models remain constrained to sequences of hundreds of behaviors due to two main challenges. One is strict latency budget imposed by real-time service over large-scale candidate pool. The other is the absence of target-aware mechanisms and cross-interaction architectures, which prevent utilizing ranking-like techniques to simplify long sequence modeling. To address these limitations, we propose a new framework named User Long-term Multi-Interest Retrieval Model (ULIM), which enables thousand-scale behavior modeling in retrieval stages. ULIM includes two novel components: 1) Category-Aware Hierarchical Dual-Interest Learning partitions long behavior sequences into multiple category-aware subsequences representing multi-interest and jointly optimizes long-term and short-term interests within specific interest cluster. 2) Pointer-Enhanced Cascaded Category-to-Item Retrieval introduces Pointer-Generator Interest Network (PGIN) for next-category prediction, followed by next-item retrieval upon the top-K predicted categories. Comprehensive experiments on Taobao dataset show that ULIM achieves substantial improvement over state-of-the-art methods, and brings 5.54% clicks, 11.01% orders and 4.03% GMV lift for Taobaomiaosha, a notable mini-app of Taobao.
Introduction
Modern industrial recommender systems typically operate in a two-stage pipeline: retrieval and ranking. While ranking models have evolved to process "ultra-long" user behavior sequences (often exceeding 1,000 interactions), retrieval models—which must filter tens of millions of items in milliseconds—are generally restricted to the most recent ~100 actions. This creates a significant information bottleneck.
Retrieval models face three primary hurdles in scaling sequence length:
- Latency Constraints: Real-time scanning of massive candidate pools prohibits complex sequence modeling.
- Lack of Target Awareness: Unlike ranking models that score a specific item, retrieval models lack a target item to guide attention over long histories.
- Gradient Conflicts: Compressing diverse long-term interests into a single embedding often leads to conflicting gradients, degrading the quality of the representation.
The ULIM Framework
To bridge this gap, the User Long-term Multi-Interest Retrieval Model (ULIM) introduces a hierarchical approach to both training and serving.
Category-Aware Hierarchical Dual-Interest Learning
Instead of treating a user's history as one monolithic sequence, ULIM partitions interactions into category-aware subsequences. This allows the model to focus on specific interest clusters (e.g., electronics vs. apparel) separately.
As shown in the architecture, the model employs two parallel encoders:
- Short-Term Encoder: Captures immediate intent from the last 100 actions using Multi-head Self-Attention.
- Long-Term Encoder: Uses the short-term embedding as a query to perform "Target-Attention" over category-clustered long-term sequences.
By redefining the training objective to predict the next item within a specific category cluster, ULIM avoids the gradient conflicts inherent in global next-item prediction.
Pointer-Enhanced Cascaded Retrieval
For efficient serving, ULIM utilizes a Pointer-Generator Interest Network (PGIN). This network first predicts a distribution over item categories to identify the top-$K$ categories relevant to the user. The system then performs parallel Approximate Nearest Neighbor (ANN) searches only within those $K$ categories. This cascaded approach maintains low latency while allowing the model to consider years of historical data.
Experimental Results
Offline Performance
ULIM was evaluated against state-of-the-art retrieval baselines using a massive industrial dataset from Taobao. The results demonstrate that ULIM's ability to leverage long-term sequences provides a clear competitive edge.
ULIM achieved a Hit Rate (HR@500) of 6.02%, significantly outperforming the MIND variant (5.03%) and the Youtube DNN variant (4.95%). Ablation studies further confirmed that reducing the sequence length by half led to a sharp drop in performance, proving the value of thousand-scale modeling.
Online Impact
In a 3-week live A/B test on the Taobaomiaosha mini-app, ULIM delivered substantial business value:
- +5.54% increase in Clicks
- +11.01% increase in Orders
- +4.03% increase in GMV (Gross Merchandise Value)
Despite the increased complexity, the system's response time only increased by approximately 15ms, fitting comfortably within the production latency budget.
Conclusion
ULIM successfully brings ultra-long sequence modeling to the retrieval stage by combining category-aware interest partitioning with a cascaded retrieval strategy. By solving the dual challenges of latency and gradient conflict, ULIM enables recommender systems to tap into years of user history, resulting in significant improvements in both retrieval accuracy and real-world commercial metrics.
Summary updated