HTP: Exploiting Holistic Temporal Patterns for Sequential Recommendation

Rui Chen, Guotao Liang, Chenrui Ma, Qilong Han, Li Li, Xiao Huang

Abstract

Sequential recommendation systems traditionally focus on the order of user interactions, often overlooking the complex temporal context surrounding those actions. We present HTP (Holistic Temporal Patterns), a model designed to integrate three critical temporal dimensions: absolute seasonality, relative item-to-item intervals, and the specific time of recommendation. By shifting from sparse user-centric data to robust item-oriented seasonal profiles and utilizing a nonlinear cascading function for temporal alignment, HTP achieves state-of-the-art performance across multiple retail benchmarks, including a 6.91% improvement in HIT@10 on the Amazon-Sports dataset.

Introduction

Most modern sequential recommender systems operate on the logic of "A then B then C." While capturing the sequential dependency between items is effective, this approach ignores the "when"—the rich temporal context that often dictates consumer behavior. For example, the likelihood of a user purchasing a heavy jacket is influenced not just by their previous purchase of hiking boots, but also by the current month (seasonality) and the time elapsed since that last purchase.

Existing models typically focus on a single temporal aspect, such as the time interval between two consecutive items. However, the authors of HTP argue that a truly effective system must be "holistic," accounting for the subtle correlations between absolute time, relative intervals, and the specific moment a recommendation is requested.

The Three Pillars of Temporal Context

HTP addresses the limitations of previous models by decomposing temporal information into three distinct modules:

1. Absolute Time Module (ATM)

Traditional models often struggle to learn "personal" schedules for users because individual data is typically sparse; a single user may only interact with a platform a few times a year. HTP solves this by adopting an item-oriented approach. Instead of asking when a specific user likes to shop, the ATM looks at global data to determine when specific items are popular. By analyzing patterns across months, weeks, and days, the model creates a robust "seasonal profile" for every product, leveraging the collective behavior of thousands of users to overcome data sparsity.

2. Item Time Interval Module (ITIM)

This module focuses on the relative gaps between items in a user's history. Recognizing that the time between buying a smartphone and a case is fundamentally different from the gap between two car purchases, ITIM uses multi-granularity timestamp embeddings. It employs a "top-K" relevant item aggregation to filter out noise, ensuring the model focuses only on the most meaningful temporal correlations within a user's journey.

3. Recommendation Time Interval Module (RTIM)

Recency plays a vital role in recommendation. The RTIM calculates the impact of the "now"—the time elapsed between the user's last action and the current recommendation window. Crucially, HTP uses a nonlinear cascading function to align this recommendation interval with the item intervals learned in the ITIM. This alignment ensures that the model understands how the passage of time interacts with established purchase cycles.

Experimental Results

The HTP model was evaluated against standard baselines (including SASRec and TiSASRec) using three real-world datasets: Tafeng (grocery), Amazon-Cloth, and Amazon-Sports.

HTP consistently outperformed all baselines across every metric (NDCG, HIT, and AUC). Notable highlights include:

  • Significant Accuracy Gains: On the Amazon-Sports dataset, HTP improved HIT@10 by 6.91% over the next best performing model.
  • Robustness: While some baseline models showed inconsistent performance across different datasets, HTP remained the top performer in all tested environments.
  • Ablation Studies: Removing any of the three modules (ATM, ITIM, or RTIM) resulted in a measurable performance drop, validating the necessity of a holistic approach to temporal data.

Key Insights and Future Directions

The success of HTP highlights several important shifts in recommendation logic. First, the move from user-centric to item-centric absolute time allows models to capture seasonal signals that were previously lost to noise. Second, the use of multi-granularity embeddings enables "fuzzy matching," allowing the model to recognize similarities in behavior (e.g., shopping on a Sunday) even when interactions are months apart.

Despite its performance, HTP presents opportunities for further refinement. The computational overhead of multi-granularity attention modules is higher than simpler models, and the model's reliance on global item data may pose challenges for "cold-start" items with no historical footprint. Future research may also explore integrating external factors like holidays or promotional events to further enhance the model's temporal awareness.

Conclusion

HTP demonstrates that "when" an interaction occurs is just as informative as "what" the interaction was. By holistically modeling absolute, relative, and recommendation-time intervals, HTP provides a more nuanced and accurate framework for understanding the evolving patterns of user behavior.

Summary updated

BibTeX
@inproceedings{chen2023htp,
  author = {Rui Chen and Guotao Liang and Chenrui Ma and Qilong Han and Li Li and Xiao Huang},
  title = {{HTP: Exploiting Holistic Temporal Patterns for Sequential Recommendation}},
  booktitle = {IJCNN},
  year = {2023},
}
Figure