mlsanityData to 7 Oct 2026

Robust Weight Signatures: Gaining Robustness as Easy as Patching Weights?

arXiv 2302.12480 ↗First posted 24 Feb 2023cs.LGcited by 13

Not on the map. Why?

Abstract (arXiv)

Given a robust model trained to be resilient to one or multiple types of distribution shifts (e.g., natural image corruptions), how is that "robustness" encoded in the model weights, and how easily can it be disentangled and/or "zero-shot" transferred to some other models? This paper empirically suggests a surprisingly simple answer: linearly - by straightforward model weight arithmetic! We start by drawing several key observations: (1)assuming that we train the same model architecture on both a clean dataset and its corrupted version, resultant weights mostly differ in shallow layers; (2)the weight difference after projection, which we call "Robust Weight Signature" (RWS), appears to be discriminative and indicative of different corruption types; (3)for the same corruption type, the RWSs obtained by one model architecture are highly consistent and transferable across different datasets. We propose a minimalistic model robustness "patching" framework that carries a model trained on clean data together with its pre-extracted RWSs. In this way, injecting certain robustness to the model is reduced to directly adding the corresponding RWS to its weight. We verify our proposed framework to be remarkably (1)lightweight. since RWSs concentrate on the shallowest few layers and we further show they can be painlessly quantized, storing an RWS is up to 13 x more compact than storing the full weight copy; (2)in-situ adjustable. RWSs can be appended as needed and later taken off to restore the intact clean model. We further demonstrate one can linearly re-scale the RWS to control the patched robustness strength; (3)composable. Multiple RWSs can be added simultaneously to patch more comprehensive robustness at once; and (4)transferable. Even when the clean model backbone is continually adapted or updated, RWSs remain as effective patches due to their outstanding cross-dataset transferability.

Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 47 of its 54 references that are in the map. First posted on arXiv 24 Feb 2023.

Builds on

47 of 54 references.

References · 47

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
  4. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
  5. 2019Benchmarking Neural Network Robustness to Common Corruptions and Perturbationscited by 2,857
  6. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
  7. 2019Theoretically Principled Trade-off between Robustness and Accuracycited by 1,510
  8. 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,366
  9. 2022Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference timecited by 1,366
  10. 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,194
  11. 2022Editing Models with Task Arithmeticcited by 1,076
  12. 2021A General Language Assistant as a Laboratory for Alignmentcited by 1,023
35 more
  1. 2019AugMix: A Simple Data Processing Method to Improve Robustness and Uncertaintycited by 897
  2. 2018Robustness May Be at Odds with Accuracycited by 873
  3. 2021Robust fine-tuning of zero-shot modelscited by 785
  4. 2021Fast Model Editing at Scalecited by 491
  5. 2020Measuring Robustness to Natural Distribution Shifts in Image Classificationcited by 452
  6. 2022Memory-Based Model Editing at Scalecited by 443
  7. 2019Using Pre-Training Can Improve Model Robustness and Uncertaintycited by 373
  8. 2019A Fourier Perspective on Model Robustness in Computer Visioncited by 288
  9. 2021WARP: Word-level Adversarial ReProgrammingcited by 220
  10. 2022Extracting Latent Steering Vectors from Pretrained Language Modelscited by 217
  11. 2022Branch-Train-Merge: Embarrassingly Parallel Training of Expert Language Modelscited by 187
  12. 2022Patching open-vocabulary models by interpolating weightscited by 187
  13. 2020Integer Quantization for Deep Learning Inference: Principles and Empirical Evaluationcited by 183
  14. 2017Formal Guarantees on the Robustness of a Classifier against Adversarial Manipulationcited by 182
  15. 2020Dataset Security for Machine Learning: Data Poisoning, Backdoor Attacks, and Defensescited by 171
  16. 2017Towards Robust Neural Networks via Random Self-ensemblecited by 158
  17. 2016Improving the Robustness of Deep Neural Networks via Stability Trainingcited by 156
  18. 2020Adversarial Robustness: From Self-Supervised Pre-Training to Fine-Tuningcited by 152
  19. 2020Robust Pre-Training by Adversarial Contrastive Learningcited by 144
  20. 2020Bridging Mode Connectivity in Loss Landscapes and Adversarial Robustnesscited by 130
  21. 2018Adversarial Reprogramming of Neural Networkscited by 115
  22. 2022Fusing finetuned models for better pretrainingcited by 110
  23. 2022Quality Not Quantity: On the Interaction between Dataset Design and Robustness of CLIPcited by 97
  24. 2021AugMax: Adversarial Composition of Random Augmentations for Robust Trainingcited by 89
  25. 2020Transfer Learning without Knowing: Reprogramming Black-box Machine Learning Models with Scarce Data and Limited Resourcescited by 83
  26. 2020Model Patching: Closing the Subgroup Performance Gap with Data Augmentationcited by 82
  27. 2021Exploring Architectural Ingredients of Adversarially Robust Deep Neural Networkscited by 73
  28. 2021Editing a classifier by rewriting its prediction rulescited by 64
  29. 2022Evaluating the Adversarial Robustness of Adaptive Test-time Defensescited by 64
  30. 2022In conversation with Artificial Intelligence: aligning language models with human valuescited by 61
  31. 2020Once-for-All Adversarial Training: In-Situ Tradeoff between Robustness and Accuracy for Freecited by 48
  32. 2022Fairness Reprogrammingcited by 33
  33. 2022Fixing Model Bugs with Natural Language Patchescited by 32
  34. 2021Test time Adaptation through Perturbation Robustnesscited by 28
  35. 2022LM-Debugger: An Interactive Tool for Inspection and Intervention in Transformer-Based Language Modelscited by 28

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 2; 2024: 6; 2025: 4; 2026: 1.

13 papers.

Sort:

By area: