{"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/error-optimization-overcoming-exponential","title":"Error Optimization: Overcoming Exponential Signal Decay in Deep Predictive Coding Networks","arxiv_id":"2505.20137","date":"2025-05-26","proceeding":null,"authors":["Cédric Goemaere","Gaspard Oliviers","Rafal Bogacz","Thomas Demeester"],"abstract":"Predictive Coding (PC) offers a biologically plausible alternative to backpropagation for neural network training, yet struggles with deeper architectures. This paper identifies the root cause: an inherent signal decay problem where gradients attenuate exponentially with depth, becoming computationally negligible due to numerical precision constraints. To address this fundamental limitation, we introduce Error Optimization (EO), a novel reparameterization that preserves PC's theoretical properties while eliminating signal decay. By optimizing over prediction errors rather than states, EO enables signals to reach all layers simultaneously and without attenuation, converging orders of magnitude faster than standard PC. Experiments across multiple architectures and datasets demonstrate that EO matches backpropagation's performance even for deeper models where conventional PC struggles. Besides practical improvements, our work provides theoretical insight into PC dynamics and establishes a foundation for scaling biologically-inspired learning to deeper architectures on digital hardware and beyond.","url_abs":"https://arxiv.org/abs/2505.20137v1","url_pdf":"https://arxiv.org/pdf/2505.20137v1.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":"error-optimization-overcoming-exponential","repo_url":"https://github.com/cgoemaere/pc_error_optimization","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2505.20137","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2505.20137"}},"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/cgoemaere/error_based_PC","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/cgoemaere/pc_error_optimization","reach":null}],"summary":{"ran":1,"unverified":7},"by_repo_kind":{"official":{"samples":1,"ran":1,"repositories":1},"found_in_text":{"samples":7,"ran":0,"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":"19d8518ddf896266","entry":"PCE","repo":"cgoemaere/pc_error_optimization","repo_kind":"official","path":"pc_e.py","file_url":"https://github.com/cgoemaere/pc_error_optimization/blob/HEAD/pc_e.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"19d8518ddf896266"}},{"code_sha256_prefix":"f25da3c6f0c726c5","entry":"class_predictor","repo":"cgoemaere/error_based_PC","repo_kind":"found_in_text","path":"get_arch.py","file_url":"https://github.com/cgoemaere/error_based_PC/blob/HEAD/get_arch.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":"f25da3c6f0c726c5"}},{"code_sha256_prefix":"bfc9d33b9f0239b2","entry":"get_architecture","repo":"cgoemaere/error_based_PC","repo_kind":"found_in_text","path":"get_arch.py","file_url":"https://github.com/cgoemaere/error_based_PC/blob/HEAD/get_arch.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":"bfc9d33b9f0239b2"}},{"code_sha256_prefix":"88950f68294913f8","entry":"get_architecture","repo":"cgoemaere/error_based_PC","repo_kind":"found_in_text","path":"mnist_poc/get_muPC_arch.py","file_url":"https://github.com/cgoemaere/error_based_PC/blob/HEAD/mnist_poc/get_muPC_arch.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":"88950f68294913f8"}},{"code_sha256_prefix":"14a9c703dc037c75","entry":"get_final_states","repo":"cgoemaere/error_based_PC","repo_kind":"found_in_text","path":"mnist_poc/analytical_solution.py","file_url":"https://github.com/cgoemaere/error_based_PC/blob/HEAD/mnist_poc/analytical_solution.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":"14a9c703dc037c75"}},{"code_sha256_prefix":"4c55956e70fad2bb","entry":"make_resnet","repo":"cgoemaere/error_based_PC","repo_kind":"found_in_text","path":"mnist_poc/get_muPC_arch.py","file_url":"https://github.com/cgoemaere/error_based_PC/blob/HEAD/mnist_poc/get_muPC_arch.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":"4c55956e70fad2bb"}},{"code_sha256_prefix":"b257747a0bd05098","entry":"make_resnet_block","repo":"cgoemaere/error_based_PC","repo_kind":"found_in_text","path":"mnist_poc/get_muPC_arch.py","file_url":"https://github.com/cgoemaere/error_based_PC/blob/HEAD/mnist_poc/get_muPC_arch.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":"b257747a0bd05098"}},{"code_sha256_prefix":"670c2a02de0f3f8f","entry":"use_CrossEntropyLoss","repo":"cgoemaere/error_based_PC","repo_kind":"found_in_text","path":"pc_variants.py","file_url":"https://github.com/cgoemaere/error_based_PC/blob/HEAD/pc_variants.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":"670c2a02de0f3f8f"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}