{"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/learning-to-transfer-for-traffic-forecasting","title":"Learning to Transfer for Traffic Forecasting via Multi-task Learning","arxiv_id":"2111.15542","date":"2021-11-27","proceeding":null,"authors":["Yichao Lu"],"abstract":"Deep neural networks have demonstrated superior performance in short-term traffic forecasting. However, most existing traffic forecasting systems assume that the training and testing data are drawn from the same underlying distribution, which limits their practical applicability. The NeurIPS 2021 Traffic4cast challenge is the first of its kind dedicated to benchmarking the robustness of traffic forecasting models towards domain shifts in space and time. This technical report describes our solution to this challenge. In particular, we present a multi-task learning framework for temporal and spatio-temporal domain adaptation of traffic forecasting models. Experimental results demonstrate that our multi-task learning approach achieves strong empirical performance, outperforming a number of baseline domain adaptation methods, while remaining highly efficient. The source code for this technical report is available at https://github.com/YichaoLu/Traffic4cast2021.","url_abs":"https://arxiv.org/abs/2111.15542v1","url_pdf":"https://arxiv.org/pdf/2111.15542v1.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":"learning-to-transfer-for-traffic-forecasting","repo_url":"https://github.com/yichaolu/traffic4cast2021","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"benchmarking","task_name":"Benchmarking"},{"task_slug":"domain-adaptation","task_name":"Domain Adaptation"},{"task_slug":"multi-task-learning","task_name":"Multi-Task Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2111.15542","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2111.15542"}},"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":"deterministic:regex_extraction","url":"https://github.com/YichaoLu/Traffic4cast2021","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/yichaolu/traffic4cast2021","reach":{"status":"ok"}}],"summary":{"ran":4},"by_repo_kind":{"official":{"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":4,"samples":[{"code_sha256_prefix":"813875ee33f23d78","entry":"UNet","repo":"yichaolu/traffic4cast2021","repo_kind":"official","path":"core_competition/model_v3.py","file_url":"https://github.com/yichaolu/traffic4cast2021/blob/HEAD/core_competition/model_v3.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":"813875ee33f23d78"}},{"code_sha256_prefix":"9bdfb965335c98c5","entry":"UNetConvBlock","repo":"yichaolu/traffic4cast2021","repo_kind":"official","path":"core_competition/model_v3.py","file_url":"https://github.com/yichaolu/traffic4cast2021/blob/HEAD/core_competition/model_v3.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9bdfb965335c98c5"}},{"code_sha256_prefix":"7fa39bbf543352df","entry":"UNetConvLayer","repo":"yichaolu/traffic4cast2021","repo_kind":"official","path":"core_competition/model_v3.py","file_url":"https://github.com/yichaolu/traffic4cast2021/blob/HEAD/core_competition/model_v3.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7fa39bbf543352df"}},{"code_sha256_prefix":"c75066357839101c","entry":"UNetUpBlock","repo":"yichaolu/traffic4cast2021","repo_kind":"official","path":"core_competition/model_v3.py","file_url":"https://github.com/yichaolu/traffic4cast2021/blob/HEAD/core_competition/model_v3.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"c75066357839101c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}