Proceedings

Rethinking Centered Kernel Alignment in Knowledge Distillation

Download BibTeX Cite

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

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

Abstract

Knowledge distillation has emerged as a highly effective method for bridging the representation discrepancy between large-scale models and lightweight models. Prevalent approaches involve leveraging appropriate metrics to minimize the divergence or distance between the knowledge extracted from the teacher model and the knowledge learned by the student model. Centered Kernel Alignment (CKA) is widely used to measure representation similarity and has been applied in several knowledge distillation methods. However, these methods are complex and fail to uncover the essence of CKA, thus not answering the question of how to use CKA to achieve simple and effective distillation properly. This paper first provides a theoretical perspective to illustrate the effectiveness of CKA, which decouples CKA to the upper bound of Maximum Mean Discrepancy (MMD) and a constant term. Drawing from this, we propose a novel Relation-Centered Kernel Alignment (RCKA) framework, which practically establishes a connection between CKA and MMD. Furthermore, we dynamically customize the application of CKA based on the characteristics of each task, with less computational source yet comparable performance than the previous methods. The extensive experiments on the CIFAR-100, ImageNet-1k, and MS-COCO demonstrate that our method achieves state-of-the-art performance on almost all teacher-student pairs for image classification and object detection, validating the effectiveness of our approaches. Our code is available in https://github.com/Klayand/PCKA.

  1. [Ahn et al., 2019] Sungsoo Ahn, Shell Xu Hu, et al. Varia- tional information distillation for knowledge transfer. In CVPR, pages 9163-9171, Long Beach, CA, USA, Jun. 2019. IEEE.
  2. [Boudiaf et al., 2020] Malik Boudiaf, Jérôme Rony, Im- tiaz Masud Ziko, Eric Granger, Marco Pedersoli, Pablo Piantanida, and Ismail Ben Ayed. A unifying mutual in- formation view of metric learning: Cross-entropy vs. pair- wise losses. In ECCV, 2020.
  3. [Cai and Vasconcelos, 2017] Zhaowei Cai and Nuno Vas- concelos. Cascade r-cnn: Delving into high quality object detection. CVPR, pages 6154-6162, 2017.
  4. [Chen et al., 2021] Pengguang Chen, Shu Liu, et al. Dis- tilling knowledge via knowledge review. In CVPR, pages 5008-5017, Virtual Event, Jun. 2021. IEEE.
  5. [Chen et al., 2023] Huanran Chen, Yinpeng Dong, Zhengyi Wang, Xiao Yang, Chengqi Duan, Hang Su, and Jun Zhu. Robust classification via a single diffusion model. arXiv preprint arXiv:2305.15241, 2023.
  6. [Chong et al., 2022] Zhiyu Chong, Xinzhu Ma, Hong Zhang, Yuxin Yue, Haojie Li, Zhihui Wang, and Wanli Ouyang. Monodistill: Learning spatial features for monocular 3d object detection. ArXiv, abs/2201.10830, 2022.
  7. [Cui et al., 2023] Jiequan Cui, Zhuotao Tian, Zhisheng Zhong, Xiaojuan Qi, Bei Yu, and Hanwang Zhang. Decoupled kullback-leibler divergence loss. ArXiv, abs/2305.13948, 2023.
  8. [Dai et al., 2021] Xing Dai, Zeren Jiang, et al. General in- stance distillation for object detection. In CVPR, pages 7842-7851, Virtual Event, Jun. 2021.
  9. [de Rijk et al., 2022] Philip de Rijk, Lukas Schneider, Mar- ius Cordts, and Dariu M. Gavrila. Structural knowledge distillation for object detection. ArXiv, abs/2211.13133, 2022.
  10. [Frankle and Carbin, 2019] Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In ICLR, New Orleans, LA, USA, May 2019.
  11. [Gong et al., 2023] Linrui Gong, Shaohui Lin, Baochang Zhang, Yunhang Shen, Ke Li, Ruizhi Qiao, Bohan Ren, Muqing Li, Zhou Yu, and Lizhuang Ma. Adaptive hierarchy-branch fusion for online knowledge distillation. In AAAI, 2023.
  12. [Heo et al., 2019] Byeongho Heo, Jeesoo Kim, and Sangdoo et al. A comprehensive overhaul of feature distillation. In ICCV, pages 1921-1930, Seoul, Korea (South), Oct.-Nov. 2019. IEEE.
  13. [Hinton et al., 2015] Geoffrey Hinton, Oriol Vinyals, Jeff Dean, et al. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2(7), 2015.
  14. [Huang et al., 2022] Tao Huang, Shan You, et al. Knowl- edge distillation from a stronger teacher. In NeurIPS, New Orleans, LA, USA, Nov.-Dec. 2022. NIPS.
  15. [Kornblith et al., 2019] Simon Kornblith, Mohammad Norouzi, Honglak Lee, and Geoffrey E. Hinton. Simi- larity of neural network representations revisited. ArXiv, abs/1905.00414, 2019.
  16. [Krizhevsky and Hinton, 2009] Alex Krizhevsky and Geof- frey Hinton. Learning multiple layers of features from tiny images. Handbook of Sys temic Autoimmune Diseases, 2009.
  17. [Li et al., 2020] Xiang Li, Wenhai Wang, Lijun Wu, Shuo Chen, Xiaolin Hu, Jun Li, Jinhui Tang, and Jian Yang. Generalized focal loss: Learning qualified and distributed bounding boxes for dense object detection. ArXiv, abs/2006.04388, 2020.
  18. [Lin et al., 2014] Tsung-Yi Lin, Michael Maire, et al. Mi- crosoft coco: Common objects in context. In ECCV, pages 740-755, Zurich, Switzerland, Sept. 2014. Springer.
  19. [Lin et al., 2017] Tsung-Yi Lin, Priya Goyal, Ross B. Gir- shick, Kaiming He, and Piotr Dollár. Focal loss for dense object detection. ICCV, pages 2999-3007, 2017.
  20. [Liu et al., 2021a] Li Liu, Qingle Huang, Sihao Lin, Hong- wei Xie, Bing Wang, Xiaojun Chang, and Xiao-Xue Liang. Exploring inter-channel correlation for diversity- preserved knowledge distillation. ICCV, pages 8251- 8260, 2021.
  21. [Liu et al., 2021b] Songhua Liu, Tianwei Lin, Dongliang He, Fu Li, Ruifeng Deng, Xin Li, Errui Ding, and Hao Wang. Paint transformer: Feed forward neural painting with stroke prediction. In ICCV, pages 6598-6607, Octo- ber 2021.
  22. [Marcel and Rodriguez, 2010] Sébastien Marcel and Yann Rodriguez. Torchvision the machine-vision package of torch. In ACM MM, pages 1485-1488, Firenze, Italy, Oct. 2010. ACM.
  23. [Nguyen et al., 2020] Thao Nguyen, Maithra Raghu, and Si- mon Kornblith. Do wide and deep networks learn the same things? uncovering how neural network representations vary with width and depth. ArXiv, abs/2010.15327, 2020.
  24. [Orhan and Pitkow, 2017] Emin Orhan and Xaq Pitkow. Skip connections eliminate singularities. In ICLR, 2017.
  25. [Park et al., 2019] Wonpyo Park, Dongju Kim, et al. Rela- tional knowledge distillation. In CVPR, pages 3967-3976, Long Beach, CA, USA, Jun. 2019. IEEE.
  26. [Peng et al., 2019] Baoyun Peng, Xiao Jin, et al. Correlation congruence for knowledge distillation. In ICCV, pages 5007-5016, 2019.
  27. [Qiu et al., 2022] Zengyu Qiu, Xinzhu Ma, Kunlin Yang, Chunya Liu, Jun Hou, Shuai Yi, and Wanli Ouyang. Bet- ter teacher better student: Dynamic prior knowledge for knowledge distillation. ArXiv, abs/2206.06067, 2022.
  28. [Ren et al., 2015] Shaoqing Ren, Kaiming He, Ross B. Gir- shick, and Jian Sun. Faster r-cnn: Towards real-time ob- ject detection with region proposal networks. IEEE PAMI, 39:1137-1149, 2015.
  29. [Romero et al., 2014] Adriana Romero, Nicolas Ballas, et al. Fitnets: Hints for thin deep nets. arXiv preprint arXiv:1412.6550, 2014.
  30. [Russakovsky et al., 2015] Olga Russakovsky, Jia Deng, et al. Imagenet large scale visual recognition challenge. IJCV, 115(3):211-252, 2015.
  31. [Saha et al., 2022] Aninda Saha, Alina Bialkowski, and Sara Khalifa. Distilling representational similarity using cen- tered kernel alignment (cka). In BMVC, 2022.
  32. [Shao et al., 2023a] Shitong Shao, Huanran Chen, Zhen Huang, Linrui Gong, Shuai Wang, and Xinxiao Wu. Teaching what you should teach: a data-based distillation method. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence, pages 1351- 1359, 2023. IJCAI
  33. [Shao et al., 2023b] Shitong Shao, Xu Dai, Shouyi Yin, Lu- jun Li, Huanran Chen, and Yang Hu. Catch-up distilla- tion: You only need to train once for accelerating sam- pling. arXiv preprint arXiv:2305.10769, 2023.
  34. [Shu et al., 2021] Changyong Shu, Yifan Liu, et al. Channel- wise knowledge distillation for dense prediction. In ICCV, pages 5311-5320, Montreal, Canada, Oct. 2021. IEEE.
  35. [Tian et al., 2019] Zhi Tian, Chunhua Shen, Hao Chen, and Tong He. Fcos: Fully convolutional one-stage object de- tection. ICCV, pages 9626-9635, 2019.
  36. [Tian et al., 2020] Yonglong Tian, Dilip Krishnan, and Phillip Isola. Contrastive representation distillation. In ICLR, Addis Ababa, Ethiopia, Apr. 2020. OpenRe- view.net.
  37. [Tung and Mori, 2019] Frederick Tung and Greg Mori. Similarity-preserving knowledge distillation. In ICCV, pages 1365-1374, Seoul, Korea (South), Oct-Nov. 2019. IEEE.
  38. [Wan et al., 2020] Alvin Wan, Xiaoliang Dai, Peizhao Zhang, Zijian He, Yuandong Tian, Saining Xie, Bichen Wu, Matthew Yu, Tao Xu, Kan Chen, Péter Vajda, and Joseph Gonzalez. Fbnetv2: Differentiable neural archi- tecture search for spatial and channel dimensions. CVPR, pages 12962-12971, 2020.
  39. [Wang et al., 2019] Tao Wang, Li Yuan, Xiaopeng Zhang, and Jiashi Feng. Distilling object detectors with fine- grained feature imitation. CVPR, pages 4928-4937, 2019.
  40. [Wu et al., 2016] Jiaxiang Wu, Cong Leng, Yuhang Wang, Qinghao Hu, and Jian Cheng. Quantized convolutional neural networks for mobile devices. In CVPR, Las Vegas, NV, USA, Jun. 2016. IEEE.
  41. [Yang et al., 2021] Jing Yang, Brais Martinez, et al. Knowl- edge distillation via softmax regression representation learning. In ICLR. OpenReview.net, 2021.
  42. [Yang et al., 2022a] Zhendong Yang, Zhe Li, et al. Focal and global knowledge distillation for detectors. In CVPR, pages 4643-4652, New Orleans, LA, USA, Jun. 2022. IEEE.
  43. [Yang et al., 2022b] Zhendong Yang, Zhe Li, Mingqi Shao, Dachuan Shi, Zehuan Yuan, and Chun Yuan. Masked gen- erative distillation. In ECCV, 2022.
  44. [Yang et al., 2023] Zhendong Yang, Ailing Zeng, Zhe Li, Tianke Zhang, Chun Yuan, and Yu Li. From knowledge distillation to self-knowledge distillation: A unified ap- proach with normalized loss and customized soft labels. ArXiv, abs/2303.13005, 2023.
  45. [Zagoruyko and Komodakis, 2016] Sergey Zagoruyko and Nikos Komodakis. Paying more attention to attention: Im- proving the performance of convolutional neural networks via attention transfer. In ICLR, 2016.
  46. [Zhang and Ma, 2021] Linfeng Zhang and Kaisheng Ma. Improve object detection with feature-based knowledge distillation: Towards accurate and efficient detectors. In ICLR, pages 1-14. OpenReview.net, 2021.
  47. [Zhao et al., 2022] Borui Zhao, Quan Cui, Renjie Song, Yiyu Qiu, and Jiajun Liang. Decoupled knowledge distil- lation. In CVPR, pages 11953-11962, New Orleans, LA, USA, Jun. 2022. IEEE.
  48. [Zhixing et al., 2021] Du Zhixing, Rui Zhang, Ming Chang, Shaoli Liu, Tianshi Chen, Yunji Chen, et al. Distilling object detectors with feature richness. NeurIPS, 34:5213- 5224, Dec. 2021.

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

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