SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2307.05898 · 2023

Rectifying Noisy Labels with Sequential Prior: Multi-Scale Temporal Feature Affinity Learning for Robust Video Segmentation

arXiv · PDF · Open in the Atlas

Code that ran

6 of 11 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 5 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/2307.05898.json · badge: /api/ran/2307.05898.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
beileicui/ms-tfal canonical (classifier label)
classifier basis: census
6 ran · 5 no recorded run
FunctionStatusWhere it lives
DiceLoss Ran
ran; our contract draft was wrong, not the code
beileicui/ms-tfal/utils/losses.py
code served (permissive licence) · get_code("e49bfe9bef31f518")
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 Tensor, ndim 0, dtype family float, shape () 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 torch
import torch.nn.functional as F

torch.manual_seed(0)

# DiceLoss expects:
# - predict: tensor with shape (batch, channels, ...)
# - target: tensor with same shape as predict
# The function uses softmax on dim=1, so we need at least 2 dimensions
# Batch size 2, 4 channels, 3 spatial dimensions to make it distinct

batch_size = 2
num_classes = 4
spatial_dim = 3

# Create predict tensor (logits before softmax)
predict = torch.randn(batch_size, num_classes, spatial_dim)

# Create target tensor (same shape, typically one-hot encoded probabilities)
target = torch.rand(batch_size, num_classes, spatial_dim)

ARGS = {
    'predict': predict,
    'target': target
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () 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
TFAL_get_affinity Ran
ran; our contract draft was wrong, not the code
beileicui/ms-tfal/net/Ours/TFAL_Module.py
code served (permissive licence) · get_code("b3e50f96b75959a3")
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. 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 with distinct dimensions
batch_size = 2
feature_dim = 4
height = 8
width = 10
class_num = 3

# feature_1: (batch_size, feature_dim, height, width)
feature_1 = torch.randn(batch_size, feature_dim, height, width)

# feature_2: (batch_size, feature_dim, height, width)
feature_2 = torch.randn(batch_size, feature_dim, height, width)

# label_1: (batch_size, height, width) with class indices
label_1 = torch.randint(0, class_num, (batch_size, height, width))

# label_2: (batch_size, height, width) with class indices
label_2 = torch.randint(0, class_num, (batch_size, height, width))

ARGS = {
    'feature_1': feature_1,
    'feature_2': feature_2,
    'label_1': label_1,
    'label_2': label_2,
    'class_num': class_num,
    'H': 256,
    'W': 320,
}
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 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
label2rgb Ran
ran; our contract draft was wrong, not the code
beileicui/ms-tfal/TFAL_visualization.py
code served (permissive licence) · get_code("817a9b024951012f")
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, 3, 3) 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

# Create a small test index image with shape (4, 3)
# Values should be in range [0, 11] to match the color_map keys
ind_im = np.array([
    [0, 1, 2],
    [3, 4, 5],
    [6, 7, 8],
    [9, 10, 11]
], dtype=np.int32)

color_map = {
    0: [0, 0, 0], 
    1: [0, 255, 0], 
    2: [0, 255, 255], 
    3: [125, 255, 12], 
    4: [255, 55, 0], 
    5: [24, 55, 125], 
    6: [187, 155, 25], 
    7: [0, 255, 125], 
    8: [255, 255, 125], 
    9: [123, 15, 175], 
    10: [124, 155, 5], 
    11: [12, 255, 141]
}

ARGS = {
    'ind_im': ind_im,
    'color_map': color_map
}
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 3, dtype family float, shape (4, 3, 3) — shape (4, 3, 3) 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
load_image Ran
ran, honoured the contract we drafted
beileicui/ms-tfal/generate_noise/multi_class_mask_to_multiple_one_class_mask.py
code served (permissive licence) · get_code("438a3262d13c4288")
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 int, shape (4, 3, 3) 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 cv2
import numpy as np
import tempfile
import os

# Create a temporary directory and a small test image
temp_dir = tempfile.mkdtemp()
test_image_path = os.path.join(temp_dir, "test_image.png")

# Create a simple BGR image (OpenCV uses BGR format by default)
# Make a small 4x3 image with 3 channels (BGR)
image_array = np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8)
cv2.imwrite(test_image_path, image_array)

