{"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/urbanvlp-a-multi-granularity-vision-language","title":"UrbanVLP: Multi-Granularity Vision-Language Pretraining for Urban Socioeconomic Indicator Prediction","arxiv_id":"2403.16831","date":"2024-03-25","proceeding":null,"authors":["Xixuan Hao","Wei Chen","Yibo Yan","Siru Zhong","Kun Wang","Qingsong Wen","Yuxuan Liang"],"abstract":"Urban socioeconomic indicator prediction aims to infer various metrics related to sustainable development in diverse urban landscapes using data-driven methods. However, prevalent pretrained models, particularly those reliant on satellite imagery, face dual challenges. Firstly, concentrating solely on macro-level patterns from satellite data may introduce bias, lacking nuanced details at micro levels, such as architectural details at a place. Secondly, the text generated by the precursor work UrbanCLIP, which fully utilizes the extensive knowledge of LLMs, frequently exhibits issues such as hallucination and homogenization, resulting in a lack of reliable quality. In response to these issues, we devise a novel framework entitled UrbanVLP based on Vision-Language Pretraining. Our UrbanVLP seamlessly integrates multi-granularity information from both macro (satellite) and micro (street-view) levels, overcoming the limitations of prior pretrained models. Moreover, it introduces automatic text generation and calibration, providing a robust guarantee for producing high-quality text descriptions of urban imagery. Rigorous experiments conducted across six socioeconomic indicator prediction tasks underscore its superior performance.","url_abs":"https://arxiv.org/abs/2403.16831v3","url_pdf":"https://arxiv.org/pdf/2403.16831v3.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":"urbanvlp-a-multi-granularity-vision-language","repo_url":"https://github.com/citymind-lab/urbanvlp","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"urbanvlp-a-multi-granularity-vision-language","repo_url":"https://github.com/stupidbuluchacha/urbanclip","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"hallucination","task_name":"Hallucination"},{"task_slug":"text-generation","task_name":"Text Generation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2403.16831","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2403.16831"}},"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/citymind-lab/urbanvlp","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/stupidbuluchacha/urbanclip","reach":{"status":"ok"}}],"summary":{"ran":5,"ran_violates":3,"ran_honours":1,"ran_draft_wrong":3,"unverified":8},"by_repo_kind":{"official":{"samples":16,"ran":8,"repositories":1},"listed":{"samples":4,"ran":4,"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":20,"samples":[{"code_sha256_prefix":"2d2bc5c34037e15b","entry":"basic_encoding","repo":"citymind-lab/urbanvlp","repo_kind":"official","path":"models/GeoCLIP_rff/functional.py","file_url":"https://github.com/citymind-lab/urbanvlp/blob/HEAD/models/GeoCLIP_rff/functional.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":"2d2bc5c34037e15b"}},{"code_sha256_prefix":"f19962ebb134b3d7","entry":"convert_to_custom_text_state_dict","repo":"citymind-lab/urbanvlp","repo_kind":"official","path":"open_clip_mine/model.py","file_url":"https://github.com/citymind-lab/urbanvlp/blob/HEAD/open_clip_mine/model.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f19962ebb134b3d7"}},{"code_sha256_prefix":"bc5e9eb9f68abc52","entry":"count_all_parameters","repo":"citymind-lab/urbanvlp","repo_kind":"official","path":"models/utils.py","file_url":"https://github.com/citymind-lab/urbanvlp/blob/HEAD/models/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":"bc5e9eb9f68abc52"}},{"code_sha256_prefix":"c0f58828a29c6afb","entry":"count_trainable_parameters","repo":"citymind-lab/urbanvlp","repo_kind":"official","path":"models/utils.py","file_url":"https://github.com/citymind-lab/urbanvlp/blob/HEAD/models/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":"c0f58828a29c6afb"}},{"code_sha256_prefix":"60fff7c3c400d7ff","entry":"default","repo":"stupidbuluchacha/urbanclip","repo_kind":"listed","path":"model_init.py","file_url":"https://github.com/stupidbuluchacha/urbanclip/blob/HEAD/model_init.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"60fff7c3c400d7ff"}},{"code_sha256_prefix":"0420b6ffe30c1b1b","entry":"equal_earth_projection","repo":"citymind-lab/urbanvlp","repo_kind":"official","path":"models/models.py","file_url":"https://github.com/citymind-lab/urbanvlp/blob/HEAD/models/models.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0420b6ffe30c1b1b"}},{"code_sha256_prefix":"349f43e5b0e6e7d9","entry":"evaluate","repo":"stupidbuluchacha/urbanclip","repo_kind":"listed","path":"mlp.py","file_url":"https://github.com/stupidbuluchacha/urbanclip/blob/HEAD/mlp.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":"349f43e5b0e6e7d9"}},{"code_sha256_prefix":"aa5486a3650902d8","entry":"exists","repo":"stupidbuluchacha/urbanclip","repo_kind":"listed","path":"model_init.py","file_url":"https://github.com/stupidbuluchacha/urbanclip/blob/HEAD/model_init.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"aa5486a3650902d8"}},{"code_sha256_prefix":"93245a6fbe3c4415","entry":"gaussian_encoding","repo":"citymind-lab/urbanvlp","repo_kind":"official","path":"models/GeoCLIP_rff/functional.py","file_url":"https://github.com/citymind-lab/urbanvlp/blob/HEAD/models/GeoCLIP_rff/functional.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":"93245a6fbe3c4415"}},{"code_sha256_prefix":"dcd422d66b0581d8","entry":"get_cast_dtype","repo":"citymind-lab/urbanvlp","repo_kind":"official","path":"open_clip_mine/model.py","file_url":"https://github.com/citymind-lab/urbanvlp/blob/HEAD/open_clip_mine/model.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dcd422d66b0581d8"}},{"code_sha256_prefix":"b476c8cfbf0f1f47","entry":"get_input_dtype","repo":"citymind-lab/urbanvlp","repo_kind":"official","path":"open_clip_mine/model.py","file_url":"https://github.com/citymind-lab/urbanvlp/blob/HEAD/open_clip_mine/model.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b476c8cfbf0f1f47"}},{"code_sha256_prefix":"d3d5bf1b20109dcd","entry":"pad_dim_to","repo":"stupidbuluchacha/urbanclip","repo_kind":"listed","path":"model_init.py","file_url":"https://github.com/stupidbuluchacha/urbanclip/blob/HEAD/model_init.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d3d5bf1b20109dcd"}},{"code_sha256_prefix":"885eb2a718f63cf4","entry":"evaluate","repo":"citymind-lab/urbanvlp","repo_kind":"official","path":"models/mlp_urbanvlp.py","file_url":"https://github.com/citymind-lab/urbanvlp/blob/HEAD/models/mlp_urbanvlp.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":"885eb2a718f63cf4"}},{"code_sha256_prefix":"ddcbd45e940484ee","entry":"gather_features","repo":"citymind-lab/urbanvlp","repo_kind":"official","path":"open_clip_mine/loss.py","file_url":"https://github.com/citymind-lab/urbanvlp/blob/HEAD/open_clip_mine/loss.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":"ddcbd45e940484ee"}},{"code_sha256_prefix":"e332856e3c2fc814","entry":"neighbour_exchange","repo":"citymind-lab/urbanvlp","repo_kind":"official","path":"open_clip_mine/loss.py","file_url":"https://github.com/citymind-lab/urbanvlp/blob/HEAD/open_clip_mine/loss.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":"e332856e3c2fc814"}},{"code_sha256_prefix":"5b1fd364afcf3c05","entry":"neighbour_exchange_bidir","repo":"citymind-lab/urbanvlp","repo_kind":"official","path":"open_clip_mine/loss.py","file_url":"https://github.com/citymind-lab/urbanvlp/blob/HEAD/open_clip_mine/loss.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":"5b1fd364afcf3c05"}},{"code_sha256_prefix":"fb651d0a97fd4d3f","entry":"prepare_inputs_for_generation","repo":"citymind-lab/urbanvlp","repo_kind":"official","path":"open_clip_mine/coca_model.py","file_url":"https://github.com/citymind-lab/urbanvlp/blob/HEAD/open_clip_mine/coca_model.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":"fb651d0a97fd4d3f"}},{"code_sha256_prefix":"2a377da4a76a2d44","entry":"register_pooler","repo":"citymind-lab/urbanvlp","repo_kind":"official","path":"open_clip_mine/hf_model.py","file_url":"https://github.com/citymind-lab/urbanvlp/blob/HEAD/open_clip_mine/hf_model.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":"2a377da4a76a2d44"}},{"code_sha256_prefix":"43e5f269780ac7f5","entry":"sample_b","repo":"citymind-lab/urbanvlp","repo_kind":"official","path":"models/GeoCLIP_rff/functional.py","file_url":"https://github.com/citymind-lab/urbanvlp/blob/HEAD/models/GeoCLIP_rff/functional.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":"43e5f269780ac7f5"}},{"code_sha256_prefix":"2bf62c0287050bdd","entry":"unwrap_model","repo":"citymind-lab/urbanvlp","repo_kind":"official","path":"models/utils.py","file_url":"https://github.com/citymind-lab/urbanvlp/blob/HEAD/models/utils.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":"2bf62c0287050bdd"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}