Introduction
In the competitive landscape of e-commerce and social media, recommendation systems serve as the primary engine for user engagement. While traditional models have historically focused on static user profiles and item attributes, recent research emphasizes that the temporal context—specifically "when" and "in what order" interactions occur—is critical for predictive accuracy. This paper introduces the Time-based Sequence Model (TBSM), a recommendation architecture that explicitly models user behavior over time using a novel Time Series Layer (TSL).
Background: Recommendation Paradigms
Recommendation systems generally operate under three paradigms: item-oriented, user-oriented, and implicit factor models. Item-oriented methods suggest products similar to those a user has previously liked. User-oriented methods identify similar users to predict preferences. Implicit factor models, which TBSM advances, map users and items into a latent vector space to uncover hidden patterns of interaction.
While sequence-aware models like Recurrent Neural Networks (RNNs) and Transformers exist, they often struggle with the scale of industrial data or fail to capture the specific "coupling" between different types of user actions. TBSM addresses these gaps through a geometrically-motivated architecture.
Methodology
The TBSM architecture is structured into three primary stages: the embedding layer, the time series layer, and the composition layer.
1. Embedding Layer (DLRM)
The model utilizes the Deep Learning Recommendation Model (DLRM) as its foundation. This layer processes continuous features (such as timestamps) and discrete features (such as User ID or Category) and projects them into a unified, low-dimensional vector space.
2. Time Series Layer (TSL)
The TSL is the core innovation of TBSM. Instead of standard multi-head attention, it employs:
- Spherical Projection: Vectors are projected onto a unit sphere, converting dot products into cosine similarities. This provides a stable geometric interpretation of distance and similarity.
- Learned Inner Products: The model replaces standard dot products with a learned, positive-definite inner product ($z_t^T (A^T A) z_\tau$). This allows the model to learn distinct similarity measures for different coordinates in the embedding space, capturing complex dependencies that simple dot products miss.
3. Composition and Ensembling
TBSM can utilize multiple TSLs. Unlike standard Transformers that share a single MLP across heads, TBSM pairs each TSL with an independent MLP to produce distinct probability scores, which are then ensembled by a final MLP for the final prediction.
Experimental Evaluation
The researchers evaluated TBSM using two primary sources:
- Synthetic Dataset: A custom dataset designed to test the model's ability to capture complex coordinate coupling in time series data.
- Taobao User Behavior Dataset: A massive real-world dataset containing approximately 4 million items and 1 million users. The model was tasked with predicting the "next" click based on sequences of user interactions.
Key Results
On the Taobao dataset, TBSM demonstrated significant superiority in terms of Area Under the ROC Curve (AUC), a standard metric for classification accuracy. Notably, TBSM achieved its best results using a sequence length of only $\tau=20$, whereas competing state-of-the-art models like MIMN and DIEN required histories of $\tau=200$.
| Model | AUC (Taobao) |
|---|---|
| TBSM (TSL-8-inner) | 0.9327 |
| MIMN (State-of-the-art) | 0.9179 |
| DIEN | 0.9081 |
| Standard Multi-Head Attention | 0.8833 |
The jump from 0.88 to 0.93 is highly significant in production environments, where even a 0.001 improvement in click-through rate (CTR) can translate to substantial revenue gains.
Conclusion and Future Work
TBSM provides a statistically powerful yet efficient framework for sequence-aware recommendations. By leveraging geometric spherical projections and learned inner products, it extracts high-quality signals from shorter user histories than previous models. Future research will focus on increasing the model's parallelism for faster inference and exploring methods to integrate long-term memory without sacrificing the efficiency of the TSL architecture.
Summary updated