{"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/learning-from-rules-generalizing-labeled-1","title":"Learning from Rules Generalizing Labeled Exemplars","arxiv_id":"2004.06025","date":"2020-04-13","proceeding":"ICLR 2020 1","authors":["Abhijeet Awasthi","Sabyasachi Ghosh","Rasna Goyal","Sunita Sarawagi"],"abstract":"In many applications labeled data is not readily available, and needs to be collected via pain-staking human supervision. We propose a rule-exemplar method for collecting human supervision to combine the efficiency of rules with the quality of instance labels. The supervision is coupled such that it is both natural for humans and synergistic for learning. We propose a training algorithm that jointly denoises rules via latent coverage variables, and trains the model through a soft implication loss over the coverage and label variables. The denoised rules and trained model are used jointly for inference. Empirical evaluation on five different tasks shows that (1) our algorithm is more accurate than several existing methods of learning from a mix of clean and noisy supervision, and (2) the coupled rule-exemplar supervision is effective in denoising rules.","url_abs":"https://arxiv.org/abs/2004.06025v2","url_pdf":"https://arxiv.org/pdf/2004.06025v2.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":"learning-from-rules-generalizing-labeled-1","repo_url":"https://github.com/awasthiabhijeet/Learning-From-Rules","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"tf","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"learning-from-rules-generalizing-labeled-1","repo_url":"https://github.com/michael-aloys/awesome-weak-supervision","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"unanswered"}}],"tasks":[{"task_slug":"denoising","task_name":"Denoising"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2004.06025","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2004.06025"}},"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/awasthiabhijeet/Learning-From-Rules","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/michael-aloys/awesome-weak-supervision","reach":{"status":"unanswered"}}],"summary":{"ran_violates":1,"unverified":11},"by_repo_kind":{"official":{"samples":12,"ran":1,"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":"8f0ff324b2b8d401","entry":"compute_accuracy","repo":"awasthiabhijeet/learning-from-rules","repo_kind":"official","path":"src/hls/run_snorkel.py","file_url":"https://github.com/awasthiabhijeet/learning-from-rules/blob/HEAD/src/hls/run_snorkel.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":"8f0ff324b2b8d401"}},{"code_sha256_prefix":"40359941edb92402","entry":"convert_m_to_l","repo":"awasthiabhijeet/Learning-From-Rules","repo_kind":"official","path":"src/hls/analyze_w_predictions.py","file_url":"https://github.com/awasthiabhijeet/Learning-From-Rules/blob/HEAD/src/hls/analyze_w_predictions.py","link_basis":"first_harvest_node","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":"40359941edb92402"}},{"code_sha256_prefix":"a6c5f5947c25220b","entry":"convert_weights_to_m","repo":"awasthiabhijeet/Learning-From-Rules","repo_kind":"official","path":"src/hls/analyze_w_predictions.py","file_url":"https://github.com/awasthiabhijeet/Learning-From-Rules/blob/HEAD/src/hls/analyze_w_predictions.py","link_basis":"first_harvest_node","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":"a6c5f5947c25220b"}},{"code_sha256_prefix":"d15e732aad8228e3","entry":"extract_rules_satisfying_min_coverage","repo":"awasthiabhijeet/Learning-From-Rules","repo_kind":"official","path":"src/hls/data_feeder_utils.py","file_url":"https://github.com/awasthiabhijeet/Learning-From-Rules/blob/HEAD/src/hls/data_feeder_utils.py","link_basis":"first_harvest_node","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":"d15e732aad8228e3"}},{"code_sha256_prefix":"777b198f57adfe81","entry":"generalized_cross_entropy","repo":"awasthiabhijeet/Learning-From-Rules","repo_kind":"official","path":"src/hls/generalized_cross_entropy_utils.py","file_url":"https://github.com/awasthiabhijeet/Learning-From-Rules/blob/HEAD/src/hls/generalized_cross_entropy_utils.py","link_basis":"first_harvest_node","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":"777b198f57adfe81"}},{"code_sha256_prefix":"1de6e62872d5336c","entry":"generalized_cross_entropy_bernoulli","repo":"awasthiabhijeet/Learning-From-Rules","repo_kind":"official","path":"src/hls/generalized_cross_entropy_utils.py","file_url":"https://github.com/awasthiabhijeet/Learning-From-Rules/blob/HEAD/src/hls/generalized_cross_entropy_utils.py","link_basis":"first_harvest_node","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":"1de6e62872d5336c"}},{"code_sha256_prefix":"481add7b8898fcba","entry":"get_rule_classes","repo":"awasthiabhijeet/Learning-From-Rules","repo_kind":"official","path":"src/hls/data_feeder_utils.py","file_url":"https://github.com/awasthiabhijeet/Learning-From-Rules/blob/HEAD/src/hls/data_feeder_utils.py","link_basis":"first_harvest_node","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":"481add7b8898fcba"}},{"code_sha256_prefix":"bee77cd09814dd90","entry":"get_rule_precision","repo":"awasthiabhijeet/Learning-From-Rules","repo_kind":"official","path":"src/hls/analyze_w_predictions.py","file_url":"https://github.com/awasthiabhijeet/Learning-From-Rules/blob/HEAD/src/hls/analyze_w_predictions.py","link_basis":"first_harvest_node","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":"bee77cd09814dd90"}},{"code_sha256_prefix":"3c561d18a4c5a1a1","entry":"get_rule_precision","repo":"awasthiabhijeet/Learning-From-Rules","repo_kind":"official","path":"src/hls/get_rule_related_statistics.py","file_url":"https://github.com/awasthiabhijeet/Learning-From-Rules/blob/HEAD/src/hls/get_rule_related_statistics.py","link_basis":"first_harvest_node","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":"3c561d18a4c5a1a1"}},{"code_sha256_prefix":"1c9bf72ef362eacb","entry":"load_data","repo":"awasthiabhijeet/Learning-From-Rules","repo_kind":"official","path":"src/hls/data_feeder_utils.py","file_url":"https://github.com/awasthiabhijeet/Learning-From-Rules/blob/HEAD/src/hls/data_feeder_utils.py","link_basis":"first_harvest_node","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":"1c9bf72ef362eacb"}},{"code_sha256_prefix":"4dc581293aae396b","entry":"load_from_pickle_with_per_class_sampling_factor","repo":"awasthiabhijeet/Learning-From-Rules","repo_kind":"official","path":"src/hls/data_utils.py","file_url":"https://github.com/awasthiabhijeet/Learning-From-Rules/blob/HEAD/src/hls/data_utils.py","link_basis":"first_harvest_node","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":"4dc581293aae396b"}},{"code_sha256_prefix":"cb01ac667971f3e0","entry":"updated_theta_copy","repo":"awasthiabhijeet/Learning-From-Rules","repo_kind":"official","path":"src/hls/learn2reweight_utils.py","file_url":"https://github.com/awasthiabhijeet/Learning-From-Rules/blob/HEAD/src/hls/learn2reweight_utils.py","link_basis":"first_harvest_node","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":"cb01ac667971f3e0"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}