Hierarchical Context Enabled Recurrent Neural Network for Recommendation

Kyungwoo Song, Mingi Ji, Sungrae Park, Il-Chul Moon

Introduction

Sequential recommendation systems aim to predict a user's next interaction based on their historical behavior. Traditional Recurrent Neural Networks (RNNs), such as GRUs and LSTMs, often struggle with two primary challenges: maintaining long-term dependencies (core user preferences) and adapting to "interest drift"—sudden shifts in behavior, such as a user browsing for a gift or exploring a new genre.

Existing models typically prioritize either global context or short-term interest. The Hierarchical Context Enabled Recurrent Neural Network (HCRNN) addresses this by disentangling user interests into three distinct levels: global, local, and temporary.

Conceptual illustration of hierarchical contexts: global (sequence-wide), local (sub-sequence), and temporary (item-to-item).

Methodology

The HCRNN architecture is designed to capture the nuance of how users transition between items through a hierarchical framework:

  1. Global Context: Represents overarching, static interests (e.g., a lifelong preference for a genre). This is modeled using a global context memory and a latent topic-modeling approach.
  2. Local Context: Captures the theme of a specific sub-sequence or session, providing a stable anchor for current activities.
  3. Temporary Context: Reflects immediate, item-to-item transitions, capturing the "flicker" of instantaneous interest.

System Architecture and Innovations

The model integrates these contexts through several key components:

  • Bi-channel Attention: Unlike standard models using single attention, HCRNN employs two channels. One focuses on the local context to assess how the current item fits the session, while the other examines the temporary context to identify similar past transitions.
  • Interest Drift Gate ($G_t^{(d)}$): Featured in the HCRNN-3 variant, this gate compares the current item to the local context. If a significant discrepancy is detected, it triggers a reset of the temporary context, allowing the model to adapt to sudden changes without losing broader context.
The HCRNN architecture featuring Bi-channel Attention and Global Context Memory.

Experimental Setup and Results

The model was evaluated on three benchmark datasets: CiteULike (academic bookmarks), LastFM (music history), and MovieLens (movie ratings). To rigorously test long-term dependency handling, the authors focused on sequences with at least 10 items.

Key Findings

  • Superior Performance: HCRNN-3 with Bi-channel attention (HCRNN-3+Bi) consistently outperformed state-of-the-art baselines like NARM and STAMP. Notably, it achieved an 11.47% improvement in Recall@3 on CiteULike and a 19.67% improvement on LastFM compared to NARM.
  • Validation of the Drift Gate: Ablation studies confirmed that the interest drift gate is a primary driver of accuracy, as it effectively manages sudden behavioral shifts.
  • Context Stability: Analysis revealed that the temporary context changes approximately 55 times more frequently than the local context, supporting the hypothesis that local context serves as a stable anchor while temporary context captures immediate fluctuations.

Conclusion

By disentangling user interests into a hierarchy and introducing specialized mechanisms like the drift gate and bi-channel attention, HCRNN provides a more robust framework for sequential recommendation. Future work may involve incorporating external metadata to further enrich the hierarchical contexts and addressing the cold-start problem for new users.

Summary updated

BibTeX
@inproceedings{song2019hierarchical,
  author = {Kyungwoo Song and Mingi Ji and Sungrae Park and Il-Chul Moon},
  title = {{Hierarchical Context Enabled Recurrent Neural Network for Recommendation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33014983},
}
Figure