{"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/poem-out-of-distribution-detection-with","title":"POEM: Out-of-Distribution Detection with Posterior Sampling","arxiv_id":"2206.13687","date":"2022-06-28","proceeding":null,"authors":["Yifei Ming","Ying Fan","Yixuan Li"],"abstract":"Out-of-distribution (OOD) detection is indispensable for machine learning models deployed in the open world. Recently, the use of an auxiliary outlier dataset during training (also known as outlier exposure) has shown promising performance. As the sample space for potential OOD data can be prohibitively large, sampling informative outliers is essential. In this work, we propose a novel posterior sampling-based outlier mining framework, POEM, which facilitates efficient use of outlier data and promotes learning a compact decision boundary between ID and OOD data for improved detection. We show that POEM establishes state-of-the-art performance on common benchmarks. Compared to the current best method that uses a greedy sampling strategy, POEM improves the relative performance by 42.0% and 24.2% (FPR95) on CIFAR-10 and CIFAR-100, respectively. We further provide theoretical insights on the effectiveness of POEM for OOD detection.","url_abs":"https://arxiv.org/abs/2206.13687v1","url_pdf":"https://arxiv.org/pdf/2206.13687v1.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":"poem-out-of-distribution-detection-with","repo_url":"https://github.com/deeplearning-wisc/poem","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"poem-out-of-distribution-detection-with","repo_url":"https://github.com/ml-jku/hopfield-boosting","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"ood-detection","task_name":"Out of Distribution (OOD) Detection"},{"task_slug":"out-of-distribution-detection","task_name":"Out-of-Distribution Detection"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2206.13687","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2206.13687"}},"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/deeplearning-wisc/poem","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ml-jku/hopfield-boosting","reach":null}],"summary":{"ran":3,"ran_fixture":1,"ran_draft_wrong":1,"unverified":3},"by_repo_kind":{"official":{"samples":2,"ran":1,"repositories":1},"listed":{"samples":6,"ran":4,"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":2,"samples":[{"code_sha256_prefix":"1820d255ad6536df","entry":"Energy","repo":"ml-jku/hopfield-boosting","repo_kind":"listed","path":"hopfield_boosting/trainer.py","file_url":"https://github.com/ml-jku/hopfield-boosting/blob/HEAD/hopfield_boosting/trainer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1820d255ad6536df"}},{"code_sha256_prefix":"bbdf73ff884c7d71","entry":"Negative","repo":"ml-jku/hopfield-boosting","repo_kind":"listed","path":"hopfield_boosting/trainer.py","file_url":"https://github.com/ml-jku/hopfield-boosting/blob/HEAD/hopfield_boosting/trainer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bbdf73ff884c7d71"}},{"code_sha256_prefix":"fee968b72e4426fe","entry":"OneSidedEnergy","repo":"ml-jku/hopfield-boosting","repo_kind":"listed","path":"hopfield_boosting/trainer.py","file_url":"https://github.com/ml-jku/hopfield-boosting/blob/HEAD/hopfield_boosting/trainer.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fee968b72e4426fe"}},{"code_sha256_prefix":"be0d4ac54f245dd8","entry":"get_energy","repo":"deeplearning-wisc/poem","repo_kind":"official","path":"get_score.py","file_url":"https://github.com/deeplearning-wisc/poem/blob/HEAD/get_score.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"be0d4ac54f245dd8"}},{"code_sha256_prefix":"ad16a03dfc3e43e8","entry":"logmeanexp","repo":"ml-jku/hopfield-boosting","repo_kind":"listed","path":"hopfield_boosting/trainer.py","file_url":"https://github.com/ml-jku/hopfield-boosting/blob/HEAD/hopfield_boosting/trainer.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ad16a03dfc3e43e8"}},{"code_sha256_prefix":"36d1b234575abd33","entry":"DoublyRobustModel","repo":"deeplearning-wisc/poem","repo_kind":"official","path":"models/gmm.py","file_url":"https://github.com/deeplearning-wisc/poem/blob/HEAD/models/gmm.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"36d1b234575abd33"}},{"code_sha256_prefix":"6b66adc75f35d41f","entry":"HopfieldTrainer","repo":"ml-jku/hopfield-boosting","repo_kind":"listed","path":"hopfield_boosting/trainer.py","file_url":"https://github.com/ml-jku/hopfield-boosting/blob/HEAD/hopfield_boosting/trainer.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":"6b66adc75f35d41f"}},{"code_sha256_prefix":"89ac6a6ad5905fa5","entry":"Trainer","repo":"ml-jku/hopfield-boosting","repo_kind":"listed","path":"hopfield_boosting/trainer.py","file_url":"https://github.com/ml-jku/hopfield-boosting/blob/HEAD/hopfield_boosting/trainer.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":"89ac6a6ad5905fa5"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}