{"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/mixture-proportion-estimation-and-pu-learning","title":"Mixture Proportion Estimation and PU Learning: A Modern Approach","arxiv_id":"2111.00980","date":"2021-11-01","proceeding":"NeurIPS 2021 12","authors":["Saurabh Garg","Yifan Wu","Alex Smola","Sivaraman Balakrishnan","Zachary C. Lipton"],"abstract":"Given only positive examples and unlabeled examples (from both positive and negative classes), we might hope nevertheless to estimate an accurate positive-versus-negative classifier. Formally, this task is broken down into two subtasks: (i) Mixture Proportion Estimation (MPE) -- determining the fraction of positive examples in the unlabeled data; and (ii) PU-learning -- given such an estimate, learning the desired positive-versus-negative classifier. Unfortunately, classical methods for both problems break down in high-dimensional settings. Meanwhile, recently proposed heuristics lack theoretical coherence and depend precariously on hyperparameter tuning. In this paper, we propose two simple techniques: Best Bin Estimation (BBE) (for MPE); and Conditional Value Ignoring Risk (CVIR), a simple objective for PU-learning. Both methods dominate previous approaches empirically, and for BBE, we establish formal guarantees that hold whenever we can train a model to cleanly separate out a small subset of positive examples. Our final algorithm (TED)$^n$, alternates between the two procedures, significantly improving both our mixture proportion estimator and classifier","url_abs":"https://arxiv.org/abs/2111.00980v1","url_pdf":"https://arxiv.org/pdf/2111.00980v1.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":"mixture-proportion-estimation-and-pu-learning","repo_url":"https://github.com/acmi-lab/pu_learning","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"mixture-proportion-estimation-and-pu-learning","repo_url":"https://github.com/ucla-starai/countloss","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2111.00980","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2111.00980"}},"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/ucla-starai/countloss","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/acmi-lab/pu_learning","reach":null}],"summary":{"ran_fixture":1,"ran_violates":1,"ran_honours":1,"ran_draft_wrong":3},"by_repo_kind":{"official":{"samples":6,"ran":6,"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":"a437f68d6167d4ae","entry":"BBE_estimator","repo":"acmi-lab/pu_learning","repo_kind":"official","path":"estimator.py","file_url":"https://github.com/acmi-lab/pu_learning/blob/HEAD/estimator.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a437f68d6167d4ae"}},{"code_sha256_prefix":"c82c001b12ff9e3e","entry":"DKW_bound","repo":"acmi-lab/pu_learning","repo_kind":"official","path":"estimator.py","file_url":"https://github.com/acmi-lab/pu_learning/blob/HEAD/estimator.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c82c001b12ff9e3e"}},{"code_sha256_prefix":"36e4b190d1f22912","entry":"p_probs","repo":"acmi-lab/pu_learning","repo_kind":"official","path":"estimator.py","file_url":"https://github.com/acmi-lab/pu_learning/blob/HEAD/estimator.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"36e4b190d1f22912"}},{"code_sha256_prefix":"6be2aa1992b29077","entry":"ramp_loss","repo":"acmi-lab/pu_learning","repo_kind":"official","path":"algorithm.py","file_url":"https://github.com/acmi-lab/pu_learning/blob/HEAD/algorithm.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6be2aa1992b29077"}},{"code_sha256_prefix":"f79eaa8260cc169c","entry":"sigmoid_loss","repo":"acmi-lab/pu_learning","repo_kind":"official","path":"algorithm.py","file_url":"https://github.com/acmi-lab/pu_learning/blob/HEAD/algorithm.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"f79eaa8260cc169c"}},{"code_sha256_prefix":"6c57210f621bfbdb","entry":"u_probs","repo":"acmi-lab/pu_learning","repo_kind":"official","path":"estimator.py","file_url":"https://github.com/acmi-lab/pu_learning/blob/HEAD/estimator.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6c57210f621bfbdb"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}