SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.00924 · ICML · 2024

BadPart: Unified Black-box Adversarial Patch Attacks against Pixel-wise Regression Tasks

Xiangyu Zhang, Dongfang Liu, Shiwei Feng, Zhiyuan Cheng, Zhaoyi Liu, Tengda Guo, Mingjie Tang

arXiv · PDF · Open in the Atlas

Code that ran

8 of 9 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, 2 violated it and 0 have no contract verdict; 5 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/2404.00924.json · badge: /api/ran/2404.00924.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
Bob-cheng/BadPart canonical (classifier label)
classifier basis: census
7 ran · 1 no recorded run
bob-cheng/badpart canonical (classifier label)
classifier basis not recorded on the link
1 ran · 0 no recorded run
FunctionStatusWhere it lives
compute_cossim Ran
ran; our contract draft was wrong, not the code
Bob-cheng/BadPart/FlowNetworks/flow_models/losses.py
pointer only (licence: NONE) · get_code("cabc2ac9ef60e73b")
How it ran

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

compute_epe Ran
ran; our contract draft was wrong, not the code
Bob-cheng/BadPart/FlowNetworks/flow_models/losses.py
pointer only (licence: NONE) · get_code("795e0718dd9ab1ca")
How it ran

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

depth_to_disp Ran
ran; our contract draft was wrong, not the code
Bob-cheng/BadPart/attack/depth_model.py
pointer only (licence: NONE) · get_code("327b4158b7b40685")
How it ran

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

disp_to_depth Ran
ran, violated the contract we drafted
Bob-cheng/BadPart/attack/depth_model.py
pointer only (licence: NONE) · get_code("62287188376f0ba0")
How it ran

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

disp_to_depth Ran
ran, violated the contract we drafted
bob-cheng/badpart/my_utils.py
pointer only (licence: NONE) · get_code("5ddbb1ceaa5ee4e9")
How it ran

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

load_and_preprocess_intrinsics Ran
ran, honoured the contract we drafted
Bob-cheng/BadPart/attack/depth_model.py
pointer only (licence: NONE) · get_code("4e589c19c316dbe1")
How it ran

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

multiscale_cossim Ran
ran; our contract draft was wrong, not the code
Bob-cheng/BadPart/FlowNetworks/flow_models/losses.py
pointer only (licence: NONE) · get_code("245771e9a240453a")
How it ran

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

softmax_parent_selection Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
Bob-cheng/BadPart/my_utils.py
pointer only (licence: NONE) · get_code("e012e267c56a070d")
How it ran

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

import_optical_flow_model Not yet run
unverified (harvested, no recorded run)
Bob-cheng/BadPart/attack/flow_model.py
pointer only (licence: NONE) · get_code("14f4a864ffa4c082")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, Bob-cheng/BadPart 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 9 samples lifted from this paper's linked repositories, 9 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 (1 with at least one paper dated earlier, 1 the same month, 2 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
disp_to_depth 18 other papers
14 dated earlier, 1 the same month, 2 later, 1 same year, order not determinable
1806.01260 (2018-06)
Digging Into Self-Supervised Monocular Depth Estimation
1809.02627 (2018-09)
Unity: A General Platform for Intelligent Agents
1907.10326 (2019-07)
From Big to Small: Multi-Scale Local Planar Guidance for Monocular Depth Estimation
and 15 more not named here
load_and_preprocess_intrinsics 1 other paper
1 later
2406.05857 (2024-06)
Self-supervised Adversarial Training of Monocular Depth Estimation against Physical-World Attacks

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

Pixel-wise regression tasks (e.g., monocular depth estimation (MDE) and optical flow estimation (OFE)) have been widely involved in our daily life in applications like autonomous driving, augmented reality and video composition. Although certain applications are security-critical or bear societal significance, the adversarial robustness of such models are not sufficiently studied, especially in the black-box scenario. In this work, we introduce the first unified black-box adversarial patch attack framework against pixel-wise regression tasks, aiming to identify the vulnerabilities of these models under query-based black-box attacks. We propose a novel square-based adversarial patch optimization framework and employ probabilistic square sampling and score-based gradient estimation techniques to generate the patch effectively and efficiently, overcoming the scalability problem of previous black-box patch attacks. Our attack prototype, named BADPART, is evaluated on both MDE and OFE tasks, utilizing a total of 7 models. BADPART surpasses 3 baseline methods in terms of both attack performance and efficiency. We also apply BADPART on the Google online service for portrait depth estimation, causing 43.5% relative distance error with 50K queries. State-of-the-art (SOTA) countermeasures cannot defend our attack effectively.

For agents

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

get_harvested_code_for_paper("2404.00924")
get_code_for_paper("2404.00924")
have("2404.00924")

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

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

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

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

Connect an agent — have() is free.