{"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/mobility-llm-learning-visiting-intentions-and","title":"Mobility-LLM: Learning Visiting Intentions and Travel Preferences from Human Mobility Data with Large Language Models","arxiv_id":"2411.00823","date":"2024-10-29","proceeding":null,"authors":["Letian Gong","Yan Lin","Xinyue Zhang","Yiwen Lu","Xuedi Han","Yichen Liu","Shengnan Guo","Youfang Lin","Huaiyu Wan"],"abstract":"Location-based services (LBS) have accumulated extensive human mobility data on diverse behaviors through check-in sequences. These sequences offer valuable insights into users' intentions and preferences. Yet, existing models analyzing check-in sequences fail to consider the semantics contained in these sequences, which closely reflect human visiting intentions and travel preferences, leading to an incomplete comprehension. Drawing inspiration from the exceptional semantic understanding and contextual information processing capabilities of large language models (LLMs) across various domains, we present Mobility-LLM, a novel framework that leverages LLMs to analyze check-in sequences for multiple tasks. Since LLMs cannot directly interpret check-ins, we reprogram these sequences to help LLMs comprehensively understand the semantics of human visiting intentions and travel preferences. Specifically, we introduce a visiting intention memory network (VIMN) to capture the visiting intentions at each record, along with a shared pool of human travel preference prompts (HTPP) to guide the LLM in understanding users' travel preferences. These components enhance the model's ability to extract and leverage semantic information from human mobility data effectively. Extensive experiments on four benchmark datasets and three downstream tasks demonstrate that our approach significantly outperforms existing models, underscoring the effectiveness of Mobility-LLM in advancing our understanding of human mobility data within LBS contexts.","url_abs":"https://arxiv.org/abs/2411.00823v1","url_pdf":"https://arxiv.org/pdf/2411.00823v1.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":"mobility-llm-learning-visiting-intentions-and","repo_url":"https://github.com/LetianGong/Mobility-LLM","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[],"methods":[{"method_slug":"memory-network","method_name":"Memory Network"},{"method_slug":null,"method_name":"Travel"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2411.00823","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2411.00823"}},"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/LetianGong/Mobility-LLM","reach":{"status":"ok"}}],"summary":{"unverified":10},"by_repo_kind":{"official":{"samples":10,"ran":0,"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":10,"samples":[{"code_sha256_prefix":"7e92f4bf8ff58c85","entry":"KLD","repo":"LetianGong/Mobility-LLM","repo_kind":"official","path":"model/utils.py","file_url":"https://github.com/LetianGong/Mobility-LLM/blob/HEAD/model/utils.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":"7e92f4bf8ff58c85"}},{"code_sha256_prefix":"50d03da382dfc380","entry":"KLD_category","repo":"LetianGong/Mobility-LLM","repo_kind":"official","path":"model/utils.py","file_url":"https://github.com/LetianGong/Mobility-LLM/blob/HEAD/model/utils.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":"50d03da382dfc380"}},{"code_sha256_prefix":"fbfecdfaead938c0","entry":"clamp_preserve_gradients","repo":"LetianGong/Mobility-LLM","repo_kind":"official","path":"model/utils.py","file_url":"https://github.com/LetianGong/Mobility-LLM/blob/HEAD/model/utils.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":"fbfecdfaead938c0"}},{"code_sha256_prefix":"ff733f53699794b0","entry":"evaluate_location","repo":"LetianGong/Mobility-LLM","repo_kind":"official","path":"utils.py","file_url":"https://github.com/LetianGong/Mobility-LLM/blob/HEAD/utils.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":"ff733f53699794b0"}},{"code_sha256_prefix":"3e140a5eff4f586e","entry":"get_batch_mask","repo":"LetianGong/Mobility-LLM","repo_kind":"official","path":"model/bert.py","file_url":"https://github.com/LetianGong/Mobility-LLM/blob/HEAD/model/bert.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":"3e140a5eff4f586e"}},{"code_sha256_prefix":"89f2b2c8f2fb1383","entry":"get_total_prob_c","repo":"LetianGong/Mobility-LLM","repo_kind":"official","path":"utils.py","file_url":"https://github.com/LetianGong/Mobility-LLM/blob/HEAD/utils.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":"89f2b2c8f2fb1383"}},{"code_sha256_prefix":"1ca34fb1c0f1748d","entry":"load_data_from_dataset","repo":"LetianGong/Mobility-LLM","repo_kind":"official","path":"preprocess/load_data.py","file_url":"https://github.com/LetianGong/Mobility-LLM/blob/HEAD/preprocess/load_data.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":"1ca34fb1c0f1748d"}},{"code_sha256_prefix":"7d4d701b035b1d6b","entry":"load_dataset_for_MobilityLLM","repo":"LetianGong/Mobility-LLM","repo_kind":"official","path":"preprocess/load_data.py","file_url":"https://github.com/LetianGong/Mobility-LLM/blob/HEAD/preprocess/load_data.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":"7d4d701b035b1d6b"}},{"code_sha256_prefix":"c3743723a7ad6877","entry":"softmax","repo":"LetianGong/Mobility-LLM","repo_kind":"official","path":"utils.py","file_url":"https://github.com/LetianGong/Mobility-LLM/blob/HEAD/utils.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":"c3743723a7ad6877"}},{"code_sha256_prefix":"3a6bf28b3ea694d0","entry":"tid_list_48","repo":"LetianGong/Mobility-LLM","repo_kind":"official","path":"preprocess/load_data.py","file_url":"https://github.com/LetianGong/Mobility-LLM/blob/HEAD/preprocess/load_data.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":"3a6bf28b3ea694d0"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}