Papers › Using Multiple Self-Supervised Tasks Improves Model Robustness

Using Multiple Self-Supervised Tasks Improves Model Robustness

7 Apr 2022arXiv:2204.03714archive 2025-07-28

Matthew Lawhon, Chengzhi Mao, Junfeng Yang

Deep networks achieve state-of-the-art performance on computer vision tasks, yet they fail under adversarial attacks that are imperceptible to humans. In this paper, we propose a novel defense that can dynamically adapt the input using the intrinsic structure from multiple self-supervised tasks. By simultaneously using many self-supervised tasks, our defense avoids over-fitting the adapted image to one specific self-supervised task and restores more intrinsic structure in the image compared to a single self-supervised task approach. Our approach further improves robustness and clean accuracy significantly compared to the state-of-the-art single task self-supervised defense. Our work is the first to connect multiple self-supervised tasks to robustness, and suggests that we can achieve better robustness with more intrinsic signal from visual data.

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="2204.03714")

Code

Syntology Ran 6 of 16 code samples harvested from 1 repository linked to this paper; 10 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 5 ran with no contract checked.

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

mattlawhon/selfsupdefense officialmentioned in paperpytorchApache-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

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

1ran · our draft was wrong
5ran
10unverified

Licence: 0 of the 16 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 mattlawhon/SelfSupDefense. “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.

L1_projection mattlawhon/SelfSupDefense/AAattack/autopgd_base.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 7325c49fd8c6a7d2 · report
PreActResNet18 mattlawhon/SelfSupDefense/learning/preactresnet.py official repository ran Apache-2.0 (permissive) · 1153837ba4a94242 · report
pad mattlawhon/SelfSupDefense/utils.py official repository ran Apache-2.0 (permissive) · 1e0eb41fc8899d05 · report
projection_l1 mattlawhon/SelfSupDefense/AAattack/fab_projections.py official repository ran fingerprinted Apache-2.0 (permissive) · 9647e1400ee744e4 · report
projection_l2 mattlawhon/SelfSupDefense/AAattack/fab_projections.py official repository ran fingerprinted Apache-2.0 (permissive) · a345677b413ef5ca · report
projection_linf mattlawhon/SelfSupDefense/AAattack/fab_projections.py official repository ran fingerprinted Apache-2.0 (permissive) · b8bdb6e496b4b5fa · report
PreActResNet18Mhead mattlawhon/SelfSupDefense/learning/preactresnet.py official repository unverified Apache-2.0 (permissive) · d043e79456d2e240 · report
PreActResNet18SSL mattlawhon/SelfSupDefense/learning/preactresnet.py official repository unverified Apache-2.0 (permissive) · 25f994ffc02d5ca9 · report
clamp mattlawhon/SelfSupDefense/cifar10_defense.py official repository unverified Apache-2.0 (permissive) · 8a93e041134b597a · report
densenet121 mattlawhon/SelfSupDefense/learning/densenet.py official repository unverified Apache-2.0 (permissive) · ac057d3606810af8 · report
densenet161 mattlawhon/SelfSupDefense/learning/densenet.py official repository unverified Apache-2.0 (permissive) · ecc06aa5bb90a111 · report
densenet169 mattlawhon/SelfSupDefense/learning/densenet.py official repository unverified Apache-2.0 (permissive) · ca1a04251cc4d85c · report
getDictImageNetClasses mattlawhon/SelfSupDefense/utils.py official repository unverified Apache-2.0 (permissive) · 3bb1c5ca33fbb118 · report
normal_guassian_normalize mattlawhon/SelfSupDefense/cifar10_defense.py official repository unverified Apache-2.0 (permissive) · 86fba5d0611cc5ae · report
normalise mattlawhon/SelfSupDefense/utils.py official repository unverified Apache-2.0 (permissive) · d2a4ac781b2a9628 · report
normalize mattlawhon/SelfSupDefense/cifar10_defense_rebAA.py official repository unverified Apache-2.0 (permissive) · 464c263f3a828a31 · report

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