Breaking Information Cocoons: A Hyperbolic Framework for Balancing Exploration and Exploitation in Recommender Systems


Abstract

Modern recommender systems often create information cocoons, restricting users’ exposure to diverse content. The central challenge is to balance content exploration and exploitation while allowing users to adjust their recommendation preferences. Ideally, this balance can be captured with a hierarchical representation, where depth search facilitates exploitation and breadth search enables exploration. However, existing approaches face two fundamental limitations: Euclidean methods struggle to capture hierarchical structures, while hyperbolic methods, despite their superior hierarchical modeling, lack semantic understanding of user and item profiles and fail to provide a principled mechanism for balancing exploration and exploitation. To address these challenges, we propose HERec, a hyperbolic framework that effectively balances exploration and exploitation in recommender systems. Our framework introduces two key innovations: (1) a semantic-enhanced hierarchical mechanism that aligns rich textual descriptions with collaborative information directly in hyperbolic space. Theoretical gradient analysis demonstrates that this alignment effectively leverages the underlying hyperbolic manifold structure, resulting in more accurate modeling of users and items; (2) an automatic hierarchical clustering mechanism by optimizing Dasgupta’s cost, which discovers hierarchical structures without requiring predefined hyperparameters, enabling user-adjustable exploration-exploitation trade-offs. Extensive experiments demonstrate that HERec consistently outperforms both Euclidean and hyperbolic baselines, achieving up to 5.49% improvement in utility metrics and 11.39% increase in diversity metrics, effectively mitigating information cocoons.

<ccs2012> <concept> <concept_id>10002951.10003317.10003347.10003350</concept_id> <concept_desc>Information systems Recommender systems</concept_desc> <concept_significance>500</concept_significance> </concept> <concept> <concept_id>10002951.10003317.10003331.10003271</concept_id> <concept_desc>Information systems Personalization</concept_desc> <concept_significance>500</concept_significance> </concept> <concept> <concept_id>10010147.10010257.10010258</concept_id> <concept_desc>Computing methodologies Learning paradigms</concept_desc> <concept_significance>500</concept_significance> </concept> </ccs2012>

1 INTRODUCTION↩︎

Figure 1: Exploration and exploitation in hyperbolic space.

As online platforms grow in size dramatically, users are overwhelmed by an influx of information, creating information cocoons that restrict their exposure to diverse and novel content [1], [2].

Traditional recommendation approaches have primarily relied on collaborative filtering and interaction data [3], [4], where users with similar historical preferences are expected to share future interests [5]. However, these methods face two critical challenges in improving user experience. First, existing models struggle to capture the underlying hierarchical structure inherent in user-item networks [6], [7], a critical factor for enhancing performance and personalization. Second, these models fail to effectively balance the exploration-exploitation trade-off. For instance, a jazz enthusiast may want to explore rock music, but current models primarily focus on exploitation—recommending only familiar genres—without adequately supporting exploration.

Hyperbolic space has emerged as a promising approach for modeling hierarchical structures and power-law distributions [8][11], where its exponential volume growth naturally aligns with hierarchical, scale-free structures [12][16]. In hyperbolic space, distances increase exponentially from the origin, allowing popular items or exploratory users to be positioned closer to the origin, while niche items or users with focused interests spread toward the boundaries. This spatial configuration enables hyperbolic graph neural network (GNN) models to perceive hierarchical relationships effectively, enhancing recommendation performance [9][11]. An illustrative example is shown in Figure 1.

Despite these advantages, current hyperbolic recommender systems still face key limitations. First, they struggle with a lack of semantic understanding of user and item profiles. While large language models (LLMs) offer a potential solution, their text encoders operate in Euclidean space, making it challenging to integrate LLM-derived semantic features with hyperbolic collaborative signals. This mismatch leaves existing hyperbolic models vulnerable to noise in collaborative information, as they fail to capture semantic insights effectively. Second, hyperbolic recommender systems lack a principled approach to balancing exploration (introducing new content) and exploitation (focusing on existing preferences) [17]. This limitation reduces their ability to adapt to the exploration-exploitation trade-off, ultimately diminishing both the utility and diversity of recommendations.

Proposed Method. To address these challenges, we propose HERec, a hyperbolic framework designed to balance exploration and exploitation in recommender systems. Our approach introduces two key innovations: (1) a hierarchical-aware semantic-collaborative alignment mechanism, which jointly aligns textual descriptions with user-item collaborative information in hyperbolic space, supported by theoretical gradient analysis demonstrating its adaptiveness; (2) a novel hierarchical representation structure that enables user-adjustable exploration-exploitation trade-offs. Unlike conventional approaches that require manually defined hierarchies, we propose a hyperparameter-free clustering mechanism theoretically optimized by Dasgupta’s cost [18]. This approach automatically discovers hierarchical structures without requiring predefined hyperparameters, allowing for a more adaptive and principled organization of user preferences.

To validate the effectiveness of HERec, we conducted extensive experiments across multiple dimensions. Our model consistently outperformed baselines in both utility and diversity, marking a significant achievement as a single model to excel in both aspects simultaneously. For a fair comparison, we also enhanced Euclidean baselines with feature information, yet our model still demonstrated superior performance. Additionally, we conducted a detailed analysis on head and tail items, showing that HERec effectively boosts recommendations for tail items, thus enhancing diversity. An ablation study, along with a hierarchical representation structure analysis module, confirms HERec’s capability to leverage both semantic meaning and collaborative information, providing deeper insights into the advantages of our approach.

Contributions. Our primary contributions focus on three key aspects: capturing collaborative signals, integrating semantic information, and modeling the underlying hierarchical structure. The proposed hyperbolic alignment framework unifies collaborative and semantic information in hyperbolic space, while a hierarchical representation structure organizes user preferences, allowing for dynamic adjustment between exploration and exploitation. Moreover, through extensive experiments evaluating both utility and diversity metrics, we demonstrate that HERec achieves state-of-the-art performance across utility and diversity metrics. We have made our code available at:  https://github.com/Martin-qyma/HERec.

2 Related Work↩︎

In this section, we review graph-based collaborative filtering, large language models (LLMs) for recommendation, hyperbolic representation learning methods and existing approaches that balance the trade-off between utility and diversity.

2.1 Graph Collaborative Filtering↩︎

Graph Collaborative Filtering has emerged as a dominant approach in recommender systems, with graph neural networks (GNNs) playing a central role. Unlike traditional collaborative filtering techniques, such as matrix factorization [4], GNNs capitalize on the relational structure in user-item interactions, enabling a more nuanced understanding of complex dependencies. Prominent graph-based methods, such as NGCF [19], SGL [20], and LightGCN [3], have been widely adopted and have consistently achieved state-of-the-art performance. Nevertheless, these models are constrained to Euclidean space, which may fall short in capturing the underlying power-law distribution in user-item networks.

2.2 LLMs for Recommendation↩︎

Large language models (LLMs) are increasingly used in recommender systems for their strong capability in understanding textual information. Some approaches leverage LLMs directly for downstream recommendation tasks [21][25], while others utilize LLMs as an auxiliary tool for collaborative filtering [26][28]. However, these approaches require substantial inference time and are computationally inefficient. In our HERec, we use language models exclusively to improve data quality, eliminating the need for repeated inference during each recommendation by utilizing hyperbolic embeddings for the final output.

2.3 Hyperbolic Learning and Recommendation↩︎

Recent research has explored hyperbolic space as a robust alternative to Euclidean geometry for modeling the hierarchical and non-Euclidean structures inherent in user-item interactions [9], [13][15]. By leveraging the property that hyperbolic volume grows exponentially with the radius, these models effectively capture the power-law distributions and latent hierarchies typical of scale-free graphs [29][31]. Key advancements include the development of fully hyperbolic graph convolutions to minimize structural distortion [32] and manifold-aware approaches for knowledge-aware and social recommendation [10], [11], [33]. Collectively, these works demonstrate that hyperbolic manifolds provide superior representation capacity for graph-structured data compared to traditional Euclidean methods.

However, none of these hyperbolic models fully leverage the rich semantic information embedded in language-based datasets. While some approaches incorporate knowledge graphs as supplementary information [34], [35], these models primarily focus on refining hierarchical structures rather than achieving a deeper semantic understanding of each item or user.

2.4 Utility-Diversity Trade-off↩︎

Various strategies have been proposed to balance utility and diversity. Some leverage reinforcement learning to foster exploration [36], [37], while others mitigate data bias to optimize trade-offs [38] or integrate fairness objectives directly into training [39], [40]. Notably, recent work suggests that the accuracy-diversity tension may not be inherent, but rather a byproduct of standard metrics and user information cocoons [41].

