{"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/unist-a-prompt-empowered-universal-model-for","title":"UniST: A Prompt-Empowered Universal Model for Urban Spatio-Temporal Prediction","arxiv_id":"2402.11838","date":"2024-02-19","proceeding":null,"authors":["Yuan Yuan","Jingtao Ding","Jie Feng","Depeng Jin","Yong Li"],"abstract":"Urban spatio-temporal prediction is crucial for informed decision-making, such as traffic management, resource optimization, and emergence response. Despite remarkable breakthroughs in pretrained natural language models that enable one model to handle diverse tasks, a universal solution for spatio-temporal prediction remains challenging Existing prediction approaches are typically tailored for specific spatio-temporal scenarios, requiring task-specific model designs and extensive domain-specific training data. In this study, we introduce UniST, a universal model designed for general urban spatio-temporal prediction across a wide range of scenarios. Inspired by large language models, UniST achieves success through: (i) utilizing diverse spatio-temporal data from different scenarios, (ii) effective pre-training to capture complex spatio-temporal dynamics, (iii) knowledge-guided prompts to enhance generalization capabilities. These designs together unlock the potential of building a universal model for various scenarios Extensive experiments on more than 20 spatio-temporal scenarios demonstrate UniST's efficacy in advancing state-of-the-art performance, especially in few-shot and zero-shot prediction. The datasets and code implementation are released on https://github.com/tsinghua-fib-lab/UniST.","url_abs":"https://arxiv.org/abs/2402.11838v5","url_pdf":"https://arxiv.org/pdf/2402.11838v5.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":"unist-a-prompt-empowered-universal-model-for","repo_url":"https://github.com/tsinghua-fib-lab/unist","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"decision-making","task_name":"Decision Making"},{"task_slug":"management","task_name":"Management"},{"task_slug":"prediction","task_name":"Prediction"}],"methods":[{"method_slug":"align","method_name":"ALIGN"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2402.11838","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2402.11838"}},"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/tsinghua-fib-lab/unist","reach":{"status":"ok"}}],"summary":{"ran":6,"unverified":5},"by_repo_kind":{"official":{"samples":11,"ran":6,"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":11,"samples":[{"code_sha256_prefix":"4e2ac192b520c457","entry":"args_to_dict","repo":"tsinghua-fib-lab/unist","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/tsinghua-fib-lab/unist/blob/HEAD/src/utils.py","link_basis":"harvester_set","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":"4e2ac192b520c457"}},{"code_sha256_prefix":"6f828db28c6a9fbf","entry":"get_2d_sincos_pos_embed","repo":"tsinghua-fib-lab/unist","repo_kind":"official","path":"src/Embed.py","file_url":"https://github.com/tsinghua-fib-lab/unist/blob/HEAD/src/Embed.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":"6f828db28c6a9fbf"}},{"code_sha256_prefix":"706a5470f86dd115","entry":"random_masking","repo":"tsinghua-fib-lab/unist","repo_kind":"official","path":"src/mask_strategy.py","file_url":"https://github.com/tsinghua-fib-lab/unist/blob/HEAD/src/mask_strategy.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":"706a5470f86dd115"}},{"code_sha256_prefix":"cb73bf5696281001","entry":"str2bool","repo":"tsinghua-fib-lab/unist","repo_kind":"official","path":"src/utils.py","file_url":"https://github.com/tsinghua-fib-lab/unist/blob/HEAD/src/utils.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":"cb73bf5696281001"}},{"code_sha256_prefix":"18d6c129f114ddff","entry":"tube_block_masking","repo":"tsinghua-fib-lab/unist","repo_kind":"official","path":"src/mask_strategy.py","file_url":"https://github.com/tsinghua-fib-lab/unist/blob/HEAD/src/mask_strategy.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":"18d6c129f114ddff"}},{"code_sha256_prefix":"059d4f60cc03e589","entry":"tube_masking","repo":"tsinghua-fib-lab/unist","repo_kind":"official","path":"src/mask_strategy.py","file_url":"https://github.com/tsinghua-fib-lab/unist/blob/HEAD/src/mask_strategy.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":"059d4f60cc03e589"}},{"code_sha256_prefix":"eede1f5e8e2b6609","entry":"data_load","repo":"tsinghua-fib-lab/unist","repo_kind":"official","path":"src/DataLoader.py","file_url":"https://github.com/tsinghua-fib-lab/unist/blob/HEAD/src/DataLoader.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":"eede1f5e8e2b6609"}},{"code_sha256_prefix":"053343caf6066ccc","entry":"data_load_main","repo":"tsinghua-fib-lab/unist","repo_kind":"official","path":"src/DataLoader.py","file_url":"https://github.com/tsinghua-fib-lab/unist/blob/HEAD/src/DataLoader.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":"053343caf6066ccc"}},{"code_sha256_prefix":"9cebb4f9a41f411f","entry":"data_load_single","repo":"tsinghua-fib-lab/unist","repo_kind":"official","path":"src/DataLoader.py","file_url":"https://github.com/tsinghua-fib-lab/unist/blob/HEAD/src/DataLoader.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":"9cebb4f9a41f411f"}},{"code_sha256_prefix":"2884deadbb637c3e","entry":"get_2d_sincos_pos_embed_from_grid","repo":"tsinghua-fib-lab/unist","repo_kind":"official","path":"src/Embed.py","file_url":"https://github.com/tsinghua-fib-lab/unist/blob/HEAD/src/Embed.py","link_basis":"harvester_set","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":"2884deadbb637c3e"}},{"code_sha256_prefix":"6ec2d9ceb425bdff","entry":"get_2d_sincos_pos_embed_with_resolution","repo":"tsinghua-fib-lab/unist","repo_kind":"official","path":"src/Embed.py","file_url":"https://github.com/tsinghua-fib-lab/unist/blob/HEAD/src/Embed.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":"6ec2d9ceb425bdff"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}