Introduction
Predicting Click-Through Rate (CTR) is a cornerstone of online advertising and e-commerce. To achieve high accuracy, models must capture the dynamic and evolving nature of user interests. While previous state-of-the-art models like the Deep Interest Network (DIN) and Deep Interest Evolution Network (DIEN) treat user history as a continuous sequence, they often overlook the structured nature of human behavior: users typically shop in distinct sessions.
A session is characterized by high homogeneity (focused intent) within a short timeframe, separated by gaps from other sessions with potentially different intents (heterogeneity). Standard sequential models can be sensitive to the "noise" created by these abrupt shifts in intent across session boundaries.
The DSIN Architecture
The Deep Session Interest Network (DSIN) is designed to explicitly model this hierarchical structure. The architecture is composed of four primary layers:
- Session Division Layer: Raw behavior sequences are partitioned into sessions based on a 30-minute inactivity threshold.
- Session Interest Extractor Layer: This layer uses Multi-head Self-Attention to capture the internal dependencies within a session. To preserve temporal order, the authors introduce Bias Encoding, which incorporates session indices and item positions into the embedding space.
- Session Interest Interacting Layer: To model how interests evolve over time, a Bi-directional LSTM (Bi-LSTM) processes the sequence of session-level interest representations.
- Session Interest Activating Layer: A local activation unit (attention mechanism) weighs the relevance of historical session interests against the specific "target" item being ranked.
Experimental Evaluation
DSIN was evaluated on two large-scale datasets from Alibaba: a public Advertising Dataset (26M records) and a massive internal Recommender Dataset (6B logs). These datasets represent the high-variance, noisy behavior typical of real-world e-commerce platforms.
Key Results
The experimental results demonstrate that DSIN consistently outperforms established baselines such as Wide&Deep, DIN, and DIEN.
On the Advertising dataset, DSIN achieved an AUC of 0.6375, a notable improvement over DIEN's 0.6343. On the production-scale Recommender dataset, it reached an AUC of 0.6515. In CTR prediction, even small gains in AUC (e.g., 0.001) can translate to significant revenue increases at scale. Ablation studies further confirmed that Bias Encoding is vital for the model's performance, as it allows the self-attention mechanism to effectively leverage session-specific context.
Discussion and Future Work
The core innovation of DSIN lies in its ability to "reset" and refocus its attention at session boundaries, making it more robust to the "jumping" behavior of users. By modeling the evolution of abstracted session interests rather than raw item-to-item behaviors, the model achieves a more stable representation of user intent.
One limitation is the model's reliance on internal click history. Future research could integrate Knowledge Graphs to provide semantic context (e.g., linking "trousers" and "coats" as "apparel"), potentially improving the model's ability to bridge disparate sessions and provide better explainability.
Summary updated