{"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/a-differentiable-approach-to-multi-scale","title":"A Differentiable Approach to Multi-scale Brain Modeling","arxiv_id":"2406.19708","date":"2024-06-28","proceeding":null,"authors":["ChaoMing Wang","Muyang Lyu","Tianqiu Zhang","Sichao He","Si Wu"],"abstract":"We present a multi-scale differentiable brain modeling workflow utilizing BrainPy, a unique differentiable brain simulator that combines accurate brain simulation with powerful gradient-based optimization. We leverage this capability of BrainPy across different brain scales. At the single-neuron level, we implement differentiable neuron models and employ gradient methods to optimize their fit to electrophysiological data. On the network level, we incorporate connectomic data to construct biologically constrained network models. Finally, to replicate animal behavior, we train these models on cognitive tasks using gradient-based learning rules. Experiments demonstrate that our approach achieves superior performance and speed in fitting generalized leaky integrate-and-fire and Hodgkin-Huxley single neuron models. Additionally, training a biologically-informed network of excitatory and inhibitory spiking neurons on working memory tasks successfully replicates observed neural activity and synaptic weight distributions. Overall, our differentiable multi-scale simulation approach offers a promising tool to bridge neuroscience data across electrophysiological, anatomical, and behavioral scales.","url_abs":"https://arxiv.org/abs/2406.19708v3","url_pdf":"https://arxiv.org/pdf/2406.19708v3.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":"a-differentiable-approach-to-multi-scale","repo_url":"https://github.com/chaoming0625/differentiable-brain-modeling-workflow","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"jax","reach":{"status":"ok"}}],"tasks":[],"methods":[{"method_slug":"speed","method_name":"SPEED"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2406.19708","atlas_url":"https://app.syntology.ai/?focus=2406.19708","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.19708"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/brainpy/BrainPy","reach":{"status":"ok","spdx":"GPL-3.0"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/chaoming0625/differentiable-brain-modeling-workflow","reach":{"status":"ok"}}],"summary":{"ran":8,"unverified":1},"by_repo_kind":{"official":{"samples":1,"ran":1,"repositories":1},"found_in_text":{"samples":8,"ran":7,"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":9,"samples":[{"code_sha256_prefix":"a5e9f12389f4bad3","entry":"check_shape_except_batch","repo":"brainpy/BrainPy","repo_kind":"found_in_text","path":"brainpy/check.py","file_url":"https://github.com/brainpy/BrainPy/blob/HEAD/brainpy/check.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"a5e9f12389f4bad3"}},{"code_sha256_prefix":"24682edde32d3895","entry":"deprecated","repo":"brainpy/BrainPy","repo_kind":"found_in_text","path":"brainpy/deprecations.py","file_url":"https://github.com/brainpy/BrainPy/blob/HEAD/brainpy/deprecations.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"24682edde32d3895"}},{"code_sha256_prefix":"228fd3eb744f1bb1","entry":"deprecation_getattr","repo":"brainpy/BrainPy","repo_kind":"found_in_text","path":"brainpy/deprecations.py","file_url":"https://github.com/brainpy/BrainPy/blob/HEAD/brainpy/deprecations.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"228fd3eb744f1bb1"}},{"code_sha256_prefix":"47b40688d6d506f9","entry":"deprecation_getattr2","repo":"brainpy/BrainPy","repo_kind":"found_in_text","path":"brainpy/deprecations.py","file_url":"https://github.com/brainpy/BrainPy/blob/HEAD/brainpy/deprecations.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"47b40688d6d506f9"}},{"code_sha256_prefix":"4912447078112174","entry":"gamma_factor","repo":"chaoming0625/differentiable-brain-modeling-workflow","repo_kind":"official","path":"_utils.py","file_url":"https://github.com/chaoming0625/differentiable-brain-modeling-workflow/blob/HEAD/_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":"4912447078112174"}},{"code_sha256_prefix":"a3dfb251c3864eaa","entry":"index_combinations","repo":"brainpy/BrainPy","repo_kind":"found_in_text","path":"brainpy/algorithms/utils.py","file_url":"https://github.com/brainpy/BrainPy/blob/HEAD/brainpy/algorithms/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"a3dfb251c3864eaa"}},{"code_sha256_prefix":"0a77aab769e0bba7","entry":"is_shape_broadcastable","repo":"brainpy/BrainPy","repo_kind":"found_in_text","path":"brainpy/check.py","file_url":"https://github.com/brainpy/BrainPy/blob/HEAD/brainpy/check.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"0a77aab769e0bba7"}},{"code_sha256_prefix":"cc6bf80961bb8f03","entry":"is_shape_consistency","repo":"brainpy/BrainPy","repo_kind":"found_in_text","path":"brainpy/check.py","file_url":"https://github.com/brainpy/BrainPy/blob/HEAD/brainpy/check.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"cc6bf80961bb8f03"}},{"code_sha256_prefix":"f4bef671e4a4f580","entry":"get","repo":"brainpy/BrainPy","repo_kind":"found_in_text","path":"brainpy/algorithms/online.py","file_url":"https://github.com/brainpy/BrainPy/blob/HEAD/brainpy/algorithms/online.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"GPL-3.0","inline_ok":false,"mcp_get_code":{"code_sha256":"f4bef671e4a4f580"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}