SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.13718 · 2023

A Unified Approach to Count-Based Weakly-Supervised Learning

arXiv · PDF · Open in the Atlas

Code that ran

15 of 19 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 13 failures of our instrument; 4 no recorded run), measured 2026-11-24; 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/2311.13718.json · badge: /api/ran/2311.13718.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
ucla-starai/countloss canonical (classifier label)
classifier basis: census
15 ran · 4 no recorded run
FunctionStatusWhere it lives
DKW_bound Ran
ran, violated the contract we drafted
ucla-starai/countloss/PU/estimator.py
pointer only (licence: NONE) · get_code("e4361b7969382ced")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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.

ResNet18_1_classes Ran
ran; our contract draft was wrong, not the code
ucla-starai/countloss/PU/models/ResNet1.py
pointer only (licence: NONE) · get_code("8300cfc19767c0d2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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_PNDataSplits Ran
ran; our contract draft was wrong, not the code
ucla-starai/countloss/PU/helper.py
pointer only (licence: NONE) · get_code("5bd3b170c7f6af0e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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_PUDataSplits Ran
ran; our contract draft was wrong, not the code
ucla-starai/countloss/PU/helper.py
pointer only (licence: NONE) · get_code("fb4f5de306a09bc1")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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.

log1mexp Ran
ran; our contract draft was wrong, not the code
ucla-starai/countloss/PU/count_loss_funcs/loss_func.py
pointer only (licence: NONE) · get_code("fa12928489b0b771")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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.

logsigmoid Ran
ran; our contract draft was wrong, not the code
ucla-starai/countloss/PU/model_helper.py
pointer only (licence: NONE) · get_code("2af39900e3e66247")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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.

p_loss_func Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ucla-starai/countloss/PU/count_loss_funcs/dp_loss_funcs.py
pointer only (licence: NONE) · get_code("11ef0b093d0a2f32")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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.

p_probs Ran
ran, honoured the contract we drafted
ucla-starai/countloss/PU/estimator.py
pointer only (licence: NONE) · get_code("36e4b190d1f22912")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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.

prob_x_equals_k_final Ran
ran; our contract draft was wrong, not the code
ucla-starai/countloss/PU/count_loss_funcs/loss_func.py
pointer only (licence: NONE) · get_code("0bbea9323276c2c9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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.

prob_x_equals_k_final_not_logspace Ran
ran; our contract draft was wrong, not the code
ucla-starai/countloss/LLP/utils/log_space_algo.py
pointer only (licence: NONE) · get_code("15e592da8db46172")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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.

ramp_loss Ran
ran; our contract draft was wrong, not the code
ucla-starai/countloss/PU/algorithm.py
pointer only (licence: NONE) · get_code("6be2aa1992b29077")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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.

ret_entire_tensor_k Ran
ran; our contract draft was wrong, not the code
ucla-starai/countloss/PU/count_loss_funcs/loss_func.py
pointer only (licence: NONE) · get_code("de3ba3f10963a128")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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.

sigmoid_loss Ran
ran; our contract draft was wrong, not the code
ucla-starai/countloss/PU/algorithm.py
pointer only (licence: NONE) · get_code("f79eaa8260cc169c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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.

train_penultimate Ran
ran; our contract draft was wrong, not the code
ucla-starai/countloss/PU/model_helper.py
pointer only (licence: NONE) · get_code("7fa6f48935ee1ab6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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.

u_probs Ran
ran; our contract draft was wrong, not the code
ucla-starai/countloss/PU/estimator.py
pointer only (licence: NONE) · get_code("6c57210f621bfbdb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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_dataset Not yet run
unverified (harvested, no recorded run)
ucla-starai/countloss/PU/helper.py
pointer only (licence: NONE) · get_code("da1592b4d04a4a80")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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.

initialize_bert_based_model Not yet run
unverified (harvested, no recorded run)
ucla-starai/countloss/PU/models/bert.py
pointer only (licence: NONE) · get_code("b24bb0be9085efab")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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.

u_loss_dist Not yet run
unverified (harvested, no recorded run)
ucla-starai/countloss/PU/count_loss_funcs/dp_loss_funcs.py
pointer only (licence: NONE) · get_code("a723532c66558c69")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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.

u_loss_func Not yet run
unverified (harvested, no recorded run)
ucla-starai/countloss/PU/count_loss_funcs/dp_loss_funcs.py
pointer only (licence: NONE) · get_code("fb6a073eaeb902c6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ucla-starai/countloss 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 19 samples lifted from this paper's linked repositories, 19 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 0 the same month, 0 later) and 13 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
DKW_bound 1 other paper
1 dated earlier
2207.13048 (2022-07)
Domain Adaptation under Open Set Label Shift
initialize_bert_based_model 1 other paper
1 dated earlier
2105.00303 (2021-05)
RATT: Leveraging Unlabeled Data to Guarantee Generalization
p_probs 1 other paper
1 dated earlier
2111.00980 (2021-11)
Mixture Proportion Estimation and PU Learning: A Modern Approach
ramp_loss 1 other paper
1 dated earlier
2111.00980 (2021-11)
Mixture Proportion Estimation and PU Learning: A Modern Approach
sigmoid_loss 1 other paper
1 dated earlier
2111.00980 (2021-11)
Mixture Proportion Estimation and PU Learning: A Modern Approach
u_probs 1 other paper
1 dated earlier
2111.00980 (2021-11)
Mixture Proportion Estimation and PU Learning: A Modern Approach

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-24.

Repositories linked to this paper

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

Abstract

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.

For agents

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

get_harvested_code_for_paper("2311.13718")
get_code_for_paper("2311.13718")
have("2311.13718")

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

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

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

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

Connect an agent — have() is free.