Proceedings

Towards Sharper Generalization Bounds for Adversarial Contrastive Learning

Download BibTeX Cite

Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence. Main Track. Pages 5190-5198.

https://doi.org/10.24963/ijcai.2024/574

Abstract

Recently, the enhancement on the adversarial robustness of machine learning algorithms has gained significant attention across various application domains. Given the widespread label scarcity issue in real-world data, adversarial contrastive learning (ACL) has been proposed to adversarially train robust models using unlabeled data. Despite the empirical success, its generalization behavior remains poorly understood and far from being well-characterized. This paper aims to address this issue from a learning theory perspective. We establish novel high-probability generalization bounds for the general Lipschitz loss functions. The derived bounds scale O(log(k)) with respect to the number of negative samples k, which improves the existing linear dependency bounds. Our results are generally applicable to many prediction models, including linear models and deep neural networks. In particular, we obtain an optimistic generalization bound O(1/n) under the smoothness assumption of the loss function on the sample size n. To the best of our knowledge, this is the first fast-rate bound valid for ACL. Empirical evaluations on real-world datasets verify our theoretical findings.

  1. [Anthony et al., 1999] Martin Anthony, Peter L Bartlett, Pe- ter L Bartlett, et al. Neural network learning: Theoretical foundations, volume 9. cambridge university press Cam- bridge, 1999.
  2. [Arora et al., 2019] Sanjeev Arora, Hrishikesh Khande- parkar, Mikhail Khodak, Orestis Plevrakis, and Nikunj Saunshi. A theoretical analysis of contrastive unsuper- vised representation learning. In International Conference on Machine Learning, pages 9904-9923, 2019.
  3. [Awasthi et al., 2019] Pranjal Awasthi, Abhratanu Dutta, and Aravindan Vijayaraghavan. On robustness to adversarial examples and polynomial optimization. Advances in Neu- ral Information Processing Systems, 32, 2019.
  4. [Awasthi et al., 2020] Pranjal Awasthi, Natalie Frank, and Mehryar Mohri. Adversarial learning guarantees for linear hypotheses and neural networks. In International Confer- ence on Machine Learning, pages 431-441, 2020.
  5. [Bartlett and Mendelson, 2002] Peter L Bartlett and Shahar Mendelson. Rademacher and gaussian complexities: Risk bounds and structural results. Journal of Machine Learn- ing Research, 3(Nov):463-482, 2002.
  6. [Bartlett et al., 2005] Peter L Bartlett, Olivier Bousquet, and Shahar Mendelson. Local rademacher complexities. The Annals of Statistics, 33(4):1497-1537, 2005.
  7. [Chen et al., 2020] Ting Chen, Simon Kornblith, Moham- mad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In Inter- national Conference on Machine Learning, pages 1597- 1607. PMLR, 2020.
  8. [Fan et al., 2021] Lijie Fan, Sijia Liu, Pin-Yu Chen, Gaoyuan Zhang, and Chuang Gan. When does contrastive learning preserve adversarial robustness from pretraining to finetuning? Advances in Neural Information Process- ing Systems, 34:21480-21492, 2021.
  9. [Golowich et al., 2018] Noah Golowich, Alexander Rakhlin, and Ohad Shamir. Size-independent sample complexity of neural networks. In Conference on Learning Theory, pages 297-299. PMLR, 2018.
  10. [Gowal et al., 2020] Sven Gowal, Po-Sen Huang, Aaron van den Oord, Timothy Mann, and Pushmeet Kohli. Self- supervised adversarial robustness for the low-label, high- data regime. In International Conference on Learning Representations, 2020.
  11. [Grill et al., 2020] Jean-Bastien Grill, Florian Strub, Flo- rent Altché, Corentin Tallec, Pierre Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Avila Pires, Zhao- han Guo, Mohammad Gheshlaghi Azar, et al. Bootstrap your own latent-a new approach to self-supervised learn- ing. Advances in Neural Information Processing Systems, 33:21271-21284, 2020.
  12. [Hahnloser et al., 2000] Richard HR Hahnloser, Rahul Sarpeshkar, Misha A Mahowald, Rodney J Douglas, and H Sebastian Seung. Digital selection and analogue amplification coexist in a cortex-inspired silicon circuit. Nature, 405(6789):947-951, 2000.
  13. [He et al., 2020] Kaiming He, Haoqi Fan, Yuxin Wu, Sain- ing Xie, and Ross Girshick. Momentum contrast for un- supervised visual representation learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pat- tern Recognition, pages 9729-9738, 2020.
  14. [Hendrycks and Dietterich, 2019] Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In International Conference on Learning Representations, 2019.
  15. [Ho and Nvasconcelos, 2020] Chih-Hui Ho and Nuno Nvas- concelos. Contrastive learning with adversarial exam- ples. Advances in Neural Information Processing Systems, 33:17081-17093, 2020.
  16. [Jiang et al., 2020] Ziyu Jiang, Tianlong Chen, Ting Chen, and Zhangyang Wang. Robust pre-training by adversar- ial contrastive learning. Advances in Neural Information Processing Systems, 33:16199-16210, 2020.
  17. [Khim and Loh, 2018] Justin Khim and Po-Ling Loh. Ad- versarial risk bounds via function transformation. ArXiv Preprint ArXiv:1810.09519, 2018.
  18. [Khosla et al., 2020] Prannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna, Yonglong Tian, Phillip Isola, Aaron Maschinot, Ce Liu, and Dilip Krishnan. Supervised con- trastive learning. Advances in Neural Information Process- ing Systems, 33:18661-18673, 2020.
  19. [Kim et al., 2020] Minseon Kim, Jihoon Tack, and Sung Ju Hwang. Adversarial self-supervised contrastive learn- ing. Advances in Neural Information Processing Systems, 33:2983-2994, 2020.
  20. [Kingma and Ba, 2015] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Interna- tional Conference on Learning Representations, 2015.
  21. [Lee et al., 2021] Seanie Lee, Dong Bok Lee, and Sung Ju Hwang. Contrastive learning with adversarial perturba- tions for conditional text generation. In International Con- ference on Learning Representations, 2021.
  22. [Lei et al., 2023] Yunwen Lei, Tianbao Yang, Yiming Ying, and Ding-Xuan Zhou. Generalization analysis for contrastive representation learning. ArXiv Preprint ArXiv:2302.12383, 2023.
  23. [Lin et al., 2019] Ji Lin, Chuang Gan, and Song Han. De- fensive quantization: When efficiency meets robustness. In International Conference on Learning Representations, 2019.
  24. [Ling et al., 2003] Charles X Ling, Jin Huang, and Harry Zhang. Auc: a better measure than accuracy in com- paring learning algorithms. In Advances in Artificial In- telligence: 16th Conference of the Canadian Society for Computational Studies of Intelligence, AI 2003, Halifax, Canada, June 11-13, 2003, Proceedings 16, pages 329- 341. Springer, 2003.
  25. [Liu et al., 2022] Ye Liu, Yaya Cheng, Lianli Gao, Xiang- long Liu, Qilong Zhang, and Jingkuan Song. Practical evaluation of adversarial robustness via adaptive auto at- tack. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 15105- 15114, 2022.
  26. [Ma et al., 2021] Xingjun Ma, Yuhao Niu, Lin Gu, Yisen Wang, Yitian Zhao, James Bailey, and Feng Lu. Un- derstanding adversarial attacks on deep learning based medical image analysis systems. Pattern Recognition, 110:107332, 2021.
  27. [Madry et al., 2018] Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. In International Conference on Learning Representations, 2018.
  28. [Maurer, 2016] Andreas Maurer. A vector-contraction in- equality for rademacher complexities. In Algorithmic Learning Theory: 27th International Conference, ALT 2016, Bari, Italy, October 19-21, 2016, Proceedings 27, pages 3-17. Springer, 2016.
  29. [Misra and Maaten, 2020] Ishan Misra and Laurens van der Maaten. Self-supervised learning of pretext-invariant rep- resentations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 6707- 6717, 2020.
  30. [Mustafa et al., 2022] Waleed Mustafa, Yunwen Lei, and Marius Kloft. On the generalization analysis of adversarial learning. In International Conference on Machine Learn- ing, pages 16174-16196, 2022.
  31. [Neyshabur et al., 2015] Behnam Neyshabur, Ryota Tomioka, and Nathan Srebro. Norm-based capacity control in neural networks. In Conference on Learning Theory, pages 1376-1401. PMLR, 2015.
  32. [Reeve and Kaban, 2020] Henry Reeve and Ata Kaban. Op- timistic bounds for multi-output learning. In Interna- tional Conference on Machine Learning, pages 8030- 8040, 2020.
  33. [Srebro et al., 2010] Nathan Srebro, Karthik Sridharan, and Ambuj Tewari. Smoothness, low noise and fast rates. Advances in Neural Information Processing Systems, 23, 2010.
  34. [Szegedy et al., 2014] Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. In International Conference on Learning Representations, 2014.
  35. [Wu et al., 2018] Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. Unsupervised feature learning via non- parametric instance discrimination. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 3733-3742, 2018.
  36. [Xiao et al., 2022] Jiancong Xiao, Yanbo Fan, Ruoyu Sun, Jue Wang, and Zhi-Quan Luo. Stability analysis and gen- eralization bounds of adversarial training. In Advances in Neural Information Processing Systems, 2022.
  37. [Xing et al., 2021] Yue Xing, Qifan Song, and Guang Cheng. On the algorithmic stability of adversarial train- ing. Advances in Neural Information Processing Systems, 34:26523-26535, 2021.
  38. [Xu et al., 2019] Kaidi Xu, Sijia Liu, Pu Zhao, Pin-Yu Chen, Huan Zhang, Quanfu Fan, Deniz Erdogmus, Yanzhi Wang, and Xue Lin. Structured adversarial attack: Towards gen- eral implementation and better interpretability. In Interna- tional Conference on Learning Representations, 2019.
  39. [Yin et al., 2019] Dong Yin, Ramchandran Kannan, and Pe- ter Bartlett. Rademacher complexity for adversarially ro- bust generalization. In International Conference on Ma- chine Learning, pages 7085-7094, 2019.
  40. [Zhang et al., 2023] Yanghao Zhang, Wenjie Ruan, Fu Wang, and Xiaowei Huang. Generalizing univer- sal adversarial perturbations for deep neural networks. Machine Learning, 112(5):1597-1626, 2023.
  41. [Zheng et al., 2020] Haizhong Zheng, Ziqi Zhang, Juncheng Gu, Honglak Lee, and Atul Prakash. Efficient adversarial training with transferable adversarial examples. In Pro- ceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1181-1190, 2020.
  42. [Zhou, 2002] Ding-Xuan Zhou. The covering number in learning theory. Journal of Complexity, 18(3):739-767, 2002.
  43. [Zou and Liu, 2023] Xin Zou and Weiwei Liu. Generaliza- tion bounds for adversarial contrastive learning. Machine Learning Research, 24:1-54, 2023.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards