Hierarchical Transformer with Spatio-Temporal Context Aggregation for Next Point-of-Interest Recommendation

Jiayi Xie, Zhenzhong Chen
9/4/2022
cs.IR
transformer-attention

Official code: JennyXieJiayi/STAR-HiT (11 stars, Python, Apache-2.0, last commit 2023-10-18).

Abstract

Next point-of-interest (POI) recommendation is a critical task in location-based social networks, yet remains challenging due to a high degree of variation and personalization exhibited in user movements. In this work, we explore the latent hierarchical structure composed of multi-granularity short-term structural patterns in user check-in sequences.

Show full abstract

We propose a Spatio-Temporal context AggRegated Hierarchical Transformer (STAR-HiT) for next POI recommendation, which employs stacked hierarchical encoders to recursively encode the spatio-temporal context and explicitly locate subsequences of different granularities. More specifically, in each encoder, the global attention layer captures the spatio-temporal context of the sequence, while the local attention layer performed within each subsequence enhances subsequence modeling using the local context. The sequence partition layer infers positions and lengths of subsequences from the global context adaptively, such that semantics in subsequences can be well preserved. Finally, the subsequence aggregation layer fuses representations within each subsequence to form the corresponding subsequence representation, thereby generating a new sequence of higher-level granularity. The stacking of encoders captures the latent hierarchical structure of the check-in sequence, which is used to predict the next visiting POI. Extensive experiments on three public datasets demonstrate that the proposed model achieves superior performance whilst providing explanations for recommendations. Codes are available at https://github.com/JennyXieJiayi/STAR-HiT.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

The implementation of STAR-HiT.

111PythonAug 30, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{xie2022hierarchical,
  title  = {Hierarchical Transformer with Spatio-Temporal Context Aggregation for Next Point-of-Interest Recommendation},
  author = {Jiayi Xie and Zhenzhong Chen},
  year   = {2022},
  eprint = {2209.01559},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.01559}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.01559.svg)](https://codeofpaper.com/paper/2209.01559)

Discussion