Introduction
Modern recommendation systems often struggle to capture the complex, hierarchical structures inherent in user-item interaction data. TriplH addresses this by leveraging hyperbolic geometry, specifically the Lorentz (Hyperboloid) model. By introducing a novel Lorentzian triplet loss with an adaptive item-item margin, TriplH achieves superior accuracy and diversity while maintaining numerical stability and computational efficiency.
Problem Statement
Traditional recommender systems typically map users and items into Euclidean space. However, real-world data often follows a power-law distribution that Euclidean geometry cannot represent efficiently. While hyperbolic space offers a more suitable mathematical framework for such data, existing hyperbolic models face three primary challenges:
- Numerical Instability: Common projections like the Poincaré ball involve complex functions prone to errors.
- Limited Interaction Modeling: Most models focus on pairwise (user-item) relationships, neglecting the ternary dynamics between a user and their preferred vs. non-preferred items.
- Popularity Bias: Standard loss functions often over-recommend "blockbuster" items, reducing the diversity of the recommendation catalog.
Methodology
TriplH utilizes the Lorentz model to overcome these hurdles through several key technical innovations:
- Lorentzian Triplet Loss: TriplH employs a loss function that simultaneously considers the user ($u$), a positive item ($v^+$), and a negative item ($v^-$), rather than simple pairwise comparisons.
- Adaptive Margin: Instead of a fixed safety margin, TriplH incorporates an item-item interaction term $f(S(v^+, v^-))$. This allows the model to learn the necessary separation based on the items' own geometric relationship in the hyperbolic space.
- Squared Lorentz Distance: To ensure numerical stability and speed, the authors use an approximation based on the Squared Lorentz distance, avoiding computationally expensive hyperbolic trigonometric functions.
Experimental Setup
The model was evaluated on four standard benchmarks using a "leave-last-out" strategy: MovieLens-1M and three Amazon categories (Beauty, Clothing, and Sports). These datasets represent a wide range of consumer behaviors and interaction densities.
Results and Discussion
Accuracy and Robustness
TriplH consistently outperformed both Euclidean baselines (BPR, iALS) and state-of-the-art hyperbolic models (HyperML, HyperBPR). The model achieved improvements in HitRate and NDCG of up to 8.8%. Notably, TriplH maintains high performance even with very low-dimensional embeddings (e.g., 10 or 20 dimensions), where Euclidean models typically fail to be expressive enough.
Diversity and Popularity Bias
A key finding was that modeling the distance between positive and negative items ($v^+$ and $v^-$) naturally mitigates popularity bias. By capturing global differences between items, TriplH recommends a wider variety of niche items.
Efficiency
Thanks to the simplified mathematics of the Lorentz model and Squared distance, TriplH is approximately 3x faster during inference than Poincaré-based hyperbolic models, making it suitable for high-traffic production environments.
Conclusion
TriplH demonstrates that geometric insights can significantly enhance recommendation quality. By combining the representational power of hyperbolic space with a stable, triplet-based loss and an adaptive margin, the model provides a robust solution for capturing complex data hierarchies. Future work may involve extending this Lorentzian approach to more complex architectures, such as Graph Neural Networks or Sequential Transformers.
Summary updated