SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.01922 · 2024

A General Framework for Learning from Weak Supervision

arXiv · PDF · Open in the Atlas

Code that ran

15 of 22 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 14 failures of our instrument; 7 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2402.01922.json · badge: /api/ran/2402.01922.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
hhhhhhao/general-framework-weak-supervision canonical (classifier label)
classifier basis: census
15 ran · 7 no recorded run
FunctionStatusWhere it lives
AutoContrast Ran
ran; our contract draft was wrong, not the code
hhhhhhao/general-framework-weak-supervision/src/datasets/rand_aug.py
pointer only (licence: NONE) · get_code("4a0ac9d611e018bc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Brightness Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hhhhhhao/general-framework-weak-supervision/src/datasets/rand_aug.py
pointer only (licence: NONE); the stored copy get_code serves, from zhengzhang37/lecodu, is pointer only (licence: NONE) · get_code("61ed09bbdb8adb72")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Color Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hhhhhhao/general-framework-weak-supervision/src/datasets/rand_aug.py
pointer only (licence: NONE); the stored copy get_code serves, from zhengzhang37/lecodu, is pointer only (licence: NONE) · get_code("5e4ee5c45933ae09")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

bag_collate_fn Ran
ran; our contract draft was wrong, not the code
hhhhhhao/general-framework-weak-supervision/src/datasets/base_datasets.py
pointer only (licence: NONE) · get_code("9cb870aea654a626")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv3x3 Ran
ran; our contract draft was wrong, not the code
hhhhhhao/general-framework-weak-supervision/src/nets/preact_resnet.py
pointer only (licence: NONE); the stored copy get_code serves, from amerch/CIFAR100-Training, is pointer only (licence: NONE) · get_code("583f9780bdd00a45")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_mask Ran
ran; our contract draft was wrong, not the code
hhhhhhao/general-framework-weak-supervision/src/core/nfa.py
pointer only (licence: NONE) · get_code("d4a2791e30483900")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_multi_ins_graph Ran
ran; our contract draft was wrong, not the code
hhhhhhao/general-framework-weak-supervision/src/core/nfa.py
pointer only (licence: NONE) · get_code("b1417ed32c2e4043")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

create_proportion_graph Ran
ran; our contract draft was wrong, not the code
hhhhhhao/general-framework-weak-supervision/src/core/nfa.py
pointer only (licence: NONE) · get_code("cde1fc2eb8cb26cd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_dataloader Ran
ran on a synthesized input
hhhhhhao/general-framework-weak-supervision/src/datasets/base_data.py
pointer only (licence: NONE) · get_code("c35ca4772f06187d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_partial_labels Ran
ran; our contract draft was wrong, not the code
hhhhhhao/general-framework-weak-supervision/src/datasets/imprecise_label.py
pointer only (licence: NONE) · get_code("326d3f64fe176c15")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_partial_noisy_labels Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hhhhhhao/general-framework-weak-supervision/src/datasets/imprecise_label.py
pointer only (licence: NONE) · get_code("2714f01391c258a3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_semisup_labels Ran
ran; our contract draft was wrong, not the code
hhhhhhao/general-framework-weak-supervision/src/datasets/imprecise_label.py
pointer only (licence: NONE) · get_code("3d2e20212ece0354")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

param_groups_weight_decay Ran
ran; our contract draft was wrong, not the code
hhhhhhao/general-framework-weak-supervision/src/nets/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from yewen1486/emtal, is pointer only (licence: NONE) · get_code("88f4962784e09b88")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

preact_resnet18 Ran
ran; our contract draft was wrong, not the code
hhhhhhao/general-framework-weak-supervision/src/nets/preact_resnet.py
pointer only (licence: NONE) · get_code("4d728036343fc563")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

resize_pos_embed_vit Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
hhhhhhao/general-framework-weak-supervision/src/nets/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from aah94/JEPAMatch, is pointer only (licence: NOASSERTION) · get_code("4c0668013863ad3f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_data Not yet run
unverified (harvested, no recorded run)
hhhhhhao/general-framework-weak-supervision/src/datasets/base_data.py
pointer only (licence: NONE) · get_code("c7b0093e888cfc83")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_img_transform Not yet run
unverified (harvested, no recorded run)
hhhhhhao/general-framework-weak-supervision/src/datasets/base_datasets.py
pointer only (licence: NONE) · get_code("1ff5d0514a4192c7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

inception_resnet_v2 Not yet run
unverified (harvested, no recorded run)
hhhhhhao/general-framework-weak-supervision/src/nets/inception_resnet.py
pointer only (licence: NONE) · get_code("ef61eb580d048fbd")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_checkpoint Not yet run
unverified (harvested, no recorded run)
hhhhhhao/general-framework-weak-supervision/src/nets/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from aah94/JEPAMatch, is pointer only (licence: NOASSERTION) · get_code("b158ea331635a6c9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

resnet18 Not yet run
unverified (harvested, no recorded run)
hhhhhhao/general-framework-weak-supervision/src/nets/resnet.py
pointer only (licence: NONE) · get_code("eea49993a0e6e109")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

resnet34 Not yet run
unverified (harvested, no recorded run)
hhhhhhao/general-framework-weak-supervision/src/nets/resnet.py
pointer only (licence: NONE) · get_code("58ef386297161b88")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

resnet50 Not yet run
unverified (harvested, no recorded run)
hhhhhhao/general-framework-weak-supervision/src/nets/resnet.py
pointer only (licence: NONE) · get_code("511c83e45637d4f3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, hhhhhhao/general-framework-weak-supervision when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 22 samples lifted from this paper's linked repositories, 22 carry a function identity and 0 do not. Of the 22 distinct functions with an identity, 7 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 1 the same month, 7 later) and 15 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
conv3x3 686 other papers
553 dated earlier, 8 the same month, 108 later, 17 same year, order not determinable · 31 only as an assembly brick
1406.2661 (2014-06)
Generative Adversarial Networks
1409.0575 (2014-09)
ImageNet Large Scale Visual Recognition Challenge
1412.6572 (2014-12)
Explaining and Harnessing Adversarial Examples
and 683 more not named here
param_groups_weight_decay 15 other papers
8 dated earlier, 7 later
2210.08823 (2022-10)
Scaling & Shifting Your Features: A New Baseline for Efficient Model Tuning
2304.14065 (2023-04)
Lightweight, Pre-trained Transformers for Remote Sensing Timeseries
2305.13002 (2023-05)
Rethinking Semi-supervised Learning with Language Models
and 12 more not named here
AutoContrast 14 other papers
9 dated earlier, 2 later, 3 same year, order not determinable · 4 only as an assembly brick
1904.12848 (2019-04)
Unsupervised Data Augmentation for Consistency Training
1905.00397 (2019-05)
Fast AutoAugment
1909.13719 (2019-09)
RandAugment: Practical automated data augmentation with a reduced search space
and 11 more not named here
Brightness 7 other papers
2 dated earlier, 2 later, 3 same year, order not determinable
136970483 (2022 (year only))
S 2 -VER: Semi-Supervised Visual Emotion Recognition
2312.04604 (2023-12)
NeurIPS 2023 Workshop on Adaptive Experimental Design and Active Learning in the Real World Transferable Candidate Proposal with Bounded Uncertainty
aaai_28150 (2024 (year only))
DiDA: Disambiguated Domain Alignment for Cross-Domain Retrieval with Partial Labels
and 4 more not named here
Color 7 other papers
2 dated earlier, 2 later, 3 same year, order not determinable
136970483 (2022 (year only))
S 2 -VER: Semi-Supervised Visual Emotion Recognition
2312.04604 (2023-12)
NeurIPS 2023 Workshop on Adaptive Experimental Design and Active Learning in the Real World Transferable Candidate Proposal with Bounded Uncertainty
aaai_28150 (2024 (year only))
DiDA: Disambiguated Domain Alignment for Cross-Domain Retrieval with Partial Labels
and 4 more not named here
resize_pos_embed_vit 6 other papers
3 dated earlier, 3 later
2305.13002 (2023-05)
Rethinking Semi-supervised Learning with Language Models
2306.04621 (2023-06)
Flexible Distribution Alignment: Towards Long-tailed Semi-supervised Learning with Proper Calibration
2310.18910 (2023-10)
InstanT: Semi-supervised Learning with Instance-dependent Thresholds
and 3 more not named here
load_checkpoint 5 other papers
3 dated earlier, 2 later
2305.13002 (2023-05)
Rethinking Semi-supervised Learning with Language Models
2306.04621 (2023-06)
Flexible Distribution Alignment: Towards Long-tailed Semi-supervised Learning with Proper Calibration
2310.18910 (2023-10)
InstanT: Semi-supervised Learning with Instance-dependent Thresholds
and 2 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2402.01922")
get_code_for_paper("2402.01922")
have("2402.01922")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2402.01922.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2402.01922.svg)](https://syntology.ai/paper/2402.01922)

Connect an agent — have() is free.