ARGS = {
    "path": test_image_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, 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 int, shape (4, 3, 3) — shape (4, 3, 3) 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
load_mask Ran
ran, honoured the contract we drafted
beileicui/ms-tfal/generate_noise/count_noisy_ratio.py
code served (permissive licence) · get_code("c54a18449d6b5220")
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 2, dtype family int, shape (3, 4) 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 cv2
import tempfile
import os

# Create a temporary mask image file
temp_dir = tempfile.mkdtemp()
temp_path = os.path.join(temp_dir, "test_mask.png")

# Create a small grayscale image (uint8) and save it
mask_data = np.array([
    [0, 50, 100, 150],
    [200, 255, 128, 64],
    [32, 16, 8, 4]
], dtype=np.uint8)

cv2.imwrite(temp_path, mask_data)

ARGS = {
    "path": temp_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family int, shape (3, 4) — shape (3, 4) 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
make_one_hot Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
beileicui/ms-tfal/utils/losses.py
code served (permissive licence) · get_code("a65ee7a1b88921d5")
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 Tensor, ndim 4, dtype family float, shape (2, 5, 3, 4) 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 torch
import numpy as np

torch.manual_seed(0)

# The function expects:
# - input: A tensor of shape [N, 1, *] where N is batch size
# - num_classes: An int specifying number of classes

# Create a small input tensor with shape [N, 1, *]
# Using batch_size=2, 1 channel, and spatial dimensions 3x4
input_tensor = torch.randint(0, 5, (2, 1, 3, 4))

# Number of classes
num_classes = 5

ARGS = {
    "input": input_tensor,
    "num_classes": num_classes
}
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 Tensor, ndim 4, dtype family float, shape (2, 5, 3, 4) — shape (2, 5, 3, 4) 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
TFAL_select_Mask Not yet run
unverified (harvested, no recorded run)
beileicui/ms-tfal/net/Ours/TFAL_Module.py
code served (permissive licence) · get_code("e85cf9fb23d08e9a")
How it ran

no invocation recorded.

TFAL_select_Mask_test Not yet run
unverified (harvested, no recorded run)
beileicui/ms-tfal/net/Ours/TFAL_Module.py
code served (permissive licence) · get_code("72baa3e865c3528f")
How it ran

no invocation recorded.

load_model Not yet run
unverified (harvested, no recorded run)
beileicui/ms-tfal/utils/LoadModel.py
code served (permissive licence) · get_code("3033b04079cdd932")
How it ran

no invocation recorded.

load_model_full Not yet run
unverified (harvested, no recorded run)
beileicui/ms-tfal/utils/LoadModel.py
code served (permissive licence) · get_code("ed271baa7e357d90")
How it ran

no invocation recorded.

load_model_mswin_CL Not yet run
unverified (harvested, no recorded run)
beileicui/ms-tfal/utils/LoadModel.py
code served (permissive licence) · get_code("bf9d9dbc30e333f8")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 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 9 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
make_one_hot 2 other papers
2 later
2309.05573 (2023-09)
UniSeg: A Unified Multi-Modal LiDAR Segmentation Network and the OpenPCSeg Codebase
2407.09751 (2024-07)
TASeg: Temporal Aggregation Network for LiDAR Semantic Segmentation
load_image 1 other paper
1 dated earlier
1902.06426 (2019-02)
2017 Robotic Instrument Segmentation Challenge

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

Noisy label problems are inevitably in existence within medical image segmentation causing severe performance degradation. Previous segmentation methods for noisy label problems only utilize a single image while the potential of leveraging the correlation between images has been overlooked. Especially for video segmentation, adjacent frames contain rich contextual information beneficial in cognizing noisy labels. Based on two insights, we propose a Multi-Scale Temporal Feature Affinity Learning (MS-TFAL) framework to resolve noisy-labeled medical video segmentation issues. First, we argue the sequential prior of videos is an effective reference, i.e., pixel-level features from adjacent frames are close in distance for the same class and far in distance otherwise. Therefore, Temporal Feature Affinity Learning (TFAL) is devised to indicate possible noisy labels by evaluating the affinity between pixels in two adjacent frames. We also notice that the noise distribution exhibits considerable variations across video, image, and pixel levels. In this way, we introduce Multi-Scale Supervision (MSS) to supervise the network from three different perspectives by re-weighting and refining the samples. This design enables the network to concentrate on clean samples in a coarse-to-fine manner. Experiments with both synthetic and real-world label noise demonstrate that our method outperforms recent state-of-the-art robust segmentation approaches. Code is available at https://github.com/BeileiCui/MS-TFAL.

For agents

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

get_harvested_code_for_paper("2307.05898")
get_code_for_paper("2307.05898")
have("2307.05898")

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

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

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

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

Connect an agent — have() is free.