{"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/bayescg-as-an-uncertainty-aware-version-of-cg","title":"BayesCG As An Uncertainty Aware Version of CG","arxiv_id":"2008.03225","date":"2020-08-07","proceeding":null,"authors":["Tim W. Reid","Ilse C. F. Ipsen","Jon Cockayne","Chris J. Oates"],"abstract":"The Bayesian Conjugate Gradient method (BayesCG) is a probabilistic generalization of the Conjugate Gradient method (CG) for solving linear systems with real symmetric positive definite coefficient matrices. Our CG-based implementation of BayesCG under a structure-exploiting prior distribution represents an 'uncertainty-aware' version of CG. Its output consists of CG iterates and posterior covariances that can be propagated to subsequent computations. The covariances have low-rank and are maintained in factored form. This allows easy generation of accurate samples to probe uncertainty in downstream computations. Numerical experiments confirm the effectiveness of the low-rank posterior covariances.","url_abs":"https://arxiv.org/abs/2008.03225v4","url_pdf":"https://arxiv.org/pdf/2008.03225v4.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":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"bayescg-as-an-uncertainty-aware-version-of-cg","repo_url":"https://github.com/treid5/ProbNumCG_Supp","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"none","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2008.03225","atlas_url":"https://app.syntology.ai/?focus=2008.03225","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2008.03225"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/treid5/ProbNumCG_Supp","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":12},"by_repo_kind":{"official":{"samples":12,"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":"c7992aa9ad84ebaf","entry":"a_lanczos","repo":"treid5/ProbNumCG_Supp","repo_kind":"official","path":"Algorithms/a_lanczos.py","file_url":"https://github.com/treid5/ProbNumCG_Supp/blob/HEAD/Algorithms/a_lanczos.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":"c7992aa9ad84ebaf"}},{"code_sha256_prefix":"da00266880b2fdad","entry":"bayescg","repo":"treid5/ProbNumCG_Supp","repo_kind":"official","path":"Algorithms/bayescg.py","file_url":"https://github.com/treid5/ProbNumCG_Supp/blob/HEAD/Algorithms/bayescg.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":"da00266880b2fdad"}},{"code_sha256_prefix":"7d98a92f29c2ebd8","entry":"bayescg_k","repo":"treid5/ProbNumCG_Supp","repo_kind":"official","path":"Algorithms/bayescg_k.py","file_url":"https://github.com/treid5/ProbNumCG_Supp/blob/HEAD/Algorithms/bayescg_k.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":"7d98a92f29c2ebd8"}},{"code_sha256_prefix":"0813d58828d82ba1","entry":"bayescg_k_sampling","repo":"treid5/ProbNumCG_Supp","repo_kind":"official","path":"Algorithms/bayescg_k.py","file_url":"https://github.com/treid5/ProbNumCG_Supp/blob/HEAD/Algorithms/bayescg_k.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":"0813d58828d82ba1"}},{"code_sha256_prefix":"3b27465b322eacaa","entry":"bayescg_post_cov","repo":"treid5/ProbNumCG_Supp","repo_kind":"official","path":"Algorithms/bayescg.py","file_url":"https://github.com/treid5/ProbNumCG_Supp/blob/HEAD/Algorithms/bayescg.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":"3b27465b322eacaa"}},{"code_sha256_prefix":"422c8ea31eba466e","entry":"bayescg_random_search","repo":"treid5/ProbNumCG_Supp","repo_kind":"official","path":"Algorithms/bayescg.py","file_url":"https://github.com/treid5/ProbNumCG_Supp/blob/HEAD/Algorithms/bayescg.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":"422c8ea31eba466e"}},{"code_sha256_prefix":"04df4b3df72aa682","entry":"cgqs","repo":"treid5/ProbNumCG_Supp","repo_kind":"official","path":"Algorithms/cgqs.py","file_url":"https://github.com/treid5/ProbNumCG_Supp/blob/HEAD/Algorithms/cgqs.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":"04df4b3df72aa682"}},{"code_sha256_prefix":"e0dfe05828842ec3","entry":"float2sci","repo":"treid5/ProbNumCG_Supp","repo_kind":"official","path":"Algorithms/matrix2tabular.py","file_url":"https://github.com/treid5/ProbNumCG_Supp/blob/HEAD/Algorithms/matrix2tabular.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":"e0dfe05828842ec3"}},{"code_sha256_prefix":"e0fd437457635eca","entry":"matrix2tabular","repo":"treid5/ProbNumCG_Supp","repo_kind":"official","path":"Algorithms/matrix2tabular.py","file_url":"https://github.com/treid5/ProbNumCG_Supp/blob/HEAD/Algorithms/matrix2tabular.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":"e0fd437457635eca"}},{"code_sha256_prefix":"de7256837fa865fe","entry":"mv_normal","repo":"treid5/ProbNumCG_Supp","repo_kind":"official","path":"Algorithms/utilities.py","file_url":"https://github.com/treid5/ProbNumCG_Supp/blob/HEAD/Algorithms/utilities.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":"de7256837fa865fe"}},{"code_sha256_prefix":"0e3ec831ef9e6a23","entry":"mvt","repo":"treid5/ProbNumCG_Supp","repo_kind":"official","path":"Algorithms/utilities.py","file_url":"https://github.com/treid5/ProbNumCG_Supp/blob/HEAD/Algorithms/utilities.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":"0e3ec831ef9e6a23"}},{"code_sha256_prefix":"85f83ea40894231e","entry":"random_matrix_generator","repo":"treid5/ProbNumCG_Supp","repo_kind":"official","path":"Algorithms/utilities.py","file_url":"https://github.com/treid5/ProbNumCG_Supp/blob/HEAD/Algorithms/utilities.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":"85f83ea40894231e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}