Papers › A Unified Approach to Count-Based Weakly-Supervised Learning

A Unified Approach to Count-Based Weakly-Supervised Learning

22 Nov 2023arXiv:2311.13718archive 2025-07-28

Vinay Shukla, Zhe Zeng, Kareem Ahmed, Guy Van Den Broeck

High-quality labels are often very scarce, whereas unlabeled data with inferred weak labels occurs more naturally. In many cases, these weak labels dictate the frequency of each respective class over a set of instances. In this paper, we develop a unified approach to learning from such weakly-labeled data, which we call count-based weakly-supervised learning. At the heart of our approach is the ability to compute the probability of exactly k out of n outputs being set to true. This computation is differentiable, exact, and efficient. Building upon the previous computation, we derive a count loss penalizing the model for deviations in its distribution from an arithmetic constraint defined over label counts. We evaluate our approach on three common weakly-supervised learning paradigms and observe that our proposed approach achieves state-of-the-art or highly competitive results across all three of the paradigms.

PaperPDFCodeCode 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="2311.13718")

Code

Syntology Ran 15 of 19 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · our draft was wrong; 11 ran with no contract checked.

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

ucla-starai/countloss officialmentioned in paperpytorch 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

19 samples harvested; 15 ran; 1 honoured the contract we drafted; 4 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 · honoured contract
3ran · our draft was wrong
11ran
4unverified

Licence: 19 of the 19 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 ucla-starai/countloss. “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.

DKW_bound ucla-starai/countloss/PU/estimator.py official repository ran no licence file found · pointer only · e4361b7969382ced · report
ResNet18_1_classes ucla-starai/countloss/PU/models/ResNet1.py official repository ran no licence file found · pointer only · 8300cfc19767c0d2 · report
get_PNDataSplits ucla-starai/countloss/PU/helper.py official repository ran no licence file found · pointer only · 5bd3b170c7f6af0e · report
get_PUDataSplits ucla-starai/countloss/PU/helper.py official repository ran no licence file found · pointer only · fb4f5de306a09bc1 · report
log1mexp ucla-starai/countloss/PU/count_loss_funcs/loss_func.py official repository ran fingerprinted no licence file found · pointer only · fa12928489b0b771 · report
logsigmoid ucla-starai/countloss/PU/model_helper.py official repository ran fingerprinted no licence file found · pointer only · 2af39900e3e66247 · report
p_loss_func ucla-starai/countloss/PU/count_loss_funcs/dp_loss_funcs.py official repository ran no licence file found · pointer only · 11ef0b093d0a2f32 · report
p_probs ucla-starai/countloss/PU/estimator.py official repository ran · honoured contract no licence file found · pointer only · 36e4b190d1f22912 · report
prob_x_equals_k_final ucla-starai/countloss/PU/count_loss_funcs/loss_func.py official repository ran no licence file found · pointer only · 0bbea9323276c2c9 · report
prob_x_equals_k_final_not_logspace ucla-starai/countloss/LLP/utils/log_space_algo.py official repository ran no licence file found · pointer only · 15e592da8db46172 · report
ramp_loss ucla-starai/countloss/PU/algorithm.py official repository ran · our draft was wrong no licence file found · pointer only · 6be2aa1992b29077 · report
ret_entire_tensor_k ucla-starai/countloss/PU/count_loss_funcs/loss_func.py official repository ran no licence file found · pointer only · de3ba3f10963a128 · report
sigmoid_loss ucla-starai/countloss/PU/algorithm.py official repository ran · our draft was wrong no licence file found · pointer only · f79eaa8260cc169c · report
train_penultimate ucla-starai/countloss/PU/model_helper.py official repository ran no licence file found · pointer only · 7fa6f48935ee1ab6 · report
u_probs ucla-starai/countloss/PU/estimator.py official repository ran · our draft was wrong no licence file found · pointer only · 6c57210f621bfbdb · report
get_dataset ucla-starai/countloss/PU/helper.py official repository unverified no licence file found · pointer only · da1592b4d04a4a80 · report
initialize_bert_based_model ucla-starai/countloss/PU/models/bert.py official repository unverified no licence file found · pointer only · b24bb0be9085efab · report
u_loss_dist ucla-starai/countloss/PU/count_loss_funcs/dp_loss_funcs.py official repository unverified no licence file found · pointer only · a723532c66558c69 · report
u_loss_func ucla-starai/countloss/PU/count_loss_funcs/dp_loss_funcs.py official repository unverified no licence file found · pointer only · fb6a073eaeb902c6 · report

Tasks

Weakly-supervised Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

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