SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2608.11285 · 2026

SegPAR: Class-Centric Decision-Based Sparse Attack for Semantic Segmentation

Dongsu Song, Jay Hoon, Daeyun Go, Boseung Seo

arXiv · PDF · Open in the Atlas

Code that ran

14 of 17 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 0 have no contract verdict; 14 failures of our instrument; 3 no recorded run), measured 2026-11-23; 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/2608.11285.json · badge: /api/ran/2608.11285.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
KAU-QuantumAILab/SegPAR canonical (classifier label)
classifier basis: census
14 ran · 3 no recorded run
FunctionStatusWhere it lives
apply_batch_binary_attacks Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
KAU-QuantumAILab/SegPAR/function.py
code served (permissive licence) · get_code("0b8ec7fc323c99a1")
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 list. 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 small test images (batch size 2)
image_list = [
    np.random.randint(0, 256, (64, 80, 3), dtype=np.uint8),
    np.random.randint(0, 256, (72, 96, 3), dtype=np.uint8)
]

# Create action coordinates batch (2 entries, each with 3 coordinate pairs)
action_coords_batch = [
    torch.tensor([[10.0, 15.0], [20.0, 25.0], [30.0, 35.0]], dtype=torch.float32),
    torch.tensor([[5.0, 8.0], [12.0, 18.0], [25.0, 30.0]], dtype=torch.float32)
]

# Create action values batch (2 entries, each with 3 RGB values)
action_values_batch = [
    torch.tensor([[255, 0, 0], [0, 255, 0], [0, 0, 255]], dtype=torch.uint8),
    torch.tensor([[128, 128, 128], [64, 64, 64], [192, 192, 192]], dtype=torch.uint8)
]

# Create metadata batch
metadata_batch = [
    [
        {'bbox': (10, 20, 50, 70), 'attack_pixels': 3},
        {'bbox': (30, 40, 60, 80), 'attack_pixels': 0},
    ],
    [
        {'bbox': (5, 15, 45, 65), 'attack_pixels': 3},
    ]
]

# Create masks batch (binary masks for distance transform)
masks = [
    torch.tensor([[[1, 1, 0, 0], [1, 0, 0, 1], [0, 0, 1, 1], [1, 1, 1, 0]]], dtype=torch.float32),
    torch.tensor([[[1, 0, 1, 0], [0, 1, 0, 1], [1, 0, 1, 0], [0, 1, 0, 1]]], dtype=torch.float32)
]

# Create config dict
config = {
    'attack_type': 'standard',
    'dataset': 'ImageNet'
}

ARGS = {
    'image_list': image_list,
    'action_coords_batch': action_coords_batch,
    'action_values_batch': action_values_batch,
    'metadata_batch': metadata_batch,
    'masks': masks,
    'config': config,
    'target_size': (256, 256)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list 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
calculate_l0_norm Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
KAU-QuantumAILab/SegPAR/evaluation.py
code served (permissive licence) · get_code("e8fb3e39ceea5746")
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 int, ndim 0, dtype family int, 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 numpy as np

# Create small test images
# Original image: 4x3 pixels with 3 channels (RGB), uint8
original_img = np.random.randint(0, 256, size=(4, 3, 3), dtype=np.uint8)

# Adversarial image: same shape but with some pixels modified
adversarial_img = original_img.copy()
# Modify a few pixels to create differences
adversarial_img[0, 0] = np.array([100, 100, 100], dtype=np.uint8)
adversarial_img[2, 1] = np.array([50, 50, 50], dtype=np.uint8)

ARGS = {
    'original_img': original_img,
    'adversarial_img': adversarial_img,
}
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 int, ndim 0, dtype family int, 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
conv3x3 Ran
ran; our contract draft was wrong, not the code
KAU-QuantumAILab/SegPAR/adv_models/resnet.py
pointer only (licence: MIT); the stored copy get_code serves, from lixiaotong97/DSU, is pointer only (licence: NONE) · get_code("fac5364e2f53c6db")
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 lixiaotong97/DSU, and GitHub detected no licence in that repository 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.

data_preprocessing Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
KAU-QuantumAILab/SegPAR/function.py
code served (permissive licence) · get_code("0c145c9918da38ed")
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, 3, 4, 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 torch
import numpy as np
from torchvision import transforms

torch.manual_seed(0)

# Create a list of small numpy arrays in RGB format (H, W, 3) with dtype=np.uint8
np_image_list = [
    np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8),  # 4x3 RGB image
    np.random.randint(0, 256, (4, 3, 3), dtype=np.uint8),  # 4x3 RGB image
]

