TL;DR
TA-HGAT is a novel recommendation framework that combines hyperbolic geometry with time-aware graph attention to predict a user's next click. By mapping session data into a hyperbolic "Poincaré ball," the model captures the hierarchical nature of user behavior while explicitly accounting for the time intervals between interactions—a crucial feature often ignored by previous graph-based methods.
What Problem Does This Paper Address?
Session-based Recommendation (SBR) aims to predict a user's next interest based on a short-term sequence of interactions (like a single browsing session). While Graph Neural Networks (GNNs) have become the gold standard for SBR, they face two major hurdles:
- Temporal Neglect: Most graph-based models treat sessions as static structures, losing the "freshness" or "timeliness" of the data. They ignore the actual time elapsed between clicks, which is a strong signal of user intent.
- Euclidean Limitations: User sessions often exhibit a tree-like hierarchical structure. Euclidean space (the standard "flat" geometry used in most ML) struggles to represent these hierarchies without high distortion. Hyperbolic space, which expands exponentially rather than polynomially, is mathematically better suited for modeling such data.
Methods
The authors propose the Time-aware Hyperbolic Graph Attention Network (TA-HGAT), which operates entirely within a hyperbolic manifold. Its architecture consists of three main stages:
- Hyperbolic Projection: It transforms standard Euclidean item features into the Poincaré ball model of hyperbolic space using an exponential map.
- Time-aware Hyperbolic Attention:
- Self-attention: Unlike standard attention that uses inner products, this module uses hyperbolic distance to calculate weights between items. Crucially, it projects continuous time intervals into vectors and merges them with item embeddings using Möbius addition.
- Soft-attention: This learns a global session representation by weighing all items against the user's "current interest" (the very last item clicked).
- Evolutionary Loss: Instead of a static classification loss, the model uses a specialized hyperbolic loss function. It predicts the "trajectory" of the session and item embeddings toward a specific future timestamp, making the recommendation time-specific.
Datasets
The model was evaluated on two benchmark datasets commonly used in the recommendation field:
- Diginetica: Originating from the CIKM Cup 2016, containing transaction data and item categories.
- Yoochoose: From the RecSys Challenge 2015, consisting of a massive collection of click streams. The authors used the standard "1/64" and "1/4" subsets for training.
Key Insights and Ideas
- The Geometry of Interest: The paper reinforces the idea that user behavior isn't "flat." By using hyperbolic space, the model can represent complex item transitions with fewer dimensions and less error than Euclidean models.
- Time as an Edge Feature: In a graph, the sequential order of items can become ambiguous. By treating the time interval as a feature of the edge between items, TA-HGAT restores the temporal flow that vanilla GNNs often lose.
- Distance-based Attention: Using hyperbolic distance for attention coefficients naturally satisfies the triangle inequality. This provides a more geometrically sound way to represent the "closeness" of two items in a user's mind compared to standard dot-product attention.
Key Results
TA-HGAT was compared against ten state-of-the-art baselines, including popular models like SR-GNN and the previous hyperbolic leader, HCGR.
- Superior Accuracy: TA-HGAT outperformed all baselines across all datasets. On the Diginetica dataset, it achieved an MRR@20 of 19.73 and a P@20 of 56.28.
- Improvement over Hyperbolic Baselines: It showed a 4.3% improvement in MRR@20 over HCGR, proving that adding temporal awareness to hyperbolic models provides a significant performance boost.
- Ablation Success: Removing either the time-aware component or the hyperbolic attention led to a drop in performance, confirming that both the geometry and the timing are essential "ingredients" of the model's success.
Limitations and Future Work
- Computational Complexity: Operations in hyperbolic space (like Möbius addition and matrix-vector multiplication) are mathematically more complex and computationally heavier than their Euclidean counterparts.
- Feature Depth: While the model uses item categories for Diginetica, it doesn't deeply explore other side information (like item images or text descriptions) within the hyperbolic space.
- Future Directions: The authors plan to extend this framework to more complex recommendation scenarios, such as next-basket recommendation (where users buy multiple items at once) and Point-of-Interest (POI) recommendation, where spatial and temporal data are even more intertwined.
Summary updated