SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.08255 · 2024

Practical Region-level Attack against Segment Anything Models

arXiv · PDF · Open in the Atlas

Code that ran

6 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 0 have no contract verdict; 6 failures of our instrument; 6 no recorded run), measured 2026-11-22; 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/2404.08255.json · badge: /api/ran/2404.08255.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
ShenYifanS/S-RA_T-RA canonical (classifier label)
classifier basis: census
6 ran · 6 no recorded run
FunctionStatusWhere it lives
box_to_samples Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ShenYifanS/S-RA_T-RA/SSAscripts/attack.py
pointer only (licence: NONE) · get_code("b5ed93bdff965ec9")
How it ran

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

box_to_samples Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ShenYifanS/S-RA_T-RA/SSAscripts/example_multi.py
pointer only (licence: NONE) · get_code("29752e3b56992005")
How it ran

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

box_to_samples Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ShenYifanS/S-RA_T-RA/quick_test/attack_sample.py
pointer only (licence: NONE) · get_code("96576a8896d0dc6b")
How it ran

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

calculate_iou Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ShenYifanS/S-RA_T-RA/SSAscripts/viewComplete.py
pointer only (licence: NONE) · get_code("ba2f0dfe43e66054")
How it ran

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

dct Ran
ran; our contract draft was wrong, not the code
ShenYifanS/S-RA_T-RA/SSAscripts/ssa.py
pointer only (licence: NONE) · get_code("4c3d07280a79397a")
How it ran

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

get_amg_kwargs Ran
ran; our contract draft was wrong, not the code
ShenYifanS/S-RA_T-RA/SSAscripts/amg.py
pointer only (licence: NONE) · get_code("a8051baeec435042")
How it ran

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

dct1 Not yet run
unverified (harvested, no recorded run)
ShenYifanS/S-RA_T-RA/SSAscripts/ssa.py
pointer only (licence: NONE); the stored copy get_code serves, from gq-max/advdiffvlm, is pointer only (licence: NONE) · get_code("997a65deb3a03f4b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShenYifanS/S-RA_T-RA 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. No invocation recorded.

idct1 Not yet run
unverified (harvested, no recorded run)
ShenYifanS/S-RA_T-RA/SSAscripts/ssa.py
pointer only (licence: NONE); the stored copy get_code serves, from gq-max/advdiffvlm, is pointer only (licence: NONE) · get_code("44faf6b5be901c53")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShenYifanS/S-RA_T-RA 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. No invocation recorded.

minimal_pgd Not yet run
unverified (harvested, no recorded run)
ShenYifanS/S-RA_T-RA/SSAscripts/example.py
pointer only (licence: NONE) · get_code("84fb1b3ab0aca327")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShenYifanS/S-RA_T-RA 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. No invocation recorded.

minimal_pgd Not yet run
unverified (harvested, no recorded run)
ShenYifanS/S-RA_T-RA/SSAscripts/example_multi.py
pointer only (licence: NONE) · get_code("c5b53102876c27dc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShenYifanS/S-RA_T-RA 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. No invocation recorded.

pgd Not yet run
unverified (harvested, no recorded run)
ShenYifanS/S-RA_T-RA/SSAscripts/example.py
pointer only (licence: NONE) · get_code("83995d3bc2efe6df")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShenYifanS/S-RA_T-RA 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. No invocation recorded.

pgd Not yet run
unverified (harvested, no recorded run)
ShenYifanS/S-RA_T-RA/SSAscripts/example_multi.py
pointer only (licence: NONE) · get_code("93ebcf9c9ccea222")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ShenYifanS/S-RA_T-RA 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. 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, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 2 the same month, 4 later) and 8 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
idct1 10 other papers
5 dated earlier, 1 the same month, 4 later
2011.04823 (2020-11)
Language Through a Prism: A Spectral Approach for Multiscale Language Representations
2105.08997 (2021-05)
When Deep Classifiers Agree: Analyzing Correlations between Learning Order and Image Statistics
2209.11888 (2022-09)
JPEG Artifact Correction using Denoising Diffusion Restoration Models
and 7 more not named here
dct1 4 other papers
1 dated earlier, 1 the same month, 2 later
2306.12685 (2023-06)
Rethinking the Backward Propagation for Adversarial Transferability
2404.10335 (2024-04)
Efficient Generation of Targeted and Transferable Adversarial Examples for Vision-Language Models Via Diffusion Models
2406.05531 (2024-06)
Enhancing Adversarial Transferability via Information Bottleneck Constraints
and 1 more not named here
dct 3 other papers
1 dated earlier, 2 later
2306.12685 (2023-06)
Rethinking the Backward Propagation for Adversarial Transferability
2406.05531 (2024-06)
Enhancing Adversarial Transferability via Information Bottleneck Constraints
2406.12814 (2024-06)
Dissecting Adversarial Robustness of Multimodal LM Agents
get_amg_kwargs 2 other papers
1 dated earlier, 1 later
2304.02643 (2023-04)
Segment Anything
2408.09110 (2024-08)
Locate Anything on Earth: Advancing Open-Vocabulary Object Detection for Remote Sensing Community

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

Repositories linked to this paper

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

Abstract

Segment Anything Models (SAM) have made significant advancements in image segmentation, allowing users to segment target portions of an image with a single click (i.e., user prompt). Given its broad applications, the robustness of SAM against adversarial attacks is a critical concern. While recent works have explored adversarial attacks against a pre-defined prompt/click, their threat model is not yet realistic: (1) they often assume the user-click position is known to the attacker (point-based attack), and (2) they often operate under a white-box setting with limited transferability. In this paper, we propose a more practical region-level attack where attackers do not need to know the precise user prompt. The attack remains effective as the user clicks on any point on the target object in the image, hiding the object from SAM. Also, by adapting a spectrum transformation method, we make the attack more transferable under a black-box setting. Both control experiments and testing against real-world SAM services confirm its effectiveness.

For agents

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

get_harvested_code_for_paper("2404.08255")
get_code_for_paper("2404.08255")
have("2404.08255")

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

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

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

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

Connect an agent — have() is free.