Where are we in embedding spaces?

Sixiao Zhang, Hongxu Chen, Xiao Ming, Lizhen Cui, Hongzhi Yin, Guandong Xu · DOI

TL;DR

This paper provides a comprehensive analysis of when and why hyperbolic embeddings are beneficial for recommender systems, moving beyond the trend of simply applying them everywhere. They introduce guidelines for choosing between Euclidean and hyperbolic spaces based on model type, dataset density, and latent dimension size, and propose a new hyperbolic metric learning model for social recommendation that achieves state-of-the-art results.

What Problem Does This Paper Address?

Recommender systems often rely on embedding user and item interactions into latent spaces. While Euclidean space has been the standard, hyperbolic space has emerged as a promising alternative due to its ability to model hierarchical data more efficiently. However, there's a lack of clear understanding regarding when hyperbolic embeddings truly offer an advantage over traditional Euclidean embeddings. Practitioners often apply hyperbolic methods without a strong theoretical or empirical basis, leading to potential inefficiencies and missed opportunities. This paper aims to bridge this gap by providing a systematic analysis and practical guidance on the appropriate use of hyperbolic spaces in recommender systems.

Methods

The authors conduct a theoretical and empirical investigation into the suitability of hyperbolic space for recommender systems. Their approach involves:

  • Theoretical Analysis: They analyze the properties of hyperbolic space, particularly the Poincaré ball model, and its advantages in representing hierarchical data and its exponential expansion compared to Euclidean space's polynomial expansion.
  • Hypothesis Formulation: Based on their analysis, they propose three key hypotheses:
  • Distance-based models benefit more from hyperbolic space than projection-based models.
  • Hyperbolic space is more powerful on datasets with low density.
  • Hyperbolic space excels with small latent dimensions, with Euclidean space becoming comparable as dimensions increase.
  • Empirical Validation: They evaluate these hypotheses by comparing Euclidean and hyperbolic versions of several existing recommender system models (MF-BPR, CML, DMF, TrustSVD, SoRec) across general item and social recommendation tasks on multiple datasets.
  • New Model Proposal: They introduce Social Collaborative Metric Learning (SCML) and its hyperbolic counterpart, Hyperbolic Social Collaborative Metric Learning (HSCML), a distance-based model designed for social recommendation, to further validate their findings.

Datasets

The study utilizes a variety of datasets to evaluate their hypotheses:

  • General Item Recommendation:
    • MovieLens 1M
    • MovieLens 100K
    • Automotive (Amazon review subset)
    • Cellphones (Amazon review subset)
  • Social Recommendation:
    • Epinions
    • Ciao

These datasets were chosen to represent a range of densities, from high (MovieLens) to very low (Automotive, Cellphones, Epinions, Ciao), allowing for a thorough investigation of the density hypothesis.

Key Insights and Ideas

  • Distance Models Shine in Hyperbolic Space: The most significant finding is that distance-based recommender models (like metric learning approaches) consistently benefit from hyperbolic embeddings, showing substantial improvements over their Euclidean counterparts. Projection-based models, however, do not see similar gains.
  • Low Density is Key: Hyperbolic space demonstrates a clear advantage on datasets with low rating density. This is attributed to its inherent ability to capture hierarchical structures, which are more prevalent and harder to discern in sparse data.
  • Latent Dimension Matters: Hyperbolic embeddings offer superior performance at smaller latent dimensions. As the latent dimension increases, the performance gap between Euclidean and hyperbolic spaces narrows, with Euclidean space eventually becoming competitive. This suggests that hyperbolic space can achieve comparable or better results with fewer parameters.
  • Hyperbolic Space is Computationally Demanding: While powerful, hyperbolic operations (exponential and logarithmic maps) introduce higher computational complexity, especially for complex neural network architectures.

Key Results

  • Distance Models: For distance models like CML, hyperbolic space showed significant improvements (e.g., on Automotive and Cellphones datasets), validating Hypothesis 1.
  • Density: Datasets with low density (Automotive, Cellphones, Epinions, Ciao) generally showed greater benefits from hyperbolic space compared to high-density datasets like MovieLens, supporting Hypothesis 2. On MovieLens, Euclidean and hyperbolic performance was often comparable.
  • Latent Size: As the latent dimension increased (from 10 to 100), the performance advantage of hyperbolic space over Euclidean space diminished, confirming Hypothesis 3.
  • SCML vs. HSCML: The proposed HSCML model outperformed its Euclidean counterpart (SCML) on low-density datasets (Epinions, Ciao), demonstrating the practical utility of hyperbolic space in social recommendation.
  • State-of-the-Art Performance: HSCML achieved comparable or better performance than several state-of-the-art Euclidean baseline methods on Ciao and Epinions, even with a relatively simple distance-based architecture.

Limitations and Future Work

  • Computational Complexity: The authors acknowledge that hyperbolic operations increase computational cost, which can be a drawback for complex models.
  • Invalid Values: The use of inverse hyperbolic functions can lead to numerical instability, requiring careful handling of potential invalid values.
  • Future Work: The authors suggest that designing models specifically tailored for hyperbolic geometry, rather than adapting existing Euclidean models, could lead to even greater performance gains and potentially outperform current state-of-the-art approaches. They also highlight the potential for further exploration in other recommendation domains and with more complex model architectures.

Summary updated

BibTeX
@inproceedings{zhang2021where,
  author = {Sixiao Zhang and Hongxu Chen and Xiao Ming and Lizhen Cui and Hongzhi Yin and Guandong Xu},
  title = {{Where are we in embedding spaces?}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2021},
  doi = {10.1145/3447548.3467421},
}
Figure