Papers › Enhancing Adversarial Robustness for Deep Metric Learning

Enhancing Adversarial Robustness for Deep Metric Learning

2 Mar 2022CVPR 2022 1arXiv:2203.01439archive 2025-07-28

Mo Zhou, Vishal M. Patel

Owing to security implications of adversarial vulnerability, adversarial robustness of deep metric learning models has to be improved. In order to avoid model collapse due to excessively hard examples, the existing defenses dismiss the min-max adversarial training, but instead learn from a weak adversary inefficiently. Conversely, we propose Hardness Manipulation to efficiently perturb the training triplet till a specified level of hardness for adversarial training, according to a harder benign triplet or a pseudo-hardness function. It is flexible since regular training and min-max adversarial training are its boundary cases. Besides, Gradual Adversary, a family of pseudo-hardness functions is proposed to gradually increase the specified hardness level during training for a better balance between performance and robustness. Additionally, an Intra-Class Structure loss term among benign and adversarial examples further improves model robustness and efficiency. Comprehensive experimental results suggest that the proposed method, although simple in its form, overwhelmingly outperforms the state-of-the-art defenses in terms of robustness, training efficiency, as well as performance on benign examples.

PaperPDFConference PDFCodeCode 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="2203.01439")

Code

Syntology Ran 0 of 8 code samples harvested from 2 repositories linked to this paper; 8 have no recorded run.

By repository: official repository: 6 samples from 1 repository, 0 ran; community (archive-listed): 2 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

cdluminate/robdml officialmentioned on GitHubpytorchApache-2.0 report
cdluminate/robrank pytorchApache-2.0 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

8 samples harvested; 0 ran; 0 honoured the contract we drafted; 8 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.

8unverified

Licence: 0 of the 8 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

fn__pglift cdluminate/robdml/tex/code/robrank/losses/lifted.py official repository unverified Apache-2.0 (permissive) · d4214dea0b6000f5 · report
fn__pnpair cdluminate/robdml/tex/code/robrank/losses/npair.py official repository unverified Apache-2.0 (permissive) · ccbd8a3d0a72fca1 · report
fn_pcontrast cdluminate/robdml/tex/code/robrank/losses/contrastive.py official repository unverified Apache-2.0 (permissive) · de8e63c8a0865dac · report
fn_pcontrast_kernel cdluminate/robdml/tex/code/robrank/losses/contrastive.py official repository unverified Apache-2.0 (permissive) · 2e1549b81b32d2d2 · report
fn_pmargin_kernel cdluminate/robdml/tex/code/robrank/losses/margin.py official repository unverified Apache-2.0 (permissive) · e1de1afeb7624316 · report
miner cdluminate/robdml/tex/code/robrank/losses/miner.py official repository unverified Apache-2.0 (permissive) · 83ead4c483b7e87f · report
fn_infonce cdluminate/robrank/robrank/losses/infonce.py community (archive-listed) unverified Apache-2.0 (permissive) · a9eeff2875e174d7 · report
infonce cdluminate/robrank/robrank/losses/infonce.py community (archive-listed) unverified Apache-2.0 (permissive) · 1ec1a1d7d7df8c14 · report

Tasks

Adversarial RobustnessMetric Learning

1 archive task tag without a task page not shown.

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