{"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/arxiv-2606-00572","title":"Spatiotemporal Multi-Task Graph Transformer for Trip-Level Transit Prediction","arxiv_id":"2606.00572","date":"2026-05-30","proceeding":null,"authors":["Oluwaleke Yusuf","Adil Rasheed","Frank Lindseth"],"abstract":"Passenger count data from public transit systems reveals urban mobility patterns and is essential for planning, operation, and optimisation. However, non-linear spatiotemporal interdependencies across stops and lines make modelling and prediction challenging. Existing approaches often rely on fixed temporal, spatial, or stop-level formulations, limiting their ability to capture within-trip evolution and network context. This study proposes SMT-GraphFormer, a spatiotemporal multi-task graph transformer that frames trip-level transit prediction as sequence-to-sequence modelling. Given a line's stop sequence and trip-level context, the model predicts successive boarding and alighting counts, with delay and dwell time treated as encoder-side surrogate tasks. Key components include graph embeddings for multi-relational stop similarity, a context encoder for weather and temporal information, and a multi-gate mixture-of-experts module that produces task-specific decoder representations for boarding and alighting predictions. Evaluation on public bus transit data from Trondheim, Norway, shows that SMT-GraphFormer outperforms stop-level tabular benchmarks, with ablation studies examining each component's contribution. The sequential formulation yields substantial gains on alighting prediction ($+$0.24 in $R^2$) and consistent improvements on boarding, delay, and dwell, confirming the value of explicit trip-level sequential bias and inter-target dependencies. These findings demonstrate the potential of transformer-based sequence modelling for capturing complex spatiotemporal dynamics in public transit and underscore the value of architectures tailored to transit data rather than off-the-shelf tabular models. The proposed framework provides a horizon-agnostic basis for scenario analysis in digital twin environments, supporting informed decision-making by planners and transit operators.","url_abs":"https://arxiv.org/abs/2606.00572","url_pdf":"https://arxiv.org/pdf/2606.00572","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2606.00572","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2606.00572"}},"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":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/Outsiders17711/SMTGraphFormer","reach":null}],"summary":{"ran":9,"unverified":5},"by_repo_kind":{"found_in_text":{"samples":14,"ran":9,"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":14,"samples":[{"code_sha256_prefix":"2e69b569b134d787","entry":"cleanLogText","repo":"Outsiders17711/SMTGraphFormer","repo_kind":"found_in_text","path":"src/smtgraphformer/utils/logCleanup.py","file_url":"https://github.com/Outsiders17711/SMTGraphFormer/blob/HEAD/src/smtgraphformer/utils/logCleanup.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":"2e69b569b134d787"}},{"code_sha256_prefix":"4c2d52b4de4e5e0f","entry":"estimateSMTLoss","repo":"Outsiders17711/SMTGraphFormer","repo_kind":"found_in_text","path":"src/smtgraphformer/smtGraphFormer.py","file_url":"https://github.com/Outsiders17711/SMTGraphFormer/blob/HEAD/src/smtgraphformer/smtGraphFormer.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":"4c2d52b4de4e5e0f"}},{"code_sha256_prefix":"cc7cc8eb5897e612","entry":"hf_rawname","repo":"Outsiders17711/SMTGraphFormer","repo_kind":"found_in_text","path":"src/smtgraphformer/contextEncoding.py","file_url":"https://github.com/Outsiders17711/SMTGraphFormer/blob/HEAD/src/smtgraphformer/contextEncoding.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":"cc7cc8eb5897e612"}},{"code_sha256_prefix":"04b8b7d9b32e9ac6","entry":"hf_tfmname","repo":"Outsiders17711/SMTGraphFormer","repo_kind":"found_in_text","path":"src/smtgraphformer/contextEncoding.py","file_url":"https://github.com/Outsiders17711/SMTGraphFormer/blob/HEAD/src/smtgraphformer/contextEncoding.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":"04b8b7d9b32e9ac6"}},{"code_sha256_prefix":"27f2887ee3afc8cb","entry":"isArtifact","repo":"Outsiders17711/SMTGraphFormer","repo_kind":"found_in_text","path":"src/smtgraphformer/utils/logCleanup.py","file_url":"https://github.com/Outsiders17711/SMTGraphFormer/blob/HEAD/src/smtgraphformer/utils/logCleanup.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":"27f2887ee3afc8cb"}},{"code_sha256_prefix":"5408281c1555a4fb","entry":"isProgress","repo":"Outsiders17711/SMTGraphFormer","repo_kind":"found_in_text","path":"src/smtgraphformer/utils/logCleanup.py","file_url":"https://github.com/Outsiders17711/SMTGraphFormer/blob/HEAD/src/smtgraphformer/utils/logCleanup.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":"5408281c1555a4fb"}},{"code_sha256_prefix":"7c02cb7a74134234","entry":"nextAlignedSize","repo":"Outsiders17711/SMTGraphFormer","repo_kind":"found_in_text","path":"src/smtgraphformer/utils/modelling.py","file_url":"https://github.com/Outsiders17711/SMTGraphFormer/blob/HEAD/src/smtgraphformer/utils/modelling.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":"7c02cb7a74134234"}},{"code_sha256_prefix":"0b1c8378588f48fe","entry":"pklLoader","repo":"Outsiders17711/SMTGraphFormer","repo_kind":"found_in_text","path":"src/smtgraphformer/utils/helpers.py","file_url":"https://github.com/Outsiders17711/SMTGraphFormer/blob/HEAD/src/smtgraphformer/utils/helpers.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":"0b1c8378588f48fe"}},{"code_sha256_prefix":"05e5ba772204f314","entry":"sanityCheck","repo":"Outsiders17711/SMTGraphFormer","repo_kind":"found_in_text","path":"src/smtgraphformer/utils/dataloading.py","file_url":"https://github.com/Outsiders17711/SMTGraphFormer/blob/HEAD/src/smtgraphformer/utils/dataloading.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":"05e5ba772204f314"}},{"code_sha256_prefix":"ab644aad33595aa9","entry":"autoProjectCoordinates","repo":"Outsiders17711/SMTGraphFormer","repo_kind":"found_in_text","path":"src/smtgraphformer/dataIntegration.py","file_url":"https://github.com/Outsiders17711/SMTGraphFormer/blob/HEAD/src/smtgraphformer/dataIntegration.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":"ab644aad33595aa9"}},{"code_sha256_prefix":"11354266e2de217c","entry":"hf_dnative","repo":"Outsiders17711/SMTGraphFormer","repo_kind":"found_in_text","path":"src/smtgraphformer/contextEncoding.py","file_url":"https://github.com/Outsiders17711/SMTGraphFormer/blob/HEAD/src/smtgraphformer/contextEncoding.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":"11354266e2de217c"}},{"code_sha256_prefix":"1808725a680fdb87","entry":"jsonLoader","repo":"Outsiders17711/SMTGraphFormer","repo_kind":"found_in_text","path":"src/smtgraphformer/utils/helpers.py","file_url":"https://github.com/Outsiders17711/SMTGraphFormer/blob/HEAD/src/smtgraphformer/utils/helpers.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":"1808725a680fdb87"}},{"code_sha256_prefix":"f12c1745eed636d3","entry":"setReproducibility","repo":"Outsiders17711/SMTGraphFormer","repo_kind":"found_in_text","path":"src/smtgraphformer/utils/modelling.py","file_url":"https://github.com/Outsiders17711/SMTGraphFormer/blob/HEAD/src/smtgraphformer/utils/modelling.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":"f12c1745eed636d3"}},{"code_sha256_prefix":"77aa6a20e859c28a","entry":"yamlLoader","repo":"Outsiders17711/SMTGraphFormer","repo_kind":"found_in_text","path":"src/smtgraphformer/utils/helpers.py","file_url":"https://github.com/Outsiders17711/SMTGraphFormer/blob/HEAD/src/smtgraphformer/utils/helpers.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":"77aa6a20e859c28a"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.LG","source":"arxiv_2026.jsonl"},"syntology_extracted_results":null}