Despite these advances, existing methods still lack a systematic framework for explicitly modeling the utility-diversity trade-off and its underlying structure. While these approaches recognize the heterogeneity among users and items, such as the “long tail” phenomenon, they do not provide principled mechanisms to capture or leverage this structure. Consequently, prior work has largely focused on increasing diversity, rather than systematically breaking information cocoons through a well-founded trade-off strategy.

3 PRELIMINARIES↩︎

Embeddings learned from graph collaborative filtering are by default in the Euclidean space, which is unable to capture hierarchical structures. To address the problem, we introduce how to derive these embeddings in a hyperbolic space.

Riemannian Manifold. A Riemannian manifold \((\mathcal{M}, g)\) is a smooth manifold with an inner product \(g_x\) at each point \(x \in \mathcal{M}\), defining geometric properties such as angles and curve lengths. Its curvature determines the geometry: positive (elliptic), zero (Euclidean), or negative (hyperbolic). We focus on hyperbolic geometry, modeled using the Lorentz (hyperboloid) representation.

Lorentz Model. An \(n\)-dimensional Lorentz manifold with negative curvature \(-1/\kappa\) \((\kappa>0)\) is described as the Riemannian manifold \((\mathbb{H}^n_\kappa, g_\mathcal{L})\). Here, \(\mathbb{H}^n_\kappa = \{x \in \mathbb{R}^{n+1} : \langle x, x \rangle_\mathcal{L} = -\kappa, x_0 > 0\}\), \(g_\mathcal{L} = \eta\) with \(\eta = \mathbf{I}_n\) except \(\eta_{0,0} = -1\), and \(\langle \cdot, \cdot \rangle_\mathcal{L}\) represents the Lorentzian inner product, which is defined as: \[\langle x, y \rangle_\mathcal{L} := -x_0 y_0 + \sum_{i=1}^n x_i y_i\] A tangent space is an \(n\)-dimensional vector space that locally approximates hyperbolic space. For a point \(x \in \mathbb{H}_\kappa^n\), the tangent space \(\mathcal{T}_x\mathbb{H}_\kappa^n\) is defined as: \[\mathcal{T}_x\mathbb{H}_\kappa^n := \{v \in \mathbb{R}^{n+1} : \langle v, x \rangle_\mathcal{L} = 0\}\] This space is orthogonal to \(x\) under the Lorentzian inner product, providing accurate local approximation. Transitions between hyperbolic space and tangent space are facilitated by exponential and logarithmic maps, essential for gradient-based optimization. The exponential map \(\exp_x: \mathcal{T}_x\mathbb{H}_\kappa^n \to \mathbb{H}_\kappa^n\) projects a tangent vector onto hyperbolic space along a geodesic: \[\exp_{x}^{\kappa}(v) = \cosh \left( \frac{\|v\|_{\mathcal{L}}}{\sqrt{\kappa}} \right) x + \sqrt{\kappa} \sinh \left( \frac{\|v\|_\mathcal{L}}{\sqrt{\kappa}} \right) \frac{v}{\|v\|_{\mathcal{L}}} \label{eq:exp}\tag{1}\] where \(\|v\|_\mathcal{L} = \sqrt{\langle v, v \rangle_\mathcal{L}}\) is the Lorentzian norm. The logarithmic map \(\log_x\) is the inverse of \(\exp_x\) and retrieves the tangent vector for a point \(y \in \mathbb{H}_\kappa^n\): \[\log_{x}^{\kappa}(y) = d_{\mathcal{L}}^\kappa(x, y) \frac{y + \frac{1}{\kappa} \langle x, y \rangle_\mathcal{L} x}{\|y + \frac{1}{\kappa} \langle x, y \rangle_\mathcal{L} x\|}\] where \(d_\mathcal{H}^\kappa(x, y)\) is the distance between \(x\) and \(y\) in \(\mathbb{H}^n_\kappa\): \[d_\mathcal{H}^\kappa(x, y) = \sqrt{\kappa} \, \text{arcosh} \left( -\langle x, y \rangle_\mathcal{L}/\kappa \right)\] We use \(\mathbf{o} := \{\sqrt{\kappa}, 0, \ldots, 0\} \in \mathbb{H}^n_\kappa\) as the reference point. For simplicity, we set \(\kappa = 1\), giving a curvature of \(-1\), and omit \(\kappa\) in subsequent discussions.

4 METHODOLOGY↩︎

In this section, we present a comprehensive overview of our proposed model, HERec. Our approach not only aims to deliver accurate recommendations but also addresses users’ growing demand for more diverse suggestions. Furthermore, by constructing a hierarchical tree from the learned embeddings, we introduce an additional mechanism that enables users to control the degree of exploration in the recommended items. The overall framework is in Figure 2.

Figure 2: The overall architecture of HERec. (i) Hyperbolic Graph Collaborative Filtering: Encodes collaborative information using hyperbolic GNNs; (ii) Hyperbolic Alignment: Aligns semantic and collaborative information within hyperbolic space; (iii) Hierarchical Representation Structure: Builds hierarchy structure from hyperbolic embeddings.

4.1 Hyperbolic Graph Collaborative Filtering↩︎

Similar to Euclidean space, hyperbolic graph collaborative filtering captures user-item dependencies via message passing mechanism. We apply the Lorentz representation for both users and items.

Hyperbolic embedding initialization. As discussed in section 3, we fix the origin \(\mathbf{o} := \{\sqrt{\kappa}, 0, \ldots, 0\} \in \mathbb{H}^n_\kappa\) and use it as the reference point. Embeddings are initialized in Euclidean space using Gaussian sampling and projected onto the tangent space of \(\mathbf{o}\) to derive their hyperbolic representations: \[\begin{align} z_u^0 = (0, e_u), \quad\qquad z_i^0 &= (0, e_i) \\ h_u^0 = \exp_\mathbf{o}(z_u^0), \quad\quad h_i^0 &= \exp_\mathbf{o}(z_i^0) \end{align} \label{equ:32initialization}\tag{2}\] where \(e_u, e_i\) are Gaussian-initialized Euclidean embeddings, and \(z_u^0, z_i^0\) are their tangent space projections. \(h_u^0, h_i^0\) denote the resulting hyperbolic embeddings.

Hyperbolic Message Passing. User-item interactions are captured via hyperbolic neighborhood aggregation. For user \(u\), item \(i\), and their neighborhoods \(\mathcal{N}_u, \mathcal{N}_i\), tangent space embeddings at layer \(l\) are updated as: \[z_u^{l} = z_u^{l-1} + \sum_{i\in \mathcal{N}_u}\frac{1}{|\mathcal{N}_u|}z_i^{l-1},\quad z_i^{l} = z_i^{l-1} + \sum_{u\in \mathcal{N}_i}\frac{1}{|\mathcal{N}_i|}z_u^{l-1}\] where \(|\mathcal{N}_u|\) and \(|\mathcal{N}_i|\) are the neighborhood sizes. The final tangent embeddings are obtained by summing over all layers: \[z_u = \sum_{l} z_u^l, \quad\quad z_i = \sum_{l} z_i^l\] Since \(z_u\) and \(z_i\) are on the tangent space, we still need to project them into hyperbolic space to derive the hyperbolic embeddings: \[h_u=\exp_\mathbf{o}(z_u), \quad\quad h_i=\exp_\mathbf{o}(z_i)\]

Hyperbolic Prediction Function. Through hyperbolic messaging passing, we’ve captured high-order relational information into hyperbolic embeddings. Hyperbolic distance is now used to define a prediction function, which predicts the possibility that a user would interact with an item: \[p(u,i) = \frac{1}{d_\mathcal{H}(h_u,h_i)}\]

Hyperbolic Margin Ranking and Informative Mechanism. To address the limitations of Euclidean-based approaches, we adopt the hyperbolic margin ranking loss [10], an extension of Bayesian Personalized Ranking (BPR) [42]. This loss pulls user-item pairs with observed interactions closer while pushing negative pairs apart, preventing the collapse seen in Euclidean space by incorporating a margin: \[\ell_{m}(u,i,j) = \max(d_\mathcal{H}^2(h_u, h_i) - d_\mathcal{H}^2(h_u, h_j) + m, 0)\] where \(d_\mathcal{H}\) represents hyperbolic distance, \(m\) is the margin, \((u,i)\) is an observed interaction, and \((u,j)\) is a sampled negative pair.