# Create a simple transforms.Compose object
transform = transforms.Compose([
    transforms.ToTensor(),
    transforms.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])
])

ARGS = {
    'np_image_list': np_image_list,
    'transform': transform,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, torch, torchvision — 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, 3, 4, 3) — shape (2, 3, 4, 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
fast_net_process Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
KAU-QuantumAILab/SegPAR/adv_setting.py
code served (permissive licence) · get_code("d9caf535526d1360")
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, 4, 3, 2) as a later run recorded it. 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, 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 as nn
import torch.nn.functional as F
import numpy as np

torch.manual_seed(0)

# Create a minimal model that takes input and returns output
class MinimalSegmentationModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.conv = nn.Conv2d(3, 2, kernel_size=1)
    
    def forward(self, x):
        # x shape: (B, 3, H, W)
        # output shape: (B, 2, H, W) - 2 classes for softmax
        return self.conv(x)

# Create model
model = MinimalSegmentationModel()
model.eval()

# Create batch of images as numpy arrays (B, H, W, C)
# Using distinct sizes: batch=2, height=4, width=3, channels=3
batch_imgs_np = [
    np.random.rand(4, 3, 3).astype(np.float32),
    np.random.rand(4, 3, 3).astype(np.float32)
]

# Mean and std for normalization
mean = [0.485, 0.456, 0.406]
std = [0.229, 0.224, 0.225]

# Config dictionary
config = {
    'device': 'cpu',
    '_norm_cache': None
}

