{"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/simple-and-scalable-epistemic-uncertainty","title":"Uncertainty Estimation Using a Single Deep Deterministic Neural Network","arxiv_id":"2003.02037","date":"2020-03-04","proceeding":null,"authors":["Joost van Amersfoort","Lewis Smith","Yee Whye Teh","Yarin Gal"],"abstract":"We propose a method for training a deterministic deep model that can find and reject out of distribution data points at test time with a single forward pass. Our approach, deterministic uncertainty quantification (DUQ), builds upon ideas of RBF networks. We scale training in these with a novel loss function and centroid updating scheme and match the accuracy of softmax models. By enforcing detectability of changes in the input using a gradient penalty, we are able to reliably detect out of distribution data. Our uncertainty quantification scales well to large datasets, and using a single model, we improve upon or match Deep Ensembles in out of distribution detection on notable difficult dataset pairs such as FashionMNIST vs. MNIST, and CIFAR-10 vs. SVHN.","url_abs":"https://arxiv.org/abs/2003.02037v2","url_pdf":"https://arxiv.org/pdf/2003.02037v2.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":"simple-and-scalable-epistemic-uncertainty","repo_url":"https://github.com/y0ast/deterministic-uncertainty-quantification","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"simple-and-scalable-epistemic-uncertainty","repo_url":"https://github.com/dsgiitr/ML-Reproducibility-2020-DUQ","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"out-of-distribution-detection","task_name":"Out-of-Distribution Detection"},{"task_slug":"uncertainty-quantification","task_name":"Uncertainty Quantification"}],"methods":[{"method_slug":"deep-ensembles","method_name":"Deep Ensembles"},{"method_slug":"softmax","method_name":"Softmax"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2003.02037","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2003.02037"}},"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/y0ast/deterministic-uncertainty-quantification","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/dsgiitr/ML-Reproducibility-2020-DUQ","reach":{"status":"ok"}}],"summary":{"unverified":7},"by_repo_kind":{"official":{"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":"1617e4e7db1c46ac","entry":"get_FashionMNIST","repo":"y0ast/deterministic-uncertainty-quantification","repo_kind":"official","path":"utils/datasets.py","file_url":"https://github.com/y0ast/deterministic-uncertainty-quantification/blob/HEAD/utils/datasets.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":"1617e4e7db1c46ac"}},{"code_sha256_prefix":"f850d3f8ef5fec41","entry":"get_MNIST","repo":"y0ast/deterministic-uncertainty-quantification","repo_kind":"official","path":"utils/datasets.py","file_url":"https://github.com/y0ast/deterministic-uncertainty-quantification/blob/HEAD/utils/datasets.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":"f850d3f8ef5fec41"}},{"code_sha256_prefix":"f1678bdf5e885e9b","entry":"get_SVHN","repo":"y0ast/deterministic-uncertainty-quantification","repo_kind":"official","path":"utils/datasets.py","file_url":"https://github.com/y0ast/deterministic-uncertainty-quantification/blob/HEAD/utils/datasets.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":"f1678bdf5e885e9b"}},{"code_sha256_prefix":"edd0ba21eac3f8ac","entry":"get_auroc_ood","repo":"y0ast/deterministic-uncertainty-quantification","repo_kind":"official","path":"utils/evaluate_ood.py","file_url":"https://github.com/y0ast/deterministic-uncertainty-quantification/blob/HEAD/utils/evaluate_ood.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":"edd0ba21eac3f8ac"}},{"code_sha256_prefix":"7c564eadd854cc48","entry":"loop_over_dataloader","repo":"y0ast/deterministic-uncertainty-quantification","repo_kind":"official","path":"utils/evaluate_ood.py","file_url":"https://github.com/y0ast/deterministic-uncertainty-quantification/blob/HEAD/utils/evaluate_ood.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":"7c564eadd854cc48"}},{"code_sha256_prefix":"a59be78abd1c6d34","entry":"prepare_ood_datasets","repo":"y0ast/deterministic-uncertainty-quantification","repo_kind":"official","path":"utils/evaluate_ood.py","file_url":"https://github.com/y0ast/deterministic-uncertainty-quantification/blob/HEAD/utils/evaluate_ood.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":"a59be78abd1c6d34"}},{"code_sha256_prefix":"d17a6bd8c8316c6e","entry":"test","repo":"y0ast/deterministic-uncertainty-quantification","repo_kind":"official","path":"train_deep_ensemble.py","file_url":"https://github.com/y0ast/deterministic-uncertainty-quantification/blob/HEAD/train_deep_ensemble.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":"d17a6bd8c8316c6e"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}