To further refine this pull-push process, we integrate a geometric-aware mechanism [11] combining Hyperbolic-aware Margin Learning (HAML) and Hyperbolic Informative Negative Sampling (HINS). HAML dynamically adjusts the margin based on hyperbolic geometry, assigning a larger margin to pairs near the origin: \[\begin{align} m^\mathcal{H}_{ui} &= \mathrm{sigmoid}(\delta)\\ \delta &= \frac{d_\mathcal{H}^2(e_u, \mathbf{o}) + d_\mathcal{H}^2(e_i, \mathbf{o}) - d_\mathcal{H}^2(e_u, e_i)}{e_{u,0} \cdot e_{i,0}} \end{align}\] where \(e_{u,0}\) and \(e_{i,0}\) are the zeroth coordinates of \(e_u\) and \(e_i\), representing their norms. HINS enhances negative sampling by prioritizing candidates near the positive item, leveraging hyperbolic geometry to better model head and tail items, ultimately improving recommendation performance.

4.2 Semantic Representations Generation↩︎

We propose a paradigm to distill useful information from raw text descriptions of items and users into dense semantic embeddings for our alignment framework. Building on prior work [26], [43] that leverages large language models (LLMs) to extract meaningful user/item descriptions from noisy textual data, we generate rich user/item profiles as \(\mathcal{P}_i = \textit{LLMs}(\mathcal{S}_i, \mathcal{T}_i)\), where \(\mathcal{S}_i\) are system prompts, \(\mathcal{T}_i\) is raw textual input, and \(\mathcal{P}_i\) contains sentence-level descriptions.

To integrate these profiles with hyperbolic collaborative filtering embeddings, we encode the textual information into embeddings using pre-trained text encoders: \(e_i = \textit{Encoder}(\mathcal{P}_i)\). While LLM embeddings are an alternative, they often incur higher computational overhead and are less optimized for alignment with hyperbolic representations, making pre-trained encoders a more practical choice.

4.3 Hyperbolic Alignment↩︎

We propose a hyperbolic alignment framework that unifies collaborative signals from hyperbolic embeddings with semantic cues from textual embeddings, producing a single representation that integrates both sources of knowledge. To achieve this, we develop a hyperbolic alignment loss, which reduces noise in representations and improves tail item recommendations by aligning information in the same hyperbolic space. A theoretical advantage of hyperbolic alignment over Euclidean alignment is discussed in the next subsection.

Before calculating the alignment loss, two steps are necessary: 1) the semantic embeddings must be adjusted to match the dimensionality of the collaborative embeddings, and 2) they should be transformed into a common representation space. To accomplish this, we first apply a multi-layer perceptron (MLP) to the semantic embeddings to ensure dimensional alignment. We then project the semantic embeddings into hyperbolic space so they can align with the hyperbolic collaborative embeddings. The hyperbolic alignment loss is calculated as: \[\ell_{align}(i) = d_\mathcal{H}^2(h_i, s_i)\] where \(d_{\mathcal{H}}\) represents the hyperbolic distance, \(h_i\) is the hyperbolic embedding with collaborative information and \(s_i\) denotes the projected semantic embedding in hyperbolic space.

4.4 Gradient Analysis of Hyperbolic Alignment↩︎

To demonstrate the unique advantage of hyperbolic alignment, we analyze the gradient behavior with respect to nodes of varying norms in Proposition 1, detailed proof with analysis can be found in Appendix 7. This provides insight into the hierarchical preservation properties of the hyperbolic space, which are absent in Euclidean space.

Proposition 1. Let \(\mathbf{x}, \mathbf{y}\) denote embeddings in hyperbolic space \(\mathcal{H}^n\) with corresponding unit direction vectors in space-like dimension \(\hat{\mathbf{x}}, \hat{\mathbf{y}}\), and let \(\theta\) be the angle between them. The gradient magnitude of semantic alignment satisfies: \[\|\nabla_{\mathbf{x}} d_{\mathcal{H}}(\mathbf{x}, \mathbf{y})\| \approx \frac{\|\hat{\mathbf{x}} - \hat{\mathbf{y}}\|}{\|\mathbf{x}\|(1 - \cos \theta)}.\] This facilitates adaptive gradient updates that intrinsically preserve hierarchical structures. In contrast, Euclidean space exhibits constant gradient magnitude \(\|\nabla_{\mathbf{x}} d_{\mathcal{E}}(\mathbf{x}, \mathbf{y})\| = 1\), where \(d_{\mathcal{H}}\) and \(d_{\mathcal{E}}\) denote hyperbolic and Euclidean distances respectively.

This proposition highlights that hyperbolic space offers adaptive gradient magnitudes based on node norms. Nodes with large norms (fine-grained preferences, small positional changes cause significant distance changes) receive smaller gradient updates, ensuring precise distance adjustments and preserving local structures. Meanwhile, nodes with smaller norms (abstract preferences, positional changes have less impact on distances) adjust more, refining global relationships and effectively capturing the hierarchical structure. This inherent ability of hyperbolic space to modulate learning intensity based on an embedding’s position within the hierarchy offers a distinct advantage over the fixed-update approach of Euclidean geometry, ultimately facilitating more faithful and structured representations.

4.5 Hierarchical Representation Structure↩︎

In this subsection, we design a mechanism that allows users to balance the exploration-exploitation trade-off by constructing a hierarchical representation structure based on the learned hyperbolic embeddings.

4.5.1 Hierarchy Tree↩︎

The primary motivation for constructing a hierarchy tree is to uncover hidden structures in the data that are not explicitly reflected in the dataset. For instance, consider the Amazon-CD dataset: a CD might be categorized under genres like “folk music”, but it cannot be labeled as “folk music preferred by teenagers”. However, in reality, such nuanced preferences exist within the collaborative information. When recommending based solely on past interactions, we may overlook these hidden layers of structure that are implicit in the dataset (e.g., “music” → “folk music” → “folk music preferred by teenagers”).

To address this, we introduce a hyperbolic hierarchical clustering method based on hyperbolic embeddings to build the hierarchy tree. Specifically, we iteratively group embeddings into clusters and use the centroid of each cluster as the data point to be clustered in the upper layer, referred to as a pseudo-cluster node. However, the number of cluster nodes in each layer is not predefined and must be determined. Inspired by Dasgupta’s cost [18], which encourages pushing edge cuts as far down the tree as possible, the optimal tree is required to be binary. Therefore, we fix the proportion of cluster nodes between layers as \(k=2\). Details of the algorithm are presented in Algorithm 3.

Figure 3: Hyperbolic Hierarchical Clustering

4.5.2 Exploration-Exploitation Balance↩︎

To allow users to balance the exploration-exploitation trade-off, we introduce two adjustable parameters: temperature \(\tau\) and hierarchy layer \(l\). In the standard recommendation approach, items are recommended based on similarity to the user’s embedding, which may limit exploration. For users with focused preferences, this method may consistently recommend items that align too closely with their past choices, offering little opportunity to explore different categories.

To address this issue, we modify the recommendation process by replacing a portion of the recommended items with alternatives from other branches in the hierarchy tree. This modification gives users control over the balance between exploration and exploitation. Temperature \(\tau\) allows users to specify the proportion of original recommendations to replace, while layer \(l\) determines the starting point for exploration. For example, suppose a user selects \(\tau = 0.5\) and \(l = 5\). In that case, half of the original recommendations are retained, and the other half is replaced with items sampled from its ancestor cluster at layer \(5\) of the hierarchy tree.

4.6 Complexity Analysis↩︎

In this subsection, we analyze the complexity of constructing and applying the hierarchical representation structure. Let \(N\) be the total number of users and items, and \(k\) be the number of recommendations per user.

4.6.1 Hierarchical Clustering↩︎

Building the hierarchy tree involves iterative k-means clustering in hyperbolic space. To optimize efficiency, we assign cluster nodes only to real node embeddings. First, we compute and store pairwise distances, requiring \(O(N^2/2)\). Each k-means iteration takes \(O(i)\), and with \(O(\log N)\) levels, the overall complexity of constructing the hierarchy tree is \(O(N^2/2 + i\log N)\).

4.6.2 Recommendation Retrieval & Replacement↩︎

Finding the top-\(k\) recommendations requires \(O(k \log N)\) using nearest neighbour search in hyperbolic space. Adjusting recommendations by retrieving ancestor clusters at layer \(l\) requires \(O(k)\) time, as it involves only tree traversal.

The proposed hierarchical framework achieves efficient complexity scaling while maintaining flexibility in recommendation adjustments. The hierarchical clustering process, optimized for hyperbolic space, ensures a computationally feasible structure with \(O(N^2/2 + i\log N)\) complexity. The recommendation retrieval and replacement steps remain lightweight, running in \(O(k \log N)\) and \(O(k)\), respectively. This design enables HERec to dynamically balance exploration and exploitation while ensuring scalability for large-scale recommender systems.

5 EXPERIMENTS↩︎