ARGS = {
    'model': model,
    'batch_imgs_np': batch_imgs_np,
    'mean': mean,
    'std': std,
    'do_flip': True,
    'amp': False,
    'config': config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, 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, 4, 3, 2) — shape (2, 4, 3, 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
fast_scale_process Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
KAU-QuantumAILab/SegPAR/adv_setting.py
code served (permissive licence) · get_code("fd62723e96d0d73b")
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 3, dtype family float, shape (48, 64, 5) as a later run recorded it. 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, 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 as nn
import numpy as np

torch.manual_seed(0)

class MinimalSegmentationModel(nn.Module):
    def __init__(self, num_classes=5):
        super().__init__()
        self.conv = nn.Conv2d(3, num_classes, kernel_size=3, padding=1)
    
    def forward(self, x):
        return self.conv(x)

model = MinimalSegmentationModel(num_classes=5)
model.eval()

image = np.random.randint(0, 256, (32, 40, 3), dtype=np.uint8)

classes = 5
crop_h = 16
crop_w = 20
h = 48
w = 64
mean = [103.53, 116.28, 123.675]
std = [57.375, 57.12, 58.395]
stride_rate = 2 / 3
batch_size = 4
amp = False

config = {
    'device': 'cpu',
    '_norm_cache': None
}

ARGS = {
    'model': model,
    'image': image,
    'classes': classes,
    'crop_h': crop_h,
    'crop_w': crop_w,
    'h': h,
    'w': w,
    'mean': mean,
    'std': std,
    'stride_rate': stride_rate,
    'batch_size': batch_size,
    'amp': amp,
    'config': config
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
cv2, 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 3, dtype family float, shape (48, 64, 5) — shape (48, 64, 5) 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_resnet_backbone Ran
ran; our contract draft was wrong, not the code
KAU-QuantumAILab/SegPAR/Adversarial_RL_simple.py
code served (permissive licence) · get_code("d5bca3ebefd6855a")
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 Sequential. 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 torch.nn as nn
from torchvision.models import resnet50, ResNet50_Weights

torch.manual_seed(0)

ARGS = {
    "out_dim": 2048,
    "pretrained": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential 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
load_agent Ran
ran; our contract draft was wrong, not the code
KAU-QuantumAILab/SegPAR/Adversarial_RL_simple.py
code served (permissive licence) · get_code("5c58aeccbebca9e2")
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 REINFORCE. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'config': {
        'action_space': 'standard',
        'model': 'yolo',
        'RGB': 3,
        'img_size_x': 256,
        'img_size_y': 256,
        'action_dim': 4,
        'device': 'cpu',
        'RL_learning_rate': 0.001,
        'attack_pixel': 0.1,
    }
}
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 REINFORCE — a REINFORCE output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a REINFORCE 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
load_dataset_sample_from_image Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
KAU-QuantumAILab/SegPAR/MedSAM_Inference_multi_boxes.py
code served (permissive licence) · get_code("5b11e30433df5932")
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
import tempfile
import os
from PIL import Image

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

# Create a simple RGB image (100x100 with 3 channels)
img_array = np.random.randint(0, 256, (100, 100, 3), dtype=np.uint8)
Image.fromarray(img_array).save(temp_image_path)

# Create bounding boxes in xyxy format (x1, y1, x2, y2)
# Using values that are within the image bounds
boxes_xyxy = np.array([
    [10, 10, 50, 50],    # box 1
    [60, 60, 90, 90]     # box 2
], dtype=np.int64)

# Create class IDs (must be > 0)
class_ids = np.array([1, 2], dtype=np.int64)

ARGS = {
    "data_path": temp_image_path,
    "boxes_xyxy": boxes_xyxy,
    "class_ids": class_ids
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL, numpy, skimage — 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
load_dataset_sample_from_npy_root Ran
ran; our contract draft was wrong, not the code
KAU-QuantumAILab/SegPAR/MedSAM_Inference_multi_boxes.py
code served (permissive licence) · get_code("367374d1e24756cb")
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
import tempfile
import os

# Create a temporary directory structure with dummy .npy files
temp_dir = tempfile.mkdtemp()
imgs_dir = os.path.join(temp_dir, 'imgs')
gts_dir = os.path.join(temp_dir, 'gts')
os.makedirs(imgs_dir, exist_ok=True)
os.makedirs(gts_dir, exist_ok=True)

# Create a dummy 1024x1024 image (RGB, so shape is (1024, 1024, 3))
dummy_image = np.random.randint(0, 256, (1024, 1024, 3), dtype=np.uint8)
np.save(os.path.join(imgs_dir, 'sample_img.npy'), dummy_image)

# Create a dummy ground truth with some labeled regions
dummy_gt = np.zeros((1024, 1024), dtype=np.int32)
# Add some labeled regions (label > 0)
dummy_gt[100:200, 100:200] = 1
dummy_gt[300:400, 300:450] = 2
dummy_gt[600:700, 500:600] = 3
np.save(os.path.join(gts_dir, 'sample_img.npy'), dummy_gt)

# Define the ARGS dictionary with all parameters for load_dataset_sample_from_npy_root
ARGS = {
    'npy_root': temp_dir,
    'npy_index': 0,
    'npy_name': None,
    'bbox_shift': 20
}
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 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
normalize_dataset_name Ran
ran; our contract draft was wrong, not the code
KAU-QuantumAILab/SegPAR/pgd0_voc_attack.py
code served (permissive licence) · get_code("c86039cda9d5024e")
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 str. 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

# The function normalize_dataset_name takes a single parameter: dataset_name (str)
# It processes the string by converting to lowercase and checking against known dataset names
# No complex objects or torch tensors are needed

ARGS = {
    'dataset_name': 'voc2012'
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
preprocess_gt_for_loss Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
KAU-QuantumAILab/SegPAR/pgd0_voc_attack.py
code served (permissive licence) · get_code("34c97b1fc6edeaf4")
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 numpy as np

# Create a small ground truth label array
# Shape: (2, 4) - batch size 2, spatial dimensions 4
y_gt = np.array([
    [0, 1, 2, 3],
    [1, 2, 3, 255]
], dtype=np.uint8)

ARGS = {
    'y_gt': y_gt,
    'dataset_name': 'ade20k',
    'num_class': 4,
    'ignore_index': 255
}
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 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
resnet18 Ran
ran; our contract draft was wrong, not the code
KAU-QuantumAILab/SegPAR/adv_models/resnet.py
code served (permissive licence) · get_code("40a78e38251055c6")
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 ResNet. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'pretrained': False,
}
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 ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
resnet34 Ran
ran; our contract draft was wrong, not the code
KAU-QuantumAILab/SegPAR/adv_models/resnet.py
code served (permissive licence) · get_code("4f6dd0ac332dd50d")
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 ResNet. 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 torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'pretrained': False,
}
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 ResNet — a ResNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a ResNet 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
load_config Not yet run
unverified (harvested, no recorded run)
KAU-QuantumAILab/SegPAR/adv_main.py
code served (permissive licence) · get_code("4a4b39688395e7fa")
How it ran

no invocation recorded.

prepare_agent_input Not yet run
unverified (harvested, no recorded run)
KAU-QuantumAILab/SegPAR/function.py
code served (permissive licence) · get_code("e263c37100c3b413")
How it ran

no invocation recorded.

str_or_none Not yet run
unverified (harvested, no recorded run)
KAU-QuantumAILab/SegPAR/adv_main.py
code served (permissive licence) · get_code("469868db4e3eb264")
How it ran

no invocation recorded.

Also present in other papers' code

Of 17 samples lifted from this paper's linked repositories, 17 carry a function identity and 0 do not. Of the 17 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 2 the same month, 0 later) and 14 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
conv3x3 686 other papers
684 dated earlier, 2 the same month · 31 only as an assembly brick
1406.2661 (2014-06)
Generative Adversarial Networks
1409.0575 (2014-09)
ImageNet Large Scale Visual Recognition Challenge
1412.6572 (2014-12)
Explaining and Harnessing Adversarial Examples
and 683 more not named here
resnet18 89 other papers
88 dated earlier, 1 the same month
1705.09759 (2017-05)
CASENet: Deep Category-Aware Semantic Edge Detection
1801.07698 (2018-01)
ArcFace: Additive Angular Margin Loss for Deep Face Recognition
1803.00839 (2018-03)
Pose-Robust Face Recognition via Deep Residual Equivariant Mapping
and 86 more not named here
resnet34 53 other papers
53 dated earlier
1705.09759 (2017-05)
CASENet: Deep Category-Aware Semantic Edge Detection
1801.07698 (2018-01)
ArcFace: Additive Angular Margin Loss for Deep Face Recognition
1803.00839 (2018-03)
Pose-Robust Face Recognition via Deep Residual Equivariant Mapping
and 50 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

Despite the practical relevance of sparse decision-based blackbox threats, they have received limited attention in semantic segmentation. To bridge this gap, we adapt the most representative decision-based black-box sparse attacks from the classification domain to serve as baselines, establishing a rigorous benchmark for this underexplored setting. In this context, we demonstrate that one of the existing methods suffers from severe query inefficiency due to its image-centric pixel accumulation, which rapidly exhausts query budgets across the vast image space. To overcome this, we propose SegPAR, a novel decision-based framework that shifts to a class-centric exploration paradigm. Furthermore, to eliminate the misleading feedback generated by standard decision rewards during pixel accumulation, we introduce a novel discrepancy reward. Extensive experiments show that SegPAR significantly outperforms black-box baselines in sparsity efficiency and MIoU reduction, while remaining competitive with white-box sparse attacks. Code is available at https://github.com/KAU-QuantumAILab/SegPAR.

For agents

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

get_harvested_code_for_paper("2608.11285")
get_code_for_paper("2608.11285")
have("2608.11285")

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

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

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

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

Connect an agent — have() is free.