SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.12941 · 2023

Towards Reliable Evaluation and Fast Training of Robust Semantic Segmentation Models

arXiv · PDF · Open in the Atlas

Code that ran

8 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; 1 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 3 failures of our instrument; 0 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.12941.json · badge: /api/ran/2306.12941.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
nmndeep/robust-segmentation canonical (classifier label)
classifier basis: classifier_2025
4 ran · 0 no recorded run
szegedai/robust-segmentation-evaluation community (classifier label)
classifier basis not recorded on the link
4 ran · 0 no recorded run
FunctionStatusWhere it lives
check_imgs Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
nmndeep/robust-segmentation/tools/infer.py
pointer only (licence: NONE) · get_code("7f0c6d6786235d89")
How it ran

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

eval_performance Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
nmndeep/robust-segmentation/tools/infer.py
pointer only (licence: NONE) · get_code("655558caaffbbdad")
How it ran

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

evaluate Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
nmndeep/robust-segmentation/tools/infer.py
pointer only (licence: NONE) · get_code("69576f9a9c57ce46")
How it ran

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

js_div_fn Ran
ran on a synthesized input
szegedai/robust-segmentation-evaluation/rse/_sea.py
code served (permissive licence) · get_code("935105d173cd4e7a")
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 (2, 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 torch.nn.functional as F

torch.manual_seed(0)

# Construct valid arguments for js_div_fn
# p: logits [bs, n_cls, ...]
# q: labels [bs, ...]

batch_size = 2
n_classes = 4
spatial_dim = 3  # spatial dimensions

# Create p as logits [bs, n_cls, spatial_dim]
p = torch.randn(batch_size, n_classes, spatial_dim)

# Create q as labels [bs, spatial_dim]
# Labels should be in range [0, n_classes) or ignore_index
q = torch.randint(0, n_classes, (batch_size, spatial_dim))

# Set softmax_output to False so softmax is applied inside the function
softmax_output = False

# reduction='none' to avoid the ValueError about incompatible setup
reduction = 'none'

# red_dim can be None or a tuple of dimensions to sum over
red_dim = None

# ignore_index for masking
ignore_index = -1

ARGS = {
    'p': p,
    'q': q,
    'softmax_output': softmax_output,
    'reduction': reduction,
    'red_dim': red_dim,
    'ignore_index': ignore_index
}
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 3, dtype family float, shape (2, 4, 3) — shape (2, 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
masked_cross_entropy Ran
ran on a synthesized input
szegedai/robust-segmentation-evaluation/rse/_sea.py
code served (permissive licence) · get_code("566c54f62254e6a1")
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 (2, 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 torch
import torch.nn.functional as F

torch.manual_seed(0)

# The function expects:
# - pred: a tensor with shape (batch_size, num_classes, ...) where max(1) returns class predictions
# - target: a tensor with same spatial dims as pred, containing class indices
# - reduction: string 'none' or 'mean'
# - ignore_index: integer for classes to ignore

batch_size = 2
num_classes = 4
height = 3
width = 3

# pred should be logits/scores with shape (batch, num_classes, height, width)
pred = torch.randn(batch_size, num_classes, height, width)

# target should have shape (batch, height, width) with class indices
target = torch.randint(0, num_classes, (batch_size, height, width))

# Ensure some targets are not ignore_index
ignore_index_value = -1

ARGS = {
    'pred': pred,
    'target': target,
    'reduction': 'none',
    'ignore_index': ignore_index_value
}
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 3, dtype family float, shape (2, 3, 3) — shape (2, 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
padam Ran
ran on a synthesized input
szegedai/robust-segmentation-evaluation/rse/attacks.py
code served (permissive licence) · get_code("fc1ed7c7459d10fa")
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 2, dtype family float, shape (2, 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 torch.nn as nn

torch.manual_seed(0)

# Define a simple model that takes input and produces output
class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Create model instance
model = SimpleModel()

# Create input tensor (batch_size=2, features=4)
x = torch.randn(2, 4)

# Create target tensor (batch_size=2, num_classes=3)
y = torch.randint(0, 3, (2,))

# Define a loss function that takes model output and target
def loss_fn(output, target):
    return nn.CrossEntropyLoss()(output, target)

# Set up parameters
eps = 0.3
step_size = 0.01
num_steps = 5
bounds = (0, 1)
random_start = True
targeted = False

ARGS = {
    "model": model,
    "x": x,
    "y": y,
    "loss_fn": loss_fn,
    "eps": eps,
    "step_size": step_size,
    "num_steps": num_steps,
    "bounds": bounds,
    "random_start": random_start,
    "targeted": targeted
}
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 2, dtype family float, shape (2, 4) — shape (2, 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
poly_learning_rate Ran
ran, honoured the contract we drafted
nmndeep/robust-segmentation/tools/train_rob_seg.py
pointer only (licence: NONE) · get_code("587d57b085419e0e")
How it ran

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

single_logits_loss Ran
ran on a synthesized input
szegedai/robust-segmentation-evaluation/rse/_sea.py
code served (permissive licence) · get_code("8eb95e28786de4eb")
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 2, dtype family float, shape (2, 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 torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors
batch_size = 2
num_classes = 4
spatial_dim = 3

# pred: logits tensor of shape (batch_size, num_classes, spatial_dim)
pred = torch.randn(batch_size, num_classes, spatial_dim)

# target: class indices of shape (batch_size, spatial_dim)
target = torch.randint(0, num_classes, (batch_size, spatial_dim))

# Ensure no ignore_index values in target by default
target = torch.clamp(target, 0, num_classes - 1)

ARGS = {
    'pred': pred,
    'target': target,
    'normalized': False,
    'reduction': 'none',
    'masked': False,
    'ignore_index': -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 Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 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

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, 1 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 7 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
poly_learning_rate 2 other papers
1 dated earlier, 1 later
2301.02379 (2023-01)
CodeTalker: Speech-Driven 3D Facial Animation with Discrete Motion Prior
2507.12001 (2025-07)
AU-Blendshape for Fine-grained Stylized 3D Facial Expression Manipulation

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

Adversarial robustness has been studied extensively in image classification, especially for the $\ell_\infty$-threat model, but significantly less so for related tasks such as object detection and semantic segmentation, where attacks turn out to be a much harder optimization problem than for image classification. We propose several problem-specific novel attacks minimizing different metrics in accuracy and mIoU. The ensemble of our attacks, SEA, shows that existing attacks severely overestimate the robustness of semantic segmentation models. Surprisingly, existing attempts of adversarial training for semantic segmentation models turn out to be weak or even completely non-robust. We investigate why previous adaptations of adversarial training to semantic segmentation failed and show how recently proposed robust ImageNet backbones can be used to obtain adversarially robust semantic segmentation models with up to six times less training time for PASCAL-VOC and the more challenging ADE20k. The associated code and robust models are available at https://github.com/nmndeep/robust-segmentation

For agents

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

get_harvested_code_for_paper("2306.12941")
get_code_for_paper("2306.12941")
have("2306.12941")

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

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

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

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

Connect an agent — have() is free.