c|c|llll|llllll & & &
& & Recall@10 & NDCG@10 & Recall@20 & NDCG@20 & Div@10 & H@10 & EPC@10 & Div@20 & H@20 & EPC@20
& & 0.0950 & 0.0726 & 0.1428 & 0.0884 & 0.4469 & 9.8554 & 0.7429 & 0.4504 & 10.485 & 0.7798
& & 0.0986 & 0.0755 & 0.1468 & 0.0912 & 0.4090 & 10.915 & 0.7899 & 0.4517 & 11.465 & 0.8227
& & 0.1075 & 0.0846 & 0.1515 & 0.0991 & 0.4651 & 11.511 & 0.8523 & 0.4974 & 11.941 & 0.8728
& & 0.0997 & 0.0762 & 0.1478 & 0.0918 & 0.4286 & 10.341 & 0.7757 & 0.4802 & 10.915 & 0.8076
& & 0.1045 & 0.0813 & 0.1488 & 0.0962 & 0.5008 & 11.814 & 0.8579 & 0.5433 & 12.137 & 0.8746
& & 0.1013 & 0.0759 & 0.1511 & 0.0921 & 0.4742 & 11.577 & 0.8623 & 0.5041 & 11.732 & 0.8585
& & 0.1113 & 0.0862 & 0.1599 & 0.1022 & 0.4702 & 11.922 & 0.8561 & 0.5261 & 12.129 & 0.8660
& & 0.1167 & 0.0902 & 0.1682 & 0.1069 &0.5255 & 12.096 & 0.8700 & 0.5754 & 12.254 & 0.8758
& & 0.0678 & 0.0565 & 0.1135 & 0.0717 & 0.2603 & 8.3263 & 0.6842 & 0.2277 & 9.1811 & 0.7343
& & 0.0692 & 0.0571 & 0.1142 & 0.0722 & 0.2353 & 8.4516 & 0.6939 & 0.2276 & 9.3108 & 0.7428
& & 0.0709 & 0.0594 & 0.1141 & 0.0739 & 0.2856 & 11.243 & 0.8281 & 0.3064 & 11.823 & 0.8550
& & 0.0707 & 0.0586 & 0.1184 & 0.0748 & 0.3397 & 9.8191 & 0.7642 & 0.3460 & 10.508 & 0.7973
& & 0.0680 & 0.0562 & 0.1097 & 0.0701 & 0.3168 & 11.942 & 0.8572 & 0.3535 & 12.311 & 0.8752
& & 0.0654 & 0.0510 & 0.1099 & 0.0665 & 0.3133 & 11.977 & 0.8718 & 0.3289 & 12.103 & 0.8747
& & 0.0709 & 0.0579 & 0.1169 & 0.0737 & 0.3478 & 11.877 & 0.8557 & 0.3721 & 12.147 & 0.8666
& & 0.0739 & 0.0597 & 0.1224 & 0.0762 & 0.3874 & 12.155 & 0.8716 & 0.3961 & 12.329 & 0.8773
& & 0.0932 & 0.0745 & 0.1430 & 0.0929 & 0.2422 & 9.9149 & 0.7241 & 0.2725 & 10.761 & 0.7749
& & 0.0942 & 0.0754 & 0.1447 & 0.0940 & 0.2376 & 10.184 & 0.7485 & 0.2497 & 11.031 & 0.7961
& & 0.0945 & 0.0768 & 0.1461 & 0.0959 & 0.2639 & 11.643 & 0.8333 & 0.2705 & 12.317 & 0.8655
& & 0.0979 & 0.0784 & 0.1482 & 0.0971 & 0.2966 & 10.361 & 0.7486 & 0.2950 & 11.119 & 0.7923
& & 0.0923 & 0.0744 & 0.1446 & 0.0937 & 0.2195 & 10.741 & 0.8056 & 0.2402 & 11.561 & 0.8433
& & 0.0910 & 0.0697 & 0.1485 & 0.0909 & 0.2859 & 12.248 & 0.8538 & 0.3321 & 12.474 & 0.8619
& & 0.0951 & 0.0736 & 0.1515 & 0.0944 & 0.3262 & 12.376 & 0.8523 & 0.3510 & 12.660 & 0.8640
& & 0.1002 & 0.0772 & 0.1598 & 0.0992 & 0.3185 & 12.466 & 0.8598 & 0.3543 & 12.769 & 0.8728

5.1 Experimental Settings↩︎

5.1.1 Datasets↩︎

To evaluate our proposed model, we utilize three widely-used public datasets: Amazon-books, which contains user purchase behaviors within the book category on Amazon; Yelp, which records customer ratings and reviews for restaurants on Yelp; and Google-reviews, which includes user reviews and business metadata from Google Maps. The high proportion of tail users (T80) highlights the prevalence of long-tail distributions, supporting the assumption of a power-law distribution in real-world data. Detailed statistics, including the distribution of head and tail items, are provided in Table  1.

Table 1: Statistics of the experimental data.
Dataset #User #Item #Interactions Density
3-5 All H20(%) T80(%)
Amazon-books 11,000 9,332 45.2 54.8 120,464 1.17\(e^{-3}\)
Yelp 11,091 11,010 47.0 53.0 166,620 1.36\(e^{-3}\)
Google-reviews 22,582 16,557 46.8 53.2 411,840 1.10\(e^{-3}\)

To further evaluate the scalability and practical utility of our proposed method in real-world deployment scenarios, we conduct additional experiments on two substantially larger datasets: Amazon-Books (Large) and Amazon-CDs (Large). These datasets represent a significant increase in scale, containing up to ten times the number of users and interactions compared to the standard benchmarks utilized in previous work. Comprehensive statistical details and the corresponding experimental results are provided in Section 8.1.

5.1.2 Evaluation Metrics↩︎

We assess our recommended items using both utility and diversity metrics, demonstrating that our model achieves precise recommendations for users’ preference while enhancing diversity in the recommendation. For utility, we adopt two widely used ranking metrics: Recall and NDCG, which measure the effectiveness of the model. To evaluate diversity, we employ three metrics: Distance Diversity (Div) [44], [45], Shannon Entropy (H) [46], and Expected Popularity Complement (EPC) [47].

Distance Diversity (Div) quantifies the variation among recommended items, encouraging diversity within the recommendation: \[Div(u) = \frac{\sum_{i \in R_u} \sum_{j \in R_u, j \neq i} d(i, j)}{\text{Number of } (i, j) \text{ pairs}}\] where \(R_u\) is the recommendation list for user \(u\), and \(d(i, j)\) represents the distance between items \(i\) and \(j\). Number of \((i, j)\) pairs is calculated as \(\binom{|R_u|}{2} = \frac{|R_u|(|R_u|-1)}{2}\). For fair comparison, we compute distances within the same representation space across models.

Shannon Entropy (H) quantifies the unpredictability within the recommendations, with higher entropy signifying greater diversity: \[H = -\sum_{i \in \text{set}(\sum_u R_u)} p(i) \log p(i)\] where \(\sum_u R_u\) denotes all recommended items across users (including duplicates), and \(p(i) = \text{count}(i)/\sum_{i \in \text{set}(\sum_u R_u)} \text{count}(i)\) is the proportion of item \(i\) among all recommended items.

Expected Popularity Complement (EPC) assesses the extent of bias towards popular items by promoting niche recommendations: \[EPC = 1 - \frac{1}{|\text{set}(\sum R_u)|} \sum_{i \in \text{set}(\sum_u R_u)} \frac{\text{pop}(i)}{\max_i(\text{pop}(i))}\] where \(N_u\) is the set of items user \(u\) has interacted with, and \(\text{pop}(i) = \text{count}(i)/\sum_{i \in \text{set}(\sum_u N_u)} \text{count}(i)\) denotes item \(i\)’s popularity.

5.1.3 Baselines↩︎

We compare our model with state-of-the-art Euclidean and Hyperbolic baselines:

  • LightGCN [3]: A lightweight graph convolution neural network model for recommendation by removing redundant neural modules in graph convolution.

  • TAG-CF [48]: A test-time augmentation framework that enhances recommendation by performing a single message-passing step only at inference time.

  • LightGCL [49]: A contrastive learning model that uses singular value decomposition (SVD) for robust graph augmentation without data augmentation.

  • SimGCL [50]: A contrastive learning model that replaces graph augmentations in contrastive learning by introducing random noise during initialization.

  • HCCF [51]: A collaborative filtering framework that integrates hypergraph and contrastive learning, capturing both local and global user dependencies.

  • HGCF [10]: A hyperbolic GNN model that combines hypergraph learning with collaborative filtering using hyperbolic margin ranking loss.

  • HICF [11]: A hyperbolic recommendation model that enhances head and tail item performance with hyperbolic geometry, improving utility for long-tail items.

5.1.4 Implementation Details↩︎

