Introduction
Modern digital platforms, from short-video apps like TikTok to e-commerce giants like Amazon, simultaneously provide search and recommendation (S&R) services. While a user's search history is a goldmine of intent data, effectively integrating it into recommendation systems remains a significant challenge. Traditional methods often aggregate search and recommendation data indiscriminately, failing to account for the nuanced relationship between these two behaviors. This paper introduces SESRec (Search-Enhanced Sequential Recommendation), a framework designed to disentangle search behaviors to better capture a user's evolving interests.
The Dual Nature of Search Intent
The core difficulty in bridging search and recommendation lies in the diversity of user intent. The authors categorize search behaviors into two distinct types:
- Passive Search: Triggered by current recommendation content. For example, a user watching a video of a golden retriever might click a suggested query for "mother dog and puppies." This reinforces an existing interest.
- Spontaneous Search: Represents a sudden shift or a new, unfulfilled need. A user might be browsing food content but abruptly search for "World Cup 2022."
Data analysis on the Kuaishou dataset reveals that spontaneous search is highly prevalent, with 57% of searches falling into this category. Crucially, 23% of these spontaneous searches reflect interests entirely dissimilar to the user's recent recommendation history. Treating these as a single data stream introduces noise that can degrade recommendation performance.
The SESRec Architecture
To address these challenges, SESRec employs a sophisticated multi-stage architecture that aligns disparate data types and disentangles overlapping interests.
1. Query-Item Alignment
Because search queries (text) and recommended items (videos/products) exist in different feature spaces, SESRec uses an InfoNCE contrastive loss to align their embeddings. This ensures the model understands that a text query for "iPhone" is semantically related to a video showing an iPhone.
2. Self-Supervised Interest Disentanglement
This is the framework's primary innovation. Using a co-attention mechanism, the model calculates similarity scores between the search and recommendation sequences. It then partitions the search history into "positives" (interests that overlap with recommendations) and "negatives" (spontaneous, dissimilar interests). A triplet loss function is used to supervise this process, pushing the anchor behavior closer to similar sub-sequences and further from dissimilar ones.
3. Multi-interest Extraction
Finally, the model extracts user interests from three distinct perspectives: the overall context, similar interests, and dissimilar interests. These representations are concatenated and passed through a Multi-Layer Perceptron (MLP) to predict the user's next interaction.
Experimental Evaluation
SESRec was evaluated against state-of-the-art (SOTA) models on two datasets: a large-scale industrial dataset from Kuaishou and a public Amazon Kindle Store dataset.
- Performance Gains: SESRec consistently outperformed both recommendation-only models (like SASRec) and existing search-aware models (like SRJGraph). On the Kuaishou dataset, SESRec achieved a 5.5% improvement in NDCG@5 over the top-performing sequential model, FMLP-Rec.
- The Value of Disentanglement: The model outperformed other search-aware models by approximately 7.4% in NDCG@5, proving that explicitly separating "more of the same" from "something new" is more effective than simple data aggregation.
Conclusion
SESRec demonstrates that search data is not just "more data" but a unique signal of user intent that requires careful handling. By aligning queries with items and disentangling search history into reinforcing and spontaneous interests, SESRec provides a more accurate and nuanced profile of user behavior. This approach offers a robust template for future cross-domain recommendation systems where user intents frequently diverge and converge.
Summary updated