{"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/taylorformer-probabilistic-predictions-for","title":"Taylorformer: Probabilistic Modelling for Random Processes including Time Series","arxiv_id":"2305.19141","date":"2023-05-30","proceeding":null,"authors":["Omer Nivron","Raghul Parthipan","Damon J. Wischik"],"abstract":"We propose the Taylorformer for random processes such as time series. Its two key components are: 1) the LocalTaylor wrapper which adapts Taylor approximations (used in dynamical systems) for use in neural network-based probabilistic models, and 2) the MHA-X attention block which makes predictions in a way inspired by how Gaussian Processes' mean predictions are linear smoothings of contextual data. Taylorformer outperforms the state-of-the-art in terms of log-likelihood on 5/6 classic Neural Process tasks such as meta-learning 1D functions, and has at least a 14\\% MSE improvement on forecasting tasks, including electricity, oil temperatures and exchange rates. Taylorformer approximates a consistent stochastic process and provides uncertainty-aware predictions. Our code is provided in the supplementary material.","url_abs":"https://arxiv.org/abs/2305.19141v2","url_pdf":"https://arxiv.org/pdf/2305.19141v2.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":"taylorformer-probabilistic-predictions-for","repo_url":"https://github.com/oremnirv/taylorformer","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"gaussian-processes","task_name":"Gaussian Processes"},{"task_slug":"meta-learning","task_name":"Meta-Learning"},{"task_slug":"time-series-1","task_name":"Time Series"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2305.19141","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2305.19141"}},"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/thuml/Autoformer","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/oremnirv/Taylorformer","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/oremnirv/taylorformer","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_honours":1,"ran":1,"ran_fixture":2,"unverified":12},"by_repo_kind":{"official":{"samples":13,"ran":1,"repositories":1},"community":{"samples":1,"ran":1,"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":3,"samples":[{"code_sha256_prefix":"afd3c5ab4cb8face","entry":"count_param","repo":"FVL2020/ICCV-2023-MB-TaylorFormer","repo_kind":"community","path":"basicsr/models/archs/MB_TaylorFormer.py","file_url":"https://github.com/FVL2020/ICCV-2023-MB-TaylorFormer/blob/HEAD/basicsr/models/archs/MB_TaylorFormer.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":2,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"afd3c5ab4cb8face"}},{"code_sha256_prefix":"65cdae69f38cf4ab","entry":"FFN_1","repo":"oremnirv/taylorformer","repo_kind":"official","path":"model/taylorformer.py","file_url":"https://github.com/oremnirv/taylorformer/blob/HEAD/model/taylorformer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"65cdae69f38cf4ab"}},{"code_sha256_prefix":"82a15cc1e46f7e4d","entry":"to_3d","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"82a15cc1e46f7e4d"}},{"code_sha256_prefix":"b20f2a5df739a59e","entry":"to_4d","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"b20f2a5df739a59e"}},{"code_sha256_prefix":"cbfcb55bc2f9de46","entry":"FFN_o","repo":"oremnirv/taylorformer","repo_kind":"official","path":"model/taylorformer.py","file_url":"https://github.com/oremnirv/taylorformer/blob/HEAD/model/taylorformer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cbfcb55bc2f9de46"}},{"code_sha256_prefix":"0008b10f993116e0","entry":"MHA_XY_a","repo":"oremnirv/taylorformer","repo_kind":"official","path":"model/taylorformer.py","file_url":"https://github.com/oremnirv/taylorformer/blob/HEAD/model/taylorformer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"0008b10f993116e0"}},{"code_sha256_prefix":"a1b28bad8dff9afe","entry":"MHA_XY_b","repo":"oremnirv/taylorformer","repo_kind":"official","path":"model/taylorformer.py","file_url":"https://github.com/oremnirv/taylorformer/blob/HEAD/model/taylorformer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a1b28bad8dff9afe"}},{"code_sha256_prefix":"a5dbb97d666606f8","entry":"MHA_X_a","repo":"oremnirv/taylorformer","repo_kind":"official","path":"model/taylorformer.py","file_url":"https://github.com/oremnirv/taylorformer/blob/HEAD/model/taylorformer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a5dbb97d666606f8"}},{"code_sha256_prefix":"ac6453f9ec8e7d1c","entry":"MHA_X_b","repo":"oremnirv/taylorformer","repo_kind":"official","path":"model/taylorformer.py","file_url":"https://github.com/oremnirv/taylorformer/blob/HEAD/model/taylorformer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ac6453f9ec8e7d1c"}},{"code_sha256_prefix":"dc7e83587205280e","entry":"batcher","repo":"oremnirv/Taylorformer","repo_kind":"official","path":"data_wrangler/batcher.py","file_url":"https://github.com/oremnirv/Taylorformer/blob/HEAD/data_wrangler/batcher.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dc7e83587205280e"}},{"code_sha256_prefix":"55146a987364ab35","entry":"batcher_np","repo":"oremnirv/Taylorformer","repo_kind":"official","path":"data_wrangler/batcher.py","file_url":"https://github.com/oremnirv/Taylorformer/blob/HEAD/data_wrangler/batcher.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"55146a987364ab35"}},{"code_sha256_prefix":"759917fb113db5d2","entry":"dataset_processor","repo":"oremnirv/Taylorformer","repo_kind":"official","path":"data_wrangler/dataset_preparer.py","file_url":"https://github.com/oremnirv/Taylorformer/blob/HEAD/data_wrangler/dataset_preparer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"759917fb113db5d2"}},{"code_sha256_prefix":"36556e38bfccb89e","entry":"electricity_processor","repo":"oremnirv/Taylorformer","repo_kind":"official","path":"data_wrangler/dataset_preparer.py","file_url":"https://github.com/oremnirv/Taylorformer/blob/HEAD/data_wrangler/dataset_preparer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"36556e38bfccb89e"}},{"code_sha256_prefix":"2765a2fa8384fb98","entry":"gp_data_processor","repo":"oremnirv/Taylorformer","repo_kind":"official","path":"data_wrangler/dataset_preparer.py","file_url":"https://github.com/oremnirv/Taylorformer/blob/HEAD/data_wrangler/dataset_preparer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2765a2fa8384fb98"}},{"code_sha256_prefix":"a432f66477b03b6f","entry":"nll","repo":"oremnirv/Taylorformer","repo_kind":"official","path":"model/losses.py","file_url":"https://github.com/oremnirv/Taylorformer/blob/HEAD/model/losses.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a432f66477b03b6f"}},{"code_sha256_prefix":"abdbb490eee7171a","entry":"taylorformer","repo":"oremnirv/taylorformer","repo_kind":"official","path":"model/taylorformer.py","file_url":"https://github.com/oremnirv/taylorformer/blob/HEAD/model/taylorformer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"abdbb490eee7171a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}