We set the embedding dimension to 50 and the training batch size to 1024. Hyperbolic space embeddings are optimized using Riemannian SGD (RSGD) [10], [52], while the MLP adapter is trained via Adam [53]. Training employs early stopping based on Recall@10 with a patience of 10 epochs. For the Amazon-Books, Amazon-Books (Large), Amazon-CDs (Large), and Yelp datasets, user and item profiles are generated via GPT-3.5-turbo and encoded using text-embedding-ada-002 [54]. To verify encoder robustness, we substitute the text encoder with BERT [55] for Google-Reviews, where our method consistently maintains its performance superiority.

All experiments are executed on NVIDIA A40/A100 GPUs (40GB VRAM). The framework demonstrates strong computational efficiency: training requires fewer than 5 seconds per epoch on standard benchmarks (Amazon-Books, Yelp, Google-Reviews), and scales efficiently to larger corpora, requiring approximately 45 seconds for Amazon-Books (Large) and 20 seconds for Amazon-CDs (Large) per epoch.

For final evaluations, we conduct a grid search over key hyperparameters: learning rate \(\in \{1\mathrm{e}{-3}, 5\mathrm{e}{-3}, 1\mathrm{e}{-2}, 5\mathrm{e}{-2}, 1\mathrm{e}{-1}\}\), weight decay \(\in \{1\mathrm{e}{-3}, 1\mathrm{e}{-2}, 1\mathrm{e}{-1}\}\), number of negative samples \(\in \{10, 20, 50\}\), and alignment weight \(\in \{1\mathrm{e}{-3}, 1\mathrm{e}{-2}, 1\mathrm{e}{-1}\}\). The complete hyperparameter logs are available in our attached repository.

5.2 Performance Comparison↩︎

5.2.1 Overall Comparison↩︎

The performance comparison across all models is presented in Table [tab:General32Performance], with statistical significance testing in Appendix 8.2. Our HERecconsistently outperforms the baselines in both utility and diversity metrics, achieving up to \(5.49\%\) improvement in utility metrics and \(11.39\%\) increase in diversity metrics. Notably, most baselines struggle to achieve strong performance in both utility and diversity simultaneously. For instance, while HICF performs second-best in utility metrics on the Amazon-books dataset, it lacks the same advantage in diversity metrics, where several baselines achieve better results. This highlights the superiority of our model, which achieves state-of-the-art performance in both utility and diversity: a feat not previously attained by any baseline.

Table 2: Comparison with feature-enhanced Euclidean baselines, with the best-performing results highlighted in bold.
Data Amazon-books Yelp Google-reviews
Metrics R@20 N@20 Div@20 H@20 EPC@20 R@20 N@20 Div@20 H@20 EPC@20 R@20 N@20 Div@20 H@20 EPC@20
LightGCN+ 0.1466 0.0901 0.4349 10.3915 0.7802 0.1156 0.0733 0.2697 9.6903 0.7526 0.1438 0.0940 0.2707 10.8664 0.7801
LightGCL+ 0.1545 0.0992 0.5064 11.9761 0.8728 0.1131 0.0739 0.2759 11.8617 0.8581 0.1443 0.0946 0.2744 12.4700 0.8776
SimGCL+ 0.1494 0.0926 0.5163 11.4751 0.8342 0.1195 0.0752 0.3152 9.9952 0.7811 0.1504 0.0982 0.3030 11.2111 0.7953
HCCF+ 0.1525 0.0940 0.4316 11.7984 0.8616 0.1170 0.0729 0.2884 11.6906 0.8577 0.1438 0.0941 0.2524 11.5433 0.8406
Ours 0.1682 0.1069 0.5754 12.2543 0.8758 0.1224 0.0762 0.3961 12.3290 0.8773 0.1598 0.0992 0.3543 12.7690 0.8728

5.2.2 Baselines with Feature Enhancement↩︎

To ensure a fair comparison, we further enhance Euclidean baselines by integrating feature information. Specifically, we align semantic embeddings with the original Euclidean embeddings following the structure in Section 4.2, but in Euclidean space. The results are presented in Table 2, with enhanced baselines denoted by “+”. The data shows that our HERecstill surpasses all baselines in both utility and diversity. Interestingly, while the feature-enhanced versions of the Euclidean baselines generally improve in utility metrics, they do not exhibit a stable improvement in diversity metrics. This aligns with our theoretical analysis in Section 4.4, which demonstrates the advantages of our alignment in the hyperbolic space.

Figure 4: Ablation study on model variants.

5.2.3 Performance on Head and Tail Items↩︎

To underscore the effectiveness of semantic alignment, particularly for cold-start (tail) items, we conducted experiments measuring utility performance on both head and tail items. In our context, head items (H20) refer to the top \(20\%\) of items with the highest number of interactions in the training dataset, representing the most popular items. The remaining items are categorized as tail items (T80), which have limited interaction history, representing less frequently engaged items.

We compare our model with all hyperbolic baselines, as well as a representative Euclidean baseline. Since Euclidean models perform significantly worse on tail items, our primary focus is on comparisons within hyperbolic space. The results, displayed in Table 3, reveal significant improvements, especially for tail items. Compared with hyperbolic baselines without semantic alignment, our model shows a notably larger performance boost on tail items than on head items. This finding indicates that semantic alignment particularly enhances the recommendation of cold-start items, effectively mitigating the cold-start problem for items with limited or no prior interactions.

Specifically, our model achieves substantial improvements on tail items, with utility gains reaching up to \(9.71\%\) on Amazon-Books, \(13.33\%\) on Yelp, and \(14.42\%\) on Google-Reviews. These results highlight that semantic alignment not only improves overall recommendation utility but also significantly enhances the model’s ability to recommend niche or less popular items, creating a balanced recommendation list that includes both popular and cold-start items. This capability is critical in real-world recommendation settings, where new or less-interacted items benefit from enhanced visibility and user interaction, ultimately enriching the user experience with a broader and more diverse range of options.

5.3 Ablation Study↩︎

We perform an ablation study to examine the contributions of two key components in our model: hyperbolic margin ranking loss and semantic alignment loss. To maintain meaningful evaluation, we focus solely on utility metrics, as random recommendations may artificially inflate diversity without practical utility. The following notations are used for our ablation variants: “w/o M” denotes the model without hyperbolic margin ranking loss, “w/o S” represents the model without semantic alignment loss, and “w/o M & S” indicates that both margin ranking and semantic alignment are excluded, leaving only the BPR loss. Figure 4 shows that our full model outperforms all ablation variants, highlighting its overall effectiveness. Models lacking both margin ranking and semantic alignment perform the worst, while removing either module results in decreased utility, emphasizing the effectiveness of integration.

Recent work [56], [57] has proposed performing message passing directly in hyperbolic space as an alternative to using the tangent space. We implemented this approach in place of our original hyperbolic graph collaborative filtering method. As shown in Appendix 8.3, this alternative achieves comparable performance, making it a viable alternative.

Figure 5: Layer-wise norms.
Table 3: Performance on H20 (head) and T80 (tail) items, with the top hyperbolic results highlighted in bold. \(\Delta_\mathcal{H}(\%)\) represents the improvement over the second-best hyperbolic baseline (underlined).
Datasets Amazon-books Yelp Google-reviews
Metrics Recall@20 NDCG@20 Recall@20 NDCG@20 Recall@20 NDCG@20
H20 T80 H20 T80 H20 T80 H20 T80 H20 T80 H20 T80
LightGCN 0.1162 0.0266 0.0744 0.0140 0.1076 0.0059 0.0693 0.0024 0.1311 0.0119 0.0878 0.0051
HGCF 0.1083 0.0428 0.0673 0.0248 0.0789 0.0310 0.0489 0.0176 0.1123 0.0362 0.0714 0.0195
HICF 0.1086 0.0513 0.0713 0.0309 0.0847 0.0322 0.0556 0.0180 0.1147 0.0388 0.0746 0.0208
Ours 0.1125 0.0557 0.0730 0.0339 0.0863 0.0361 0.0558 0.0204 0.1155 0.0443 0.0755 0.0238
\(\Delta_\mathcal{H}(\%)\) +3.59 +8.58 +2.38 +9.71 +1.89 +12.11 +0.36 +13.33 +0.70 +14.18 +1.21 +14.42
Figure 6: Performance analysis across hierarchical structure layers.

5.4 Hierarchical Structure Analysis↩︎

We evaluated the effectiveness of our hierarchical representation structure through experiments simulating varying user preferences. Using a temperature parameter \(\tau = 0.5\) to control recommendation randomness, we analyzed performance across various hierarchical layers. As shown in Figure 6, utility metrics increase while diversity metrics decrease with larger layers. This trade-off aligns with the model’s design: larger layers focus on utility and specific interests for exploitation, while smaller layers prioritize diversity for exploration. This structure provides users with a flexible mechanism to adjust recommendations from niche, relevant items to broader, exploratory sets based on their preferences.

