SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.17771 · NeurIPS · 2024

Sample Selection via Contrastive Fragmentation for Noisy Label Regression

Gunhee Kim, Dongyeon Woo, Chris Kim, Sangwoo Moon, Jihwan Moon

arXiv · PDF · Open in the Atlas

Code that ran

7 of 8 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 5 have no contract verdict; 2 failures of our instrument; 1 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/2502.17771.json · badge: /api/ran/2502.17771.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
cdjkim/ConFrag canonical (classifier label)
classifier basis not recorded on the link
7 ran · 1 no recorded run
FunctionStatusWhere it lives
MCD_single Ran
ran on a synthesized input
cdjkim/ConFrag/utils/mcd.py
code served (permissive licence) · get_code("7c5b067e1965d9df")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import scipy.linalg

torch.manual_seed(0)

# Create small tensors for testing
# feature: shape (batch_size, feature_dim) - used with .size(0), indexing, cuda(), view()
feature = torch.randn(2, 4)

# mean: shape (feature_dim,) - used in subtraction with batch_feature
mean = torch.randn(4)

# inverse_covariance: shape (feature_dim, feature_dim) - used in torch.mm operations
inverse_covariance = torch.randn(4, 4)

ARGS = {
    "feature": feature,
    "mean": mean,
    "inverse_covariance": inverse_covariance,
    "frac": 0.5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, 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
mixup Ran
ran on a synthesized input
cdjkim/ConFrag/utils/utils.py
code served (permissive licence) · get_code("e30ed44681bb9d73")
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)

# Create sample data
# x: feature tensor of shape (batch_size, feature_dim)
# y: class labels tensor of shape (batch_size,)

batch_size = 6
feature_dim = 4

x = torch.randn(batch_size, feature_dim)
y = torch.tensor([0, 0, 1, 1, 2, 2], dtype=torch.int64)

ARGS = {
    "x": x,
    "y": y,
    "alpha": 1.0,
    "use_cuda": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
override_config Ran
ran on a synthesized input
cdjkim/ConFrag/utils/utils.py
code served (permissive licence) · get_code("405f7224f9a583dd")
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 yaml

# Create a valid config dictionary with nested structure
config = {
    'model': {
        'hidden_size': 128,
        'num_layers': 2,
        'dropout': 0.1
    },
    'training': {
        'learning_rate': 0.001,
        'batch_size': 32,
        'epochs': 10
    },
    'data': {
        'path': '/data/dataset',
        'split': 0.8
    }
}

# Create an override string that will modify nested config values
override = "model.hidden_size=256|training.learning_rate=0.0001|data.split=0.9"

ARGS = {
    'config': config,
    'override': override
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
yaml — 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
random_sample_mean Ran
ran on a synthesized input
cdjkim/ConFrag/utils/mcd.py
code served (permissive licence) · get_code("de99e40dac763851")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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)

# Create small test tensors
# feature: shape (num_samples, feature_dim)
# label: shape (num_samples,) with class indices

num_classes = 3
num_samples = 12
feature_dim = 4

feature = torch.randn(num_samples, feature_dim)
label = torch.tensor([0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2], dtype=torch.long)

ARGS = {
    "feature": feature,
    "label": label,
    "num_classes": num_classes,
    "frac": 0.5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, 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
rank Ran
ran; our contract draft was wrong, not the code
cdjkim/ConFrag/utils/regularizer_util.py
pointer only (licence: MIT); the stored copy get_code serves, from BorealisAI/ranksim-imbalanced-regression, is pointer only (licence: NOASSERTION) · get_code("2e1e2e8c543195f7")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from BorealisAI/ranksim-imbalanced-regression, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

rank_normalised Ran
ran; our contract draft was wrong, not the code
cdjkim/ConFrag/utils/regularizer_util.py
pointer only (licence: MIT); the stored copy get_code serves, from BorealisAI/ranksim-imbalanced-regression, is pointer only (licence: NOASSERTION) · get_code("ed49cae4f66fd45c")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from BorealisAI/ranksim-imbalanced-regression, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

test_mcd_single Ran
ran on a synthesized input
cdjkim/ConFrag/utils/mcd.py
code served (permissive licence) · get_code("4833654d12134c15")
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 1, dtype family float; no output shape is stated. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 torch
import numpy as np

torch.manual_seed(0)

# Create small tensors
batch_size = 2
feature_dim = 4

# data: tensor of shape (num_samples, feature_dim)
data = torch.randn(10, feature_dim)

# dist_mean: mean vector of shape (feature_dim,)
dist_mean = torch.randn(feature_dim)

# dist_precision: precision matrix of shape (feature_dim, feature_dim)
dist_precision = torch.eye(feature_dim)

# label_mask: boolean mask indicating labeled samples
label_mask = np.array([True, False, True, True, False, True, False, True, True, False])

# gt_label_mask: ground truth label mask
gt_label_mask = np.array([True, True, True, False, False, True, True, False, True, True])

# selection_perc: percentage of samples to select (between 0 and 1)
selection_perc = 0.5

ARGS = {
    "dist_mean": dist_mean,
    "dist_precision": dist_precision,
    "data": data,
    "label_mask": label_mask,
    "gt_label_mask": gt_label_mask,
    "selection_perc": selection_perc,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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
batchwise_ranking_regularizer Not yet run
unverified (harvested, no recorded run)
cdjkim/ConFrag/utils/regularizer_util.py
code served (permissive licence) · get_code("efbb8bcecab17c1f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 6 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
rank 4 other papers
4 dated earlier
2003.11657 (2020-03)
Deep Graph Matching via Blackbox Differentiation of Combinatorial Solvers
2110.01445 (2021-10)
Robust and Decomposable Average Precision for Image Retrieval
2205.15236 (2022-05)
RankSim: Ranking Similarity Regularization for Deep Imbalanced Regression
and 1 more not named here
rank_normalised 4 other papers
4 dated earlier
2003.11657 (2020-03)
Deep Graph Matching via Blackbox Differentiation of Combinatorial Solvers
2110.01445 (2021-10)
Robust and Decomposable Average Precision for Image Retrieval
2205.15236 (2022-05)
RankSim: Ranking Similarity Regularization for Deep Imbalanced Regression
and 1 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-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

As with many other problems, real-world regression is plagued by the presence of noisy labels, an inevitable issue that demands our attention. Fortunately, much real-world data often exhibits an intrinsic property of continuously ordered correlations between labels and features, where data points with similar labels are also represented with closely related features. In response, we propose a novel approach named ConFrag, where we collectively model the regression data by transforming them into disjoint yet contrasting fragmentation pairs. This enables the training of more distinctive representations, enhancing the ability to select clean samples. Our ConFrag framework leverages a mixture of neighboring fragments to discern noisy labels through neighborhood agreement among expert feature extractors. We extensively perform experiments on six newly curated benchmark datasets of diverse domains, including age prediction, price prediction, and music production year estimation. We also introduce a metric called Error Residual Ratio (ERR) to better account for varying degrees of label noise. Our approach consistently outperforms fourteen state-of-the-art baselines, being robust against symmetric and random Gaussian label noise. 2 .

For agents

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

get_harvested_code_for_paper("2502.17771")
get_code_for_paper("2502.17771")
have("2502.17771")

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

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

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

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

Connect an agent — have() is free.