{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/revisiting-mobility-modeling-with-graph-a","title":"Revisiting Mobility Modeling with Graph: A Graph Transformer Model for Next Point-of-Interest Recommendation","arxiv_id":"2310.01224","date":"2023-10-02","proceeding":null,"authors":["Xiaohang Xu","Toyotaro Suzumura","Jiawei Yong","Masatoshi Hanai","Chuang Yang","Hiroki Kanezashi","Renhe Jiang","Shintaro Fukushima"],"abstract":"Next Point-of-Interest (POI) recommendation plays a crucial role in urban mobility applications. Recently, POI recommendation models based on Graph Neural Networks (GNN) have been extensively studied and achieved, however, the effective incorporation of both spatial and temporal information into such GNN-based models remains challenging. Extracting distinct fine-grained features unique to each piece of information is difficult since temporal information often includes spatial information, as users tend to visit nearby POIs. To address the challenge, we propose \\textbf{\\underline{Mob}}ility \\textbf{\\underline{G}}raph \\textbf{\\underline{T}}ransformer (MobGT) that enables us to fully leverage graphs to capture both the spatial and temporal features in users' mobility patterns. MobGT combines individual spatial and temporal graph encoders to capture unique features and global user-location relations. Additionally, it incorporates a mobility encoder based on Graph Transformer to extract higher-order information between POIs. To address the long-tailed problem in spatial-temporal data, MobGT introduces a novel loss function, Tail Loss. Experimental results demonstrate that MobGT outperforms state-of-the-art models on various datasets and metrics, achieving 24\\% improvement on average. Our codes are available at \\url{https://github.com/Yukayo/MobGT}.","url_abs":"https://arxiv.org/abs/2310.01224v1","url_pdf":"https://arxiv.org/pdf/2310.01224v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"revisiting-mobility-modeling-with-graph-a","repo_url":"https://github.com/yukayo/mobgt","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"graph-transformer","method_name":"Graph Transformer"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"lapeigen","method_name":"LapEigen"},{"method_slug":"laplacian-pe","method_name":"Laplacian PE"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"transformer","method_name":"Transformer"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2310.01224","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.01224"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yukayo/mobgt","reach":{"status":"ok"}}],"summary":{"ran_violates":1,"ran":7,"unverified":1},"by_repo_kind":{"official":{"samples":9,"ran":8,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":9,"samples":[{"code_sha256_prefix":"b8e95809ca2c17c9","entry":"sigmoid","repo":"yukayo/mobgt","repo_kind":"official","path":"baseline_models/DeepMove/train_foursquare.py","file_url":"https://github.com/yukayo/mobgt/blob/HEAD/baseline_models/DeepMove/train_foursquare.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":2,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b8e95809ca2c17c9"}},{"code_sha256_prefix":"885f6c09d66dcbc7","entry":"LLs2Dist","repo":"yukayo/mobgt","repo_kind":"official","path":"baseline_models/DeepMove/train_foursquare.py","file_url":"https://github.com/yukayo/mobgt/blob/HEAD/baseline_models/DeepMove/train_foursquare.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"885f6c09d66dcbc7"}},{"code_sha256_prefix":"8af27c6e18680607","entry":"MRR_metric","repo":"yukayo/mobgt","repo_kind":"official","path":"graphormer/model_fqandtoyo.py","file_url":"https://github.com/yukayo/mobgt/blob/HEAD/graphormer/model_fqandtoyo.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8af27c6e18680607"}},{"code_sha256_prefix":"f496df424f6643ee","entry":"MRR_metric_last_timestep","repo":"yukayo/mobgt","repo_kind":"official","path":"baseline_models/DeepMove/train_caller.py","file_url":"https://github.com/yukayo/mobgt/blob/HEAD/baseline_models/DeepMove/train_caller.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f496df424f6643ee"}},{"code_sha256_prefix":"22302ef7ba6e207d","entry":"MRR_metric_last_timestep_Markov","repo":"yukayo/mobgt","repo_kind":"official","path":"baseline_models/DeepMove/train_caller.py","file_url":"https://github.com/yukayo/mobgt/blob/HEAD/baseline_models/DeepMove/train_caller.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"22302ef7ba6e207d"}},{"code_sha256_prefix":"4cf13040397f5d81","entry":"MRR_metric_timestep","repo":"yukayo/mobgt","repo_kind":"official","path":"baseline_models/DeepMove/train_caller.py","file_url":"https://github.com/yukayo/mobgt/blob/HEAD/baseline_models/DeepMove/train_caller.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4cf13040397f5d81"}},{"code_sha256_prefix":"d1e2018ef98fce71","entry":"get_acc","repo":"yukayo/mobgt","repo_kind":"official","path":"graphormer/model_fqandtoyo.py","file_url":"https://github.com/yukayo/mobgt/blob/HEAD/graphormer/model_fqandtoyo.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d1e2018ef98fce71"}},{"code_sha256_prefix":"11e6984e1e22b85a","entry":"softmax","repo":"yukayo/mobgt","repo_kind":"official","path":"baseline_models/DeepMove/train_foursquare.py","file_url":"https://github.com/yukayo/mobgt/blob/HEAD/baseline_models/DeepMove/train_foursquare.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"11e6984e1e22b85a"}},{"code_sha256_prefix":"b333ecd3dbaaab4d","entry":"get_acc1","repo":"yukayo/mobgt","repo_kind":"official","path":"graphormer/model_fqandtoyo.py","file_url":"https://github.com/yukayo/mobgt/blob/HEAD/graphormer/model_fqandtoyo.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b333ecd3dbaaab4d"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}