To further validate the hierarchical structure’s capability to capture varying degrees of group preferences, we analyzed the average norm of node embeddings across layers (Figure 5). The results reveal a consistent increase at larger layers (farther from the center in hyperbolic space). As previously mentioned, hyperbolic geometry ensures that popular items or exploratory users are positioned closer to the origin, while niche items or users are positioned toward the boundaries. This observation aligns with the theoretical properties of hyperbolic space and supports our hierarchical design: higher-level (smaller-layer) nodes effectively encapsulate abstract and aggregated preferences, whereas lower-level (larger-layer) nodes focus on fine-grained, personalized preferences.

Since quantitatively evaluating the performance of unsupervised clustering remains challenging, we further present a case study below to demonstrate the effectiveness of our approach.

5.5 Hierarchical Structure Case Study↩︎

In this subsection, we present a case study examining the exploration-exploitation trade-off in the hyperbolic hierarchical structure. We randomly select a user and identify items that share different layers of the lowest common ancestor (LCA) with the user in the hierarchy tree. Ideally, a larger LCA layer indicates that the user and the item are grouped earlier in the hierarchy, suggesting a stronger likelihood of interaction. Conversely, a smaller LCA layer implies that the user and the item can only be grouped after many iterations, indicating a weaker likelihood of interaction.


 
User Profile:
The user enjoys books with supernatural elements, horror and paranormal romance. They also appreciate fast-paced action and suspenseful thrillers with political intrigue and espionage. The user likes complex characters dealing with dark themes.
 
Item 1 Profile (LCA=10):
The book ‘Spirit Fighter (Son of Angels, Jonah Stone)’ would likely appeal to young readers who enjoy stories about supernatural beings and the fight between good and evil. It is a book that offers entertainment and inspiration, as well as a glimpse into the supernatural world.
 
Item 2 Profile (LCA=5):
Fans of contemporary romance novels will enjoy Barefoot Summer (A Chapel Springs Romance). This book combines heartwarming romance, relatable heartaches, and lighthearted humor to create a delightful and engaging story. It is ideal for those looking for an easy-to-read and entertaining summer novel.


 
As demonstrated in the case study, the user shows a preference for supernatural elements, which aligns closely with the description of item 1, indicating a high likelihood of interaction. In contrast, while the user profile mentions a preference for dark themes, item 2 focuses on romance and heartwarming narratives, suggesting a low probability of user interest in item 2.

6 CONCLUSION↩︎

In this work, we present HERec, a hyperbolic framework that effectively balances exploration and exploitation in recommender systems. Our approach integrates semantic and collaborative information within hyperbolic space, leveraging the unique properties of hyperbolic geometry, supported by rigorous mathematical proof. Furthermore, we introduce a personalized mechanism for balancing the exploration-exploitation trade-off using a hierarchical representation structure, which is a hyperparameter-free clustering mechanism theoretically optimized by Dasgupta’s cost, empowering users to adjust recommendation preferences flexibly. This functionality is particularly valuable in real-world applications where user preferences may shift dynamically, and our model’s adaptability to these changes contributes to a more personalized recommendation experience. Extensive experiments demonstrate that HERec achieves state-of-the-art performance, delivering up to a \(5.49\%\) improvement in utility metrics and an \(11.39\%\) increase in diversity metrics, effectively mitigating information cocoons.

7 Proof↩︎

In this section, we provide a rigorous mathematical proof of Proposition 1, demonstrating the unique advantage of the aligning mechanism in the hyperbolic space.

7.1 Gradient Analysis in Hyperbolic Space.↩︎

Suppose \(\mathbf{x}\) is a hyperbolic embedding derived from  4.1, and \(\mathbf{y}\) is the corresponding semantic embedding from  4.2, the hyperbolic distance is given by: \[d_\mathcal{H}(\mathbf{x}, \mathbf{y}) = \operatorname{arccosh}(z)\] where \(z = -\langle \mathbf{x}, \mathbf{y} \rangle_\mathcal{L} = x_0 y_0 - \sum_{i=1}^n x_i y_i\).

For large \(\|\mathbf{x}\|\) and \(\|\mathbf{y}\|\), given \(x_0 = \sqrt{1 + \|\mathbf{x}\|^2}\) and \(y_0 = \sqrt{1 + \|\mathbf{y}\|^2}\), we adopt the following approximations for further calculation: \[\begin{align} x_0 \approx \|\mathbf{x}\|, \quad y_0 \approx \|\mathbf{y}\|, \quad \sqrt{z^2 - 1} \approx z \end{align}\] Thus, the Lorentz product can be approximated as: \[z = x_0 y_0 - \sum_{i=1}^n x_i y_i \approx \|\mathbf{x}\|\|\mathbf{y}\|(1 - \cos \theta)\] Let \(x_j = \|\mathbf{x}\| \hat{x}_j\) and \(y_j = \|\mathbf{y}\| \hat{y}_j\) (where \(\hat{x}_j\) represents the direction of \(x_j\)). The partial derivative of \(z\) with respect to \(x_j\) is calculated as follows: \[\begin{align} \frac{\partial z}{\partial x_j} &= \frac{x_j}{x_0} y_0 - y_j\\ &\approx \frac{x_j}{\|\mathbf{x}\|} \|\mathbf{y}\| - y_j\\ &= \|\mathbf{y}\| (\hat{x}_j - \hat{y}_j) \end{align}\] Therefore, the gradient norm of \(d_\mathcal{H}\) for \(\mathbf{x}\) can be approximated by: \[\begin{align} \|\nabla_\mathbf{x} d_\mathcal{H}\| &= \frac{\|\nabla_\mathbf{x} z\|}{\sqrt{z^2 - 1}}\\ &\approx \frac{\|\nabla_\mathbf{x} z\|}{z}\\ &= \frac{\|\mathbf{y}\|\|\hat{\mathbf{x}} - \hat{\mathbf{y}}\|}{\|\mathbf{x}\|\|\mathbf{y}\|(1 - \cos \theta)}\\ &= \frac{\|\hat{\mathbf{x}} - \hat{\mathbf{y}}\|}{\|\mathbf{x}\|(1 - \cos \theta)} \end{align}\]

This result suggests that nodes with large norms experience smaller gradient updates, preserving local structures, while nodes with smaller norms undergo larger updates, refining global hierarchical relationships and effectively capturing hierarchical structures. This aligns with the properties of hyperbolic geometry, where small positional changes near the origin result in significant distance changes, and vice versa. Our dynamic gradient update mechanism is well-suited to this characteristic, enabling precise adjustments and enhancing the accuracy of the updates.

7.2 Gradient Analysis Euclidean Space.↩︎

For comparison, we examine the gradient behavior in Euclidean space. The Euclidean distance is defined as: \[f(\mathbf{x}) = d_E(\mathbf{x}, \mathbf{y}) = \|\mathbf{x} - \mathbf{y}\|\] The gradient of \(f(\mathbf{x})\) with respect to \(\mathbf{x}\) is: \[\nabla_\mathbf{x} f(\mathbf{x}) = \frac{\mathbf{x} - \mathbf{y}}{\|\mathbf{x} - \mathbf{y}\|} = \frac{\mathbf{x} - \mathbf{y}}{d_E(\mathbf{x}, \mathbf{y})}\] which has a magnitude of: \[\|\nabla_\mathbf{x} f(\mathbf{x})\| = 1\]

The constant gradient magnitude demonstrates Euclidean space’s uniform update behavior, lacking intrinsic adaptation to hierarchical structures. This fundamental difference in gradient dynamics explains hyperbolic space’s superiority for hierarchical representation learning.

Table 4: Comprehensive model comparison on larger datasets.
Datasets Amazon-Books (large) Amazon-CDs (large)
Metrics Recall@20 NDCG@20 Div@20 H@20 EPC@20 Recall@20 NDCG@20 Div@20 H@20 EPC@20
LightGCN 0.0242 0.0107 0.6142 11.0605 0.8943 0.0538 0.0248 0.0572 11.6691 0.7869
LightGCL 0.0329 0.0154 0.6547 13.4200 0.9216 0.0677 0.0323 0.0641 12.9922 0.8273
SimGCL 0.0318 0.0142 0.5977 9.9114 0.8683 0.0566 0.0262 0.0588 11.0439 0.7649
HGCF 0.0545 0.0307 0.6419 13.2311 0.9132 0.0642 0.0364 0.0612 13.7102 0.8072
HICF 0.0565 0.0319 0.6777 14.0322 0.9347 0.0683 0.0388 0.0629 13.7451 0.8423
HERec 0.0598 0.0335 0.6832 15.3017 0.9388 0.0712 0.0391 0.0632 13.7762 0.8330

