Abstract
Self-supervised learning has become the primary method for pre-training large models due to its ability to train without labeled data and its excellent data feature representation capabilities. However, neural network models are vulnerable to adversarial attacks, which can lead to incorrect predictions. Previous work has attempted to enhance the robust representation capabilities of base models through self-supervised adversarial training (self-AT), which integrates adversarial training into the self-supervised learning pre-training process. However, self-supervised learning requires numerous training epoches, and adversarial training is computationally complex. Consequently, these methods need an additional 2.75 to 12 times the pre-training time of the model to obtain robust representations. Considering the resource consumption of training large models and the current high cost of computational resources, the cost of obtaining robustness for base models is excessively high and impractical. This paper proposes a novel Plug-and-Play model Robustness Plugin training framework called PPRP. PPRP is designed as a robustness plugin for self-supervised base models that have completed pre-training. Once the robust plugin is added, the base model gains robust representation capabilities. Essentially, PPRP is a teacher-student network that performs adversarial training on a plugin model with only a few parameters, reducing the time required to achieve model robustness to 5% of the pre-training time. The robust plugin can be seamlessly integrated into pre-trained models without additional inference latency. Experiments show that on multiple datasets, different base models with the PPRP-trained robust plugin achieve state-of-the-art robustness.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Bardes, A., Ponce, J., LeCun, Y.: VICReg: Variance-Invariance-Covariance Regularization for Self-Supervised Learning (Jan 2022). https://doi.org/10.48550/arXiv.2105.04906
Language models are few-shot learners: Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J.D., Dhariwal, et al. Adv. Neural. Inf. Process. Syst. 33, 1877–1901 (2020)
Chen, T., Kornblith, S., Norouzi, M., Hinton, G.: A Simple Framework for Contrastive Learning of Visual Representations (Jun 2020).https://doi.org/10.48550/arXiv.2002.05709
Chen, X., He, K.: Exploring Simple Siamese Representation Learning. arXiv:2011.10566 [cs] (Nov 2020)
da Costa, V.G.T., Fini, E., Nabi, M., Sebe, N., Ricci, E.: solo-learn: A library of self-supervised methods for visual representation learning. Journal of Machine Learning Research 23(56), 1–6 (2022), http://jmlr.org/papers/v23/21-1155.html
Croce, F., Hein, M.: Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attacks (Aug 2020).https://doi.org/10.48550/arXiv.2003.01690
Devlin, J., Chang, M.W., Lee, K., Toutanova, K.: Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805 (2018)
Fan, L., Liu, S., Chen, P.Y., Zhang, G., Gan, C.: When Does Contrastive Learning Preserve Adversarial Robustness from Pretraining to Finetuning? (Nov 2021) https://doi.org/10.48550/arXiv.2111.01124
Goodfellow, I., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., Courville, A., Bengio, Y.: Generative Adversarial Nets. In: Advances in Neural Information Processing Systems. vol. 27. Curran Associates, Inc. (2014)
Grill, J.B., Strub, F., Altché, F., Tallec, C., Richemond, P.H., Buchatskaya, E., Doersch, C., Pires, B.A., Guo, Z.D., Azar, M.G., Piot, B., Kavukcuoglu, K., Munos, R., Valko, M.: Bootstrap your own latent: A new approach to self-supervised Learning. arXiv:2006.07733 [cs, stat] (Sep 2020)
He, K., Chen, X., Xie, S., Li, Y., Dollár, P., Girshick, R.: Masked Autoencoders Are Scalable Vision Learners (Dec 2021).https://doi.org/10.48550/arXiv.2111.06377
He, K., Fan, H., Wu, Y., Xie, S., Girshick, R.: Momentum contrast for unsupervised visual representation learning. In: Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. pp. 9729–9738 (2020)
Hu, E.J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., Chen, W.: LoRA: Low-Rank Adaptation of Large Language Models (Oct 2021)
Jiang, Z., Chen, T., Chen, T., Wang, Z.: Robust Pre-Training by Adversarial Contrastive Learning. In: Advances in Neural Information Processing Systems. vol. 33, pp. 16199–16210. Curran Associates, Inc. (2020)
Kim, M., Tack, J., Hwang, S.J.: Adversarial Self-Supervised Contrastive Learning (Jun 2020) https://doi.org/10.48550/arXiv.2006.07589
Krizhevsky, A.: Learning multiple layers of features from tiny images. Tech. rep. (2009)
Luo, R., Wang, Y., Wang, Y.: Rethinking the Effect of Data Augmentation in Adversarial Contrastive Learning. https://arxiv.org/abs/2303.01289v2 (Mar 2023)
Madry, A., Makelov, A., Schmidt, L., Tsipras, D., Vladu, A.: Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083 (2017)
Radford, A., Narasimhan, K., Salimans, T., Sutskever, I., et al.: Improving language understanding by generative pre-training (2018)
Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., Sutskever, I., et al.: Language models are unsupervised multitask learners. OpenAI blog 1(8), 9 (2019)
Zbontar, J., Jing, L., Misra, I., LeCun, Y., Deny, S.: Barlow Twins: Self-Supervised Learning via Redundancy Reduction (Mar 2021).https://doi.org/10.48550/arXiv.2103.03230
Zhang, C., Zhang, K., Zhang, C., Niu, A., Feng, J., Yoo, C.D., Kweon, I.S.: Decoupled Adversarial Contrastive Learning for Self-supervised Adversarial Robustness (Jul 2022) https://doi.org/10.48550/arXiv.2207.10899
Acknowledgement
This work was supported by the Science and Technology Programme of STATE GRID Corporation of China (5100-202456026A-1-1-ZN).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2025 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Fang, J. et al. (2025). Improve Model Robustness in Less Time Than It Takes to Drink A Cup of Coffee with Plug-and-Play Robustness Plugins. In: Cho, M., Laptev, I., Tran, D., Yao, A., Zha, H. (eds) Computer Vision – ACCV 2024. ACCV 2024. Lecture Notes in Computer Science, vol 15472. Springer, Singapore. https://doi.org/10.1007/978-981-96-0885-0_22
Download citation
DOI: https://doi.org/10.1007/978-981-96-0885-0_22
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-96-0884-3
Online ISBN: 978-981-96-0885-0
eBook Packages: Computer ScienceComputer Science (R0)