SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.11911 · 2023

LNL+K: Enhancing Learning with Noisy Labels Through Noise Source Knowledge Integration

arXiv · PDF · Open in the Atlas

Code that ran

8 of 12 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 7 have no contract verdict; 1 failure of our instrument; 4 no recorded run), measured 2026-11-23; 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/2306.11911.json · badge: /api/ran/2306.11911.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
sunnysiqi/lnl_k canonical (classifier label)
classifier basis: census
8 ran · 4 no recorded run
FunctionStatusWhere it lives
cutmix Ran
ran on a synthesized input
sunnysiqi/lnl_k/cell_data/simple_multi_main.py
code served (permissive licence) · get_code("c5d6f49696141e17")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct arguments for cutmix function
# cutmix(input, alpha) takes:
# - input: a tensor with shape (batch, channels, height, width) based on usage
# - alpha: a float parameter for Beta distribution

# Create a small input tensor: batch=2, channels=3, height=4, width=5
input_tensor = torch.randn(2, 3, 4, 5)

# Create alpha parameter for Beta distribution
alpha = 1.0

ARGS = {
    "input": input_tensor,
    "alpha": alpha,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sklearn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
default_image_loader Ran
ran on a synthesized input
sunnysiqi/lnl_k/cell_data/simple_multi_dataloader.py
code served (permissive licence) · get_code("9687c57a7ad946fc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family float, shape (4, 8, 8) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import matplotlib.pyplot as plt
import tempfile
import os

# Create a temporary image file for testing
temp_dir = tempfile.mkdtemp()
temp_image_path = os.path.join(temp_dir, "test_image.png")

# Create a simple test image and save it
test_image = np.random.rand(8, 8, 3)
plt.imsave(temp_image_path, test_image)

ARGS = {
    "fn": temp_image_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family float, shape (4, 8, 8) — shape (4, 8, 8) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_score Ran
ran on a synthesized input
sunnysiqi/lnl_k/adaptation_methods/fine_k.py
code served (permissive licence) · get_code("56ccb4fcec6f5a98")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create singular_vector_dict with class labels as keys and singular vectors as values
# Features will be 4-dimensional, so singular vectors should match that dimensionality
singular_vector_dict = {
    0: np.array([1.0, 0.5, 0.2, 0.1]),
    1: np.array([0.2, 0.8, 0.3, 0.4]),
    2: np.array([0.5, 0.1, 0.9, 0.2])
}

# Create features: 2 samples, each with 4 dimensions
features = np.array([
    [0.9, 0.3, 0.1, 0.5],
    [0.2, 0.7, 0.4, 0.1]
])

# Create labels: 2 labels corresponding to the 2 features
labels = np.array([0, 1])

ARGS = {
    "singular_vector_dict": singular_vector_dict,
    "features": features,
    "labels": labels
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_score_w_noise_source Ran
ran on a synthesized input
sunnysiqi/lnl_k/adaptation_methods/fine_k.py
code served (permissive licence) · get_code("d18781f02b2bd274")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Define parameters for get_score_w_noise_source
ctl_classid = 0

# Create singular_vector_dict with vectors for multiple classes
# Each class has a singular vector of dimension 4
singular_vector_dict = {
    0: np.random.randn(4),  # noise source class
    1: np.random.randn(4),  # label class 1
    2: np.random.randn(4),  # label class 2
}

# Normalize the singular vectors
for key in singular_vector_dict:
    singular_vector_dict[key] = singular_vector_dict[key] / np.linalg.norm(singular_vector_dict[key])

# Create features: batch of 2 samples, each with dimension 4
features = [
    np.random.randn(4),
    np.random.randn(4),
]

# Create labels: class indices for each feature
labels = np.array([1, 2])

ARGS = {
    "ctl_classid": ctl_classid,
    "singular_vector_dict": singular_vector_dict,
    "features": features,
    "labels": labels,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_singular_vector Ran
ran on a synthesized input
sunnysiqi/lnl_k/adaptation_methods/fine_k.py
code served (permissive licence) · get_code("43d4c4f264dccb7e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create small feature vectors (batch_size=6, feature_dim=4)
# We'll have 6 samples with 4-dimensional features
features = np.random.randn(6, 4).astype(np.float32)

# Create labels for 3 classes (0, 1, 2)
# Labels should match the number of samples
labels = np.array([0, 0, 1, 1, 2, 2])

# Initialize an empty dictionary to store singular vectors
singular_vector_dict = {}

ARGS = {
    "singular_vector_dict": singular_vector_dict,
    "features": features,
    "labels": labels,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
lazy_greedy_heap Ran
ran on a synthesized input
sunnysiqi/lnl_k/adaptation_methods/lazyGreedy.py
code served (permissive licence) · get_code("23d880ed996f2ead")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import heapq

class MockF:
    """Mock facility location function object with required methods and attributes."""
    def __init__(self):
        self.D = [0, 1, 2, 3, 4]  # Mock dataset
        self.curVal = 0
    
    def inc(self, sset, index):
        """Return the marginal gain of adding index to sset."""
        # Simple mock: gain decreases as set grows
        return max(0, 5 - len(sset) - index * 0.5)
    
    def add(self, sset, index, improv):
        """Add index to sset and return new total value."""
        self.curVal += improv
        return self.curVal


def test_heappush_max():
    """Verify the custom heap functions work."""
    heap = []
    def _heappush_max(heap, item):
        heap.append(item)
        heapq._siftdown_max(heap, 0, len(heap) - 1)
    
    def _heappop_max(heap):
        lastelt = heap.pop()
        if heap:
            returnitem = heap[0]
            heap[0] = lastelt
            heapq._siftup_max(heap, 0)
            return returnitem
        return lastelt
    
    _heappush_max(heap, (5, 'a'))
    _heappush_max(heap, (3, 'b'))
    _heappush_max(heap, (7, 'c'))
    assert _heappop_max(heap) == (7, 'c')


# Create mock function object
F = MockF()

# V: list of indices to consider
V = [0, 1, 2, 3, 4]

# B: budget (maximum size of selected set)
B = 3

ARGS = {
    'F': F,
    'V': V,
    'B': B
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mixup Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
sunnysiqi/lnl_k/cell_data/simple_multi_main.py
code served (permissive licence) · get_code("d442db44b321d2b1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

torch.manual_seed(0)

# Construct input tensor: batch_size=2, with some spatial/feature dimensions
input = torch.randn(2, 4, 3)

# Construct alpha parameter for Beta distribution
alpha = 0.2

# Create ARGS dictionary with all function parameters
ARGS = {
    "input": input,
    "alpha": alpha,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
rand_bbox Ran
ran on a synthesized input
sunnysiqi/lnl_k/cell_data/simple_multi_main.py
code served (permissive licence) · get_code("c63a96489175258f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Analyze the function signature and body:
# - size: tuple of (W, H) - used in arithmetic operations
# - lam: tensor - used in sqrt(), to(torch.long), to(lam.dtype), division
# The function performs cutout-style bounding box generation

# Create size as a tuple of tensor dimensions
W = torch.tensor(32, dtype=torch.long)
H = torch.tensor(24, dtype=torch.long)
size = (W, H)

# Create lam as a tensor with values between 0 and 1
# (since it's used with sqrt() and subtracted from 1.0)
lam = torch.tensor(0.5, dtype=torch.float32)

ARGS = {
    "size": size,
    "lam": lam,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
sklearn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
accuracy Not yet run
unverified (harvested, no recorded run)
sunnysiqi/lnl_k/adaptation_methods/LitCNN.py
code served (permissive licence) · get_code("7071708fb95b44fd")
How it ran

no invocation recorded.

avg_accuracy Not yet run
unverified (harvested, no recorded run)
sunnysiqi/lnl_k/adaptation_methods/LitCNN.py
code served (permissive licence) · get_code("df1758ae72520bd2")
How it ran

no invocation recorded.

avg_accuracy_with_idx Not yet run
unverified (harvested, no recorded run)
sunnysiqi/lnl_k/adaptation_methods/LitCNN.py
code served (permissive licence) · get_code("b2a9a0459f977562")
How it ran

no invocation recorded.

gaussian_noise_image_loader Not yet run
unverified (harvested, no recorded run)
sunnysiqi/lnl_k/cell_data/simple_multi_dataloader.py
code served (permissive licence) · get_code("2c21188e2c53948c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 10 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
lazy_greedy_heap 1 other paper
1 dated earlier
2210.06704 (2022-10)
COLLIDER: A Robust Training Framework for Backdoor Data
mixup 1 other paper
1 later
2402.08777 (2024-02)
DNABERT-S: Pioneering Species Differentiation with Species-Aware DNA Embeddings

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

Repositories linked to this paper

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

Abstract

Learning with noisy labels (LNL) aims to train a high-performing model using a noisy dataset. We observe that noise for a given class often comes from a limited set of categories, yet many LNL methods overlook this. For example, an image mislabeled as a cheetah is more likely a leopard than a hippopotamus due to its visual similarity. Thus, we explore Learning with Noisy Labels with noise source Knowledge integration (LNL+K), which leverages knowledge about likely source(s) of label noise that is often provided in a dataset's meta-data. Integrating noise source knowledge boosts performance even in settings where LNL methods typically fail. For example, LNL+K methods are effective on datasets where noise represents the majority of samples, which breaks a critical premise of most methods developed for LNL. Our LNL+K methods can boost performance even when noise sources are estimated rather than extracted from meta-data. We provide several baseline LNL+K methods that integrate noise source knowledge into state-of-the-art LNL models that are evaluated across six diverse datasets and two types of noise, where we report gains of up to 23% compared to the unadapted methods. Critically, we show that LNL methods fail to generalize on some real-world datasets, even when adapted to integrate noise source knowledge, highlighting the importance of directly exploring LNL+K.

For agents

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

get_harvested_code_for_paper("2306.11911")
get_code_for_paper("2306.11911")
have("2306.11911")

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

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

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

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

Connect an agent — have() is free.