7.3 Error Bound Analysis↩︎

The approximations used in the proof rely on the assumption that \(|x|\) and \(|y|\) are large, which is common in high-dimensional hyperbolic embedding spaces. In practice, with embedding dimensions such as 50 (as used throughout our experiments), the norms tend to be sufficiently large for the approximation to hold effectively. To further substantiate this assumption, we calculated the error bound as follows:

The exact Lorentz inner product is given by: \[z = \sqrt{1 + |x|^2} \sqrt{1 + |y|^2} - |x||y| \cos \theta,\] and is approximated as: \[z_\text{approx} = |x||y|(1 - \cos \theta).\]

Using a Taylor expansion, we have: \[\sqrt{1 + |x|^2} = |x| \left( 1 + \frac{1}{2|x|^2} - \frac{1}{8|x|^4} + \cdots \right).\]

Thus, the absolute error becomes: \[|z - z_\text{approx}| = \frac{|y|}{2|x|} + \frac{|x|}{2|y|}.\]

The relative error in the Lorentz product is bounded by: \[\epsilon_z \leq \frac{1}{2} \left( \frac{1}{|x|^2} + \frac{1}{|y|^2} \right) \frac{1}{1 - \cos \theta}.\]

Additionally, the approximation error in \(\sqrt{z^2 - 1} \approx z\) is given by: \[\sqrt{z^2 - 1} = z \left( 1 - \frac{1}{2z^2} + \cdots \right),\] which implies: \[\text{Relative error} \leq \frac{1}{2z^2}.\]

Combining these results, the overall error bound is: \[\text{Relative Error in } |\nabla d_H(x, y)| \leq \frac{1}{2|x|^2(1 - \cos \theta)} + \frac{1}{2z^2}.\]

For instance, with \(|x| = |y| = 5\) and \(\theta = \frac{\pi}{2}\), the total error is approximately \(2.1\%\), demonstrating high approximation accuracy in our setting.

Table 5: Standard deviation of key metrics across datasets over 10 independent runs.
Dataset R@20 N@20 DIV@20 H@20 EPC@20
Amazon 0.0010 0.0004 0.0067 0.0035 0.0002
Yelp 0.0009 0.0004 0.0091 0.0017 0.0014
Google 0.0010 0.0003 0.0077 0.0008 0.0009
Table 6: Statistics of the Large-scale Datasets
Dataset # Users # Items # Interactions Density
Amazon-Books (Large) 116,455 387,492 1,442,011 3.20\(e^{-5}\)
Amazon-CDs (Large) 61,938 88,590 779,575 1.42\(e^{-4}\)
Table 7: Direct message passing within hyperbolic space.
Dataset R@20 N@20 DIV@20 H@20 EPC@20
Amazon 0.1721 0.1082 0.5760 12.211 0.8773
Yelp 0.1205 0.0793 0.4005 12.321 0.8755
Google 0.1611 0.0988 0.3532 12.766 0.8731

8 More Experimental Results↩︎

In this section, we will show more experimental results to further analyze the flexibility and effectiveness of our HERec.

8.1 Larger-scale Datasets.↩︎

To further validate our method within real-world deployment scenarios, we conduct experiments on two large-scale datasets, the statistics of which are summarized in Table [tab:larger32statistics]. The Amazon-Books (Large) dataset contains more than ten times the number of users and interactions compared to the standard benchmarks used in previous studies, while the Amazon-CDs (Large) dataset is approximately six times larger.

The results presented in Table 4 align consistently with our earlier findings, demonstrating that HERec achieves superior performance over both hyperbolic and Euclidean baselines. This suggests that the model effectively maintains its predictive accuracy and structural advantages even as the data scale increases significantly.

8.2 Statistical Significance Testing↩︎

To ensure the robustness and reliability of our results, we conducted 10 independent runs for each experimental setting and reported the standard deviation for all key metrics. Results are shown in Table 5. Across all evaluated datasets and metrics, the proposed model consistently exhibits negligible variance. This high stability demonstrates that our performance gains are resistant to stochastic fluctuations during optimization, confirming the reproducibility and statistical significance of our empirical conclusions.

8.3 Alternative Hyperbolic Message Passing↩︎

To bypass the need for tangent space projections, we also explored an alternative message passing strategy by replacing the original hyperbolic graph collaborative filtering mechanism with direct message passing in hyperbolic space. This variant achieves performance comparable to our primary method, results can be found in Table 7. These findings suggest that direct message passing in hyperbolic space is not only a viable alternative but could also serve as a complementary component within our framework, potentially offering additional flexibility for future extensions. This also underscores the capability of hyperbolic geometries to preserve complex relational hierarchies without relying on Euclidean approximations.

References↩︎

