Papers › Learning from Rules Generalizing Labeled Exemplars

Learning from Rules Generalizing Labeled Exemplars

13 Apr 2020ICLR 2020 1arXiv:2004.06025archive 2025-07-28

Abhijeet Awasthi, Sabyasachi Ghosh, Rasna Goyal, Sunita Sarawagi

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.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2004.06025")

Code

Syntology Ran 1 of 12 code samples harvested from 1 repository linked to this paper; 11 have no recorded run. Of those that ran: 1 ran · violated contract.

By repository: official repository: 12 samples from 1 repository, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

awasthiabhijeet/Learning-From-Rules officialmentioned in papertfApache-2.0 report
michael-aloys/awesome-weak-supervision mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

12 samples harvested; 1 ran; 0 honoured the contract we drafted; 11 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
11unverified

Licence: 0 of the 12 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from awasthiabhijeet/learning-from-rules. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

compute_accuracy awasthiabhijeet/learning-from-rules/src/hls/run_snorkel.py official repository ran · violated contract fingerprinted Apache-2.0 (permissive) · 8f0ff324b2b8d401 · report
convert_m_to_l awasthiabhijeet/Learning-From-Rules/src/hls/analyze_w_predictions.py official repository unverified Apache-2.0 (permissive) · 40359941edb92402 · report
convert_weights_to_m awasthiabhijeet/Learning-From-Rules/src/hls/analyze_w_predictions.py official repository unverified Apache-2.0 (permissive) · a6c5f5947c25220b · report
extract_rules_satisfying_min_coverage awasthiabhijeet/Learning-From-Rules/src/hls/data_feeder_utils.py official repository unverified Apache-2.0 (permissive) · d15e732aad8228e3 · report
generalized_cross_entropy awasthiabhijeet/Learning-From-Rules/src/hls/generalized_cross_entropy_utils.py official repository unverified Apache-2.0 (permissive) · 777b198f57adfe81 · report
generalized_cross_entropy_bernoulli awasthiabhijeet/Learning-From-Rules/src/hls/generalized_cross_entropy_utils.py official repository unverified Apache-2.0 (permissive) · 1de6e62872d5336c · report
get_rule_classes awasthiabhijeet/Learning-From-Rules/src/hls/data_feeder_utils.py official repository unverified Apache-2.0 (permissive) · 481add7b8898fcba · report
get_rule_precision awasthiabhijeet/Learning-From-Rules/src/hls/analyze_w_predictions.py official repository unverified Apache-2.0 (permissive) · bee77cd09814dd90 · report
get_rule_precision awasthiabhijeet/Learning-From-Rules/src/hls/get_rule_related_statistics.py official repository unverified Apache-2.0 (permissive) · 3c561d18a4c5a1a1 · report
load_data awasthiabhijeet/Learning-From-Rules/src/hls/data_feeder_utils.py official repository unverified Apache-2.0 (permissive) · 1c9bf72ef362eacb · report
load_from_pickle_with_per_class_sampling_factor awasthiabhijeet/Learning-From-Rules/src/hls/data_utils.py official repository unverified Apache-2.0 (permissive) · 4dc581293aae396b · report
updated_theta_copy awasthiabhijeet/Learning-From-Rules/src/hls/learn2reweight_utils.py official repository unverified Apache-2.0 (permissive) · cb01ac667971f3e0 · report

Tasks

Denoising

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections