TLDR: GTR-Mamba is a novel framework for next Point-of-Interest (POI) recommendation that addresses the limitations of existing models in simultaneously capturing hierarchical spatial structures and dynamic temporal contexts. It uses hyperbolic geometry to model static, tree-like preferences and a Mamba layer in Euclidean tangent space for efficient, dynamic sequence updates. A cross-manifold channel fuses spatio-temporal information to adaptively drive the State Space Model. Experiments on real-world datasets show GTR-Mamba outperforms state-of-the-art baselines, especially in scenarios with frequent context switching, demonstrating superior robustness and adaptability.
In the bustling world of Location-Based Social Networks (LBSNs), predicting where a user might want to go next, known as Point-of-Interest (POI) recommendation, is a crucial task. Imagine an app that not only knows your favorite coffee shop but also anticipates your desire for a quiet park after a busy day. This seemingly simple prediction involves understanding complex human mobility patterns, which are influenced by both static preferences (like a love for Italian food) and dynamic contexts (like needing a quick lunch on a weekday versus a leisurely dinner on a weekend).
Existing recommendation models, often relying on Graph Neural Networks and sequential models, have made significant strides. However, they face a fundamental challenge: they struggle to simultaneously capture the inherent hierarchical structure of spatial choices (e.g., ‘Food’ -> ‘Fast Food’ -> ‘Burger’) and the dynamic, often irregular, shifts in a user’s temporal context. These models typically operate in Euclidean space, which isn’t ideally suited for representing tree-like hierarchies where relationships can branch out exponentially.
Introducing GTR-Mamba: A Novel Approach
To overcome these limitations, researchers have proposed a novel framework called GTR-Mamba. This innovative model leverages the distinct advantages of different mathematical spaces for different aspects of the recommendation task. At its core, GTR-Mamba models the static, tree-like preference hierarchies in hyperbolic geometry, a space where distances grow exponentially, making it a natural fit for representing such structures. Simultaneously, it routes dynamic sequence updates to a new Mamba layer in the computationally stable and efficient Euclidean tangent space.
This sophisticated process is coordinated by a ‘cross-manifold channel’ that intelligently fuses spatio-temporal information. This fusion explicitly steers the State Space Model (SSM) within the Mamba layer, allowing it to adapt flexibly to changing contexts. This means GTR-Mamba can understand both your long-term, hierarchical preferences and your immediate, context-driven needs.
How GTR-Mamba Works
The GTR-Mamba framework consists of several key components:
- Hyperbolic Embeddings: The model first pre-trains representations (embeddings) for users, POIs, categories, and regions within the hyperbolic space. This allows it to capture the deep, hierarchical relationships between these entities. For instance, ‘restaurants’ might be closer to the center of the hyperbolic space, while specific ‘burger joints’ would be further out, reflecting their more specialized nature.
- Spatio-temporal Channel: To account for real-world context, a spatio-temporal fusion channel encodes geographical information (using advanced features like Random Fourier Features and Radial Basis Functions) and temporal information (like time intervals, day of the week, and hour of the day) in Euclidean space. This Euclidean context is crucial for driving the dynamic aspects of the model.
- Cross-Manifold Attention: An intelligent attention mechanism then fuses the hyperbolic representations (static preferences) with the Euclidean contextual information (dynamic context). This creates a rich, enhanced representation of a user’s trajectory, combining both their underlying tastes and their current situation.
- GTR-Mamba Layer: This is the heart of the dynamic processing. Instead of performing complex and often unstable operations directly in hyperbolic space, GTR-Mamba projects the information into the Euclidean tangent space. Here, a Mamba-based State Space Model (SSM) efficiently updates its state. The SSM’s step size and input are adaptively driven by the Euclidean spatio-temporal context, allowing it to respond to irregular shifts in user behavior. After updating, the state is mapped back to the hyperbolic manifold, ensuring the hierarchical structure is maintained. This ‘Geometry-to-Tangent Routing’ ensures both computational efficiency and numerical stability.
Prediction and Performance
For prediction, GTR-Mamba combines scores from both the hyperbolic space (reflecting geometric relationships and hierarchical preferences) and the tangent space (providing direct, linear predictions). A learnable mixing parameter balances these two scores to produce the final recommendation.
Extensive experiments on three real-world datasets (Foursquare NYC, Foursquare Tokyo, and Gowalla California) demonstrate that GTR-Mamba consistently outperforms state-of-the-art baseline models in next POI recommendation. The performance improvements are significant, ranging from 2.72% to 15.62% in NDCG and 3.06% to 10.50% in MRR, highlighting its robustness in capturing complex spatio-temporal patterns.
Crucially, GTR-Mamba shows superior adaptability in ‘scene switching’ scenarios – situations where a user’s behavior rapidly shifts from one pattern to another (e.g., from work-related travel to leisure activities). The model exhibits a smaller accuracy decline and maintains greater stability across these transition points compared to other models, thanks to its adaptive, context-driven Mamba architecture.
The efficiency of GTR-Mamba is also noteworthy. While incorporating advanced mechanisms, it achieves a good balance between training time and performance, making it practical for real-world applications. Furthermore, visualizations confirm that hyperbolic space effectively captures hierarchical structures, with lower-level POIs distributed in the outer regions and higher-level categories clustered towards the center of a Poincaré disk, aligning with the exponential growth property of hyperbolic geometry.
Also Read:
- CausalRec: Enhancing Recommendation Systems by Understanding Why Users Act
- Unlocking Richer Spatial Analysis with the World-POI Dataset
Conclusion
GTR-Mamba represents a significant advancement in POI recommendation. By intelligently combining the hierarchical expressive power of hyperbolic geometry with the dynamic, efficient processing of a Mamba-based State Space Model in Euclidean tangent space, it offers a robust and adaptable solution for predicting user mobility. This framework not only achieves state-of-the-art performance but also demonstrates superior robustness in complex, context-switching scenarios, paving the way for more personalized and accurate location-based services. You can read the full research paper here.