[1]
M. Kunaver and T. Požrl, “Diversity in recommender systems–a survey,” Knowledge-based systems, vol. 123, pp. 154–162, 2017.
[2]
P. Castells, N. Hurley, and S. Vargas, “Novelty and diversity in recommender systems,” in Recommender systems handbook, Springer, 2021, pp. 603–646.
[3]
X. He, K. Deng, X. Wang, Y. Li, Y. Zhang, and M. Wang, “Lightgcn: Simplifying and powering graph convolution network for recommendation,” in Proceedings of the 43rd international ACM SIGIR conference on research and development in information retrieval, 2020, pp. 639–648.
[4]
Y. Koren, R. Bell, and C. Volinsky, “Matrix factorization techniques for recommender systems,” Computer, vol. 42, no. 8, pp. 30–37, 2009.
[5]
H. Chen, S. Shi, Y. Li, and Y. Zhang, “Neural collaborative reasoning,” in Proceedings of the web conference 2021, 2021, pp. 1516–1527.
[6]
L. Zheng, B. Cao, V. Noroozi, S. Y. Philip, and N. Ma, “Hierarchical collaborative embedding for context-aware recommendations,” in 2017 IEEE international conference on big data (big data), 2017, pp. 867–876.
[7]
M. Unger and A. Tuzhilin, “Hierarchical latent context representation for context-aware recommendations,” IEEE Transactions on Knowledge and Data Engineering, vol. 34, no. 7, pp. 3322–3334, 2020.
[8]
D. Krioukov, F. Papadopoulos, M. Kitsak, A. Vahdat, and M. Boguná, “Hyperbolic geometry of complex networks,” Physical Review E—Statistical, Nonlinear, and Soft Matter Physics, vol. 82, no. 3, p. 036106, 2010.
[9]
M. Yang, M. Zhou, J. Liu, D. Lian, and I. King, “HRCF: Enhancing collaborative filtering via hyperbolic geometric regularization,” in Proceedings of the ACM web conference 2022, 2022, pp. 2462–2471.
[10]
J. Sun, Z. Cheng, S. Zuberi, F. Pérez, and M. Volkovs, “Hgcf: Hyperbolic graph convolution networks for collaborative filtering,” in Proceedings of the web conference 2021, 2021, pp. 593–601.
[11]
M. Yang, Z. Li, M. Zhou, J. Liu, and I. King, “Hicf: Hyperbolic informative collaborative filtering,” in Proceedings of the 28th ACM SIGKDD conference on knowledge discovery and data mining, 2022, pp. 2212–2221.
[12]
O. Ganea, G. Bécigneul, and T. Hofmann, “Hyperbolic neural networks,” Advances in neural information processing systems, vol. 31, 2018.
[13]
I. Chami, Z. Ying, C. Ré, and J. Leskovec, “Hyperbolic graph convolutional neural networks,” Advances in neural information processing systems, vol. 32, 2019.
[14]
Q. Liu, M. Nickel, and D. Kiela, “Hyperbolic graph neural networks,” Advances in neural information processing systems, vol. 32, 2019.
[15]
Y. Zhang, X. Wang, C. Shi, N. Liu, and G. Song, “Lorentzian graph convolutional networks,” in Proceedings of the web conference 2021, 2021, pp. 1249–1261.
[16]
M. Yang, M. Zhou, L. Pan, and I. King, \(\kappa\)Hgcn: Tree-likeness modeling via continuous and discrete curvature learning,” in Proceedings of the 29th ACM SIGKDD conference on knowledge discovery and data mining, 2023, pp. 2965–2977.
[17]
R. C. Wilson, E. Bonawitz, V. D. Costa, and R. B. Ebitz, “Balancing exploration and exploitation with information and randomization,” Current opinion in behavioral sciences, vol. 38, pp. 49–56, 2021.
[18]
S. Dasgupta, “A cost function for similarity-based hierarchical clustering,” in Proceedings of the forty-eighth annual ACM symposium on theory of computing, 2016, pp. 118–127.
[19]
X. Wang, X. He, M. Wang, F. Feng, and T.-S. Chua, “Neural graph collaborative filtering,” in Proceedings of the 42nd international ACM SIGIR conference on research and development in information retrieval, 2019, pp. 165–174.
[20]
J. Wu et al., “Self-supervised graph learning for recommendation,” in Proceedings of the 44th international ACM SIGIR conference on research and development in information retrieval, 2021, pp. 726–735.
[21]
K. Bao, J. Zhang, Y. Zhang, W. Wang, F. Feng, and X. He, “Tallrec: An effective and efficient tuning framework to align large language model with recommendation,” in Proceedings of the 17th ACM conference on recommender systems, 2023, pp. 1007–1014.
[22]
J. Li et al., “Text is all you need: Learning language representations for sequential recommendation,” in Proceedings of the 29th ACM SIGKDD conference on knowledge discovery and data mining, 2023, pp. 1258–1267.
[23]
H. Lyu et al., “Llm-rec: Personalized recommendation via prompting large language models,” arXiv preprint arXiv:2307.15780, 2023.
[24]
B. Zheng et al., “Adapting large language models by integrating collaborative semantics for recommendation,” in 2024 IEEE 40th international conference on data engineering (ICDE), 2024, pp. 1435–1448.
[25]
Y. Zhang, F. Feng, J. Zhang, K. Bao, Q. Wang, and X. He, “Collm: Integrating collaborative embeddings into large language models for recommendation,” arXiv preprint arXiv:2310.19488, 2023.
[26]
X. Ren et al., “Representation learning with large language models for recommendation,” in Proceedings of the ACM on web conference 2024, 2024, pp. 3464–3475.
[27]
Y. Xi et al., “Towards open-world recommendation with knowledge augmentation from large language models,” in Proceedings of the 18th ACM conference on recommender systems, 2024, pp. 12–22.
[28]
W. Wei et al., “Llmrec: Large language models with graph augmentation for recommendation,” in Proceedings of the 17th ACM international conference on web search and data mining, 2024, pp. 806–815.
[29]
Y. Chen et al., “Modeling scale-free graphs with hyperbolic geometry for knowledge-aware recommendation,” in Proceedings of the fifteenth ACM international conference on web search and data mining, 2022, pp. 94–102.
[30]
C. Ma, L. Ma, Y. Zhang, H. Wu, X. Liu, and M. Coates, “Knowledge-enhanced top-k recommendation in poincaré ball,” in Proceedings of the AAAI conference on artificial intelligence, 2021, vol. 35, pp. 4285–4293.
[31]
R. Ying, R. He, K. Chen, P. Eksombatchai, W. L. Hamilton, and J. Leskovec, “Graph convolutional neural networks for web-scale recommender systems,” in Proceedings of the 24th ACM SIGKDD international conference on knowledge discovery & data mining, 2018, pp. 974–983.
[32]
L. Wang, F. Hu, S. Wu, and L. Wang, “Fully hyperbolic graph convolution network for recommendation,” in Proceedings of the 30th ACM international conference on information & knowledge management, 2021, pp. 3483–3487.
[33]
H. Zhang, H. Wang, G. Wang, J. Liu, and Q. Liu, “A hyperbolic-to-hyperbolic user representation with multi-aspect for social recommendation,” in Proceedings of the 31st ACM international conference on information & knowledge management, 2022, pp. 4667–4671.
[34]
C.-Y. Tai, C.-K. Huang, L.-Y. Huang, and L.-W. Ku, “Knowledge based hyperbolic propagation,” in Proceedings of the 44th international ACM SIGIR conference on research and development in information retrieval, 2021, pp. 1945–1949.
[35]
Y. Du, X. Zhu, L. Chen, B. Zheng, and Y. Gao, “HAKG: Hierarchy-aware knowledge gated network for recommendation,” in Proceedings of the 45th international ACM SIGIR conference on research and development in information retrieval, 2022, pp. 1390–1400.
[36]
Z. Li et al., “Breaking filter bubble: A reinforcement learning framework of controllable recommender system,” in Proceedings of the ACM web conference 2023, 2023, pp. 4041–4049, doi: 10.1145/3543507.3583856.
[37]
Y. Liu, Z. Shen, Y. Zhang, and L. Cui, “Diversity-promoting deep reinforcement learning for interactive recommendation,” in 5th international conference on crowd science and engineering, 2021, pp. 132–139.
[38]
Z. Luo, H. Huang, J. Lian, X. Song, X. Xie, and H. Jin, “Cross-links matter for link prediction: Rethinking the debiased GNN from a data perspective,” in Advances in neural information processing systems, 2023, vol. 36, pp. 79594–79612, [Online]. Available: https://proceedings.neurips.cc/paper_files/paper/2023/file/fba4a59c7a569fce120eea9aa9227052-Paper-Conference.pdf.
[39]
F. Masrour, T. Wilson, H. Yan, P.-N. Tan, and A. Esfahanian, “Bursting the filter bubble: Fairness-aware network link prediction,” Proceedings of the AAAI Conference on Artificial Intelligence, vol. 34, no. 1, pp. 841–848, 2020, doi: 10.1609/aaai.v34i01.5429.
[40]
H. Wu, C. Ma, B. Mitra, F. Diaz, and X. Liu, “A multi-objective optimization framework for multi-stakeholder fairness-aware recommendation,” ACM Transactions on Information Systems, vol. 41, no. 2, pp. 1–29, 2022.
[41]
K. Peng, M. Raghavan, E. Pierson, J. Kleinberg, and N. Garg, “Reconciling the accuracy-diversity trade-off in recommendations,” in Proceedings of the ACM web conference 2024, 2024, pp. 1318–1329.
[42]
S. Rendle, C. Freudenthaler, Z. Gantner, and L. Schmidt-Thieme, “BPR: Bayesian personalized ranking from implicit feedback,” arXiv preprint arXiv:1205.2618, 2012.
[43]
Q. Ma, X. Ren, and C. Huang, “XRec: Large language models for explainable recommendation,” arXiv preprint arXiv:2406.02377, 2024.
[44]
C.-N. Ziegler, S. M. McNee, J. A. Konstan, and G. Lausen, “Improving recommendation lists through topic diversification,” in Proceedings of the 14th international conference on world wide web, 2005, pp. 22–32.
[45]
M. Zhang and N. Hurley, “Avoiding monotony: Improving the diversity of recommendation lists,” in Proceedings of the 2008 ACM conference on recommender systems, 2008, pp. 123–130.
[46]
H. Mehta, S. K. Bhatia, P. Bedi, and V. S. Dixit, “Collaborative personalized web recommender system using entropy based similarity measure,” arXiv preprint arXiv:1201.4210, 2012.
[47]
S. Vargas and P. Castells, “Rank and relevance in novelty and diversity metrics for recommender systems,” in Proceedings of the fifth ACM conference on recommender systems, 2011, pp. 109–116.
[48]
M. Ju et al., “How does message passing improve collaborative filtering?” arXiv preprint arXiv:2404.08660, 2024.
[49]
X. Cai, C. Huang, L. Xia, and X. Ren, “LightGCL: Simple yet effective graph contrastive learning for recommendation,” arXiv preprint arXiv:2302.08191, 2023.
[50]
J. Yu, H. Yin, X. Xia, T. Chen, L. Cui, and Q. V. H. Nguyen, “Are graph augmentations necessary? Simple graph contrastive learning for recommendation,” in Proceedings of the 45th international ACM SIGIR conference on research and development in information retrieval, 2022, pp. 1294–1303.
[51]
L. Xia, C. Huang, Y. Xu, J. Zhao, D. Yin, and J. Huang, “Hypergraph contrastive collaborative filtering,” in Proceedings of the 45th international ACM SIGIR conference on research and development in information retrieval, 2022, pp. 70–79.
[52]
G. Bécigneul and O.-E. Ganea, “Riemannian adaptive optimization methods,” arXiv preprint arXiv:1810.00760, 2018.
[53]
D. P. Kingma, “Adam: A method for stochastic optimization,” arXiv preprint arXiv:1412.6980, 2014.
[54]
A. Neelakantan et al., “Text and code embeddings by contrastive pre-training,” arXiv preprint arXiv:2201.10005, 2022.
[55]
J. Devlin, “Bert: Pre-training of deep bidirectional transformers for language understanding,” arXiv preprint arXiv:1810.04805, 2018.
[56]
X. Yang et al., “Hgformer: Hyperbolic graph transformer for recommendation,” arXiv preprint arXiv:2502.15693, 2024.
[57]
M. Yang, A. Feng, B. Xiong, J. Liu, I. King, and R. Ying, “Hyperbolic fine-tuning for large language models,” arXiv preprint arXiv:2410.04010, 2024.