Papers › TₖML-AP: Adversarial Attacks to Top-k Multi-Label Learning

TₖML-AP: Adversarial Attacks to Top-k Multi-Label Learning

31 Jul 2021arXiv:2108.00146archive 2025-07-28

Shu Hu, Lipeng Ke, Xin Wang, Siwei Lyu

Top-k multi-label learning, which returns the top-k predicted labels from an input, has many practical applications such as image annotation, document analysis, and web search engine. However, the vulnerabilities of such algorithms with regards to dedicated adversarial perturbation attacks have not been extensively studied previously. In this work, we develop methods to create adversarial perturbations that can be used to attack top-k multi-label learning-based image annotation systems (TkML-AP). Our methods explicitly consider the top-k ranking relation and are based on novel loss functions. Experimental evaluations on large-scale benchmark datasets including PASCAL VOC and MS COCO demonstrate the effectiveness of our methods in reducing the performance of state-of-the-art top-k multi-label learning methods, under both untargeted and targeted attacks.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2108.00146")

Code

Syntology Ran 8 of 13 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 2 ran · honoured contract; 5 ran · our draft was wrong; 1 ran · fixture could not drive it.

By repository: official repository: 13 samples from 1 repository, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

discovershu/TKML-AP officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 8 ran; 2 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
5ran · our draft was wrong
1ran · fixture could not drive it
5unverified

Licence: 13 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from discovershu/TKML-AP. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

TP_index discovershu/TKML-AP/attack.py official repository ran · our draft was wrong no licence file found · pointer only · ac915bde2480a5d0 · report
clip_eta discovershu/TKML-AP/attack.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 992b5a38c6f3328a · report
div discovershu/TKML-AP/attack.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · 23d1e077e7b5b49f · report
generate_target_zeros_3_cases discovershu/TKML-AP/attack.py official repository ran · our draft was wrong no licence file found · pointer only · f0596be639f74388 · report
nontargeted_TP_index discovershu/TKML-AP/attack.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · ee0ca39731c9e80e · report
op_with_scalar_cast discovershu/TKML-AP/attack.py official repository ran · our draft was wrong no licence file found · pointer only · ac29ee3d13b98b04 · report
topk_acc_metric discovershu/TKML-AP/attack.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · 9cb34021e5b27f44 · report
topk_acc_metric_1_to_10 discovershu/TKML-AP/attack.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · 76a10d3500157636 · report
UAP discovershu/TKML-AP/attack.py official repository unverified no licence file found · pointer only · 2174f6d51d4c8e12 · report
l2_topk_non_targeted_attack discovershu/TKML-AP/attack.py official repository unverified no licence file found · pointer only · 27f2ad95e7262324 · report
l2_topk_targeted_attack discovershu/TKML-AP/attack.py official repository unverified no licence file found · pointer only · 44f6b2574e20f561 · report
save_result discovershu/TKML-AP/attack.py official repository unverified no licence file found · pointer only · c3197cc1dc16ced8 · report
tkmlap discovershu/TKML-AP/attack.py official repository unverified no licence file found · pointer only · 0896267f6e0a7341 · report

Tasks

Multi-Label Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections