Papers › A General Framework for Learning from Weak Supervision

A General Framework for Learning from Weak Supervision

2 Feb 2024arXiv:2402.01922archive 2025-07-28

Hao Chen, Jindong Wang, Lei Feng, Xiang Li, Yidong Wang, Xing Xie, Masashi Sugiyama, Rita Singh, Bhiksha Raj

Weakly supervised learning generally faces challenges in applicability to various scenarios with diverse weak supervision and in scalability due to the complexity of existing algorithms, thereby hindering the practical deployment. This paper introduces a general framework for learning from weak supervision (GLWS) with a novel algorithm. Central to GLWS is an Expectation-Maximization (EM) formulation, adeptly accommodating various weak supervision sources, including instance partial labels, aggregate statistics, pairwise observations, and unlabeled data. We further present an advanced algorithm that significantly simplifies the EM computational demands using a Non-deterministic Finite Automaton (NFA) along with a forward-backward algorithm, which effectively reduces time complexity from quadratic or factorial often required in existing solutions to linear scale. The problem of learning from arbitrary weak supervision is therefore converted to the NFA modeling of them. GLWS not only enhances the scalability of machine learning models but also demonstrates superior performance and versatility across 11 weak supervision scenarios. We hope our work paves the way for further advancements and practical deployment in this field.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 22 code samples harvested from 1 repository linked to this paper: 15 ran (of which 0 constructed an object rather than computing a result; 7 with no instrument failure: 0 honoured, 0 violated, 7 with no contract checked; 8 where Syntology's instrument failed) · 7 unverified. Where Syntology's instrument failed: 6 where our contract draft was wrong; 2 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: official repository: 22 samples from 1 repository, 15 ran (7 with no instrument failure; 8 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed. 1 of the 15 samples that ran has no recorded date.

hhhhhhao/general-framework-weak-supervision officialmentioned in papermentioned on GitHubpytorchSyntology: 22 samples, 15 ran (8 instrument-failed) · 7 unverified 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

22 samples harvested: 15 ran (of which 0 constructed an object rather than computing a result; 7 with no instrument failure: 0 honoured, 0 violated, 7 with no contract checked; 8 where Syntology's instrument failed) · 7 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

6ran · our draft was wrong
2ran; the contract check could not run
7ran
7unverified

Licence: 22 of the 22 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 hhhhhhao/general-framework-weak-supervision. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

hhhhhhao/general-framework-weak-supervision official repository 22 samples, 15 ran (8 instrument-failed) · 7 unverified
AutoContrast in 30 papers src/datasets/rand_aug.py ran · our draft was wrong no licence file found · pointer only · 4a0ac9d611e018bc · report fixture: signature img:Image/0/?, _:NoneType/0/? · returned Image · level recorded 2026-09-22
Brightness in 31 papers src/datasets/rand_aug.py ran; the contract check could not run (RAISES) no licence file found · pointer only · 61ed09bbdb8adb72 · report fixture: signature img:Image/0/?, v:float/0/float · returned Image · level recorded 2026-09-24
Color in 29 papers src/datasets/rand_aug.py ran; the contract check could not run (RAISES) no licence file found · pointer only · 5e4ee5c45933ae09 · report fixture: signature img:Image/0/?, v:float/0/float · returned Image · level recorded 2026-09-24
bag_collate_fn src/datasets/base_datasets.py ran · our draft was wrong no licence file found · pointer only · 9cb870aea654a626 · report fixture: signature data_list:list/1/dict · returned dict · level recorded 2026-09-24
conv3x3 in 1,376 papers src/nets/preact_resnet.py ran · our draft was wrong no licence file found · pointer only · 583f9780bdd00a45 · report fixture: signature in_planes:int/0/int, out_planes:int/0/int, stride:int/0/int · returned Conv2d · level recorded 2026-09-22
create_mask in 35 papers src/core/nfa.py ran · our draft was wrong fingerprinted no licence file found · pointer only · d4a2791e30483900 · report fixture: signature lengths:Tensor/1/int, max_len:int/0/int · returned Tensor · level recorded 2026-09-24
create_multi_ins_graph src/core/nfa.py ran no licence file found · pointer only · b1417ed32c2e4043 · report fixture: signature log_probs:Tensor/3/float, bag_lengths:Tensor/1/int, targets:Tensor/1/int · returned tuple · level recorded 2026-09-24
create_proportion_graph src/core/nfa.py ran fingerprinted no licence file found · pointer only · cde1fc2eb8cb26cd · report fixture: signature log_probs:Tensor/2/float, targets:int/0/int · returned tuple · level recorded 2026-09-24
get_dataloader in 111 papers src/datasets/base_data.py ran no licence file found · pointer only · c35ca4772f06187d · report fixture: signature dataset:DummyDataset/0/?, num_epochs:int/0/int, num_train_iter:NoneType/0/?, batch_size:int/0/int, shuffle:bool/0/bool, num_workers:int/0/int, pin_memory:bool/0/bool, drop_last:bool/0/bool, distributed:bool/0/bool, collate_fn:callable/0/? · returned DataLoader · level recorded 2026-09-24
get_partial_labels src/datasets/imprecise_label.py ran no licence file found · pointer only · 326d3f64fe176c15 · report fixture: signature samples:ndarray/2/float, targets:ndarray/1/int, num_classes:int/0/int, partial_ratio:float/0/float · returned tuple · level recorded 2026-09-24
get_partial_noisy_labels src/datasets/imprecise_label.py ran no licence file found · pointer only · 2714f01391c258a3 · report fixture: signature targets:ndarray/1/int, partial_targets:ndarray/2/int, noise_ratio:float/0/float · returned ndarray · level recorded 2026-09-24
get_semisup_labels src/datasets/imprecise_label.py ran no licence file found · pointer only · 3d2e20212ece0354 · report fixture: signature samples:ndarray/2/float, targets:ndarray/1/int, num_classes:int/0/int, num_labels:int/0/int, include_lb_to_ulb:bool/0/bool · returned tuple · level recorded 2026-09-24
param_groups_weight_decay in 18 papers src/nets/utils.py ran · our draft was wrong no licence file found · pointer only · 88f4962784e09b88 · report fixture: signature model:callable/0/?, weight_decay:float/0/float, no_weight_decay_list:tuple/1/str · returned list · level recorded, date not recorded
preact_resnet18 src/nets/preact_resnet.py ran · our draft was wrong no licence file found · pointer only · 4d728036343fc563 · report fixture: signature pretrained:bool/0/bool, pretrained_path:NoneType/0/? · returned PreActResNet · level recorded 2026-09-24
resize_pos_embed_vit in 7 papers src/nets/utils.py ran no licence file found · pointer only · 4c0668013863ad3f · report fixture: signature posemb:Tensor/3/float, posemb_new:Tensor/3/float, num_tokens:int/0/int, gs_new:tuple/1/int · returned Tensor · level recorded 2026-09-24
get_data in 223 papers src/datasets/base_data.py unverified no licence file found · pointer only · c7b0093e888cfc83 · report
get_img_transform src/datasets/base_datasets.py unverified no licence file found · pointer only · 1ff5d0514a4192c7 · report
inception_resnet_v2 src/nets/inception_resnet.py unverified no licence file found · pointer only · ef61eb580d048fbd · report
load_checkpoint in 277 papers src/nets/utils.py unverified no licence file found · pointer only · b158ea331635a6c9 · report
resnet18 in 432 papers src/nets/resnet.py unverified no licence file found · pointer only · eea49993a0e6e109 · report
resnet34 in 148 papers src/nets/resnet.py unverified no licence file found · pointer only · 58ef386297161b88 · report
resnet50 in 121 papers src/nets/resnet.py unverified no licence file found · pointer only · 511c83e45637d4f3 · report

Tasks

Weakly-supervised Learning

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