{"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-correct-spectral-methods-for","title":"Learning to correct spectral methods for simulating turbulent flows","arxiv_id":"2207.00556","date":"2022-07-01","proceeding":null,"authors":["Gideon Dresdner","Dmitrii Kochkov","Peter Norgaard","Leonardo Zepeda-Núñez","Jamie A. Smith","Michael P. Brenner","Stephan Hoyer"],"abstract":"Despite their ubiquity throughout science and engineering, only a handful of partial differential equations (PDEs) have analytical, or closed-form solutions. This motivates a vast amount of classical work on numerical simulation of PDEs and more recently, a whirlwind of research into data-driven techniques leveraging machine learning (ML). A recent line of work indicates that a hybrid of classical numerical techniques and machine learning can offer significant improvements over either approach alone. In this work, we show that the choice of the numerical scheme is crucial when incorporating physics-based priors. We build upon Fourier-based spectral methods, which are known to be more efficient than other numerical schemes for simulating PDEs with smooth and periodic solutions. Specifically, we develop ML-augmented spectral solvers for three common PDEs of fluid dynamics. Our models are more accurate (2-4x) than standard spectral solvers at the same resolution but have longer overall runtimes (~2x), due to the additional runtime cost of the neural network component. We also demonstrate a handful of key design principles for combining machine learning and numerical methods for solving PDEs.","url_abs":"https://arxiv.org/abs/2207.00556v2","url_pdf":"https://arxiv.org/pdf/2207.00556v2.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-correct-spectral-methods-for","repo_url":"https://github.com/google/jax-cfd","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"learning-to-correct-spectral-methods-for","repo_url":"https://github.com/magrilab/pisr","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"machine-learning","task_name":"BIG-bench Machine Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2207.00556","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2207.00556"}},"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/google/jax-cfd","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/magrilab/pisr","reach":null}],"summary":{"ran_draft_wrong":1,"unverified":9},"by_repo_kind":{"listed":{"samples":10,"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":0,"samples":[{"code_sha256_prefix":"5bedf6d76e22d532","entry":"repeated","repo":"google/jax-cfd","repo_kind":"listed","path":"jax_cfd/ml/model_builder.py","file_url":"https://github.com/google/jax-cfd/blob/HEAD/jax_cfd/ml/model_builder.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5bedf6d76e22d532"}},{"code_sha256_prefix":"dad79f9a69c45c28","entry":"get_roll_and_shift","repo":"google/jax-cfd","repo_kind":"listed","path":"jax_cfd/ml/layers_util.py","file_url":"https://github.com/google/jax-cfd/blob/HEAD/jax_cfd/ml/layers_util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"dad79f9a69c45c28"}},{"code_sha256_prefix":"92705495cc5c7c3b","entry":"polynomial_accuracy_coefficients","repo":"google/jax-cfd","repo_kind":"listed","path":"jax_cfd/ml/layers_util.py","file_url":"https://github.com/google/jax-cfd/blob/HEAD/jax_cfd/ml/layers_util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"92705495cc5c7c3b"}},{"code_sha256_prefix":"d2a94405ee449ecc","entry":"polynomial_accuracy_constraints","repo":"google/jax-cfd","repo_kind":"listed","path":"jax_cfd/ml/layers_util.py","file_url":"https://github.com/google/jax-cfd/blob/HEAD/jax_cfd/ml/layers_util.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d2a94405ee449ecc"}},{"code_sha256_prefix":"e11af25473406c93","entry":"rescale_to_range","repo":"google/jax-cfd","repo_kind":"listed","path":"jax_cfd/ml/layers.py","file_url":"https://github.com/google/jax-cfd/blob/HEAD/jax_cfd/ml/layers.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e11af25473406c93"}},{"code_sha256_prefix":"0793157093df9634","entry":"slice_along_axis","repo":"google/jax-cfd","repo_kind":"listed","path":"jax_cfd/base/array_utils.py","file_url":"https://github.com/google/jax-cfd/blob/HEAD/jax_cfd/base/array_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0793157093df9634"}},{"code_sha256_prefix":"d083f2660897ee88","entry":"split_along_axis","repo":"google/jax-cfd","repo_kind":"listed","path":"jax_cfd/base/array_utils.py","file_url":"https://github.com/google/jax-cfd/blob/HEAD/jax_cfd/base/array_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d083f2660897ee88"}},{"code_sha256_prefix":"9734f7363d2117c4","entry":"split_axis","repo":"google/jax-cfd","repo_kind":"listed","path":"jax_cfd/base/array_utils.py","file_url":"https://github.com/google/jax-cfd/blob/HEAD/jax_cfd/base/array_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"9734f7363d2117c4"}},{"code_sha256_prefix":"7558d1909dfd2b2e","entry":"with_post_processing","repo":"google/jax-cfd","repo_kind":"listed","path":"jax_cfd/ml/model_utils.py","file_url":"https://github.com/google/jax-cfd/blob/HEAD/jax_cfd/ml/model_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7558d1909dfd2b2e"}},{"code_sha256_prefix":"b3167ed7b7ea1e05","entry":"with_preprocessing","repo":"google/jax-cfd","repo_kind":"listed","path":"jax_cfd/ml/model_utils.py","file_url":"https://github.com/google/jax-cfd/blob/HEAD/jax_cfd/ml/model_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b3167ed7b7ea1e05"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}