[Paper Review] SANST: A Self-Attentive Network for Next Point-of-Interest Recommendation
This paper proposes SANST, a self-attentive network that enhances next point-of-interest (POI) recommendation by explicitly modeling spatial and temporal patterns in user check-in sequences. By incorporating spatial proximity via grid-based hashing and character-level Bi-LSTM embeddings, and modeling temporal dynamics through time-aware relative position encoding in self-attention, SANST achieves up to 13.65% higher nDCG@10 than state-of-the-art models on real-world datasets.
Next point-of-interest (POI) recommendation aims to offer suggestions on which POI to visit next, given a user's POI visit history. This problem has a wide application in the tourism industry, and it is gaining an increasing interest as more POI check-in data become available. The problem is often modeled as a sequential recommendation problem to take advantage of the sequential patterns of user check-ins, e.g., people tend to visit Central Park after The Metropolitan Museum of Art in New York City. Recently, self-attentive networks have been shown to be both effective and efficient in general sequential recommendation problems, e.g., to recommend products, video games, or movies. Directly adopting self-attentive networks for next POI recommendation, however, may produce sub-optimal recommendations. This is because vanilla self-attentive networks do not consider the spatial and temporal patterns of user check-ins, which are two critical features in next POI recommendation. To address this limitation, in this paper, we propose a model named SANST that incorporates spatio-temporal patterns of user check-ins into self-attentive networks. To incorporate the spatial patterns, we encode the relative positions of POIs into their embeddings before feeding the embeddings into the self-attentive network. To incorporate the temporal patterns, we discretize the time of POI check-ins and model the temporal relationship between POI check-ins by a relation-aware self-attention module. We evaluate the performance of our SANST model with three real-world datasets. The results show that SANST consistently outperforms the state-of-theart models, and the advantage in nDCG@10 is up to 13.65%.
Motivation & Objective
- To address the limitations of vanilla self-attentive networks in next POI recommendation, which ignore spatial and temporal patterns inherent in check-in sequences.
- To improve recommendation accuracy by explicitly modeling spatial proximity between POIs using a grid-based hashing and embedding technique.
- To model temporal dynamics by encoding relative time differences between check-ins rather than just sequence order, enabling better capture of trip-level patterns.
- To design a model that maintains the efficiency of self-attentive networks while enhancing their expressiveness for sequential POI recommendations.
- To empirically validate that integrating spatio-temporal patterns leads to consistent performance gains over existing sequential recommendation models.
Proposed method
- Spatial patterns are encoded by hashing POI locations into a grid using a space-filling curve (e.g., Z-curve), generating string representations for each POI.
- Character-level embeddings are learned from the hashed strings using a bidirectional LSTM, producing spatially aware POI embeddings that preserve proximity.
- Temporal patterns are modeled by modifying the self-attention mechanism to use relative time differences between check-ins as positional encoding, rather than just relative token positions.
- The relation-aware self-attention module computes attention scores based on query-key interactions that incorporate both content and time-aware relative positions.
- The final model stacks multiple transformer layers with multi-head attention, though ablation shows single-head attention performs best, suggesting simpler relations in POI data.
- Input sequences are truncated or padded to a fixed length ℓ, with optimal performance observed at ℓ=100 due to diminishing returns and noise from long context.
Experimental results
Research questions
- RQ1Can explicit modeling of spatial proximity between POIs improve next POI recommendation beyond standard sequential modeling?
- RQ2Does incorporating time-aware relative positions—based on actual time differences—lead to better performance than standard relative position encoding in self-attention?
- RQ3How do spatial and temporal pattern integration affect model performance across diverse real-world datasets with varying sparsity and sequence lengths?
- RQ4Is the self-attentive architecture suitable for POI recommendation when enhanced with spatio-temporal inductive biases?
- RQ5What hyperparameters (e.g., embedding size, time window, sequence length) yield optimal performance, and how do they vary across datasets?
Key findings
- SANST outperforms the state-of-the-art model SASRec by up to 13.65% in nDCG@10 across all three real-world datasets: Gowalla, Los Angeles, and Singapore.
- The model achieves peak performance at input sequence length ℓ=100, with performance dropping at ℓ=200 due to padding and noisy long-range dependencies.
- Optimal character embedding dimensionality for spatial encoding is dₛ=20, balancing information capture and data sparsity, especially given a 32-character vocabulary.
- The time context window size k=5 yields the best performance on Los Angeles, which has a long time span and sparse check-ins, indicating higher k is needed for sparser temporal data.
- Deeper networks (τ=3) overfit, and adding more attention heads (h=2) does not improve performance, suggesting single-head attention is sufficient due to simpler POI relationships.
- SANST is robust to hyperparameter variations, with consistent performance gains across datasets, particularly excelling on Los Angeles due to its smaller data space and shorter sequences.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.