TL;DR
The Deep Session Interest Network (DSIN) improves Click-Through Rate (CTR) prediction by explicitly modeling the hierarchical structure of user behavior. By dividing long behavior sequences into time-bounded "sessions," DSIN captures highly focused interests within each session and tracks how these interests evolve over time, outperforming previous state-of-the-art models on massive real-world datasets.
What Problem Does This Paper Address?
In modern recommender systems (like Amazon or Taobao), predicting whether a user will click an item (CTR) depends heavily on their past behavior. Most existing models treat a user's history as a single, flat sequence of items.
However, human behavior isn't a continuous stream; it's composed of sessions. A user might spend 10 minutes browsing trousers, stop for an hour, and then return to look at finger rings. As shown in the figure below, behaviors are typically homogeneous within a session (focused on one intent) but heterogeneous across different sessions.
Existing models often struggle with the "noise" created by these sudden jumps in interest. By ignoring session boundaries, they lose the fine-grained context of a user's specific intent at different points in time.
Methods
The authors propose DSIN, a model that processes user behavior through four specialized layers:
- Session Division Layer: The raw behavior sequence is split into sessions. Following industry standards, a new session begins whenever there is a time gap of more than 30 minutes between clicks.
- Session Interest Extractor Layer: To capture the core intent of a session, the model uses Multi-head Self-Attention. Crucially, they introduce Bias Encoding—a variation of positional encoding that accounts for the order of items within a session, the order of the sessions themselves, and the specific dimensions of the embedding.
- Session Interest Interacting Layer: Since a user's interests evolve (e.g., buying a phone in Session 1 might lead to looking for cases in Session 2), the model uses a Bi-LSTM to capture the sequential relationship and "flow" between these session-level interest vectors.
- Session Interest Activating Layer: Not all past sessions are equally relevant to a new "target item." This layer uses an Attention Mechanism (Local Activation Unit) to weight session interests based on their similarity to the item currently being ranked for the user.
Datasets
The model was evaluated on two large-scale datasets:
- Alimama Advertising Dataset: A public dataset containing 26 million records from 1 million users over 8 days.
- Alibaba Recommender Dataset: A massive production dataset containing 6 billion logs from 100 million users.
Key Insights and Ideas
- Intra-session Homogeneity: The self-attention mechanism is particularly effective here because it can "filter" out accidental clicks or unrelated items within a session to find the user's true underlying interest.
- Inter-session Evolution: While raw item sequences are noisy, the sequence of session interests is much smoother. Applying a Bi-LSTM to these summarized interests allows the model to capture long-term trends more effectively than applying RNNs to raw item clicks (as seen in the DIN-RNN baseline).
- Bias Encoding: Standard positional encodings only look at sequence order. DSIN's Bias Encoding captures the hierarchical nature of the data (position in session + session index), providing a richer structural prior for the attention mechanism.
Key Results
DSIN consistently outperformed established models like Wide&Deep, Deep Interest Network (DIN), and Deep Interest Evolution Network (DIEN).
On the Advertising dataset, DSIN achieved an AUC of 0.6375, and on the Recommender dataset, it reached 0.6515. While these numerical gains might seem small, in the world of industrial CTR prediction, even a 0.001 improvement in AUC can lead to significant increases in revenue and user engagement.
Limitations and Future Work
The authors note that while DSIN captures temporal structure well, it doesn't yet incorporate external knowledge. They suggest that future work could involve Knowledge Graphs to provide prior knowledge that helps explain why a user might jump from one specific interest (e.g., trousers) to another (e.g., belts), further refining the interest evolution modeling.
Summary updated