Introduction
In the dynamic landscape of e-commerce, session-based recommendation systems are critical for engaging users, particularly "cold start" visitors whose long-term history is unavailable. Traditional methods often struggle with Unknown Intent, where users engage in "window shopping" with evolving preferences.
Researchers at Myntra have identified two primary hurdles in applying standard Reinforcement Learning (RL) to this domain:
- Action Space Explosion: With millions of products, an RL agent faces an overwhelming number of possible actions, hindering convergence.
- High Variance: Noisy user behavior makes it difficult for models to distinguish between casual browsing and genuine purchase intent.
Methodology: The Divide-and-Conquer Attribute Approach
To address these challenges, the authors propose a "divide-and-conquer" framework. Instead of training an agent to select a specific product ID, they train agents to predict specific product attributes (e.g., brand, color, or category). This strategy significantly reduces the action space and allows the model to learn more generalizable patterns.
The problem is formulated as a Markov Decision Process (MDP) where:
- State Space: Represented by embeddings of the last $k$ product attributes the user interacted with.
- Action Space: The selection of an attribute value (e.g., "Brand: Nike").
- Reward Function: A hybrid metric combining Normalized Dwell Time (immediate engagement) and a Purchase Bonus (+10 for successful conversions).
Deep Recurrent Q-Network (DRQN) Architecture
The core of the system is a DRQN that utilizes Long Short-Term Memory (LSTM) layers. Unlike simple averaging of embeddings, the LSTM captures the sequential "trajectory" of a user's browsing session, which is vital for understanding shifting interests.
Experimental Setup and Results
The model was evaluated using real-world click-stream data from Myntra. The training set consisted of 33,924 sessions, while the testing set included 2,809 sessions. The system utilized a rolling window of the last $k=4$ attributes to generate predictions.
The DRQN-based approach was compared against a "Similar Attributes" baseline, which recommends items based on the cosine similarity to the weighted average of previously viewed attributes.
| Algorithm | Hit Rate @ 10 |
|---|---|
| DRQN-Recommendation | 0.6736 |
| Similar Attributes | 0.5334 |
The results demonstrate a 26% improvement in recommendation accuracy, suggesting that the RL agent effectively captures complex sequential patterns that traditional similarity metrics overlook.
Conclusion and Future Directions
By abstracting the action space to product attributes and leveraging sequential modeling via LSTMs, this framework provides a robust solution for session-based recommendations. While the current model focuses on single-attribute prediction, future work aims to expand this to simultaneous multi-attribute prediction (e.g., Brand + Color + Category) and real-time validation through A/B testing on the Myntra platform.
Summary updated